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 I rowsort
SELECT ALL - col0 + col2 * + + 70 + - col2 FROM tab0
----
3228
603
6734

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab1 AS cor0 WHERE col0 > NULL
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT ALL COUNT( * ) * 6 AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL COUNT ( * ) * 6 AS col2 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT MIN( - col0 ) col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9
SELECT MIN ( - col0 ) col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - - 16 * 77 AS col1 FROM tab1 AS cor0
----
1232

query I rowsort
SELECT - + 60 AS col0 FROM tab0 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT ALL 55 DIV - MIN( ALL - col0 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT ALL 55 / - MIN ( ALL - col0 ) col0 FROM tab1 AS cor0
----
0

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-16
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - 92 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < + 53
----

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

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

query I rowsort
SELECT 99 + + 50 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT ( - - ( + col2 ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + 98 AS col0 FROM tab2 AS cor0
----
98

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

query I rowsort
SELECT col1 + + + col0 - - 77 * + col0 AS col1 FROM tab1
----
3992
6635
7145

query I rowsort
SELECT ALL + + col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * - 62 - + 60 AS col2 FROM tab1 AS cor0
----
-3718
-4276
-6012

query I rowsort
SELECT - col1 + col2 * col1 + col2 + - + col1 FROM tab2 AS cor0
----
1094
2966
3810

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

query I rowsort
SELECT DISTINCT + - col1 * - 41 AS col2 FROM tab1 cor0
----
1927
205
574

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

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

query I rowsort
SELECT ALL - col2 * - 46 FROM tab0
----
2162
4554
460

query I rowsort
SELECT ALL - ( 82 ) AS col1 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT ALL + col0 * col1 * 74 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
173604
364672
371850

query II rowsort
SELECT col1 * + col0, + ( - - col0 ) AS col1 FROM tab1
----
425
85
4277
91
714
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 51 col1 FROM tab1
----
0
34
40

query I rowsort
SELECT - col2 - + - col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT ALL COUNT( * ) DIV - - 55 * + + 42 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL COUNT ( * ) / - - 55 * + + 42 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab2 cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 73 = NULL
----

query I rowsort
SELECT 26 * + ( + 17 ) AS col2 FROM tab2
----
442
442
442

query I rowsort
SELECT ALL - - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

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

query II rowsort
SELECT col1 * col2 * + + 22 + - col0, 80 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL - COUNT ( ALL 91 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-49
SELECT ALL - COUNT( * ) AS col2, + 4 AS col2 FROM tab2
----
-3
4

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL - COUNT ( * ) AS col2, + 4 AS col2 FROM tab2
----
-3
4

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL <> + + 37 * - + 88 * 66
----

query I rowsort
SELECT ALL 86 + + + col1 + - - col2 FROM tab1
----
150
196
201

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ( + SUM( - + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-52
SELECT ( + SUM ( - + col1 ) ) FROM tab2
----
-195

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

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

query I rowsort
SELECT DISTINCT 23 + col2 * + col0 AS col2 FROM tab1
----
4919
5038
6211

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + col1 = + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT - MIN( ALL 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 22 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - MIN ( ALL 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 22 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - col2 + + - 96 * - 88 FROM tab2 WHERE + - col1 = NULL
----

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

query I rowsort
SELECT ALL - - 39 FROM tab1 AS cor0 WHERE - col1 / + col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + 86 AS col0 FROM tab0 AS cor0
----
-14
-2123
-9715

query I rowsort
SELECT ALL + 50 - - - col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-391
-6511
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-64
SELECT ALL * FROM tab2 WHERE 44 + + col0 - + - col0 >= - CAST( + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-64
SELECT ALL * FROM tab2 WHERE 44 + + col0 - + - col0 >= - CAST ( + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ( - 55 ) + + - 85 * + COUNT( * ) * - 65 AS col2 FROM tab2
----
16520

skipif mysql # not compatible
query I rowsort label-65
SELECT ( - 55 ) + + - 85 * + COUNT ( * ) * - 65 AS col2 FROM tab2
----
16520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col2 - - - col2 FROM tab0 WHERE NOT ( NOT NULL <> NULL )
----

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col2 - - - col2 FROM tab0 WHERE NOT ( NOT NULL <> NULL )
----

query II rowsort
SELECT DISTINCT + col0 AS col1, + ( - 82 ) FROM tab1
----
51
-82
85
-82
91
-82

query II rowsort
SELECT DISTINCT + col2, + col1 * - col0 * + col1 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT ( 86 ) DIV - col2 + - 36 + col1 + + + col2 AS col2 FROM tab2
----
35
79
88

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT ( 86 ) / - col2 + - 36 + col1 + + + col2 AS col2 FROM tab2
----
35
79
88

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

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

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

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

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

query I rowsort
SELECT ALL ( - 88 ) * + 74 + + 4 AS col0 FROM tab0 AS cor0
----
-6508
-6508
-6508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-74
SELECT CAST( + col1 AS DECIMAL ) * 74 FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-74
SELECT CAST ( + col1 AS REAL ) * 74 FROM tab2 WHERE NOT NULL >= NULL
----

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

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

query I rowsort
SELECT ALL - 95 + + col0 FROM tab0
----
-8
-80
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT + MIN( ALL CAST( + 2 AS SIGNED ) ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-79
SELECT + MIN ( ALL CAST ( + 2 AS INTEGER ) ) AS col1 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + 26 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab2
----
46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MIN( 9 ) / - 84 AS col2 FROM tab1 WHERE NOT col1 * col1 + 11 / - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MIN ( 9 ) / - 84 AS col2 FROM tab1 WHERE NOT col1 * col1 + 11 / - col1 < NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT ALL - col2 DIV 66 - - 23 col2 FROM tab1
----
22
22
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-86
SELECT ALL - col2 / 66 - - 23 col2 FROM tab1
----
22
22
23

query I rowsort
SELECT - 54 * - col0 AS col0 FROM tab0
----
4698
5238
810

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

query I rowsort
SELECT 28 * 17 FROM tab0
----
476
476
476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT 52 * COUNT( DISTINCT 47 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-91
SELECT 52 * COUNT ( DISTINCT 47 ) FROM tab1
----
52

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

query I rowsort
SELECT ALL col1 * - 20 + 49 * + 2 AS col0 FROM tab2 AS cor0
----
-1242
-1442
-922

query I rowsort
SELECT DISTINCT + col0 * + 46 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT + col0 - + 65 / - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 CROSS JOIN tab2
----
95

query I rowsort
SELECT ALL + 83 FROM tab1 WHERE NOT + col2 + 22 >= 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT 68 + COUNT( 35 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-98
SELECT 68 + COUNT ( 35 ) FROM tab1
----
71

query I rowsort
SELECT ALL + 44 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT col1 + col1 DIV ( + 83 ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-100
SELECT col1 + col1 / ( + 83 ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - 15 * COUNT( * ) + - 59 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-101
SELECT - 15 * COUNT ( * ) + - 59 FROM tab2 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL + ( + SUM( ( - 79 ) ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-711

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + ( + SUM ( ( - 79 ) ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-711

query I rowsort
SELECT - col1 + + 38 * - col2 AS col0 FROM tab1 AS cor0
----
-2247
-2631
-3662

query I rowsort
SELECT + + col0 * 93 + 24 AS col1 FROM tab2 cor0
----
4302
5976
6999

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 < 82
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-106
SELECT - + ( - ( 48 ) ) DIV 96 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-106
SELECT - + ( - ( 48 ) ) / 96 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 83 + + col2 * col1 FROM tab1 AS cor0
----
1427
3279
378

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

query I rowsort
SELECT DISTINCT + + col2 * 31 FROM tab1 AS cor0
----
1829
2108
2976

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

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT + COUNT ( col1 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col2 BETWEEN + col2 AND NULL
----
64
77
40
75
67
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - MIN( col2 ) * ( - ( - COUNT( * ) ) ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-114
SELECT - MIN ( col2 ) * ( - ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
-177

query I rowsort
SELECT - col0 * - col2 * + 25 AS col0 FROM tab0
----
17625
21750
240075

query I rowsort
SELECT + 93 * - - col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT ALL col0 * col1 + - col2 FROM tab1 WHERE NOT - col0 > + col0 + + col2
----
366
4209
618

query I rowsort
SELECT + 60 * col2 FROM tab1
----
3540
4080
5760

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + 4 ) / 16 > - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

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

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

query I rowsort
SELECT ALL col1 * col0 * - col2 * - 49 FROM tab0 cor0
----
2798145
470547
895230

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 95 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
92

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

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

query II rowsort
SELECT DISTINCT - 7 AS col0, + ( + 8 ) * 43 FROM tab1 cor0
----
-7
344

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( - col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT 61 * 60, - COUNT( * ) AS col2 FROM tab2
----
3660
-3

skipif mysql # not compatible
query II rowsort label-134
SELECT 61 * 60, - COUNT ( * ) AS col2 FROM tab2
----
3660
-3

query I rowsort
SELECT ALL col1 + + 49 * + - 3 + + col0 + + col2 * 73 AS col0 FROM tab1
----
4250
4955
6926

query I rowsort
SELECT DISTINCT 36 * 22 + - col0 FROM tab0
----
695
705
777

query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab1 WHERE NOT ( + + col1 + col1 - + col1 * col2 ) BETWEEN ( + 21 * col0 ) AND ( col0 - + col1 * - col2 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-138
SELECT ALL + CAST( + - col2 AS SIGNED ) * 67 * - + col0 + col0 DIV - col2 FROM tab0
----
47235
58282
643401

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + CAST ( + - col2 AS INTEGER ) * 67 * - + col0 + col0 / - col2 FROM tab0
----
47235
58282
643401

query I rowsort
SELECT DISTINCT col1 + - + 38 AS col2 FROM tab0
----
-17
-37
43

query III rowsort
SELECT * FROM tab1 WHERE + 36 = - 83
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT + ( + - ( + col0 ) ) * + - col0 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
225
7577
9409

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + ( + - ( + col0 ) ) * + - col0 + col0 / col2 AS col1 FROM tab0 AS cor0
----
225
7577
9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL + - MAX( + 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + - MAX ( + 10 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

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

query I rowsort
SELECT - 49 * + + 79 * 53 - - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 >= - col1
----
-205072
-205078
-205112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col2 col1 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 + col1 ) >= + 82
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 * col1 col2 FROM tab0 AS cor0
----
-2835
-35
-735

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

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

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

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 WHERE - - col0 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-154
SELECT + SUM ( - + col2 ) FROM tab1
----
-223

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

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

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

query I rowsort
SELECT + 77 * 86 FROM tab0 WHERE NOT ( NULL IN ( + 29, col1 ) )
----

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

query I rowsort
SELECT + - col0 * + 48 AS col2 FROM tab2 AS cor0
----
-2208
-3072
-3600

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col2 ) * - col2 * - col0 col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

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

query I rowsort
SELECT DISTINCT - col0 * - col0 * - 72 AS col1 FROM tab1 AS cor0
----
-187272
-520200
-596232

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col2 col2, - ( - col2 ) FROM tab1
----
110
96
115
68
64
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL col1 + - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL 43 + - 46 AS col0 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 + - ( + col1 ) * + + col2 FROM tab2
----
-1127
-3016
-3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 92 ) col1, 39 FROM tab0
----
-92
39
-92
39
-92
39

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

skipif mysql # not compatible
query I rowsort label-172
SELECT COUNT ( * ) / + - 16 AS col1 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-174
SELECT ALL 38 DIV + - COUNT( * ) col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT ALL 38 / + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL col2 + + + 35 AS col0 FROM tab1 AS cor0
----
103
131
94

query II rowsort
SELECT + 51 + + 60, col0 AS col2 FROM tab1 AS cor0
----
111
51
111
85
111
91

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

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

query I rowsort
SELECT 22 * + + col0 * - ( + 47 ) + col1 FROM tab1 AS cor0
----
-52720
-87885
-94047

query I rowsort
SELECT - 47 AS col1 FROM tab2 WHERE + - col1 IS NOT NULL
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT + col1 DIV col1 AS col0 FROM tab1 WHERE + col0 + col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-180
SELECT + col1 / col1 AS col0 FROM tab1 WHERE + col0 + col1 IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * + - ( + ( + col1 ) ) + - col2 - + - 33 AS col0 FROM tab1
----
-1
133
2174

query I rowsort
SELECT ALL + 20 * + col0 + - - 52 + + + ( + + 45 ) AS col1 FROM tab0
----
1837
2037
397

query I rowsort
SELECT DISTINCT ( - 58 ) + + 67 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 79 col0 FROM tab1
----
51
-79
85
-79
91
-79

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

query I rowsort
SELECT DISTINCT + col1 - + 62 AS col2 FROM tab2 AS cor0
----
-11
15
5

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

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

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

query II rowsort
SELECT - ( + col1 ) AS col2, + 99 FROM tab0 cor0 WHERE 27 + col1 - - col2 IS NULL
----

query I rowsort
SELECT col1 - 89 AS col1 FROM tab2 cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT - 98 * - 12 - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1179

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT - 98 * - 12 - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1179

query I rowsort
SELECT ALL - 64 * + col2 - - + 53 + - col0 FROM tab2 cor0
----
-1465
-2571
-3734

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - COUNT( * ) + 29 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-193
SELECT DISTINCT - COUNT ( * ) + 29 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT ALL 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT ALL MIN( - + 36 ) AS col2, + MAX( - + col1 ) FROM tab1
----
-36
-5

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL MIN ( - + 36 ) AS col2, + MAX ( - + col1 ) FROM tab1
----
-36
-5

query I rowsort
SELECT + 63 * - + 24 AS col1 FROM tab1 AS cor0
----
-1512
-1512
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT MAX( + - col1 ) * + 14 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT MAX ( + - col1 ) * + 14 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT - CAST( + + 92 AS SIGNED ) AS col1 FROM tab1
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-203
SELECT - CAST ( + + 92 AS INTEGER ) AS col1 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT 44 * - col1 AS col2 FROM tab0
----
-3564
-44
-924

query I rowsort
SELECT 62 * + - 57 FROM tab1
----
-3534
-3534
-3534

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * - + 0 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT + COUNT( * ) * 85 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + COUNT ( * ) * 85 FROM tab2
----
255

query I rowsort
SELECT ALL 71 * + col2 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT MIN( ALL - - ( - col2 ) ) + + 3 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-210
SELECT MIN ( ALL - - ( - col2 ) ) + + 3 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-212
SELECT DISTINCT CAST( + - AVG ( ALL + 56 ) AS SIGNED ) AS col1, COUNT( * ) col0 FROM tab1 cor0
----
-56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-212
SELECT DISTINCT CAST ( + - AVG ( ALL + 56 ) AS INTEGER ) AS col1, COUNT ( * ) col0 FROM tab1 cor0
----
-56
3

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

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

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

query I rowsort
SELECT - 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col1 - + + 59 FROM tab0
----
-28
41
69

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT ALL ( + 39 ) * - - 12 - + col2 DIV - col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
470
489
552

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL ( + 39 ) * - - 12 - + col2 / - col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
470
489
552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-218
SELECT * FROM tab1 AS cor0 WHERE 1 * - col0 * - ( CAST( NULL AS SIGNED ) ) * + col1 / col1 + - 64 - - + 60 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-218
SELECT * FROM tab1 AS cor0 WHERE 1 * - col0 * - ( CAST ( NULL AS INTEGER ) ) * + col1 / col1 + - 64 - - + 60 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT + 74 + COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT + 74 + COUNT ( * ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + 88 + + + col0 * - - col1 + + col2 - - + col2 FROM tab1 cor0
----
4325
455
818

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT - + MIN( DISTINCT - + ( - col1 ) ) * 43 AS col0 FROM tab1 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-222
SELECT - + MIN ( DISTINCT - + ( - col1 ) ) * 43 AS col0 FROM tab1 AS cor0
----
-215

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-223
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 48, ( + + col2 ), ( CAST( + 9 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-223
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 48, ( + + col2 ), ( CAST ( + 9 AS INTEGER ) ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-224
SELECT + - COUNT ( DISTINCT + + 19 ) col0 FROM tab2 AS cor0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-226
SELECT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-227
SELECT DISTINCT col1 * + ( CAST( - col0 AS SIGNED ) ) col2 FROM tab1
----
-425
-4277
-714

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

query I rowsort
SELECT col2 - + 93 + - col2 * 34 AS col2 FROM tab2
----
-1413
-2007
-852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 38 col2 FROM tab0
----
-28
61
9

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + 19 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - 25 ) + - + col1 AS col0 FROM tab2
----
-102
-76
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + 78 ) BETWEEN NULL AND + col0 + col2
----

query I rowsort
SELECT ALL - 7 + + - 64 FROM tab1
----
-71
-71
-71

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

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

query I rowsort
SELECT DISTINCT - + 38 + + col0 * 50 FROM tab0 AS cor0
----
4312
4812
712

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 / + + col2 * - - 85 IN ( - col2 * CAST( - - col1 AS SIGNED ) / col1 * col1 )
----

skipif mysql # not compatible
query III rowsort label-238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 / + + col2 * - - 85 IN ( - col2 * CAST ( - - col1 AS INTEGER ) / col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT - COUNT( ( - col0 ) ) AS col1, + 15 AS col1 FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-239
SELECT - COUNT ( ( - col0 ) ) AS col1, + 15 AS col1 FROM tab0 AS cor0
----
-3
15

query I rowsort
SELECT DISTINCT 37 * + + 5 * - col2 * col0 AS col1 FROM tab2
----
-195730
-473600
-804750

query I rowsort
SELECT - col0 + + + col0 * + col1 / col2 * col0 + - - 19 + 52 AS col2 FROM tab0 cor0 WHERE NOT + 67 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 58 * - col0 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT ALL + - col0 * col2 col0 FROM tab0 WHERE - + col2 + + col1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-245
SELECT ALL + - col0 * col2 col0 FROM tab0 WHERE - + col2 + + col1 >= CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT - CAST( + 50 AS SIGNED ) FROM tab1 cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-247
SELECT - CAST ( + 50 AS INTEGER ) FROM tab1 cor0
----
-50
-50
-50

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

query I rowsort
SELECT ALL - col0 * + col1 * - col2 * - col2 * - col0 FROM tab2 AS cor0
----
1267807500
504627200
57087564

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + 12 ) <> NULL
----

query I rowsort
SELECT ( + ( - + col2 ) ) + 11 + + 94 AS col0 FROM tab2 cor0
----
47
65
82

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

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - 6 + - - MAX ( + col1 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + - 45 AS col2 FROM tab1 AS cor0
----
14
23
51

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

query I rowsort
SELECT col2 + - 67 + - 73 FROM tab1 AS cor0
----
-44
-72
-81

query I rowsort
SELECT DISTINCT - 43 * - + col1 FROM tab0 cor0
----
3483
43
903

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT + COUNT( * ) * + 80 AS col1 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT + COUNT ( * ) * + 80 AS col1 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL - 56 col0, COUNT( * ) FROM tab2
----
-56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-259
SELECT ALL - 56 col0, COUNT ( * ) FROM tab2
----
-56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT COUNT( * ) * - - 32 * COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-260
SELECT COUNT ( * ) * - - 32 * COUNT ( * ) FROM tab0
----
288

query III rowsort
SELECT * FROM tab2 WHERE 78 * - 16 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT 30 DIV + 31 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-263
SELECT 30 / + 31 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE 11 IS NOT NULL
----
-15
-87
-97

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

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

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

query I rowsort
SELECT - - 79 * - ( 96 ) + + col1 FROM tab2 cor0
----
-7507
-7517
-7533

query I rowsort
SELECT + col2 * 7 AS col1 FROM tab2
----
161
280
406

onlyif mysql # DIV for integer division: 
query II rowsort label-269
SELECT DISTINCT col1 DIV - 75 AS col0, 44 + - 97 * col2 AS col2 FROM tab2
----
-1
-3836
0
-2187
0
-5582

skipif mysql # not compatible
query II rowsort label-269
SELECT DISTINCT col1 / - 75 AS col0, 44 + - 97 * col2 AS col2 FROM tab2
----
-1
-3836
0
-2187
0
-5582

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

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

query I rowsort
SELECT - + 93 AS col2 FROM tab2 AS cor0
----
-93
-93
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT - + 50 / + - SUM( col2 ) * + 39 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT - + 50 / + - SUM ( col2 ) * + 39 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

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

query II rowsort
SELECT + col1 AS col1, 77 * col1 + - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
1174
47
3687
5
444

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

query I rowsort
SELECT + 21 * 93 FROM tab1
----
1953
1953
1953

query I rowsort
SELECT col2 * 6 FROM tab1
----
354
408
576

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
21
54
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 + 78 col1 FROM tab1
----
143
168
216

query I rowsort
SELECT + 94 + col1 FROM tab0
----
115
175
95

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL + COUNT( * ) * - - SUM( + + 27 ) col2 FROM tab2
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-287
SELECT ALL + COUNT ( * ) * - - SUM ( + + 27 ) col2 FROM tab2
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 40 * col0 col2 FROM tab2
----
1863
2600
3058

query II rowsort
SELECT ALL 40 + col1 AS col2, + col0 + col1 AS col1 FROM tab0
----
121
96
41
98
61
108

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - - - col1 col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT ALL + 34 + + - col0 + - col1 + 90 + - col0 * col1 - - 13 DIV - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-391
-4291
-655

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL + 34 + + - col0 + - col1 + 90 + - col0 * col1 - - 13 / - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-391
-4291
-655

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

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

query I rowsort
SELECT 57 * - - col2 + 9 + - col1 - + col2 FROM tab1 AS cor0
----
3308
3770
5371

query II rowsort
SELECT ALL col1 * + + 30 * - ( col1 ) * - col2, - 78 AS col0 FROM tab2 AS cor0
----
1794690
-78
7114800
-78
7810860
-78

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - - ( + 69 ) col0 FROM tab0 AS cor0
----
141
141
141

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-300
SELECT * FROM tab2 cor0 WHERE ( + col1 * + + col1 > col1 * col2 + - - ( - - col1 ) * + col0 + + CAST( + + 54 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-300
SELECT * FROM tab2 cor0 WHERE ( + col1 * + + col1 > col1 * col2 + - - ( - - col1 ) * + col0 + + CAST ( + + 54 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-301
SELECT 73 - + col0 - + + col0 + + + CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
48
55
62

skipif mysql # not compatible
query I rowsort label-301
SELECT 73 - + col0 - + + col0 + + + CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
48
55
62

query III rowsort
SELECT * FROM tab0 WHERE - + col1 * - + 44 < NULL
----

query I rowsort
SELECT + 92 - - 54 * + + 60 AS col0 FROM tab1
----
3332
3332
3332

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

skipif mysql # not compatible
query I rowsort label-304
SELECT - COUNT ( * ) + - 21 FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT ALL + col2 + + - 82 * 17 + - ( + 64 ) DIV 21 * - col0 FROM tab0
----
-1004
-1123
-1302

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + col2 + + - 82 * 17 + - ( + 64 ) / 21 * - col0 FROM tab0
----
-1004
-1123
-1302

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 / col1 * + col2 - - 64 )
----

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 / col1 * + col2 - - 64 )
----

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-310
SELECT ALL - COUNT ( * ) AS col1, + 98 AS col0 FROM tab1 AS cor0
----
-3
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + - ( 8 ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-313
SELECT + - ( 8 ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
24

query II rowsort
SELECT ALL + + 51 AS col0, + 61 FROM tab2 AS cor0
----
51
61
51
61
51
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT col2 DIV + 23 AS col2 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-316
SELECT col2 / + 23 AS col2 FROM tab0 AS cor0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT 70 DIV col1 FROM tab0 AS cor0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT 70 / col1 FROM tab0 AS cor0
----
0
3
70

query II rowsort
SELECT ALL - col2 * 5 AS col2, + 23 AS col0 FROM tab0
----
-235
23
-495
23
-50
23

query II rowsort
SELECT + col0 + - col2 AS col0, + ( - - col1 ) * - col1 * - 71 * - col0 - + col0 * 45 * col1 * col1 AS col1 FROM tab1
----
-45
-1159536
23
-23318204
26
-246500

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT DISTINCT + - ( + 8 ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT + - ( + 8 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 86 IS NOT NULL
----

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

query I rowsort
SELECT col1 + + 56 FROM tab0
----
137
57
77

query I rowsort
SELECT + col2 + + + 56 AS col1 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT - 2 DIV col1 + - 68 + + 29 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-326
SELECT - 2 / col1 + - 68 + + 29 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - 39 + col2 AS col2 FROM tab0 AS cor0
----
-29
60
8

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 96 ) >= + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 - + 69 AS col1 FROM tab0 AS cor0
----
-48
-68
12

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

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

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

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

query I rowsort
SELECT ALL col0 * + 53 * - 22 AS col1 FROM tab2 AS cor0
----
-53636
-74624
-87450

query I rowsort
SELECT - 93 AS col2 FROM tab2 cor0
----
-93
-93
-93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT COUNT( * ) DIV + 26 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-338
SELECT COUNT ( * ) / + 26 AS col1 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL COUNT ( * ) + - + 86 FROM tab2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT COUNT( * ) + - 88 AS col2 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT COUNT ( * ) + - 88 AS col2 FROM tab1
----
-85

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 29 + + 25 FROM tab0 AS cor0
----
54
54
54

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 37 - col1 col0 FROM tab2 AS cor0
----
1836
2412
2772

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ALL SUM( ALL col0 ) - + 19 FROM tab2 cor0
----
166

skipif mysql # not compatible
query I rowsort label-349
SELECT ALL SUM ( ALL col0 ) - + 19 FROM tab2 cor0
----
166

query I rowsort
SELECT + - 6 - - 57 + col2 AS col1 FROM tab1 AS cor0
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT + ( SUM( + 68 ) ) col0 FROM tab1 AS cor0
----
204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT - MIN( ALL + 31 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-352
SELECT - MIN ( ALL + 31 ) FROM tab0
----
-31

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

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE NOT ( + - col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 41 + - ( col1 ) NOT IN ( - col1 + + col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT DISTINCT - - CAST( - - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-356
SELECT DISTINCT - - CAST ( - - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT 24 * - - col1 AS col2 FROM tab1
----
1128
120
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 * - col0 col2 FROM tab0
----
-33135
-8700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + - col2 col2 FROM tab0 AS cor0
----
-15
-67
22

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

query I rowsort
SELECT 37 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + 82 * - - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
7462

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + 82 * - - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
7462

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

query I rowsort
SELECT - + col0 + - 15 AS col1 FROM tab1 cor0
----
-100
-106
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL COUNT( * ) * COUNT( * ) * - + 96 AS col0 FROM tab1
----
-864

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL COUNT ( * ) * COUNT ( * ) * - + 96 AS col0 FROM tab1
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT ALL 95 + + col1 FROM tab2 WHERE - col2 * - 82 * + col2 + - col1 - - - 66 + + col1 * - - CAST( NULL AS SIGNED ) * + 33 * - col0 / - + col1 IS NULL
----
146
162
172

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL 95 + + col1 FROM tab2 WHERE - col2 * - 82 * + col2 + - col1 - - - 66 + + col1 * - - CAST ( NULL AS INTEGER ) * + 33 * - col0 / - + col1 IS NULL
----
146
162
172

query I rowsort
SELECT ALL - - 44 * + col0 AS col2 FROM tab1 WHERE ( NOT col1 + - col0 + col0 / + col1 IS NULL )
----
2244
3740
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96, + col2 + col1 col1 FROM tab0
----
96
100
96
128
96
31

query I rowsort
SELECT DISTINCT + - 62 - + col2 FROM tab2 AS cor0
----
-102
-120
-85

query I rowsort
SELECT + col1 + 89 FROM tab1
----
103
136
94

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-373
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 68 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-373
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 68 * - + CAST ( NULL AS INTEGER )
----

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

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

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

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

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

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

query I rowsort
SELECT - - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 20 / col1 + col1 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT DISTINCT MIN( - 36 ) FROM tab0 WHERE + col1 * col0 - 93 + - 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT MIN ( - 36 ) FROM tab0 WHERE + col1 * col0 - 93 + - 11 IS NULL
----
NULL

query II rowsort
SELECT + col2 * + col2, col0 AS col0 FROM tab0
----
100
87
2209
15
9801
97

query I rowsort
SELECT DISTINCT col1 * - 76 * - col1 + - col1 * + - 26 + + + 12 * - col0 FROM tab1 AS cor0 WHERE col1 * + col2 + - + 10 + + col2 + - col0 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-385
SELECT + CAST( NULL AS DECIMAL ) AS col1, - col2 DIV + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
-1
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-385
SELECT + CAST ( NULL AS REAL ) AS col1, - col2 / + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
-1
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 > + col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 67 + + col0 AS col1 FROM tab1
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT - COUNT( * ) + - - 13 AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-388
SELECT - COUNT ( * ) + - - 13 AS col1 FROM tab2
----
10

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

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

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + SUM ( DISTINCT - - col2 ) FROM tab0 cor0
----
156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT - col0 - - CAST( - + col1 AS SIGNED ) / - 13 + - col2 - - col1 + + col0 * + 13 col0 FROM tab0 AS cor0 WHERE NULL <= col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-393
SELECT - col0 - - CAST ( - + col1 AS INTEGER ) / - 13 + - col2 - - col1 + + col0 * + 13 col0 FROM tab0 AS cor0 WHERE NULL <= col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab2 AS cor0 WHERE 74 + col0 * + 32 <> + - 39
----
-8
13
5

query I rowsort
SELECT ALL col2 * + 12 AS col2 FROM tab0
----
1188
120
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT col1 * - 2 * + CAST( + + 55 AS SIGNED ) FROM tab1
----
-1540
-5170
-550

skipif mysql # not compatible
query I rowsort label-397
SELECT col1 * - 2 * + CAST ( + + 55 AS INTEGER ) FROM tab1
----
-1540
-5170
-550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 * + 55 * + col1 * - + 35 col1 FROM tab2
----
-115159275
-456533000
-501196850

onlyif mysql # DIV for integer division: 
query II rowsort label-399
SELECT col0 * + + col1 AS col1, + 18 DIV + 29 AS col0 FROM tab1
----
425
0
4277
0
714
0

skipif mysql # not compatible
query II rowsort label-399
SELECT col0 * + + col1 AS col1, + 18 / + 29 AS col0 FROM tab1
----
425
0
4277
0
714
0

query I rowsort
SELECT 26 - - col0 AS col0 FROM tab2
----
101
72
90

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT DISTINCT - COUNT( * ) * - ( - 58 ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - COUNT ( * ) * - ( - 58 ) FROM tab1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-402
SELECT 33 + + CAST( - 94 AS SIGNED ) + - col2 + 0 - + - col0 + - 69 + - CAST( + - col0 AS SIGNED ) * + - col2 AS col1 FROM tab0
----
-867
-923
-9735

skipif mysql # not compatible
query I rowsort label-402
SELECT 33 + + CAST ( - 94 AS INTEGER ) + - col2 + 0 - + - col0 + - 69 + - CAST ( + - col0 AS INTEGER ) * + - col2 AS col1 FROM tab0
----
-867
-923
-9735

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - ( - col1 ) * + 46 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT COUNT( * ) + + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-404
SELECT COUNT ( * ) + + 4 FROM tab1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT 61 * + col1 DIV + col1 + + 22 * - col0 FROM tab1 AS cor0
----
-1061
-1809
-1941

skipif mysql # not compatible
query I rowsort label-405
SELECT 61 * + col1 / + col1 + + 22 * - col0 FROM tab1 AS cor0
----
-1061
-1809
-1941

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 24 + + 26 ) >= NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 40 <= NULL
----

query I rowsort
SELECT ALL - col1 - 87 + - 97 FROM tab2 AS cor0
----
-235
-251
-261

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT + col1 AS col1, ( + col2 ) * - CAST( NULL AS SIGNED ) + + + 47 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT + col1 AS col1, ( + col2 ) * - CAST ( NULL AS INTEGER ) + + + 47 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT - SUM( + 98 ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-412
SELECT - SUM ( + 98 ) FROM tab2 AS cor0
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

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

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL 47 * + COUNT ( * ) FROM tab2
----
141

query I rowsort
SELECT ALL + 51 FROM tab1 WHERE NOT NULL <> ( + + 34 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + - 7 > 59 / + ( - 77 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + - 7 > 59 / + ( - 77 ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-417
SELECT ALL col1 AS col2, + CAST( - + ( - col0 ) AS SIGNED ) FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL col1 AS col2, + CAST ( - + ( - col0 ) AS INTEGER ) FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

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

query I rowsort
SELECT + - 42 * - col2 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT - MAX( ALL ( CAST( - col2 AS SIGNED ) ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-421
SELECT - MAX ( ALL ( CAST ( - col2 AS INTEGER ) ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col0 + 56 AS col2 FROM tab2
----
102
120
131

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) + - 64 FROM tab1
----
-17
-50
-59

query I rowsort
SELECT + 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT + 69 + - col0 DIV - col1 + + + col1 + - 63 + ( + col2 ) * 28 + - + 47 - + + col2 FROM tab2 AS cor0
----
1116
1593
631

skipif mysql # not compatible
query I rowsort label-425
SELECT + 69 + - col0 / - col1 + + + col1 + - 63 + ( + col2 ) * 28 + - + 47 - + + col2 FROM tab2 AS cor0
----
1116
1593
631

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT + col2 DIV - col1 + + + col2 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-426
SELECT + col2 / - col1 + + + col2 FROM tab1 AS cor0
----
48
67
90

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

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

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

query I rowsort
SELECT 69 + + col0 + + + col2 + - + col0 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 * - - col2 / + 9 col1, + col0 / - - 32 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - 0 AND - 47
----

query I rowsort
SELECT 50 + - - col1 FROM tab2 AS cor0
----
101
117
127

query I rowsort
SELECT + 2 AS col0 FROM tab2 WHERE - - col1 * - + 97 + - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col1 * col0 - + col2 FROM tab1
----
-399
-4254
-759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 57 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 57 AS col1 FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL + ( + COUNT( * ) ) * - + 11 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL + ( + COUNT ( * ) ) * - + 11 FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT col1 * + CAST( col0 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-437
SELECT col1 * + CAST ( col0 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query II rowsort label-438
SELECT ALL col0 DIV + col2, col2 FROM tab1
----
0
96
1
59
1
68

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL col0 / + col2, col2 FROM tab1
----
0
96
1
59
1
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 52 col1, 79 AS col2 FROM tab1
----
2652
79
4420
79
4732
79

query I rowsort
SELECT ALL + ( - 82 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 78 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-441
SELECT 78 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
234

query II rowsort
SELECT DISTINCT - col2 * + col1 AS col2, col1 + col0 FROM tab0 AS cor0
----
-210
108
-3807
96
-99
98

query I rowsort
SELECT ALL - 23 * + 49 + - 99 AS col0 FROM tab1 AS cor0
----
-1226
-1226
-1226

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-445
SELECT DISTINCT - col0 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - col0 / + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL MAX( - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL MAX ( - - col0 ) FROM tab2
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT - 71 * + SUM( + col2 ) AS col0 FROM tab2
----
-8591

skipif mysql # not compatible
query I rowsort label-448
SELECT - 71 * + SUM ( + col2 ) AS col0 FROM tab2
----
-8591

query I rowsort
SELECT ALL col0 + + 48 AS col2 FROM tab0
----
135
145
63

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

query I rowsort
SELECT DISTINCT + col0 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-452
SELECT ALL col1 DIV - - CAST( 67 AS SIGNED ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
0
-1
0
-21
1
-81

skipif mysql # not compatible
query II rowsort label-452
SELECT ALL col1 / - - CAST ( 67 AS INTEGER ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
0
-1
0
-21
1
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-453
SELECT - - col1 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-453
SELECT - - col1 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT + SUM( ALL + 40 ) + + 3 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-454
SELECT + SUM ( ALL + 40 ) + + 3 FROM tab0 AS cor0
----
123

query I rowsort
SELECT + 62 + 72 AS col2 FROM tab1
----
134
134
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 39 * + 86 col1 FROM tab1
----
-3307
-3340
-3349

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col2 col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + ( + MIN( DISTINCT + col2 ) ) + + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-459
SELECT + ( + MIN ( DISTINCT + col2 ) ) + + COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col2 col1 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 14 ) >= 70 * - 25 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT DISTINCT + 97 DIV 48 * + 60 - + ( + + col0 ) * + + col0 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-1155
-1416
-938

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT + 97 / 48 * + 60 - + ( + + col0 ) * + + col0 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-1155
-1416
-938

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col0 ) col1 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT + - col2, 64 + + 56 + - - col1 AS col0 FROM tab0 AS cor0
----
-10
141
-47
201
-99
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-467
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0, - 12 FROM tab2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-467
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, - 12 FROM tab2
----
NULL
-12

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + + col2
----

query I rowsort
SELECT - ( + col1 ) + col2 + 94 AS col2 FROM tab2
----
57
66
85

query I rowsort
SELECT - 62 + + 13 + 20 AS col2 FROM tab1
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT DISTINCT + 51 DIV - col2 + + col1 FROM tab0
----
1
16
80

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + 51 / - col2 + + col1 FROM tab0
----
1
16
80

query I rowsort
SELECT ALL col2 + + ( + 84 ) FROM tab2
----
107
124
142

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

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

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

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

query II rowsort
SELECT col0, - 81 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
-81
87
-81
97
-81

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 86 * - ( - 28 ) * + 61 + + COUNT( * ) col2 FROM tab1 AS cor0
----
146891

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

query I rowsort
SELECT ALL - - col2 * + 83 + - + 26 AS col2 FROM tab2 cor0
----
1883
3294
4788

query I rowsort
SELECT ALL - 16 * - - 14 FROM tab1 AS cor0
----
-224
-224
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT - 38 * - 93 * COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
10599

skipif mysql # not compatible
query I rowsort label-484
SELECT - 38 * - 93 * COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
10599

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) DIV - CAST( + 67 AS SIGNED ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) / - CAST ( + 67 AS INTEGER ) FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + 80 + col1 + col1 col0 FROM tab1 AS cor0
----
108
174
90

query I rowsort
SELECT 37 * - 57 FROM tab2 AS cor0
----
-2109
-2109
-2109

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-490
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) + - 29 * - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-490
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) + - 29 * - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 * - col0 + + + col2, col2 FROM tab0 AS cor0
----
-1168
47
-1817
10
2
99

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

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

query I rowsort
SELECT - ( - 3 ) AS col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + MIN( + 94 ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-495
SELECT + MIN ( + 94 ) AS col1 FROM tab1
----
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - 65 * + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-497
SELECT * FROM tab0 WHERE NOT - col0 * + col0 + - + col1 * 34 > col2 + 6 + - ( - col1 ) * + + 16 + + col0 + + ( + + col1 ) * + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-497
SELECT * FROM tab0 WHERE NOT - col0 * + col0 + - + col1 * 34 > col2 + 6 + - ( - col1 ) * + + 16 + + col0 + + ( + + col1 ) * + CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT DISTINCT 7 + + 64 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT COUNT( DISTINCT 66 ), 72 AS col1 FROM tab2
----
1
72

skipif mysql # not compatible
query II rowsort label-499
SELECT COUNT ( DISTINCT 66 ), 72 AS col1 FROM tab2
----
1
72

query II rowsort
SELECT ALL 39 * - col0, - 74 AS col2 FROM tab0
----
-3393
-74
-3783
-74
-585
-74

query II rowsort
SELECT col1 * col1, - 70 * + + 25 * - col1 AS col1 FROM tab2 AS cor0
----
2601
89250
4489
117250
5929
134750

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - 63 * - MAX( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
-1449

skipif mysql # not compatible
query I rowsort label-502
SELECT - 63 * - MAX ( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
-1449

query I rowsort
SELECT ALL - col1 + - 14 AS col2 FROM tab0
----
-15
-35
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 <= NULL
----

query I rowsort
SELECT DISTINCT + + 39 + - col1 + - - col2 FROM tab1 AS cor0
----
121
60
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 + - col1 col2 FROM tab1 AS cor0
----
-4
29
38

query I rowsort
SELECT + - col0 + + + col2 * + col0 FROM tab0 cor0
----
690
783
9506

query I rowsort
SELECT ALL + col1 - + + 43 FROM tab1
----
-29
-38
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT + ( - CAST( NULL AS DECIMAL ) ) * + + 78 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT + ( - CAST ( NULL AS REAL ) ) * + + 78 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 * + col0 * + + ( 32 ) AS col1 FROM tab1
----
122400
131040
73440

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT COUNT( * ) - + 11 AS col2 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-512
SELECT COUNT ( * ) - + 11 AS col2 FROM tab1
----
-8

query II rowsort
SELECT DISTINCT 63 AS col2, 11 * - col2 + - 37 AS col1 FROM tab1
----
63
-1093
63
-686
63
-785

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-514
SELECT col2, + CAST( NULL AS SIGNED ), - + col0 AS col0 FROM tab2
----
9 values hashing to f8dade8aa6af07079bbeffd58a02d41a

skipif mysql # not compatible
query III rowsort label-514
SELECT col2, + CAST ( NULL AS INTEGER ), - + col0 AS col0 FROM tab2
----
9 values hashing to f8dade8aa6af07079bbeffd58a02d41a

query I rowsort
SELECT + col2 * 86 FROM tab2
----
1978
3440
4988

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

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

query I rowsort
SELECT + - col1 * + ( 8 ) FROM tab0 AS cor0
----
-168
-648
-8

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-519
SELECT - + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + 86 = + - 43
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 * + 4 * + col0 col2 FROM tab0
----
-112800
-139200
-1536480

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

query I rowsort
SELECT col0 * - + col1 * - - col0 AS col1 FROM tab2 cor0
----
-107916
-315392
-376875

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT ALL + 35, - MIN( ALL + 72 ) * 2 + + 17 AS col1 FROM tab2
----
35
-127

skipif mysql # not compatible
query II rowsort label-528
SELECT ALL + 35, - MIN ( ALL + 72 ) * 2 + + 17 AS col1 FROM tab2
----
35
-127

query I rowsort
SELECT DISTINCT 35 * 51 AS col0 FROM tab2
----
1785

query I rowsort
SELECT ALL 44 * col0 FROM tab1
----
2244
3740
4004

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col0 + - 25 >= - ( + 1 ) + + + 60 + + col1 * - + 18 / + - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col0, col1 * col0 AS col1 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT 15 FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
15
15
15

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 IN ( + + col0 + + + 42, 40 )
----

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

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

query I rowsort
SELECT ALL - 29 + col0 AS col2 FROM tab1 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + ( 67 ) * + COUNT( * ) col2 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-539
SELECT + ( 67 ) * + COUNT ( * ) col2 FROM tab2
----
201

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT - MIN( DISTINCT 37 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - MIN ( DISTINCT 37 ) FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL - 65 * - COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL - 65 * - COUNT ( * ) FROM tab1
----
195

query I rowsort
SELECT DISTINCT 48 * - col2 FROM tab2
----
-1104
-1920
-2784

query I rowsort
SELECT ALL - 86 + - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0 * - 44 )
----

query I rowsort
SELECT DISTINCT 32 * - col0 FROM tab1
----
-1632
-2720
-2912

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 / 76 NOT BETWEEN NULL AND ( NULL )
----

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

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

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

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

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

query I rowsort
SELECT - 7 FROM tab1 WHERE NOT NULL <> col1
----

query I rowsort
SELECT ALL - col2 + - 61 FROM tab2
----
-101
-119
-84

query I rowsort
SELECT DISTINCT 89 * col1 AS col2 FROM tab2 WHERE + 67 BETWEEN - col0 + 53 / + 78 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 88 NOT IN ( 47 + col1 * col2 )
----

query I rowsort
SELECT DISTINCT 73 - + col1 FROM tab1
----
26
59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT + col0 DIV 62 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-557
SELECT + col0 / 62 AS col2 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT DISTINCT - col0 DIV + 17 AS col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - col0 / + 17 AS col0 FROM tab0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT 71 + SUM( 1 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-560
SELECT 71 + SUM ( 1 ) FROM tab1
----
74

query I rowsort
SELECT 9 * + col1 FROM tab0
----
189
729
9

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

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

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

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

query I rowsort
SELECT - col2 * ( - 60 ) AS col1 FROM tab2
----
1380
2400
3480

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT DISTINCT COUNT( DISTINCT - col2 ) DIV 2 + + 93 * 8 FROM tab2
----
745

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT COUNT ( DISTINCT - col2 ) / 2 + + 93 * 8 FROM tab2
----
745

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT 38 + SUM( + col0 + col0 * col2 ) AS col1 FROM tab1
----
16364

skipif mysql # not compatible
query I rowsort label-569
SELECT 38 + SUM ( + col0 + col0 * col2 ) AS col1 FROM tab1
----
16364

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT COUNT( * ) * 87 + + 42 AS col0 FROM tab0
----
303

skipif mysql # not compatible
query I rowsort label-570
SELECT COUNT ( * ) * 87 + + 42 AS col0 FROM tab0
----
303

query I rowsort
SELECT col2 * col1 + + col1 AS col1 FROM tab2
----
1224
3157
3953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT DISTINCT MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 84 NOT BETWEEN - 34 AND ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 71 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + 42 + col0 <> ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( col2 / 42 ) NOT IN ( 98 )
----

query I rowsort
SELECT ALL 26 * 29 FROM tab0
----
754
754
754

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT MAX( 4 ) + 20 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
184

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT MAX ( 4 ) + 20 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-581
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - CAST( + col1 + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-581
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - CAST ( + col1 + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
9

query I rowsort
SELECT - 74 * 85 FROM tab1 AS cor0
----
-6290
-6290
-6290

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

skipif mysql # not compatible
query I rowsort label-584
SELECT - 84 / col2 AS col2 FROM tab0 cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + 88 * + COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-585
SELECT + 88 * + COUNT ( * ) FROM tab2 AS cor0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT 42 + - col2 DIV col2 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-586
SELECT 42 + - col2 / col2 FROM tab1 AS cor0
----
41
41
41

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

query I rowsort
SELECT - 73 + + col2 AS col0 FROM tab1
----
-14
-5
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT COUNT( * ) col2 FROM tab1 WHERE ( NULL ) < ( CAST( NULL AS SIGNED ) / col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-589
SELECT COUNT ( * ) col2 FROM tab1 WHERE ( NULL ) < ( CAST ( NULL AS INTEGER ) / col1 )
----
0

query I rowsort
SELECT 14 AS col1 FROM tab0 WHERE 55 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + col2 + + - 26 FROM tab0
----
-16
21
73

query I rowsort
SELECT DISTINCT 3 * col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
188
396
40

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT ALL + col1 * 48 DIV col2 AS col2 FROM tab2 AS cor0
----
106
55
92

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + col1 * 48 / col2 AS col2 FROM tab2 AS cor0
----
106
55
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + COUNT( ALL + 45 ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-597
SELECT + COUNT ( ALL + 45 ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT 92 * + - 26 * 98 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d8b35730f7c1b75533f355221677196

query I rowsort
SELECT DISTINCT col2 * + 68 + + - col0 + col0 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT - col2 * + - col1 + - - 63 * - 37 FROM tab1 cor0
----
-2036
-987
865

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT + col1 * - col0 + - col0 DIV + 35 FROM tab0 cor0
----
-1215
-1829
-99

skipif mysql # not compatible
query I rowsort label-601
SELECT + col1 * - col0 + - col0 / + 35 FROM tab0 cor0
----
-1215
-1829
-99

query I rowsort
SELECT DISTINCT col1 * + col2 + + 26 FROM tab1 AS cor0
----
1370
321
3222

query I rowsort
SELECT ALL col2 - + + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT DISTINCT - - 42 - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 55 ) NOT IN ( 83 / 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 70 * + 64 col0, col1 col0 FROM tab0
----
-4480
1
-4480
21
-4480
81

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

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

query I rowsort
SELECT 38 * + 23 FROM tab2
----
874
874
874

query I rowsort
SELECT ( + - 59 ) * col2 * - col1 FROM tab1
----
17405
188564
79296

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) = - 59 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT 64 DIV 67 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT 64 / 67 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 + + - 92 IN ( col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT 69 * + COUNT( * ) AS col1 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-616
SELECT 69 * + COUNT ( * ) AS col1 FROM tab2
----
207

query I rowsort
SELECT DISTINCT + - ( - col1 ) * - - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * - col0 col0 FROM tab0 AS cor0
----
-1215
-7047
-7857

query I rowsort
SELECT DISTINCT + 65 + + + 79 * + - 53 FROM tab1
----
-4122

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + MIN( ALL + 41 ) + + + COUNT( * ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + MIN ( ALL + 41 ) + + + COUNT ( * ) AS col0 FROM tab1
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < - + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * col1 col2 FROM tab2 AS cor0 WHERE NOT + col2 * - col0 + + + col0 IN ( col2 )
----
-2550
-4422
-5852

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - - ( 26 ) BETWEEN NULL AND ( col1 + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT * FROM tab2 WHERE + + col1 * - CAST( NULL AS SIGNED ) * + - 78 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-628
SELECT * FROM tab2 WHERE + + col1 * - CAST ( NULL AS INTEGER ) * + - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-629
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) AS col0, - 67 AS col1 FROM tab2
----
0
-67

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

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col1 FROM tab1
----
39

query II rowsort
SELECT col1 AS col0, - col0 * 83 FROM tab2
----
51
-3818
67
-6225
77
-5312

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT + COUNT( * ), 80 AS col2 FROM tab1, tab1 AS cor0
----
9
80

skipif mysql # not compatible
query II rowsort label-632
SELECT + COUNT ( * ), 80 AS col2 FROM tab1, tab1 AS cor0
----
9
80

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

query I rowsort
SELECT DISTINCT + 33 * + 87 FROM tab0
----
2871

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col0 + - col0 + 69 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-636
SELECT DISTINCT * FROM tab2 WHERE col1 * - + CAST( + col1 AS DECIMAL ) + - - ( col2 ) + col1 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-636
SELECT DISTINCT * FROM tab2 WHERE col1 * - + CAST ( + col1 AS REAL ) + - - ( col2 ) + col1 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 92 + + + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT SUM( - 30 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT SUM ( - 30 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL + + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE col2 > ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-641
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE col2 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - 32 * + - col2 )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-645
SELECT ALL + 8 DIV - - 73 AS col2, - 61 * - - 90 FROM tab2 AS cor0
----
0
-5490
0
-5490
0
-5490

skipif mysql # not compatible
query II rowsort label-645
SELECT ALL + 8 / - - 73 AS col2, - 61 * - - 90 FROM tab2 AS cor0
----
0
-5490
0
-5490
0
-5490

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-646
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + + ( + col1 ) NOT BETWEEN - 86 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-646
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + + ( + col1 ) NOT BETWEEN - 86 AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 IS NULL
----

query II rowsort
SELECT ALL + col0 * col2 - col1, col1 FROM tab2 AS cor0
----
1007
51
2483
77
4283
67

query I rowsort
SELECT DISTINCT - 60 * 0 AS col2 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL - ( - MAX( + 84 ) ) * - SUM( ALL col2 ) + - COUNT( + col0 ) col2 FROM tab0 WHERE + 46 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-651
SELECT ALL - ( - MAX ( + 84 ) ) * - SUM ( ALL col2 ) + - COUNT ( + col0 ) col2 FROM tab0 WHERE + 46 IS NULL
----
NULL

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

query I rowsort
SELECT 59 * + - col0 * + 22 FROM tab0
----
-112926
-125906
-19470

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-654
SELECT ALL col1 AS col2, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL col1 AS col2, - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT + COUNT( * ) - 89 FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN NULL AND - col1
----
-86

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT + COUNT ( * ) - 89 FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN NULL AND - col1
----
-86

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

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

query I rowsort
SELECT DISTINCT col1 * + 80 AS col2 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT DISTINCT - 5 FROM tab1 AS cor0 WHERE NOT - 34 NOT BETWEEN + + 5 AND ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + - col0 NOT BETWEEN - - 9 * - 38 + col1 AND NULL AND NOT NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-660
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) + - ( + 41 ) IN ( + 38 )
----

skipif mysql # not compatible
query III rowsort label-660
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - ( + 41 ) IN ( + 38 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query I rowsort
SELECT DISTINCT + col0 + + ( + - 22 ) AS col2 FROM tab1 AS cor0
----
29
63
69

query I rowsort
SELECT col0 + + - col2 + + - col2 AS col0 FROM tab2 cor0
----
-16
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 55
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL COUNT( 86 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL COUNT ( 86 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT MAX( ALL col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT MAX ( ALL col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 24 * + 5 / + + col1 NOT BETWEEN ( - - ( + - col1 ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT + col2 DIV + - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-670
SELECT + col2 / + - 97 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-671
SELECT ALL - 31 + + col2 + - col1 * col0 * + col1 AS col1, - CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab0
----
9 values hashing to c546a6419a9ec142db4c4363100854a4

skipif mysql # not compatible
query III rowsort label-671
SELECT ALL - 31 + + col2 + - col1 * col0 * + col1 AS col1, - CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab0
----
9 values hashing to c546a6419a9ec142db4c4363100854a4

query I rowsort
SELECT ALL 53 + col0 FROM tab2
----
117
128
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - 85 - + COUNT( * ) * + COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - 85 - + COUNT ( * ) * + COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab0
----
-79

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

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE 7 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL 75 - + col2 DIV + + ( + 36 ) FROM tab0 AS cor0
----
73
74
75

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 75 - + col2 / + + ( + 36 ) FROM tab0 AS cor0
----
73
74
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL BETWEEN - col2 AND + - 55 - + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT 38 - + COUNT( + col1 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT 38 - + COUNT ( + col1 ) FROM tab1
----
35

query II rowsort
SELECT col0, 74 AS col0 FROM tab1
----
51
74
85
74
91
74

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 cor0 WHERE NOT - col0 * + + 32 > ( + + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + - SUM( + 2 ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-680
SELECT + - SUM ( + 2 ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT col1, - col2 + col0 AS col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

query II rowsort
SELECT - col0, - col0 - + + col0 AS col2 FROM tab1 AS cor0
----
-51
-102
-85
-170
-91
-182

onlyif mysql # DIV for integer division: 
query II rowsort label-683
SELECT col1 DIV + + col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
1
-10
1
-47
1
-99

skipif mysql # not compatible
query II rowsort label-683
SELECT col1 / + + col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
1
-10
1
-47
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-684
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 + + 40 * + 61 FROM tab0 AS cor0
----
-7361
231
2340

query I rowsort
SELECT + col0 * - - 89 * - col1 AS col2 FROM tab2
----
-208794
-438592
-447225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-690
SELECT + CAST( + col1 AS SIGNED ) * - col0 * - col1 FROM tab2
----
119646
336675
379456

skipif mysql # not compatible
query I rowsort label-690
SELECT + CAST ( + col1 AS INTEGER ) * - col0 * - col1 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - + col1 > ( NULL )
----

query I rowsort
SELECT + 91 * + - col0 FROM tab2
----
-4186
-5824
-6825

query II rowsort
SELECT DISTINCT + col1 * 3 + - col1, 95 + col0 AS col1 FROM tab1 AS cor0
----
10
180
28
146
94
186

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + + MIN( col2 ) * + 77 AS col0 FROM tab0 AS cor0
----
770

skipif mysql # not compatible
query I rowsort label-694
SELECT + + MIN ( col2 ) * + 77 AS col0 FROM tab0 AS cor0
----
770

query I rowsort
SELECT ALL 86 * col0 * col2 AS col2 FROM tab0 AS cor0
----
60630
74820
825858

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

query I rowsort
SELECT 73 + + col0 AS col2 FROM tab1
----
124
158
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT DISTINCT - COUNT( * ), CAST( CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT - COUNT ( * ), CAST ( CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT DISTINCT COUNT( * ) DIV 41 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-699
SELECT DISTINCT COUNT ( * ) / 41 col0 FROM tab0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT col1 * + col0 + - 39 + - col1 DIV - 41 + - col0 AS col0 FROM tab2 AS cor0
----
2262
4826
4912

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT col1 * + col0 + - 39 + - col1 / - 41 + - col0 AS col0 FROM tab2 AS cor0
----
2262
4826
4912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 72 + - ( + col0 ) - + 31 col2 FROM tab2 AS cor0
----
-28
-63
-92

query II rowsort
SELECT ALL + - col2 AS col0, 67 FROM tab0 cor0
----
-10
67
-47
67
-99
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT MAX( + + 51 ) FROM tab0 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-705
SELECT MAX ( + + 51 ) FROM tab0 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT MAX( ALL + - 13 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT MAX ( ALL + - 13 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col1 * - col0 - col0, - 41 + - - col1 AS col0 FROM tab0 AS cor0
----
-1230
40
-1914
-20
-194
-40

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

query I rowsort
SELECT DISTINCT + col2 * + - col2 + + col1 + - - col1 FROM tab0
----
-2047
-58
-9799

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT 12 * - - 88 + - COUNT( * ) FROM tab2
----
1053

skipif mysql # not compatible
query I rowsort label-711
SELECT 12 * - - 88 + - COUNT ( * ) FROM tab2
----
1053

query I rowsort
SELECT ALL + col1 + - col1 FROM tab1 WHERE - + col0 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT + col2 + - CAST( - col0 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-713
SELECT + col2 + - CAST ( - col0 AS INTEGER ) FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT + 20 DIV COUNT( * ) + + 37 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-714
SELECT + 20 / COUNT ( * ) + + 37 FROM tab1
----
43

query I rowsort
SELECT + col2 + + col2 + - col0 AS col2 FROM tab2
----
0
16
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 52 - + 63 AS col0, + 67 col2 FROM tab2 cor0
----
-11
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE 25 BETWEEN - CAST( NULL AS SIGNED ) * + - 60 + - 18 AND NULL
----

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE 25 BETWEEN - CAST ( NULL AS INTEGER ) * + - 60 + - 18 AND NULL
----

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

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

query I rowsort
SELECT ( - 53 ) * 86 AS col0 FROM tab2 AS cor0
----
-4558
-4558
-4558

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

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

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

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

query I rowsort
SELECT - 99 + + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - 83 AS col0 FROM tab2 cor0
----
-83
-83
-83

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) <> col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-730
SELECT - CAST( + + col0 AS SIGNED ) DIV col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-730
SELECT - CAST ( + + col0 AS INTEGER ) / col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - MAX( + 32 ) * - - 8 * 8 FROM tab0 AS cor0
----
-2048

skipif mysql # not compatible
query I rowsort label-731
SELECT - MAX ( + 32 ) * - - 8 * 8 FROM tab0 AS cor0
----
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + MAX( + + col1 ) col1 FROM tab2
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL - ( MAX( ALL - 60 ) ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - ( MAX ( ALL - 60 ) ) AS col1 FROM tab1
----
60

query II rowsort
SELECT ALL 50 * 8 AS col2, + col0 FROM tab2
----
400
46
400
64
400
75

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ( + + MAX( ALL + + 91 ) ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-735
SELECT ( + + MAX ( ALL + + 91 ) ) FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT - COUNT( * ) * - 12 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-736
SELECT - COUNT ( * ) * - 12 FROM tab0
----
36

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

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

query I rowsort
SELECT + 25 * + 5 FROM tab1 AS cor0
----
125
125
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT - 37 DIV + - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-740
SELECT - 37 / + - COUNT ( * ) FROM tab1 AS cor0
----
12

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 50 AND - - col1 * - + 90 * - 66
----

query I rowsort
SELECT ALL - col2 + - col2 + + 58 AS col0 FROM tab0 AS cor0
----
-140
-36
38

query I rowsort
SELECT DISTINCT - + 23 - + col1 AS col1 FROM tab2 AS cor0
----
-100
-74
-90

query I rowsort
SELECT ( + 68 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 + - col2 * 56 FROM tab2 AS cor0
----
-3634
-7168
-8273

query I rowsort
SELECT ALL - ( col2 ) - - - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT DISTINCT 63 + + - col0 / col1, - col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT 52 DIV col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-751
SELECT 52 / col1 FROM tab1
----
1
10
3

query II rowsort
SELECT col1, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT col1 - - 66 + - 12 * - 41 FROM tab2
----
609
625
635

query I rowsort
SELECT ( + + col0 ) * - - 29 - + ( - col1 ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 78 - + 4 AS col0 FROM tab0
----
74
74
74

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

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

query I rowsort
SELECT ALL - 4 + + col1 FROM tab1 AS cor0
----
1
10
43

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT - 15 - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT - 15 - COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL - col1 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col0 NOT BETWEEN - 23 * + col1 - - 47 AND - col0
----

query I rowsort
SELECT ALL 17 FROM tab1 WHERE NOT NULL NOT IN ( col1, col0 - + + 64 + col1, - - 2 * + + col0 * + 20 / - 97 + - col2, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT - col1 DIV - - col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-762
SELECT - col1 / - - col1 AS col0 FROM tab2
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + COUNT ( * ) / + 98 AS col0 FROM tab0
----
0

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

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

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

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

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

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

query I rowsort
SELECT - 7 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 16 * + - 31 * + col2 + 22 + + col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 92 ) * + 65 IS NOT NULL )
----
-11340
-19754
-28671

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT DISTINCT + + MAX( ALL + 89 ) AS col1, 55 FROM tab0 AS cor0
----
89
55

skipif mysql # not compatible
query II rowsort label-770
SELECT DISTINCT + + MAX ( ALL + 89 ) AS col1, 55 FROM tab0 AS cor0
----
89
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE col2 * + col0 < + CAST( + col0 AS SIGNED ) / + + col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE col2 * + col0 < + CAST ( + col0 AS INTEGER ) / + + col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT MIN( DISTINCT 22 ) col0 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-773
SELECT MIN ( DISTINCT 22 ) col0 FROM tab2
----
22

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 WHERE - - col0 + + col0 + - + 2 * - 88 IS NOT NULL
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT + col2 + col2 + 7 FROM tab1
----
125
143
199

query I rowsort
SELECT col2 * - - ( 55 ) AS col1 FROM tab2
----
1265
2200
3190

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

query I rowsort
SELECT - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - COUNT( * ) * - 97 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
291

skipif mysql # not compatible
query I rowsort label-780
SELECT - COUNT ( * ) * - 97 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
291

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

skipif mysql # not compatible
query I rowsort label-781
SELECT 14 / - + COUNT ( * ) AS col0 FROM tab0
----
-4

query I rowsort
SELECT - - col0 * 97 - - col2 - - col1 FROM tab0 AS cor0
----
1583
8470
9509

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

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT - COUNT( * ) * - - 33 AS col1, COUNT( - - col2 ) FROM tab0
----
-99
3

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT - COUNT ( * ) * - - 33 AS col1, COUNT ( - - col2 ) FROM tab0
----
-99
3

query I rowsort
SELECT DISTINCT 24 - - + col0 FROM tab0
----
111
121
39

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT DISTINCT + 88 * COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
264
3

skipif mysql # not compatible
query II rowsort label-786
SELECT DISTINCT + 88 * COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
264
3

query II rowsort
SELECT DISTINCT 51 * + col1 AS col0, - 98 * - col1 FROM tab2
----
2601
4998
3417
6566
3927
7546

query I rowsort
SELECT + col0 + - col0 * + col1 FROM tab1
----
-340
-4186
-663

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

query I rowsort
SELECT 83 + 46 + + col0 FROM tab2
----
175
193
204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-791
SELECT DISTINCT + col0, + CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT col2 * + col0 + col2 NOT IN ( 63, col1, - 9 * - + CAST( NULL AS SIGNED ) * - ( + col0 ) )
----

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT + col0, + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT col2 * + col0 + col2 NOT IN ( 63, col1, - 9 * - + CAST ( NULL AS INTEGER ) * - ( + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT CAST( NULL AS SIGNED ) * - - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT col2 DIV - 42 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-793
SELECT col2 / - 42 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 48 ) * 80 + + col0 col0 FROM tab0 AS cor0
----
3855
3927
3937

onlyif mysql # DIV for integer division: 
query II rowsort label-795
SELECT ALL - col1 DIV col2 AS col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-795
SELECT ALL - col1 / col2 AS col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT ALL - + 67 AS col0 FROM tab0 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + 92 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= - 22 + + col2
----

query I rowsort
SELECT 27 * + 91 FROM tab1 AS cor0
----
2457
2457
2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= + col0 + - col2 / + - col2
----

skipif mysql # not compatible
query I rowsort label-799
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= + col0 + - col2 / + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT - SUM( ALL ( - + col1 ) ) DIV ( + MIN( DISTINCT - col1 ) ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-800
SELECT - SUM ( ALL ( - + col1 ) ) / ( + MIN ( DISTINCT - col1 ) ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + col0 DIV - + 97 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + col0 / - + 97 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + - col0 ) * col2 * + col1 col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query II rowsort label-803
SELECT ALL 33 DIV 23 + 25 DIV col2 + col1 * + + col0 col1, col1 AS col1 FROM tab2 AS cor0
----
2348
51
4929
77
5026
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-803
SELECT ALL 33 / 23 + 25 / col2 + col1 * + + col0 col1, col1 AS col1 FROM tab2 AS cor0
----
2348
51
4929
77
5026
67

query I rowsort
SELECT 32 + + col2 AS col0 FROM tab1 AS cor0
----
100
128
91

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

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

query I rowsort
SELECT ALL - col0 * - col1 + - col0 FROM tab1
----
340
4186
663

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL COUNT( * ) + 18 + + COUNT( * ) * 12 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL COUNT ( * ) + 18 + + COUNT ( * ) * 12 FROM tab0
----
57

query I rowsort
SELECT + + col0 + - 83 FROM tab0 AS cor0
----
-68
14
4

query I rowsort
SELECT - 11 + - col2 AS col1 FROM tab2 AS cor0
----
-34
-51
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - 13
----

query I rowsort
SELECT ALL 29 - + - 38 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT ALL + ( col2 ) * 89 DIV col2 FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + ( col2 ) * 89 / col2 FROM tab1
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL MAX( - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL MAX ( - col2 ) FROM tab0
----
-10

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-816
SELECT + 66 DIV - - 11 AS col2, 54 FROM tab1
----
6
54
6
54
6
54

skipif mysql # not compatible
query II rowsort label-816
SELECT + 66 / - - 11 AS col2, 54 FROM tab1
----
6
54
6
54
6
54

query I rowsort
SELECT + 99 * ( - 96 ) AS col0 FROM tab2
----
-9504
-9504
-9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 21 col0 FROM tab0 AS cor0
----
-1701
-21
-441

query I rowsort
SELECT ALL + col1 * + 95 + 87 * + - col2 AS col0 FROM tab1 AS cor0
----
-1451
-4658
-7022

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT col0 DIV ( - - col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT col0 / ( - - col0 ) FROM tab0 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

query I rowsort
SELECT DISTINCT 52 * - col2 AS col2 FROM tab2
----
-1196
-2080
-3016

query I rowsort
SELECT DISTINCT + col0 * ( 14 ) AS col1 FROM tab2
----
1050
644
896

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * + + col1 + col0, col2 col0 FROM tab1 cor0
----
-340
59
-4186
68
-663
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-830
SELECT + 22 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-830
SELECT + 22 / + col1 AS col0 FROM tab1 AS cor0
----
0
1
4

query I rowsort
SELECT col2 + + - 36 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + col2 + + col1 IN ( - col2 )
----
23
32
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-832
SELECT COUNT( * ) DIV - 9 AS col0 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT col2 * - + col0 AS col1 FROM tab0
----
-705
-870
-9603

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

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

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

query I rowsort
SELECT DISTINCT ( - 73 ) AS col0 FROM tab2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT + col1 DIV + 20 + - 47 + - 69 AS col2 FROM tab0
----
-112
-115
-116

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + col1 / + 20 + - 47 + - 69 AS col2 FROM tab0
----
-112
-115
-116

query II rowsort
SELECT ALL + 88, col0 AS col1 FROM tab1 AS cor0
----
88
51
88
85
88
91

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col0 / col2 * + ( + col1 ) + + col1 IN ( + ( - + ( - 45 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-841
SELECT ALL - - CAST( NULL AS SIGNED ) * - 72 - - - col0 AS col0, + 89 col1 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-841
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 72 - - - col0 AS col0, + 89 col1 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL SUM( DISTINCT - 35 ) AS col1 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL SUM ( DISTINCT - 35 ) AS col1 FROM tab2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT col2 * 47 DIV + col0 AS col0 FROM tab0
----
147
47
5

skipif mysql # not compatible
query I rowsort label-843
SELECT col2 * 47 / + col0 AS col0 FROM tab0
----
147
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT DISTINCT - 42 + + col2 + + col0 DIV + - col2 + col0 FROM tab1 AS cor0
----
101
105
116

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT - 42 + + col2 + + col0 / + - col2 + col0 FROM tab1 AS cor0
----
101
105
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 + - - 43 col1, - col1 AS col2 FROM tab0 AS cor0
----
-38
-81
22
-21
42
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 50 * - col0 * + + col0 AND + + col0 + + 94
----

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

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

query I rowsort
SELECT ALL + - 93 AS col2 FROM tab1 AS cor0
----
-93
-93
-93

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

skipif mysql # not compatible
query I rowsort label-850
SELECT + + MAX ( - col2 ) FROM tab1 cor0
----
-59

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

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - CAST ( - CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-852
SELECT - SUM( DISTINCT + + 34 ) AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-852
SELECT - SUM ( DISTINCT + + 34 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-34
NULL

query I rowsort
SELECT + - 24 * - col0 FROM tab1 AS cor0
----
1224
2040
2184

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

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

query I rowsort
SELECT 24 * + col1 * + 70 * + 89 FROM tab0
----
12111120
149520
3139920

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

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

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

skipif mysql # not compatible
query I rowsort label-858
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT ( NULL NOT IN ( - col2, + col0 ) )
----
0

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

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

query I rowsort
SELECT + + ( + col2 ) * - + 87 FROM tab1 cor0
----
-5133
-5916
-8352

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + col0 >= NULL
----

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

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT NULL BETWEEN 50 AND + col2
----

query II rowsort
SELECT col2, ( 87 ) FROM tab1
----
59
87
68
87
96
87

query II rowsort
SELECT ALL col0 AS col1, col0 + + col0 AS col2 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT + ( - SUM( ALL + col2 ) ) * COUNT( * ) - - 71 AS col0 FROM tab0 cor0
----
-397

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + ( - SUM ( ALL + col2 ) ) * COUNT ( * ) - - 71 AS col0 FROM tab0 cor0
----
-397

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

query I rowsort
SELECT + + 74 + - col0 AS col0 FROM tab1 AS cor0
----
-11
-17
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-871
SELECT DISTINCT - 24 * + col2 - - col1 + + CAST( NULL AS SIGNED ), ( col0 ) FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-871
SELECT DISTINCT - 24 * + col2 - - col1 + + CAST ( NULL AS INTEGER ), ( col0 ) FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + + 45 + + - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
268

skipif mysql # not compatible
query I rowsort label-872
SELECT + + 45 + + - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
268

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( 77 IS NULL ) )
----

query I rowsort
SELECT - 89 + - col2 FROM tab1 AS cor0
----
-148
-157
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT - - MIN( + 34 ) col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-875
SELECT DISTINCT - - MIN ( + 34 ) col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT - COUNT( * ) * - SUM( DISTINCT - + col2 ) + + 55 col1 FROM tab2
----
-308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-876
SELECT - COUNT ( * ) * - SUM ( DISTINCT - + col2 ) + + 55 col1 FROM tab2
----
-308

query III rowsort
SELECT * FROM tab1 WHERE - - col1 + + ( + 58 ) + 84 / col1 / + col0 >= 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 21 * col1 * - + col0 AS col2 FROM tab2
----
103488
105525
49266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-880
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
3

query I rowsort
SELECT col0 - - 41 - + 84 * + 41 + - col0 AS col1 FROM tab0 AS cor0
----
-3403
-3403
-3403

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + COUNT( * ) + 85 * 80 AS col1 FROM tab0
----
6803

skipif mysql # not compatible
query I rowsort label-882
SELECT + COUNT ( * ) + 85 * 80 AS col1 FROM tab0
----
6803

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IN ( col1 * + col1 + col2 * - col1 * - + 42, col0 + + col0, + - 97 ) OR + col1 * + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 77 col0, - 32 * 72 AS col2 FROM tab0 AS cor0
----
-77
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT - MIN( - - 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-886
SELECT - MIN ( - - 43 ) FROM tab0 AS cor0
----
-43

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NULL >= NULL
----

query II rowsort
SELECT 44 * col2, col0 AS col1 FROM tab2
----
1012
46
1760
64
2552
75

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

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

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

skipif mysql # not compatible
query I rowsort label-893
SELECT - 73 + - COUNT ( * ) - + COUNT ( * ) FROM tab0
----
-79

query I rowsort
SELECT ALL - col0 * - + col2 + - col2 AS col2 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT ALL - - col2 * - col0 - 91 + 28 AS col0 FROM tab1 AS cor0
----
-4959
-5078
-6251

query II rowsort
SELECT ALL col0, col0 + + 56 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-898
SELECT + + col1 DIV - CAST( - ( + 45 ) AS SIGNED ) FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-898
SELECT + + col1 / - CAST ( - ( + 45 ) AS INTEGER ) FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 69 * - col0 AS col1 FROM tab0 cor0
----
-1035
-6003
-6693

query I rowsort
SELECT + 78 * - 69 FROM tab0
----
-5382
-5382
-5382

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT 2 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-901
SELECT 2 / - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + MAX( ALL + col2 ) - - - ( - COUNT( * ) ) * + 55 AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-902
SELECT + MAX ( ALL + col2 ) - - - ( - COUNT ( * ) ) * + 55 AS col1 FROM tab0
----
264

query I rowsort
SELECT col1 - - 26 + - ( - + 13 ) AS col0 FROM tab1
----
44
53
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT - col1 + + col2 * + CAST( col1 AS SIGNED ) FROM tab0
----
189
3726
98

skipif mysql # not compatible
query I rowsort label-904
SELECT - col1 + + col2 * + CAST ( col1 AS INTEGER ) FROM tab0
----
189
3726
98

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

query I rowsort
SELECT DISTINCT - col0 + col0 * 36 * - 40 * - col0 FROM tab2
----
3046994
5898176
8099925

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT 67 * - - COUNT( * ) AS col2 FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-908
SELECT 67 * - - COUNT ( * ) AS col2 FROM tab2 cor0
----
201

query II rowsort
SELECT ALL - col1 * + 98 AS col0, + col2 FROM tab1 AS cor0
----
-1372
96
-4606
68
-490
59

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT + SUM( - 96 ) * - COUNT( * ) FROM tab2 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-910
SELECT + SUM ( - 96 ) * - COUNT ( * ) FROM tab2 AS cor0
----
864

query II rowsort
SELECT + col1, + col1 * + + ( + col1 ) * 2 * 55 FROM tab0 AS cor0
----
1
110
21
48510
81
721710

query I rowsort
SELECT 86 * ( - 79 ) AS col1 FROM tab0
----
-6794
-6794
-6794

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + SUM( + 2 ) * - COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-913
SELECT + SUM ( + 2 ) * - COUNT ( * ) FROM tab0
----
-18

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1 cor0 WHERE 36 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * 57 * ( - + col2 ) IS NULL
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT MAX( DISTINCT + - col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN 24 / + col1 - + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT MAX ( DISTINCT + - col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN 24 / + col1 - + - col2 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <> 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query III rowsort label-921
SELECT * FROM tab2 WHERE NOT - CAST ( col0 AS INTEGER ) <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT - - 94 / col2 AS col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-922
SELECT - - 94 / col2 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT COUNT( * ) col2, - 50 FROM tab1
----
3
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-923
SELECT COUNT ( * ) col2, - 50 FROM tab1
----
3
-50

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

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

query I rowsort
SELECT 59 * + - 37 FROM tab0 WHERE NOT col1 IN ( + 23, col2 * - 20 - + col1, + col2, - 62, + + ( - + col0 ), - col1, 58 )
----
-2183
-2183
-2183

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT col1 DIV 7 AS col2 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-926
SELECT col1 / 7 AS col2 FROM tab2
----
11
7
9

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT DISTINCT + MIN( DISTINCT + 95 ) + - COUNT( * ) * + + 56 * + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
599

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-932
SELECT DISTINCT + MIN ( DISTINCT + 95 ) + - COUNT ( * ) * + + 56 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
599

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 < - - col2 - - col1 + + + 87
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT - - SUM( col2 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-936
SELECT - - SUM ( col2 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
159

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

query I rowsort
SELECT ALL 41 * - ( + 66 ) * + col0 + ( + col1 ) * + col0 FROM tab2
----
-122130
-168256
-197925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 8 col2 FROM tab1
----
51
60
88

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

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

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

query II rowsort
SELECT - col1 AS col0, 90 AS col2 FROM tab1
----
-14
90
-47
90
-5
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT - MIN( ALL - 16 ) * + ( COUNT( ALL 45 ) ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
153

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT - MIN ( ALL - 16 ) * + ( COUNT ( ALL 45 ) ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
153

query II rowsort
SELECT DISTINCT + col2 AS col0, + 38 AS col0 FROM tab1
----
59
38
68
38
96
38

query I rowsort
SELECT - col1 * - - 50 AS col0 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - MAX( DISTINCT - + 37 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-947
SELECT - MAX ( DISTINCT - + 37 ) FROM tab0 AS cor0
----
37

query II rowsort
SELECT col1 AS col2, col2 * - col0 AS col0 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, col1, - col2 + + 41, - + 72 + - col0 )
----

query II rowsort
SELECT - 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 - col2 * - ( + 59 ) col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-952
SELECT DISTINCT + CAST( - ( + col2 ) AS SIGNED ) DIV + - col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + CAST ( - ( + col2 ) AS INTEGER ) / + - col2 AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT ALL + col1 * - - 9 * - col2 * - col2 FROM tab2
----
1108800
2028492
242811

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 >= + - col2 - col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + ( - MAX( + col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-956
SELECT + ( - MAX ( + col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT - - 97 FROM tab0 cor0
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT - MAX( 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-959
SELECT - MAX ( 45 ) FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT COUNT( * ) + - + 6 * + - COUNT( DISTINCT + col1 ) * + 67 AS col0 FROM tab2 AS cor0
----
1209

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT COUNT ( * ) + - + 6 * + - COUNT ( DISTINCT + col1 ) * + 67 AS col0 FROM tab2 AS cor0
----
1209

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL + + ( + col1 ) + - 97 - col0 DIV - + col2 FROM tab1 AS cor0
----
-49
-83
-91

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + + ( + col1 ) + - 97 - col0 / - + col2 FROM tab1 AS cor0
----
-49
-83
-91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-962
SELECT ALL COUNT ( * ) AS col1, + 15 col2 FROM tab0 AS cor0
----
3
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + 99 - + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-964
SELECT + 99 - + + COUNT ( * ) FROM tab0 AS cor0
----
96

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

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

query II rowsort
SELECT col0 - - - 63, - col2 + 53 AS col1 FROM tab0
----
-48
6
24
43
34
-46

query I rowsort
SELECT - col1 * + - 57 + col0 FROM tab1
----
2770
370
849

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL + 63 * + - MIN( 23 ) * - 38 FROM tab1
----
55062

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + 63 * + - MIN ( 23 ) * - 38 FROM tab1
----
55062

query I rowsort
SELECT col1 * - 84 + 36 FROM tab0
----
-1728
-48
-6768

query I rowsort
SELECT - col0 * - 4 + col1 AS col0 FROM tab1
----
218
345
411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-971
SELECT ALL CAST( SUM( ALL + col0 ) AS SIGNED ) FROM tab2
----
185

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL + 56 + - - CAST( + 21 AS SIGNED ) + - 97 / 9 * + + MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + 56 + - - CAST ( + 21 AS INTEGER ) + - 97 / 9 * + + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + MIN( ALL col0 ) FROM tab0 cor0 WHERE col1 >= + ( 36 )
----
15

skipif mysql # not compatible
query I rowsort label-974
SELECT + MIN ( ALL col0 ) FROM tab0 cor0 WHERE col1 >= + ( 36 )
----
15

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + 16 BETWEEN + col2 * - 15 + + 4 * - col2 AND NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + - col1 / - + 51 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 97 + col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 92 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> - + col0
----

skipif mysql # not compatible
query I rowsort label-981
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> - + col0
----

query I rowsort
SELECT - + col1 * - 12 + - + col2 * + + col2 FROM tab0 cor0
----
-1237
-9789
152

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

query I rowsort
SELECT ALL + + col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

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

skipif mysql # not compatible
query I rowsort label-985
SELECT - - SUM ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + + SUM( ALL - ( + col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-987
SELECT + + SUM ( ALL - ( + col1 ) ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT DISTINCT - 16 / AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - 16 / AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT COUNT( * ) DIV 19 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT COUNT ( * ) / 19 AS col1 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-992
SELECT DISTINCT * FROM tab1 WHERE - CAST( - 65 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-992
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - 65 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 41 + col2 AS col1 FROM tab2
----
-1
-18
17

query II rowsort
SELECT ALL - 13 AS col1, - 38 * - col1 FROM tab0
----
-13
3078
-13
38
-13
798

query I rowsort
SELECT + - 92 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 + + 4 FROM tab1
----
4281
429
718

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col0 + + col1
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 - - + col2 FROM tab1
----
149
161
206

query I rowsort
SELECT DISTINCT + 23 * + col1 AS col1 FROM tab0
----
1863
23
483

query I rowsort
SELECT + + 65 * - 86 + + ( + 39 ) FROM tab0 AS cor0
----
-5551
-5551
-5551

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - + 10 * + COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + 10 * + COUNT ( * ) FROM tab1 AS cor0
----
-30

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col0 * 12 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + - COUNT( * ) * + + COUNT( + col2 ) * - 95 * + COUNT( ALL + col0 ) * 44 + COUNT( * ) AS col0 FROM tab1 cor0
----
112863

skipif mysql # not compatible
query I rowsort label-1008
SELECT + - COUNT ( * ) * + + COUNT ( + col2 ) * - 95 * + COUNT ( ALL + col0 ) * 44 + COUNT ( * ) AS col0 FROM tab1 cor0
----
112863

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

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

query I rowsort
SELECT ALL + 24 + + col2 AS col0 FROM tab2
----
47
64
82

query I rowsort
SELECT DISTINCT - + 24 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-24

query I rowsort
SELECT ALL ( - col0 ) - - 74 FROM tab0 AS cor0
----
-13
-23
59

query I rowsort
SELECT - col0 + + + col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT - - MIN( DISTINCT - - col2 ) + 39 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT - - MIN ( DISTINCT - - col2 ) + 39 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-58

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

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

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

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

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

query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT + 3 - - col0 * - col2 DIV - ( - col2 ) + + - col2 FROM tab1 cor0
----
-141
-144
-156

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + 3 - - col0 * - col2 / - ( - col2 ) + + - col2 FROM tab1 cor0
----
-141
-144
-156

query I rowsort
SELECT 93 AS col0 FROM tab1 WHERE NULL IS NULL
----
93
93
93

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT - 15 DIV col0 * - col1 - col2 * - + col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1024
SELECT - 15 / col0 * - col1 - col2 * - + col1 FROM tab1
----
1344
295
3196

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

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

query II rowsort
SELECT 4 * - 96 * - + col0 * col0, + col0 * col1 * + - col0 AS col0 FROM tab1
----
2774400
-36125
3179904
-389207
998784
-36414

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

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

query I rowsort
SELECT DISTINCT - 2 * - - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + 55 + + ( 87 ) FROM tab0 WHERE ( - 24 ) + ( - 18 ) * + ( - 27 + 41 ) IS NOT NULL
----
142
142
142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1031
SELECT 50 + - COUNT( col1 ) * - 83 FROM tab1 WHERE NOT ( - 73 + ( col2 ) ) NOT IN ( - col2 * + CAST( NULL AS DECIMAL ) )
----
50

skipif mysql # not compatible
query I rowsort label-1031
SELECT 50 + - COUNT ( col1 ) * - 83 FROM tab1 WHERE NOT ( - 73 + ( col2 ) ) NOT IN ( - col2 * + CAST ( NULL AS REAL ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + MAX( col2 ) + SUM( ALL col0 ) FROM tab2 WHERE - col1 NOT IN ( col0 )
----
243

skipif mysql # not compatible
query I rowsort label-1032
SELECT + MAX ( col2 ) + SUM ( ALL col0 ) FROM tab2 WHERE - col1 NOT IN ( col0 )
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1033
SELECT - 22 FROM tab0 WHERE NOT 7 IN ( + CAST( NULL AS DECIMAL ) * col2 + - 44 )
----

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 22 FROM tab0 WHERE NOT 7 IN ( + CAST ( NULL AS REAL ) * col2 + - 44 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + MAX( ALL + 60 ) * 39 - 29 FROM tab1
----
2311

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + MAX ( ALL + 60 ) * 39 - 29 FROM tab1
----
2311

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

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

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

query I rowsort
SELECT - col0 + + 6 AS col1 FROM tab1 WHERE 10 IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 36 + 35 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 31 IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT + 5 DIV - 76 + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 5 / - 76 + - col0 AS col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT IN ( + 79 )
----

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

query I rowsort
SELECT + 22 FROM tab2 WHERE col0 < - col2 + + col1
----

query I rowsort
SELECT ( col0 ) + col1 * col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT DISTINCT - 18 * - col1 - + ( ( - col2 ) ) FROM tab0
----
117
1505
388

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1 cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 81 + - col2 BETWEEN ( 13 ) AND 52
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1056
SELECT - 12 DIV ( CAST( col0 AS SIGNED ) ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 12 / ( CAST ( col0 AS INTEGER ) ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT - 26 * CAST( + COUNT( * ) * + 94 AS SIGNED ) FROM tab0
----
-7332

skipif mysql # not compatible
query I rowsort label-1057
SELECT - 26 * CAST ( + COUNT ( * ) * + 94 AS INTEGER ) FROM tab0
----
-7332

query I rowsort
SELECT + 92 * + 7 FROM tab0
----
644
644
644

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 57 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + + ( col2 + + col1 ) AS col2 FROM tab2 cor0
----
23
40
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT ALL COUNT( * ) + + 41 DIV - 59 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL COUNT ( * ) + + 41 / - 59 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 49 * col1 + 40 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 8 AND 39 / - col2
----

query I rowsort
SELECT ALL + - 98 - - col0 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT 95 + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-1066
SELECT 95 + col2 / - col2 AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT - ( - col0 ) + - col0 * ( + col0 * - 55 ) AS col0 FROM tab1 AS cor0
----
143106
397460
455546

query I rowsort
SELECT DISTINCT 31 * + col1 * col2 FROM tab1
----
41664
9145
99076

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + COUNT( * ) * - - 62 AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-1069
SELECT + COUNT ( * ) * - - 62 AS col2 FROM tab2
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT 58 DIV + 85 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT 58 / + 85 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT 15 * SUM( + col0 ) AS col2 FROM tab1
----
3405

skipif mysql # not compatible
query I rowsort label-1071
SELECT 15 * SUM ( + col0 ) AS col2 FROM tab1
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT + MAX( ALL 20 ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + MAX ( ALL 20 ) AS col2 FROM tab0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1073
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + 40 AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( + 14 ) AND col2
----
41

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + 40 AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( + 14 ) AND col2
----
41

query I rowsort
SELECT ALL - 84 * - col2 * + col2 FROM tab0 cor0
----
185556
823284
8400

query I rowsort
SELECT + col1 * + col2 FROM tab2 cor0 WHERE NOT - col2 - col0 IS NULL AND NOT ( - col1 ) IS NULL
----
1173
3080
3886

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1077
SELECT DISTINCT COUNT ( * ) col1, + 33 * 88 AS col1 FROM tab0
----
3
2904

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 62 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 - + col0 * col2 ) = + col2
----
-13
-2
16

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

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

query I rowsort
SELECT - - 96 + + + col0 + + col0 + col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2413
-4243
-5705

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 / - col0 = + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 90 IN ( + + col1 )
----

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab2 WHERE col1 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL COUNT( ALL + 37 ) + - 59 AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL COUNT ( ALL + 37 ) + - 59 AS col2 FROM tab1
----
-56

query I rowsort
SELECT ALL 37 + col1 * - col2 AS col2 FROM tab2
----
-1136
-3043
-3849

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT - MAX( ALL - col1 ) + - 87 + + - COUNT( * ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - MAX ( ALL - col1 ) + - 87 + + - COUNT ( * ) FROM tab0
----
-89

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

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 + - 47 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT + SUM( DISTINCT 45 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1096
SELECT + SUM ( DISTINCT 45 ) FROM tab2 AS cor0
----
45

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

query I rowsort
SELECT DISTINCT 95 - + + col1 AS col1 FROM tab1 AS cor0
----
48
81
90

query I rowsort
SELECT col1 - col1 * + col2 * + + col2 FROM tab1 AS cor0
----
-129010
-17400
-217281

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - 56 * - SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
5768

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - 56 * - SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
5768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT ( + + COUNT( * ) ) + ( - CAST( 60 AS SIGNED ) ) col0 FROM tab2
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT ( + + COUNT ( * ) ) + ( - CAST ( 60 AS INTEGER ) ) col0 FROM tab2
----
-57

query I rowsort
SELECT ALL 56 * + + col1 * 26 FROM tab2
----
112112
74256
97552

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT - 36 DIV + 97 * - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT - 36 / + 97 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1107
SELECT DISTINCT + AVG ( + col0 ) + - - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1108
SELECT + col1 AS col0, 36 DIV col1 + + CAST( + 4 AS SIGNED ) + col0 * - col0 FROM tab0 AS cor0
----
1
-9369
21
-7564
81
-221

skipif mysql # not compatible
query II rowsort label-1108
SELECT + col1 AS col0, 36 / col1 + + CAST ( + 4 AS INTEGER ) + col0 * - col0 FROM tab0 AS cor0
----
1
-9369
21
-7564
81
-221

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 2
----

skipif mysql # not compatible
query I rowsort label-1110
SELECT + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab1 AS cor0 WHERE 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-1112
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9
-9

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + ( 22 ) + col0 + col0 * - col2 NOT BETWEEN NULL AND ( col0 )
----

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

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

query I rowsort
SELECT - col0 * + + col2 * 12 AS col0 FROM tab0
----
-10440
-115236
-8460

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + col1 * + 40 > ( - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
9

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

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

query I rowsort
SELECT - col0 * + col0 * - col1 FROM tab0
----
158949
18225
9409

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

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

query I rowsort
SELECT + 16 * 47 + + col2 FROM tab1 AS cor0
----
811
820
848

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

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

query I rowsort
SELECT - 16 + - col0 + ( 15 ) * + 65 AS col1 FROM tab1 AS cor0 WHERE NOT + 95 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1126
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 99 ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1126
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 99 ) > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 57 * - col1 + + - col1 + + col0 * - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1526
-7003
-715

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

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

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

query I rowsort
SELECT col1 + - - 55 * - + col1 + col0 AS col1 FROM tab0
----
-1047
-4359
43

query I rowsort
SELECT - 48 + - col2 AS col0 FROM tab1
----
-107
-116
-144

query II rowsort
SELECT + - col0 * 97, + col2 FROM tab1 WHERE + col1 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - ( + ( col0 ) ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - - col0 - - + 58 + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
232
252
88

query I rowsort
SELECT ALL - col0 - + 49 FROM tab2 cor0
----
-113
-124
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL - - COUNT( * ) - + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1137
SELECT ALL - - COUNT ( * ) - + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1139
SELECT col2, col2 DIV - 31 - + + col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-16
99
-100

skipif mysql # not compatible
query II rowsort label-1139
SELECT col2, col2 / - 31 - + + col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-16
99
-100

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + MIN ( ALL + 58 ) FROM tab1
----
58

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + 18 * col0 - - col0 FROM tab1
----
1615
1729
969

query I rowsort
SELECT DISTINCT + + 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

query I rowsort
SELECT DISTINCT - + col2 * 6 FROM tab2 AS cor0
----
-138
-240
-348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1145
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ), col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-1145
SELECT ALL + col2 * + + CAST ( NULL AS INTEGER ), col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
2116
NULL
4096
NULL
5625

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

query I rowsort
SELECT DISTINCT + - col0 * 94 FROM tab1 AS cor0
----
-4794
-7990
-8554

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

query I rowsort
SELECT + 29 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1150
SELECT ALL 20 DIV + CAST( - 75 AS SIGNED ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL 20 / + CAST ( - 75 AS INTEGER ) AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * 43 * - + col0 * - + col1 + + col0 NOT BETWEEN - 4 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT DISTINCT ( - 29 ) * - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 65 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT ( - 29 ) * - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 65 FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 84 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT ALL - col1 DIV ( + + col1 ) * - col0 * + col0 AS col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - col1 / ( + + col1 ) * - col0 * + col0 AS col0 FROM tab2
----
2116
4096
5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 65 * + ( - MIN( + 31 ) ) FROM tab2 AS cor0
----
-2015

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 65 * + ( - MIN ( + 31 ) ) FROM tab2 AS cor0
----
-2015

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1160
SELECT ALL + col0 + - - col1 / + ( - - CAST ( NULL AS INTEGER ) ) AS col2, + 44 AS col2 FROM tab0 AS cor0
----
NULL
44
NULL
44
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT 17 + + MIN( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1161
SELECT 17 + + MIN ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-79

query I rowsort
SELECT ALL 5 * - col1 FROM tab0 cor0
----
-105
-405
-5

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

query I rowsort
SELECT DISTINCT - col2 * 3 AS col0 FROM tab2 AS cor0
----
-120
-174
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1165
SELECT COUNT( ALL + col2 ) + SUM( col1 ), 35 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-1165
SELECT COUNT ( ALL + col2 ) + SUM ( col1 ), 35 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
69
NULL

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

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

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

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

query I rowsort
SELECT - col0 + - 12 FROM tab1 AS cor0
----
-103
-63
-97

query II rowsort
SELECT ALL + col1 AS col0, col0 * - 66 FROM tab0 AS cor0
----
1
-6402
21
-5742
81
-990

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

query I rowsort
SELECT 17 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT DISTINCT + SUM( + 98 ) + SUM( CAST( - 96 AS SIGNED ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + SUM ( + 98 ) + SUM ( CAST ( - 96 AS INTEGER ) ) FROM tab2
----
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT DISTINCT 86 DIV - COUNT( * ) + + 20 + COUNT( * ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT 86 / - COUNT ( * ) + + 20 + COUNT ( * ) AS col0 FROM tab2
----
-5

query I rowsort
SELECT - + col0 * col1 - + col0 + + + col1 FROM tab1 AS cor0
----
-4321
-505
-751

query II rowsort
SELECT DISTINCT - + ( + col2 ) - + col2 * + col1 + 15 AS col0, 30 AS col1 FROM tab1 cor0
----
-1425
30
-3249
30
-339
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 + + + col1 ) BETWEEN ( NULL ) AND + - 46 * 54 + - col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 10 AS col1 FROM tab2 AS cor0
----
-10
-10
-10

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1181
SELECT - 56 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1181
SELECT - 56 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT - MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 76 * + MIN( - 1 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-1185
SELECT 76 * + MIN ( - 1 ) FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT ( COUNT( - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT ( COUNT ( - col0 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL col0 * - 79 FROM tab1
----
-4029
-6715
-7189

query I rowsort
SELECT ALL - 41 * - 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 17 * - - MAX( ALL - - 26 ) AS col0 FROM tab1
----
442

skipif mysql # not compatible
query I rowsort label-1189
SELECT 17 * - - MAX ( ALL - - 26 ) AS col0 FROM tab1
----
442

onlyif mysql # aggregate syntax: 
query II rowsort label-1190
SELECT ALL - COUNT( * ) + + 75, - 30 AS col1 FROM tab1
----
72
-30

skipif mysql # not compatible
query II rowsort label-1190
SELECT ALL - COUNT ( * ) + + 75, - 30 AS col1 FROM tab1
----
72
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1191
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + + 10, - col0 * - col1, CAST( - col1 AS SIGNED ), + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1191
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + + 10, - col0 * - col1, CAST ( - col1 AS INTEGER ), + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1193
SELECT ALL 43 * + col2 + CAST( + 38 AS SIGNED ) * 73 + 52 AS col0 FROM tab1 cor0
----
5363
5750
6954

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 43 * + col2 + CAST ( + 38 AS INTEGER ) * 73 + 52 AS col0 FROM tab1 cor0
----
5363
5750
6954

query I rowsort
SELECT - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT DISTINCT - - ( col1 ) + + ( - + col1 ) + + + col0 + - 9 * 21 * - col1 FROM tab2 WHERE + col1 * - col2 + - col1 / + ( - ( + 93 ) ) BETWEEN NULL AND col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1197
SELECT ALL - ( + - 87 ) DIV - 89 + - COUNT( * ) * + 24 AS col1, CAST( + + ( - ( 69 ) ) AS SIGNED ) * + - 73 * - ( - + 47 ) AS col0 FROM tab0 cor0
----
-72
236739

skipif mysql # not compatible
query II rowsort label-1197
SELECT ALL - ( + - 87 ) / - 89 + - COUNT ( * ) * + 24 AS col1, CAST ( + + ( - ( 69 ) ) AS INTEGER ) * + - 73 * - ( - + 47 ) AS col0 FROM tab0 cor0
----
-72
236739

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-1198
SELECT + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-156

query I rowsort
SELECT 59 + + col2 FROM tab0
----
106
158
69

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 89 * - 17 + + + col0 * - - 92 NOT IN ( 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT - 68 + + 68 DIV + - 79 - - - col1 * + + col2 AS col1 FROM tab0
----
-167
-278
-3875

skipif mysql # not compatible
query I rowsort label-1203
SELECT - 68 + + 68 / + - 79 - - - col1 * + + col2 AS col1 FROM tab0
----
-167
-278
-3875

query I rowsort
SELECT DISTINCT - 95 - + 15 FROM tab1 AS cor0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT MAX( + - col2 ) / - 30 * + MIN( ALL - 18 ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT MAX ( + - col2 ) / - 30 * + MIN ( ALL - 18 ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col0 FROM tab0 cor0
----
-66
-96
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + 7 * - SUM( DISTINCT + col0 ) FROM tab2
----
-1295

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 7 * - SUM ( DISTINCT + col0 ) FROM tab2
----
-1295

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1211
SELECT col1 DIV 9 AS col1, 81 FROM tab1 cor0
----
0
81
1
81
5
81

skipif mysql # not compatible
query II rowsort label-1211
SELECT col1 / 9 AS col1, 81 FROM tab1 cor0
----
0
81
1
81
5
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE 28 < CAST( col2 AS SIGNED ) * + col0 * + + col0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1212
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE 28 < CAST ( col2 AS INTEGER ) * + col0 * + + col0
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - + 75
----

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

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

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

query I rowsort
SELECT - - ( 43 ) AS col0 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1217
SELECT DISTINCT 33 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT 33 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 * - - ( + col2 ), col0, 84 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT + CAST( 74 AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1219
SELECT + CAST ( 74 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT - CAST( + 72 AS SIGNED ) + - col1 AS col0 FROM tab0 cor0
----
-153
-73
-93

skipif mysql # not compatible
query I rowsort label-1220
SELECT - CAST ( + 72 AS INTEGER ) + - col1 AS col0 FROM tab0 cor0
----
-153
-73
-93

query I rowsort
SELECT DISTINCT col2 + + + 5 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT DISTINCT - 88 - + - ( - 5 ) AS col1 FROM tab1 AS cor0
----
-93

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

query I rowsort
SELECT DISTINCT - 9 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL 3 * MAX( DISTINCT + col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL 3 * MAX ( DISTINCT + col1 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT + MAX( ALL - 50 ) - + - COUNT( - 57 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + MAX ( ALL - 50 ) - + - COUNT ( - 57 ) FROM tab2
----
-47

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 7 - + col1 - 51 > - 67
----
85
5
59

query I rowsort
SELECT + 85 - col2 AS col2 FROM tab0
----
-14
38
75

query I rowsort
SELECT + 11 FROM tab1 WHERE - 58 + - col1 BETWEEN NULL AND - col1 * + col1 + + - col0 - + col2
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + col0 * + - col1 AS col0 FROM tab2
----
-536
1001
255

query I rowsort
SELECT col0 - + + 92 AS col2 FROM tab2
----
-17
-28
-46

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

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

query I rowsort
SELECT 77 - - 25 FROM tab1
----
102
102
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT col1 * - col1 * + 99 - col1 DIV - col0 col2 FROM tab0
----
-43659
-649534
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1235
SELECT col1 * - col1 * + 99 - col1 / - col0 col2 FROM tab0
----
-43659
-649534
-99

query I rowsort
SELECT DISTINCT 95 * col2 + + - col0 FROM tab1 AS cor0
----
5520
6369
9069

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT col1 DIV + - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT col1 / + - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT + + 86 - + 58 * + - CAST( 6 AS SIGNED ) FROM tab2 cor0 WHERE NOT - col2 <= - col1 / - + col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-1238
SELECT + + 86 - + 58 * + - CAST ( 6 AS INTEGER ) FROM tab2 cor0 WHERE NOT - col2 <= - col1 / - + col1 + + col1
----

query I rowsort
SELECT + col2 * 87 AS col0 FROM tab0
----
4089
8613
870

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 70 * + col2 = + col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL + col1 DIV - 4 + + - ( + col1 ) FROM tab2
----
-63
-83
-96

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + col1 / - 4 + + - ( + col1 ) FROM tab2
----
-63
-83
-96

query I rowsort
SELECT DISTINCT - col1 + - col0 * + 57 + + 58 AS col1 FROM tab2
----
-2615
-3667
-4284

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + col2 + - col0 + - - col0 AS col0, - col1 * - col0 + - col0 FROM tab0
----
10
1740
47
1200
99
0

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + + 88, col1 + + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1253
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query II rowsort
SELECT col2, + col2 * - + col2 AS col2 FROM tab2
----
23
-529
40
-1600
58
-3364

query I rowsort
SELECT col0 * - - 55 AS col2 FROM tab2
----
2530
3520
4125

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

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + CAST ( + ( - 24 ) AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL + - 86 * 48 AS col1 FROM tab0 AS cor0
----
-4128
-4128
-4128

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE - ( + - col0 ) BETWEEN - col1 * - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT - - 14 DIV + - 28 + col1 * - col0 + + col0 + 51 col0 FROM tab2 cor0
----
-2249
-4813
-4899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT - - 14 / + - 28 + col1 * - col0 + + col0 + 51 col0 FROM tab2 cor0
----
-2249
-4813
-4899

query I rowsort
SELECT col2 + col2 - + col0 + + 65 FROM tab2
----
106
65
81

query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 * - 59 AS col1 FROM tab2
----
-13297892
-1591761
-7268800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 + - col0 col0, col1 + 85 FROM tab1
----
-26
90
-32
132
8
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT ALL - ( - col1 ) DIV + 49 - col1 col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1263
SELECT ALL - ( - col1 ) / + 49 - col1 col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT 68 * - + COUNT( * ) FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1264
SELECT 68 * - + COUNT ( * ) FROM tab0 AS cor0
----
-204

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1266
SELECT - ( + + 3 ), - MIN( DISTINCT + + 0 ) AS col0 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-1266
SELECT - ( + + 3 ), - MIN ( DISTINCT + + 0 ) AS col0 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT - ( 33 ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT + + col2 DIV + col1 + + 0 + + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1270
SELECT + + col2 / + col1 + + 0 + + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - + ( - col1 ) + - + col0 * + ( + 46 ) FROM tab0 AS cor0
----
-3981
-4461
-609

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

query I rowsort
SELECT ALL ( + 16 ) AS col0 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL 52 + + col1 * + col2 AS col2 FROM tab1
----
1396
3248
347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + 82 col0 FROM tab1
----
-31
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 + col0, + 88 col1 FROM tab2 WHERE NOT + col2 * + 39 IN ( + col0 )
----
62
88
80
88
91
88

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1 WHERE NOT NULL >= + - col2
----

query I rowsort
SELECT ALL col1 + + + col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT + CAST( + col1 AS SIGNED ) * - col2 * - CAST( - col0 AS SIGNED ) FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-1280
SELECT + CAST ( + col1 AS INTEGER ) * - col2 * - CAST ( - col0 AS INTEGER ) FROM tab2
----
-197120
-291450
-53958

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT - CAST( 74 AS SIGNED ) - MIN( 49 ) AS col2 FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1283
SELECT - CAST ( 74 AS INTEGER ) - MIN ( 49 ) AS col2 FROM tab2 cor0
----
-123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT - - COUNT( * ) col1 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-1285
SELECT - - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col2 * + col2 + + 3 + + 4 AS col2 FROM tab1 AS cor0
----
3488
4631
9223

query I rowsort
SELECT ALL - 64 AS col0 FROM tab0 cor0 WHERE - col2 + - ( - - 29 ) - + - 83 / - col0 / - - ( + col0 ) IS NULL
----

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

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

query I rowsort
SELECT - col0 * 97 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
-25427968
-40921875
-9441592

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 BETWEEN - + 45 AND + + col2
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * - col0 + col1 - + + col0 + - - col0 * + + col0 FROM tab0 AS cor0
----
1506
9330
9410

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

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

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE col1 IS NOT NULL AND NOT 99 + - col0 * - 35 = - 43 - + col0 * col1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 AS col1, col1 col0 FROM tab1
----
-22
14
-22
47
-22
5

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

query I rowsort
SELECT + col1 - - 12 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT 28 * + SUM( col1 ) FROM tab1
----
1848

skipif mysql # not compatible
query I rowsort label-1299
SELECT 28 * + SUM ( col1 ) FROM tab1
----
1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT ALL + 51 AS col1, - col2 + + 56 AS col0 FROM tab1
----
51
-12
51
-3
51
-40

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col0 + + col0 + - col1 <= + col2
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 55 * + col0 col2, + 60 col1 FROM tab1 AS cor0
----
2805
60
4675
60
5005
60

query II rowsort
SELECT col1 AS col0, 75 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT + CAST( 72 AS SIGNED ) * - MIN( 4 ) FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + CAST ( 72 AS INTEGER ) * - MIN ( 4 ) FROM tab0 AS cor0
----
-288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + 35 DIV - MAX( col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + 35 / - MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT + + col2 * - ( 29 ) FROM tab1 AS cor0
----
-1711
-1972
-2784

query I rowsort
SELECT + + col2 AS col0 FROM tab1 AS cor0 WHERE 74 NOT BETWEEN NULL AND + col1 / - + col1
----
59
68
96

query I rowsort
SELECT - 74 * col1 FROM tab1 cor0
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT + SUM( DISTINCT + + ( + 21 ) ) DIV 17 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1315
SELECT + SUM ( DISTINCT + + ( + 21 ) ) / 17 AS col2 FROM tab1
----
1

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col0 / - + 46 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + MAX( ALL 12 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1317
SELECT + MAX ( ALL 12 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT + ( ( - 45 ) ) FROM tab2
----
-45
-45
-45

query I rowsort
SELECT 91 * col0 FROM tab0
----
1365
7917
8827

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT - COUNT( * ) + 88 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1321
SELECT - COUNT ( * ) + 88 FROM tab2
----
85

query III rowsort
SELECT * FROM tab0 WHERE + ( - - col2 ) + - 60 * 17 * - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL COUNT( * ) + - - 86 * + 62 col1 FROM tab0
----
5335

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

query I rowsort
SELECT ALL + col2 + + - col2 AS col1 FROM tab0 WHERE + ( - - col2 ) + + + col0 + + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL CAST( NULL AS SIGNED ) + - + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 52 * - - col0 + + 25 * - 9 FROM tab0
----
4299
4819
555

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT MAX( ALL + col1 ) + 28 * COUNT( * ) FROM tab2
----
161

skipif mysql # not compatible
query I rowsort label-1327
SELECT MAX ( ALL + col1 ) + 28 * COUNT ( * ) FROM tab2
----
161

query I rowsort
SELECT ALL - col1 + - + 36 AS col0 FROM tab2 cor0
----
-103
-113
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1329
SELECT * FROM tab1 AS cor0 WHERE - 41 NOT IN ( + col0 * col2, - col0, + - col1, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1329
SELECT * FROM tab1 AS cor0 WHERE - 41 NOT IN ( + col0 * col2, - col0, + - col1, CAST ( NULL AS REAL ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT 81 + - 36 + + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT 81 + - 36 + + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
39

query I rowsort
SELECT ALL 8 - + - col1 AS col2 FROM tab2 cor0
----
59
75
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + 72 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1335
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT + + 21 + 7 - COUNT( * ) AS col0 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + + 21 + 7 - COUNT ( * ) AS col0 FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - MAX( ALL 94 ) * + - MIN( + 84 ) FROM tab0 AS cor0
----
7896

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - MAX ( ALL 94 ) * + - MIN ( + 84 ) FROM tab0 AS cor0
----
7896

onlyif mysql # DIV for integer division: 
query II rowsort label-1338
SELECT - + col0 AS col0, + 74 DIV + 41 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
query II rowsort label-1338
SELECT - + col0 AS col0, + 74 / + 41 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

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

query I rowsort
SELECT ALL - col0 * - 74 AS col1 FROM tab0 AS cor0
----
1110
6438
7178

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

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

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

query I rowsort
SELECT ALL col2 * 73 * - 23 AS col2 FROM tab2
----
-38617
-67160
-97382

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL + MAX( ALL + 20 ) * + SUM( - - col2 ) FROM tab0 AS cor0
----
3120

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + MAX ( ALL + 20 ) * + SUM ( - - col2 ) FROM tab0 AS cor0
----
3120

query I rowsort
SELECT col1 * - - col2 * col1 AS col2 FROM tab2 AS cor0
----
237160
260362
59823

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

query II rowsort
SELECT DISTINCT col0, col0 FROM tab2
----
46
46
64
64
75
75

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT - col1 DIV CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - col1 / CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT col2 * + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT + + SUM( ALL + - CAST( + 76 AS SIGNED ) ) * + + 26 AS col2 FROM tab2 AS cor0
----
-5928

skipif mysql # not compatible
query I rowsort label-1351
SELECT + + SUM ( ALL + - CAST ( + 76 AS INTEGER ) ) * + + 26 AS col2 FROM tab2 AS cor0
----
-5928

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 - - col0 AS col1 FROM tab0 AS cor0
----
10
174
47
30
99
194

query I rowsort
SELECT col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT ALL - col2 DIV + - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL - col2 / + - col1 FROM tab1 AS cor0
----
1
11
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT DISTINCT 87 AS col2, COUNT( * ) FROM tab2 AS cor0
----
87
3

skipif mysql # not compatible
query II rowsort label-1356
SELECT DISTINCT 87 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
87
3

query I rowsort
SELECT + col2 + + col2 + + + col1 * col0 + col1 + - col2 FROM tab2 AS cor0
----
2420
5045
5150

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1359
SELECT - + CAST( NULL AS DECIMAL ) + SUM( - ( + 78 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT - + CAST ( NULL AS REAL ) + SUM ( - ( + 78 ) ) FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1360
SELECT ALL + 68 col1, + COUNT ( * ) AS col0 FROM tab2 cor0
----
68
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT - col0 * + - col1 + - col1 + - CAST( - ( 87 ) AS SIGNED ) FROM tab0
----
1221
183
1893

skipif mysql # not compatible
query I rowsort label-1361
SELECT - col0 * + - col1 + - col1 + - CAST ( - ( 87 ) AS INTEGER ) FROM tab0
----
1221
183
1893

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT COUNT( * ) * - + 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT COUNT ( * ) * - + 88 FROM tab0
----
-264

query I rowsort
SELECT DISTINCT - col1 + 22 AS col0 FROM tab1
----
-25
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 23 + + col0 + - + ( 59 ) * + - 10 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 23 + + col0 + - + ( 59 ) * + - 10 FROM tab0
----
NULL

query I rowsort
SELECT - 39 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-39
-39
-39

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

query I rowsort
SELECT DISTINCT + col2 * + - col0 + - col2 - - col2 * ( 61 ) AS col0 FROM tab0 AS cor0
----
-270
-3663
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT SUM( - + col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT SUM ( - + col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1370
SELECT ALL - COUNT ( + 70 ) col1 FROM tab2
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 20 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 / + 49 * + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - + 78 * - - COUNT( * ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1374
SELECT - + 78 * - - COUNT ( * ) FROM tab0 AS cor0
----
-234

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab1 AS cor0 WHERE col0 >= + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT COUNT( * ) + - ( - 89 ) FROM tab1, tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT COUNT ( * ) + - ( - 89 ) FROM tab1, tab0 AS cor0
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * + + col0 <= - col0 * - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 73 AS col2, + col0 * - + 33 FROM tab1
----
73
-1683
73
-2805
73
-3003

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

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

query I rowsort
SELECT ALL + col0 * - 19 FROM tab0
----
-1653
-1843
-285

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 IS NOT NULL AND NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL COUNT( DISTINCT - - 33 ) FROM tab2 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL COUNT ( DISTINCT - - 33 ) FROM tab2 WHERE NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + SUM( - col0 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-1387
SELECT + SUM ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-199

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - col2 * 99 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( + col0 ) col0, + 64 + 81 AS col0 FROM tab1 AS cor0
----
-51
145
-85
145
-91
145

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1391
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1391
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 47 * 8 + col2 FROM tab2 AS cor0
----
-318
-336
-353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col2 FROM tab0 AS cor0
----
39

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

query I rowsort
SELECT col2 + col2 * ( - - 68 ) FROM tab0
----
3243
6831
690

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1396
SELECT DISTINCT - - col0 / + col0 col1 FROM tab2 WHERE + col2 IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 76 * - - col0 col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT ALL + col2 + - col1 - 17 * col1 FROM tab0
----
-1411
-368
81

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

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

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

skipif mysql # not compatible
query II rowsort label-1400
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

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

query I rowsort
SELECT ALL + + col0 * - col1 - - 7 AS col2 FROM tab2 AS cor0
----
-2339
-4921
-5018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col2 FROM tab0
----
-82
-82
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1406
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col1 * - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col1 * - col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + 19 AS col0 FROM tab1
----
115
78
87

query I rowsort
SELECT - - col1 * col0 * - col1 * 72 AS col0 FROM tab0 cor0
----
-2762424
-6984
-7085880

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT + col0 * - col2 + CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) * ( - ( - - CAST( + 78 AS SIGNED ) ) ) * - + 35 AS col2 FROM tab0
----
-238380
-274413
-41655

skipif mysql # not compatible
query I rowsort label-1410
SELECT + col0 * - col2 + CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) * ( - ( - - CAST ( + 78 AS INTEGER ) ) ) * - + 35 AS col2 FROM tab0
----
-238380
-274413
-41655

query I rowsort
SELECT DISTINCT + + col0 + + 0 AS col2 FROM tab1 AS cor0
----
51
85
91

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

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

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

query I rowsort
SELECT col0 * + col1 + - - col0 + col1 * - - col2 AS col1 FROM tab0 AS cor0
----
2124
293
5037

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

query I rowsort
SELECT DISTINCT col0 * + - 55 + 37 AS col2 FROM tab0
----
-4748
-5298
-788

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL col2 DIV - col1 - - - col0 AS col0 FROM tab0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL col2 / - col1 - - - col0 AS col0 FROM tab0
----
-15
-196
-87

query I rowsort
SELECT DISTINCT + ( col2 ) * + 32 AS col0 FROM tab0 cor0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1419
SELECT DISTINCT - MIN( + col0 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - MIN ( + col0 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
153

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + ( + SUM( + + col2 ) ) AS col0 FROM tab0 WHERE NOT - col0 * + + 6 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-1421
SELECT + ( + SUM ( + + col2 ) ) AS col0 FROM tab0 WHERE NOT - col0 * + + 6 IS NULL
----
156

query I rowsort
SELECT col1 * + 31 AS col0 FROM tab1
----
1457
155
434

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + 36 * + 12 * COUNT( * ) FROM tab0 AS cor0
----
1296

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 36 * + 12 * COUNT ( * ) FROM tab0 AS cor0
----
1296

query I rowsort
SELECT ALL + col2 * 29 * - 13 * + + 11 AS col1 FROM tab2 AS cor0
----
-165880
-240526
-95381

query II rowsort
SELECT col1 AS col2, + col1 + - - 2 AS col2 FROM tab1 AS cor0
----
14
16
47
49
5
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 39
----

query I rowsort
SELECT ALL + col0 * ( - 61 ) * - col1 FROM tab2 AS cor0
----
143106
300608
306525

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT DISTINCT CAST( NULL AS SIGNED ) / 99 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 99 AS col2 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * ( + - col2 ) NOT BETWEEN 91 + - - 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT - COUNT( * ) + + 52 AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - COUNT ( * ) + + 52 AS col2 FROM tab1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col1 ) col0, + col0 AS col2 FROM tab0
----
1
97
21
87
81
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1435
SELECT MAX( DISTINCT - col0 ) AS col2, - 62 AS col1 FROM tab0
----
-15
-62

skipif mysql # not compatible
query II rowsort label-1435
SELECT MAX ( DISTINCT - col0 ) AS col2, - 62 AS col1 FROM tab0
----
-15
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT SUM( 7 ), COUNT( * ) AS col1 FROM tab2
----
21
3

skipif mysql # not compatible
query II rowsort label-1436
SELECT SUM ( 7 ), COUNT ( * ) AS col1 FROM tab2
----
21
3

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

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

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

query I rowsort
SELECT col0 * - ( - ( col1 ) ) + - col1 FROM tab1 WHERE + - col1 IS NOT NULL
----
420
4230
700

query I rowsort
SELECT + ( + - 2 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 - - 42 BETWEEN + col0 * - - 86 * - ( col2 ) AND + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - 91 - + + 56 + - col1 + col1 FROM tab1 AS cor0
----
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT - 52 * - 87 - - - COUNT( * ) FROM tab2 AS cor0
----
4521

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - 52 * - 87 - - - COUNT ( * ) FROM tab2 AS cor0
----
4521

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1446
SELECT - 70 + CAST( - col1 AS SIGNED ) col2, col0 FROM tab1 AS cor0
----
-117
91
-75
85
-84
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1446
SELECT - 70 + CAST ( - col1 AS INTEGER ) col2, col0 FROM tab1 AS cor0
----
-117
91
-75
85
-84
51

query I rowsort
SELECT + 7 + col1 FROM tab2 AS cor0
----
58
74
84

query II rowsort
SELECT DISTINCT - 42, - 15 AS col2 FROM tab1
----
-42
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT + 88 DIV + - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + 88 / + - col2 FROM tab1
----
-1
0

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

query I rowsort
SELECT + 10 + - + col1 AS col0 FROM tab0
----
-11
-71
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1452
SELECT ALL * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * col0 <= + col0
----

skipif mysql # not compatible
query III rowsort label-1452
SELECT ALL * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * col0 <= + col0
----

query I rowsort
SELECT ALL 15 + 0 + - + ( - - 26 ) * - col2 + + col1 * - 50 * - - col2 AS col2 FROM tab1
----
-13201
-158017
-64689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( + - col0 * CAST( NULL AS SIGNED ) - col2 * + 0 / + col2 IS NULL )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( + - col0 * CAST ( NULL AS INTEGER ) - col2 * + 0 / + col2 IS NULL )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col1, + 45 FROM tab2 AS cor0
----
88
45
88
45
88
45

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

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

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

skipif mysql # not compatible
query II rowsort label-1457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL 90 DIV COUNT( * ) * - + MIN( + + col1 ) FROM tab2 AS cor0
----
-1530

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 90 / COUNT ( * ) * - + MIN ( + + col1 ) FROM tab2 AS cor0
----
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL col1 DIV + + col0 + + col2 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL col1 / + + col0 + + col2 FROM tab2 AS cor0
----
24
41
58

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

query I rowsort
SELECT - 74 + - + 11 * col1 + col1 FROM tab0 AS cor0
----
-284
-84
-884

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1462
SELECT + CAST( + 55 AS SIGNED ) DIV - - 4 + - + 12 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-1462
SELECT + CAST ( + 55 AS INTEGER ) / - - 4 + - + 12 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT DISTINCT - ( - + col1 ) + + 58 * + - col2 + + + CAST( + 88 AS SIGNED ) * col0 * - 88 - - 8 - 89 AS col0 FROM tab2
----
-357588
-497940
-584178

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - ( - + col1 ) + + 58 * + - col2 + + + CAST ( + 88 AS INTEGER ) * col0 * - 88 - - 8 - 89 AS col0 FROM tab2
----
-357588
-497940
-584178

query II rowsort
SELECT - 87 AS col2, col0 AS col1 FROM tab2
----
-87
46
-87
64
-87
75

query II rowsort
SELECT DISTINCT - col1 AS col2, 16 AS col1 FROM tab2
----
-51
16
-67
16
-77
16

query I rowsort
SELECT ALL - col2 * - - 42 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1467
SELECT ALL CAST( - col0 AS SIGNED ) AS col2, + col1 FROM tab0 WHERE ( NOT ( 71 ) IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-1467
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2, + col1 FROM tab0 WHERE ( NOT ( 71 ) IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - MAX( - + 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1469
SELECT - MAX ( - + 54 ) FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1470
SELECT DISTINCT - SUM( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1471
SELECT DISTINCT COUNT( * ) DIV - 11 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT COUNT ( * ) / - 11 AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE 85 < + col2 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE 85 < + col2 + - col1
----
0

query I rowsort
SELECT ALL 81 + - col0 AS col0 FROM tab1
----
-10
-4
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - 43 * COUNT( * ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-1475
SELECT - 43 * COUNT ( * ) FROM tab2
----
-129

query I rowsort
SELECT ALL 67 + + col2 * - col1 AS col2 FROM tab1 WHERE + 51 BETWEEN col2 / - 35 AND + col2 * - ( 57 * col1 )
----

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

query I rowsort
SELECT + col2 * + 62 AS col2 FROM tab1
----
3658
4216
5952

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 NOT IN ( - col2 * ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT 14 * COUNT( DISTINCT 15 ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1480
SELECT 14 * COUNT ( DISTINCT 15 ) AS col0 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL + COUNT( * ) * - 33 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + COUNT ( * ) * - 33 FROM tab1
----
-99

query III rowsort
SELECT * FROM tab2 WHERE 23 - col1 BETWEEN ( 66 ) AND + col1
----

query I rowsort
SELECT ALL - col1 * + 34 FROM tab1
----
-1598
-170
-476

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) <> ( col0 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1486
SELECT - col1 AS col0 FROM tab2 WHERE NOT - 47 * - col2 <> CAST( NULL AS DECIMAL ) + col1
----

skipif mysql # not compatible
query I rowsort label-1486
SELECT - col1 AS col0 FROM tab2 WHERE NOT - 47 * - col2 <> CAST ( NULL AS REAL ) + col1
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT ALL col0 DIV - ( 10 * col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL col0 / - ( 10 * col1 ) FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + 70 / col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - 73 * + 17 AS col0 FROM tab2
----
-1241

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

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

query I rowsort
SELECT - ( - 80 ) AS col1 FROM tab2
----
80
80
80

query I rowsort
SELECT ALL - 52 FROM tab0 WHERE NOT - col0 <= ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1495
SELECT - COUNT ( * ) / 1 AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL 60 - col0 AS col1 FROM tab2
----
-15
-4
14

query III rowsort
SELECT ALL * FROM tab1 WHERE 31 BETWEEN 19 * + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1498
SELECT + CAST( SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS DECIMAL ) / + 50 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT + CAST ( SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS REAL ) / + 50 AS col2 FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - col2 + + 54 NOT IN ( 54 )
----
-3

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - col2 + + 54 NOT IN ( 54 )
----
-3

query I rowsort
SELECT - col1 FROM tab1 WHERE 32 IS NOT NULL
----
-14
-47
-5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT DISTINCT 32 AS col0 FROM tab1 WHERE ( + ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT 32 AS col0 FROM tab1 WHERE ( + ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----
32

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1507
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1507
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
16
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 * + col1 + + CAST( 49 AS SIGNED ) <> col2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 * + col1 + + CAST ( 49 AS INTEGER ) <> col2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + 97 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + 53 FROM tab2 AS cor0
----
1219
2120
3074

query I rowsort
SELECT - col1 * col0 + 96 * - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT 94 * SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
-14664

skipif mysql # not compatible
query I rowsort label-1514
SELECT 94 * SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
-14664

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( - 62 + + col1 ) AS col1 FROM tab2 AS cor0
----
-375
-960
506

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL 44 * COUNT( * ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL 44 * COUNT ( * ) FROM tab2 AS cor0
----
132

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

query I rowsort
SELECT ALL ( 45 ) * col0 AS col0 FROM tab0 cor0
----
3915
4365
675

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ( - MIN( DISTINCT - col2 ) ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1521
SELECT ( - MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2
----
58

query I rowsort
SELECT DISTINCT - col2 * + 23 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT col1 * + + col2 + col1 FROM tab2
----
1224
3157
3953

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT 11 DIV + col0 FROM tab1 AS cor0 WHERE + 61 DIV - col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT 11 / + col0 FROM tab1 AS cor0 WHERE + 61 / - col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab2 cor0
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT + 22 AS col1, - ( 4 ) FROM tab2
----
22
-4

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

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

query I rowsort
SELECT 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT + col0 + - 97 * - 39 - col1 FROM tab2 cor0
----
3770
3778
3791

query I rowsort
SELECT DISTINCT col0 - + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN ( - col2 ) AND col0
----
23
26

query I rowsort
SELECT ALL + col0 * 85 * + col2 - col1 FROM tab1 AS cor0
----
416146
426270
525933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( col2 - CAST( NULL AS SIGNED ) ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1537
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( col2 - CAST ( NULL AS INTEGER ) ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - - SUM( DISTINCT - 33 ) + 88 col0 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1538
SELECT - - SUM ( DISTINCT - 33 ) + 88 col0 FROM tab1 AS cor0
----
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT ALL CAST( + col0 AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL CAST ( + col0 AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
17
23
24

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

query I rowsort
SELECT 83 * + col2 * ( - col1 ) AS col2 FROM tab1
----
-111552
-24485
-265268

query I rowsort
SELECT col1 * + + 42 FROM tab1
----
1974
210
588

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE NOT + 93 NOT IN ( - + 32 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT - MAX( DISTINCT ( - col2 ) ) + 85 FROM tab1 WHERE NOT ( - 80 ) BETWEEN ( 13 / ( col0 ) + 27 * - col2 ) AND ( + 62 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - MAX ( DISTINCT ( - col2 ) ) + 85 FROM tab1 WHERE NOT ( - 80 ) BETWEEN ( 13 / ( col0 ) + 27 * - col2 ) AND ( + 62 * + col0 )
----
NULL

query I rowsort
SELECT - col1 * + + 35 * - col1 AS col1 FROM tab1
----
6860
77315
875

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

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

query I rowsort
SELECT ( - ( - 25 ) ) * col0 FROM tab2
----
1150
1600
1875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1552
SELECT ALL - col1 * col0 col2 FROM tab1 WHERE NOT col0 IN ( col2 / CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1552
SELECT ALL - col1 * col0 col2 FROM tab1 WHERE NOT col0 IN ( col2 / CAST ( NULL AS REAL ) )
----

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

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

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

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0 WHERE NOT + 68 * + - col1 * - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT ( - MAX( ALL + - 63 ) ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT ( - MAX ( ALL + - 63 ) ) FROM tab0 AS cor0
----
63

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1558
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - CAST( - col0 AS SIGNED ) ) < CAST( - ( + col2 ) AS SIGNED ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1558
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - CAST ( - col0 AS INTEGER ) ) < CAST ( - ( + col2 ) AS INTEGER ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 86 + + 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + + ( - + 39 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - 7 - - col0 FROM tab2 WHERE NOT NULL = ( col2 )
----

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

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

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

query I rowsort
SELECT 4 + - col0 FROM tab2 AS cor0
----
-42
-60
-71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT - col1 DIV + col2 + col1 FROM tab0 cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - col1 / + col2 + col1 FROM tab0 cor0
----
1
19
80

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

query I rowsort
SELECT - + col0 * - + 3 + col0 * + col1 FROM tab1 AS cor0
----
4550
680
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL + CAST( col1 AS SIGNED ) * 64 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 > + + 70
----

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + CAST ( col1 AS INTEGER ) * 64 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 > + + 70
----

query I rowsort
SELECT + + col2 + - 38 * + col0 + + col2 + 75 - 36 * - 42 * col2 * col2 AS col1 FROM tab2 AS cor0
----
2416923
5083709
798221

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - MAX( DISTINCT - 58 ) + - + 53 AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1571
SELECT - MAX ( DISTINCT - 58 ) + - + 53 AS col1 FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1572
SELECT + col1 + col2 * col1 AS col1, + col1 DIV - 96 col1 FROM tab2 AS cor0
----
1224
0
3157
0
3953
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1572
SELECT + col1 + col2 * col1 AS col1, + col1 / - 96 col1 FROM tab2 AS cor0
----
1224
0
3157
0
3953
0

query I rowsort
SELECT col1 + + col0 * + + col0 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT col0 + - 55 * + - col1 + ( + 12 ) FROM tab1
----
2688
372
833

query I rowsort
SELECT ALL - 10 + + col0 AS col0 FROM tab1
----
41
75
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( NULL AS SIGNED ) + + col1 * - col2 FROM tab2 WHERE ( NOT NULL >= NULL )
----

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( NULL AS INTEGER ) + + col1 * - col2 FROM tab2 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT ( + 60 ) FROM tab1 WHERE ( - col0 + - - 48 ) IS NULL
----

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

query I rowsort
SELECT - ( + + col2 ) FROM tab1 WHERE ( + ( 55 ) ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT ALL col1 - - col0 DIV + col2 col2 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1580
SELECT ALL col1 - - col0 / + col2 col2 FROM tab1 AS cor0
----
14
48
6

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

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

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

query I rowsort
SELECT ALL + 20 - + - 80 AS col0 FROM tab2 AS cor0
----
100
100
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1585
SELECT ALL MIN( DISTINCT - 64 ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL MIN ( DISTINCT - 64 ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - ( + ( + + col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( NULL ) < ( NULL )
----

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

query I rowsort
SELECT ALL + - col2 * + col0 * 76 FROM tab2 AS cor0 WHERE NOT ( NOT 77 IS NOT NULL )
----
-194560
-330600
-80408

query I rowsort
SELECT DISTINCT + col2 * 7 AS col1 FROM tab2 cor0
----
161
280
406

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT + SUM( - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + SUM ( - col0 ) FROM tab1
----
-227

query I rowsort
SELECT - col1 - + - col1 * 27 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1222
130
364

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT DISTINCT + 60, 66 + COUNT( * ) AS col0 FROM tab1
----
60
69

skipif mysql # not compatible
query II rowsort label-1595
SELECT DISTINCT + 60, 66 + COUNT ( * ) AS col0 FROM tab1
----
60
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1596
SELECT - - col2 + - col1 / col2 + + + col0 FROM tab0 WHERE NOT 94 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1596
SELECT - - col2 + - col1 / col2 + + + col0 FROM tab0 WHERE NOT 94 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 1 * + 11 * - col1 * col1 * - col0 FROM tab0
----
1067
1082565
422037

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT col1 DIV 46 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT col1 / 46 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 64 + + + 83 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
147

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 = ( NULL )
----

query I rowsort
SELECT ALL + col1 * + 58 FROM tab1 cor0
----
2726
290
812

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN - col0 * + 88 AND + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT + MAX( DISTINCT col0 ) + - 75 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + MAX ( DISTINCT col0 ) + - 75 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1604
SELECT - col1 - 47 AS col2, + CAST( - col0 AS SIGNED ) + 16 - - - 80 + - 51 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-128
-130
-48
-212
-68
-202

skipif mysql # not compatible
query II rowsort label-1604
SELECT - col1 - 47 AS col2, + CAST ( - col0 AS INTEGER ) + 16 - - - 80 + - 51 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-128
-130
-48
-212
-68
-202

query I rowsort
SELECT 24 * - col1 * + 72 + col1 * - - col1 * - col0 * + + 74 + - + col2 AS col2 FROM tab1 AS cor0
----
-14956690
-165949
-763992

query II rowsort
SELECT ALL + - col2 + + col1, - 12 - ( + col0 ) AS col2 FROM tab1 cor0
----
-21
-103
-54
-97
-82
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1607
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 - - col0 + 30 IS NOT NULL
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT 38 * col1 FROM tab1
----
1786
190
532

query I rowsort
SELECT 76 * 40 * + col0 * - - col0 AS col2 FROM tab0
----
23009760
28603360
684000

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + - COUNT( ALL col0 ) FROM tab1 WHERE + + col1 NOT BETWEEN - 66 + + 5 + + col1 AND + + 86
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT + - COUNT ( ALL col0 ) FROM tab1 WHERE + + col1 NOT BETWEEN - 66 + + 5 + + col1 AND + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - COUNT( DISTINCT col0 ) + + 27 * - SUM( DISTINCT + col0 ) + - + COUNT( * ) FROM tab0
----
-5379

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - COUNT ( DISTINCT col0 ) + + 27 * - SUM ( DISTINCT + col0 ) + - + COUNT ( * ) FROM tab0
----
-5379

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL COUNT( * ) * + 65 * - - 76 AS col0 FROM tab0
----
14820

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL COUNT ( * ) * + 65 * - - 76 AS col0 FROM tab0
----
14820

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - 51 + SUM( 90 ) - - 41 - - 57 * + COUNT( * ) * - ( + + COUNT( DISTINCT col1 ) ) FROM tab2
----
-253

skipif mysql # not compatible
query I rowsort label-1616
SELECT - 51 + SUM ( 90 ) - - 41 - - 57 * + COUNT ( * ) * - ( + + COUNT ( DISTINCT col1 ) ) FROM tab2
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - COUNT( * ) * MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-1617
SELECT - COUNT ( * ) * MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + 50 * - COUNT( * ) FROM tab0 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 50 * - COUNT ( * ) FROM tab0 cor0
----
-150

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1620
SELECT DISTINCT - col2 DIV + col1, - 50 AS col1 FROM tab0
----
-99
-50
0
-50

skipif mysql # not compatible
query II rowsort label-1620
SELECT DISTINCT - col2 / + col1, - 50 AS col1 FROM tab0
----
-99
-50
0
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 97 > - 18 / + 76
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 63 * col1 + + col1 col2 FROM tab2 AS cor0
----
3264
4288
4928

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + - col2 * + col1 FROM tab1 AS cor0
----
1475
150212
18816

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT ALL - col1 DIV - 58 * - - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL - col1 / - 58 * - - 73 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
94

query I rowsort
SELECT + col1 + + - 27 AS col2 FROM tab0 AS cor0
----
-26
-6
54

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab0 cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 68 col0 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT - + 37 * + 60 + + col0 + + 88 AS col1 FROM tab0 AS cor0
----
-2035
-2045
-2117

query I rowsort
SELECT 20 FROM tab2 AS cor0 WHERE - 17 + 80 BETWEEN - col2 AND ( + col0 )
----
20
20

query I rowsort
SELECT ALL col0 * 70 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT + ( + + 90 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT + col0 FROM tab1 WHERE - col2 + + + col2 - col1 * - - 23 IS NULL
----

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

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

query II rowsort
SELECT DISTINCT col1 - + - col0 AS col1, ( col0 ) AS col0 FROM tab0 AS cor0
----
108
87
96
15
98
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT COUNT( * ) DIV + 41 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT COUNT ( * ) / + 41 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT MAX( + + col2 ) * - 66 AS col0 FROM tab0 AS cor0
----
-6534

skipif mysql # not compatible
query I rowsort label-1643
SELECT MAX ( + + col2 ) * - 66 AS col0 FROM tab0 AS cor0
----
-6534

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1645
SELECT DISTINCT - - col2 * - + col0 + - 67 + 96 DIV col1 AS col0, + col2 FROM tab1 AS cor0
----
-4957
96
-5063
59
-6253
68

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT - - col2 * - + col0 + - 67 + 96 / col1 AS col0, + col2 FROM tab1 AS cor0
----
-4957
96
-5063
59
-6253
68

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL col0 * + CAST( - ( 13 ) AS SIGNED ) * + - col2 FROM tab2
----
13754
33280
56550

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL col0 * + CAST ( - ( 13 ) AS INTEGER ) * + - col2 FROM tab2
----
13754
33280
56550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 17 BETWEEN - col2 * + - col2 AND col1 * - col0
----

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT + COUNT ( DISTINCT 35 ) AS col1 FROM tab1
----
1

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

query I rowsort
SELECT DISTINCT + 70 * + + col0 FROM tab0 AS cor0
----
1050
6090
6790

query II rowsort
SELECT + 52 AS col2, - 76 FROM tab2 AS cor0
----
52
-76
52
-76
52
-76

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

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

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

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * - col1 >= + 6 )
----

query II rowsort
SELECT col2 + - + col1 AS col2, + 31 AS col0 FROM tab2 AS cor0
----
-28
31
-37
31
-9
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1658
SELECT * FROM tab0 cor0 WHERE NOT - 96 + CAST( NULL AS DECIMAL ) * + col0 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1658
SELECT * FROM tab0 cor0 WHERE NOT - 96 + CAST ( NULL AS REAL ) * + col0 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 54 + 11 AS col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT - + col2 * - col1 * + 30 + 73 AS col1 FROM tab1 AS cor0
----
40393
8923
95953

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

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

query I rowsort
SELECT 77 * - 49 FROM tab2
----
-3773
-3773
-3773

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <> ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1664
SELECT ALL - ( - - COUNT( DISTINCT ( - col1 ) ) ) + + COUNT( * ), + 94 * - 2 + - COUNT( * ) AS col2 FROM tab1 cor0
----
0
-191

skipif mysql # not compatible
query II rowsort label-1664
SELECT ALL - ( - - COUNT ( DISTINCT ( - col1 ) ) ) + + COUNT ( * ), + 94 * - 2 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0
-191

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT ALL + MIN( col1 ) AS col2, + 1 AS col0 FROM tab0 AS cor0
----
1
1

skipif mysql # not compatible
query II rowsort label-1665
SELECT ALL + MIN ( col1 ) AS col2, + 1 AS col0 FROM tab0 AS cor0
----
1
1

query I rowsort
SELECT + - col2 - - 30 + + - col0 * - col0 FROM tab0 AS cor0
----
208
7589
9340

query I rowsort
SELECT + 79 + + - col0 + 94 * + col0 + 34 FROM tab1
----
4856
8018
8576

query I rowsort
SELECT + col2 + ( + + 91 ) AS col0 FROM tab1
----
150
159
187

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + 77 + - COUNT( * ) + - - 60 FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 77 + - COUNT ( * ) + - - 60 FROM tab0
----
134

query I rowsort
SELECT 56 + + 84 AS col2 FROM tab1
----
140
140
140

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN - col0 * - 6 AND + col1 / + col1
----

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1677
SELECT DISTINCT - COUNT ( ALL - + 50 ) col1 FROM tab1
----
-3

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

query I rowsort
SELECT ALL - - col0 * + ( + - col1 ) * - col1 * 80 AS col1 FROM tab2 AS cor0
----
26934000
30356480
9571680

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

query I rowsort
SELECT ALL - - 55 AS col0 FROM tab1 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT 27 * + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1682
SELECT 27 * + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
243

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT DISTINCT COUNT( * ) AS col0, 42 * - + 66 col1 FROM tab0
----
3
-2772

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1684
SELECT DISTINCT COUNT ( * ) AS col0, 42 * - + 66 col1 FROM tab0
----
3
-2772

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

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col1 FROM tab0
----
-705
-870
-9603

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE + 79 * col2 NOT BETWEEN col0 / + 72 + - CAST( NULL AS SIGNED ) / - + col2 AND + + col2
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE + 79 * col2 NOT BETWEEN col0 / + 72 + - CAST ( NULL AS INTEGER ) / - + col2 AND + + col2
----
14
47
5

query I rowsort
SELECT - col2 + 39 AS col2 FROM tab1
----
-20
-29
-57

query I rowsort
SELECT ALL - 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT col2 DIV 3 + - col1 AS col0 FROM tab1
----
-25
14
18

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT col2 / 3 + - col1 AS col0 FROM tab1
----
-25
14
18

query I rowsort
SELECT DISTINCT + col2 + - ( + 50 ) FROM tab2 AS cor0
----
-10
-27
8

query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - + 99 * 11 * 58 AS col0 FROM tab1 AS cor0
----
-63071
-63077
-63111

query I rowsort
SELECT DISTINCT 43 + + col2 FROM tab2 AS cor0
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT SUM( + 70 ) * MIN( DISTINCT col0 ) - 61 + + 8 + COUNT( ALL + col1 ) * - COUNT( * ) FROM tab0 cor0
----
3088

skipif mysql # not compatible
query I rowsort label-1696
SELECT SUM ( + 70 ) * MIN ( DISTINCT col0 ) - 61 + + 8 + COUNT ( ALL + col1 ) * - COUNT ( * ) FROM tab0 cor0
----
3088

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL - SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - 32 * - 12 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
1152

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 32 * - 12 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - - 99 + + ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NOT 66 < + col1 - - - 12
----
102

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - - 99 + + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT 66 < + col1 - - - 12
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT COUNT( * ) + 75 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT COUNT ( * ) + 75 FROM tab2
----
78

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1703
SELECT col0 / - - ( CAST( NULL AS DECIMAL ) ) * - - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT col0 / - - ( CAST ( NULL AS REAL ) ) * - - col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( - ( col1 ) ) ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 4 IS NULL
----

query II rowsort
SELECT DISTINCT + 92, 3 FROM tab1 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT - 60 DIV + + col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 60 / + + col2 FROM tab1
----
-1
0
0

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT ALL COUNT( * ) * - + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 AS col2, col1 col0 FROM tab2 AS cor0
----
6
51
6
67
6
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - COUNT( * ) - COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1714
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 AS col0 FROM tab1
----
-3396
-4533
-9165

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT 69 + + 31 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
100
100
100

skipif mysql # not compatible
query I rowsort label-1719
SELECT 69 + + 31 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
100
100
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1720
SELECT ALL - ( + - col1 ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - ( + - col1 ) + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( + + col1 ) AS col1, 27 * col1 AS col2 FROM tab1 AS cor0
----
14
378
47
1269
5
135

query II rowsort
SELECT ALL + 13 * + 59 AS col1, 36 FROM tab2 AS cor0
----
767
36
767
36
767
36

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

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

query I rowsort
SELECT ALL + + col1 - - col2 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - 57 + + col1 FROM tab0 AS cor0
----
-36
-56
24

query I rowsort
SELECT + - col2 + + col1 * ( + 45 ) FROM tab2 AS cor0
----
2272
2957
3425

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

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

query I rowsort
SELECT col1 + - col1 * - col2 AS col1 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + 72 + COUNT( * ) col2 FROM tab0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT + 72 + COUNT ( * ) col2 FROM tab0
----
75

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT DISTINCT + COUNT( * ), MIN( ALL - 78 ) AS col2 FROM tab2
----
3
-78

skipif mysql # not compatible
query II rowsort label-1734
SELECT DISTINCT + COUNT ( * ), MIN ( ALL - 78 ) AS col2 FROM tab2
----
3
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL - - MAX( DISTINCT + - col2 ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 37 col1, + 94 FROM tab1 AS cor0
----
37
94

query II rowsort
SELECT DISTINCT + + col2, 38 * col1 AS col0 FROM tab0 AS cor0
----
10
798
47
3078
99
38

query I rowsort
SELECT ALL 57 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1739
SELECT * FROM tab2 WHERE NOT col2 IN ( - - 94 * + - 0 * + col0 + + col2, col0, + - col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1739
SELECT * FROM tab2 WHERE NOT col2 IN ( - - 94 * + - 0 * + col0 + + col2, col0, + - col2 * + CAST ( NULL AS INTEGER ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT + - MAX( DISTINCT 94 ) * + + 24 FROM tab2 cor0
----
-2256

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + - MAX ( DISTINCT 94 ) * + + 24 FROM tab2 cor0
----
-2256

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT - 6 DIV + col1 - - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-21
-7
-81

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 6 / + col1 - - - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-21
-7
-81

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

query I rowsort
SELECT + 15 * + col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT - 16 + 66 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT - 20 + + + col2 AS col1 FROM tab1 cor0
----
39
48
76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT 88 + ( + + COUNT( ALL + col0 ) ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-1751
SELECT 88 + ( + + COUNT ( ALL + col0 ) ) FROM tab2
----
91

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

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

query I rowsort
SELECT + - 36 + col0 + 61 FROM tab0 WHERE col0 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT DISTINCT - 22 DIV - ( + 80 ) + + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - 22 / - ( + 80 ) + + col2 AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL col0 * + - col2 * - col2 + + 17 + + col1 * + 32 AS col1, + col0 AS col1 FROM tab1
----
296062
85
422305
91
470481
51

query I rowsort
SELECT - col2 * + - 20 AS col0 FROM tab0 cor0
----
1980
200
940

query I rowsort
SELECT ALL 57 + - + col2 AS col2 FROM tab0 AS cor0
----
-42
10
47

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + 68 * + - col0 <= NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( col0 IS NULL )
----
10
47
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1764
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) / + - SUM( DISTINCT - + ( - 37 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + - SUM ( DISTINCT - + ( - 37 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 87 + + col1 * - + col0 FROM tab0 AS cor0
----
-10
-1128
-1740

query I rowsort
SELECT ALL + col2 - - 80 AS col2 FROM tab0 AS cor0
----
127
179
90

query I rowsort
SELECT DISTINCT - ( - - col1 ) * + 44 FROM tab1 AS cor0
----
-2068
-220
-616

query I rowsort
SELECT DISTINCT col1 * + - 18 AS col0 FROM tab1
----
-252
-846
-90

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

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL + - col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col1 - + + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT 74, COUNT( * ) AS col1 FROM tab2
----
74
3

skipif mysql # not compatible
query II rowsort label-1770
SELECT 74, COUNT ( * ) AS col1 FROM tab2
----
74
3

query I rowsort
SELECT ALL 62 * col1 FROM tab0
----
1302
5022
62

query I rowsort
SELECT ALL - col2 * - + col2 AS col1 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT - col1 DIV + - col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1773
SELECT - col1 / + - col1 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - + col1 * - 23 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT - MAX( ALL + + col0 ) * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - MAX ( ALL + + col0 ) * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-291

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( 47 ) * + 5 AS col2 FROM tab0
----
235

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1780
SELECT CAST( - - col2 AS SIGNED ) DIV col0 + col1 * - col0 col2 FROM tab2 cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1780
SELECT CAST ( - - col2 AS INTEGER ) / col0 + col1 * - col0 col2 FROM tab2 cor0
----
-2346
-4928
-5025

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT DISTINCT 54 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT 54 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT col1 DIV - 61 + - + col0 + - col1 AS col0 FROM tab2
----
-142
-143
-97

skipif mysql # not compatible
query I rowsort label-1786
SELECT col1 / - 61 + - + col0 + - col1 AS col0 FROM tab2
----
-142
-143
-97

query III rowsort
SELECT ALL col1 + col0 AS col2, col1 * 17 - + col1, + col0 AS col1 FROM tab0
----
9 values hashing to e545ebb36b9e2d942592931a2a21ccee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + col1 col0 FROM tab0
----
786
891
9604

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT ALL - col0 DIV + col2 + col1 col0 FROM tab2
----
49
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1789
SELECT ALL - col0 / + col2 + col1 col0 FROM tab2
----
49
66
76

query I rowsort
SELECT ALL + 58 AS col0 FROM tab2 WHERE - 44 + - - col2 > + col0
----

query I rowsort
SELECT ( + - col2 ) * 55 + + col1 FROM tab0
----
-2504
-529
-5444

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + 3 - + - SUM( + - col0 ) * - - 99 * 76 FROM tab0 AS cor0
----
-1497273

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + 3 - + - SUM ( + - col0 ) * - - 99 * 76 FROM tab0 AS cor0
----
-1497273

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab1 cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT 43 * + MIN( - + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
-4257

skipif mysql # not compatible
query I rowsort label-1794
SELECT 43 * + MIN ( - + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
-4257

query I rowsort
SELECT ALL col2 * + 11 + + - 75 - + col0 AS col2 FROM tab0 AS cor0
----
-52
427
917

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

query I rowsort
SELECT DISTINCT + - col0 * + - 11 * - 56 FROM tab1 AS cor0
----
-31416
-52360
-56056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1802
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, col0 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN + 85 AND NULL
----

skipif mysql # not compatible
query II rowsort label-1802
SELECT ALL CAST ( NULL AS REAL ) AS col0, col0 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN + 85 AND NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 94 col1 FROM tab2 cor0
----
4794
6298
7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * - col1 * - + 74 col1 FROM tab2 AS cor0
----
339660
446220
512820

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

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

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

query I rowsort
SELECT + 28 FROM tab1 AS cor0 WHERE NULL <= NULL
----

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

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

query II rowsort
SELECT + - 13 AS col2, col1 FROM tab0 AS cor0
----
-13
1
-13
21
-13
81

query I rowsort
SELECT ALL - col2 - - col1 * - 94 * 49 AS col2 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 63 + - col0 * + - 7 + 59 FROM tab0
----
227
731
801

query II rowsort
SELECT + 14, ( 48 ) AS col1 FROM tab2
----
14
48
14
48
14
48

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2 WHERE - 69 * - col1 IS NOT NULL
----
76

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1818
SELECT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) + + - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1818
SELECT * FROM tab0 WHERE + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) + + - col0 <= NULL
----

query I rowsort
SELECT ALL - col2 + + - 95 * col2 FROM tab0
----
-4512
-9504
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT 64 + + - 92 + MIN( ALL col1 ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT 64 + + - 92 + MIN ( ALL col1 ) AS col0 FROM tab0
----
-27

query I rowsort
SELECT - + 85 - - 15 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT CAST( - + col0 AS SIGNED ) * + col0 + - - col2 + + + 60 * - col1 FROM tab0 cor0
----
-5038
-8819
-9370

skipif mysql # not compatible
query I rowsort label-1824
SELECT CAST ( - + col0 AS INTEGER ) * + col0 + - - col2 + + + 60 * - col1 FROM tab0 cor0
----
-5038
-8819
-9370

query I rowsort
SELECT - 81 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT ALL CAST( - col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - + 48 AS col2 FROM tab2 AS cor0
----
-48

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

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

query I rowsort
SELECT ALL ( + + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 >= 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 58 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1833
SELECT COUNT ( - ( 86 ) ) AS col2 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - MIN( + + col1 ) col0 FROM tab2
----
-51

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

query II rowsort
SELECT ALL col1 * - 20 * + + 31 AS col1, col1 AS col1 FROM tab0
----
-13020
21
-50220
81
-620
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT + 67 * COUNT( * ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + 67 * COUNT ( * ) FROM tab0
----
201

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

skipif mysql # not compatible
query II rowsort label-1838
SELECT col1, col1 / + col0 FROM tab2
----
51
1
67
0
77
1

query II rowsort
SELECT - col2, col0 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 63 + - col2 IN ( + - 18 * + 93 )
----
-10
66
-47
-66
-99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + ( - + SUM( - 6 ) ) * + 47 FROM tab2 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-1840
SELECT + ( - + SUM ( - 6 ) ) * + 47 FROM tab2 AS cor0
----
846

query I rowsort
SELECT DISTINCT - + ( 97 ) AS col1 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query II rowsort label-1843
SELECT DISTINCT - 24 DIV col2 * - col1 + + col0 col0, - col0 + - + 28 AS col1 FROM tab1
----
51
-79
85
-113
91
-119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1843
SELECT DISTINCT - 24 / col2 * - col1 + + col0 col0, - col0 + - + 28 AS col1 FROM tab1
----
51
-79
85
-113
91
-119

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - col2 ) + - - col0 BETWEEN col2 + col2 AND - 96
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 32 = + col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT + - 68 DIV + COUNT( * ) + 68 AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1847
SELECT + - 68 / + COUNT ( * ) + 68 AS col2 FROM tab1 AS cor0
----
46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL - CAST( + 68 AS SIGNED ) * + + 55 + - + MIN( - 88 ) FROM tab2
----
-3652

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - CAST ( + 68 AS INTEGER ) * + + 55 + - + MIN ( - 88 ) FROM tab2
----
-3652

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ( + + COUNT( - - ( - + 85 ) ) ) + - MAX( - 84 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1850
SELECT ( + + COUNT ( - - ( - + 85 ) ) ) + - MAX ( - 84 ) FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1851
SELECT ALL col0 DIV 3 + - col0 AS col1, col1 AS col0 FROM tab0
----
-10
81
-58
21
-65
1

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL col0 / 3 + - col0 AS col1, col1 AS col0 FROM tab0
----
-10
81
-58
21
-65
1

query I rowsort
SELECT 57 + + col0 FROM tab1
----
108
142
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col0 col2 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + 73 * + - 14 * + ( - - ( + + COUNT( * ) ) ) FROM tab1
----
-3066

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + 73 * + - 14 * + ( - - ( + + COUNT ( * ) ) ) FROM tab1
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 49 + - SUM( col0 ) col0 FROM tab1
----
-178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1855
SELECT 49 + - SUM ( col0 ) col0 FROM tab1
----
-178

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + ( - - col0 ) = + col0 / 83
----

query I rowsort
SELECT ALL - col2 - 24 FROM tab0 cor0
----
-123
-34
-71

query I rowsort
SELECT DISTINCT 76 - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1524
-3288
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT + COUNT( * ) * + MAX( DISTINCT - 26 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + COUNT ( * ) * + MAX ( DISTINCT - 26 ) AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL 1 * col0 * - - col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col0 * - 96 AS col2 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT COUNT( ( - col2 ) ) DIV - ( + 50 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT COUNT ( ( - col2 ) ) / - ( + 50 ) AS col0 FROM tab2
----
0

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

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

query I rowsort
SELECT + - 9 * + col1 FROM tab1 cor0
----
-126
-423
-45

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1866
SELECT 74 col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
74
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1867
SELECT + COUNT( * ) AS col1, + MIN( DISTINCT - col0 ) * + MIN( ALL + col0 ) FROM tab0 AS cor0
----
3
-1455

skipif mysql # not compatible
query II rowsort label-1867
SELECT + COUNT ( * ) AS col1, + MIN ( DISTINCT - col0 ) * + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
3
-1455

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

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

query I rowsort
SELECT 85 * - + 22 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fd3f6b700b42c0bd1ab150b2df8c685d

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * + - 75 + + col1 col0 FROM tab0 AS cor0
----
-3519
-3579
-3599

query I rowsort
SELECT + 66 * - col0 * col0 - + 97 FROM tab1 AS cor0
----
-171763
-476947
-546643

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 69 ) + + 14 IS NULL
----

query I rowsort
SELECT - col0 + 86 FROM tab2
----
11
22
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT SUM( DISTINCT - 76 ) + + + SUM( col0 ) * - MIN( DISTINCT ( - - 5 ) ) + + + 14 FROM tab2
----
-987

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT SUM ( DISTINCT - 76 ) + + + SUM ( col0 ) * - MIN ( DISTINCT ( - - 5 ) ) + + + 14 FROM tab2
----
-987

onlyif mysql # DIV for integer division: 
query II rowsort label-1877
SELECT 60 * col2 + + col2 DIV + 72 AS col1, + col1 col0 FROM tab2 AS cor0
----
1380
51
2400
77
3480
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1877
SELECT 60 * col2 + + col2 / + 72 AS col1, + col1 col0 FROM tab2 AS cor0
----
1380
51
2400
77
3480
67

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

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

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

query I rowsort
SELECT - - 90 + col1 * - ( - col1 ) + + 24 * - col1 * + + col0 FROM tab2 AS cor0
----
-112253
-116021
-53613

query I rowsort
SELECT - col2 + + + ( + ( - 35 ) ) AS col0 FROM tab1 AS cor0
----
-103
-131
-94

query I rowsort
SELECT col1 + - 68 + + 73 + - col0 AS col2 FROM tab0 AS cor0
----
-61
-91
71

query I rowsort
SELECT + + col0 * col2 + + + col0 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT - col1 + - + CAST( 4 AS SIGNED ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
-17
-9
4

skipif mysql # not compatible
query I rowsort label-1884
SELECT - col1 + - + CAST ( 4 AS INTEGER ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
-17
-9
4

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + - col1 col1 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT CAST( NULL AS SIGNED ) * - - col2 col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT DISTINCT 43 * ( CAST( COUNT( * ) AS SIGNED ) ) DIV + - COUNT( * ) AS col0 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT 43 * ( CAST ( COUNT ( * ) AS INTEGER ) ) / + - COUNT ( * ) AS col0 FROM tab0
----
-43

query III rowsort
SELECT * FROM tab0 WHERE - - 2 > col1 * + ( + 7 )
----

query I rowsort
SELECT DISTINCT + 12 * - col0 AS col0 FROM tab0
----
-1044
-1164
-180

query III rowsort
SELECT ALL * FROM tab1 WHERE - 55 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT 28 - + COUNT( * ) - 47 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-1893
SELECT 28 - + COUNT ( * ) - 47 FROM tab2
----
-22

query I rowsort
SELECT ALL 76 * - 87 + + 22 FROM tab1
----
-6590
-6590
-6590

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - ( - 23 ) / - - MIN( DISTINCT - - col0 ) FROM tab0 WHERE NULL <= - 75 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - ( - 23 ) / - - MIN ( DISTINCT - - col0 ) FROM tab0 WHERE NULL <= - 75 / - col2
----
NULL

query I rowsort
SELECT ALL + col0 + - + ( + 85 ) FROM tab0
----
-70
12
2

query I rowsort
SELECT DISTINCT + ( - col1 ) + - 22 FROM tab2
----
-73
-89
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT 16 DIV COUNT( * ) - - - MAX( ALL - col2 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1898
SELECT 16 / COUNT ( * ) - - - MAX ( ALL - col2 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) * + col0 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT ALL - col1 DIV 77 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - col1 / 77 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT + COUNT( * ), 98 AS col0 FROM tab0
----
3
98

skipif mysql # not compatible
query II rowsort label-1901
SELECT + COUNT ( * ), 98 AS col0 FROM tab0
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1902
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, col1 + + col0 - 7 AS col1 FROM tab2 WHERE NOT - 21 > 13
----
NULL
134
NULL
135
NULL
90

skipif mysql # not compatible
query II rowsort label-1902
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col1 + + col0 - 7 AS col1 FROM tab2 WHERE NOT - 21 > 13
----
NULL
134
NULL
135
NULL
90

query I rowsort
SELECT - col1 * + col0 * - col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - col1 * - 52 FROM tab2 cor0
----
2652
3484
4004

query I rowsort
SELECT ALL - 46 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-46
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + + col0 * col0 NOT BETWEEN NULL AND + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - ( + ( col0 ) ), col0 AS col1 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT + 85 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 AS col0, col1 + ( col0 ) FROM tab1
----
51
65
85
90
91
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL - CAST( NULL AS SIGNED ) / + COUNT( * ) / COUNT( * ) / 50 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1910
SELECT ALL - CAST ( NULL AS INTEGER ) / + COUNT ( * ) / COUNT ( * ) / 50 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT MIN( + 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-1911
SELECT MIN ( + 31 ) FROM tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 * + + 56 FROM tab1
----
-14
5376
-47
3808
-5
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MAX( - ( + col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MAX ( - ( + col0 ) ) AS col0 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 73 col1, + col1 * + - col1 FROM tab0
----
73
-1
73
-441
73
-6561

query II rowsort
SELECT - col0, - ( col0 ) * + col0 AS col2 FROM tab2
----
-46
-2116
-64
-4096
-75
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT ( - COUNT( + 25 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT ( - COUNT ( + 25 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - + 22 + - COUNT( * ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1917
SELECT - + 22 + - COUNT ( * ) FROM tab2 cor0
----
-25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + + col1 BETWEEN NULL AND col1 * col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + col2 ) + 43 AS col1 FROM tab2 AS cor0
----
101
66
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1923
SELECT + COUNT( ALL + - CAST( - - col2 AS SIGNED ) ) DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1923
SELECT + COUNT ( ALL + - CAST ( - - col2 AS INTEGER ) ) / COUNT ( * ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col2 + - + 38 AS col0 FROM tab0
----
-137
-48
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1925
SELECT * FROM tab0 WHERE + + 78 - - - col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1925
SELECT * FROM tab0 WHERE + + 78 - - - col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT + COUNT( * ) * + - 41 + + 94 DIV 55 FROM tab2 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + COUNT ( * ) * + - 41 + + 94 / 55 FROM tab2 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + 70 + COUNT( * ) * - - 62 FROM tab2 AS cor0
----
256

skipif mysql # not compatible
query I rowsort label-1927
SELECT + 70 + COUNT ( * ) * - - 62 FROM tab2 AS cor0
----
256

query II rowsort
SELECT DISTINCT + col2 - - - 36 + col1 AS col1, 35 * + col2 FROM tab2 AS cor0
----
38
805
81
1400
89
2030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + 45 col2 FROM tab0
----
53
53
53

query I rowsort
SELECT - col2 + + 23 AS col0 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT ALL 53 * 20 * - col1 FROM tab1
----
-14840
-49820
-5300

query III rowsort
SELECT * FROM tab2 WHERE + 10 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 77 * - 60 * + 53 FROM tab0
----
244860

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL COUNT( ALL + col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1934
SELECT ALL COUNT ( ALL + col2 ) col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 7 + - + 44 AS col2 FROM tab2
----
-37

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col2 >= - + 7
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1937
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL col2 + 26 FROM tab2 WHERE + col0 BETWEEN ( NULL ) AND ( + col1 ) * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT DISTINCT ( - col1 ) + 2 DIV 63 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT ( - col1 ) + 2 / 63 AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - 30 - col0 * col0 AS col1 FROM tab2
----
-2146
-4126
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + SUM( DISTINCT + col1 ) FROM tab1 WHERE NOT ( - col2 - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT + SUM ( DISTINCT + col1 ) FROM tab1 WHERE NOT ( - col2 - col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT ( col1 ) + + CAST( NULL AS SIGNED ) FROM tab1 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ( col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1943
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + CAST ( NULL AS REAL ) + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * 86 ) NOT IN ( - 77 + col0 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT - ( 56 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT - ( 56 ) IS NULL
----
3

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( col0 + - col1 ) IS NULL
----
46
64
75

query I rowsort
SELECT - ( + col2 ) + - col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT + MIN( ALL - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + MIN ( ALL - col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT COUNT( ALL - CAST( + ( 68 ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT COUNT ( ALL - CAST ( + ( 68 ) AS INTEGER ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL 57 FROM tab0 WHERE NOT ( + 89 ) IN ( col1 )
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT MAX( col2 ) - - 56 AS col2 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1952
SELECT MAX ( col2 ) - - 56 AS col2 FROM tab2
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col1 + col2 col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL - 38 * - 92 FROM tab1 WHERE ( NULL ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + + 43 col2 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL COUNT( * ) + + 46 AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL COUNT ( * ) + + 46 AS col1 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT 58 * + SUM( 2 ) AS col1 FROM tab2
----
348

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT 58 * + SUM ( 2 ) AS col1 FROM tab2
----
348

query I rowsort
SELECT ALL - ( 16 ) FROM tab2 WHERE col1 NOT IN ( - col1 * 62 )
----
-16
-16
-16

query I rowsort
SELECT ALL + col2 * - 57 AS col2 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT 54 * - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-162

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT 54 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-162

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( 86 )
----

query I rowsort
SELECT - col1 + + ( col1 - - col1 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col0 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col0 * col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT + SUM( DISTINCT + col0 ) * - ( COUNT( + col1 ) + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT + SUM ( DISTINCT + col0 ) * - ( COUNT ( + col1 ) + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT col2 * col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT col2 * col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * col1 + - 50 ) BETWEEN ( col1 + col2 / 35 ) AND NULL
----

query I rowsort
SELECT - 45 * - col1 FROM tab2 AS cor0
----
2295
3015
3465

query I rowsort
SELECT + 11 * col0 AS col0 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT col1 DIV - 36 AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT col1 / - 36 AS col0 FROM tab0 AS cor0
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - CAST( 15 AS SIGNED ) - + ( col1 ) / col2 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - CAST ( 15 AS INTEGER ) - + ( col1 ) / col2 NOT IN ( + col0 )
----

query I rowsort
SELECT - col1 * + 12 AS col1 FROM tab1 AS cor0
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - MIN( ALL col1 ) FROM tab2 WHERE - 59 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT - MIN ( ALL col1 ) FROM tab2 WHERE - 59 * col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 / 57 FROM tab2 WHERE NOT ( - col2 / 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT COUNT( * ) + + 5 AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-1974
SELECT COUNT ( * ) + + 5 AS col2 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT DISTINCT - 29 DIV - col2 - col0 FROM tab2 AS cor0
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - 29 / - col2 - col0 FROM tab2 AS cor0
----
-45
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * col1 + + col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + col2 NOT BETWEEN NULL AND - col2 * - 37
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col2 NOT BETWEEN + col2 + + ( col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1979
SELECT DISTINCT + col2 - + ( + col1 - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + col2 - + ( + col1 - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT DISTINCT + col1 * ( col2 DIV col0 ) - - 7 FROM tab1 AS cor0
----
21
7

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + col1 * ( col2 / col0 ) - - 7 FROM tab1 AS cor0
----
21
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT + MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1981
SELECT + MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col0 NOT BETWEEN 18 / - 53 AND 18 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 78 * col0 - col2 FROM tab0 AS cor0
----
1123
6776
7467

query I rowsort
SELECT 3 * col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
243
3
63

query I rowsort
SELECT ALL col2 * - 71 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + MAX( DISTINCT - - col2 ) * COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1986
SELECT + MAX ( DISTINCT - - col2 ) * COUNT ( * ) AS col1 FROM tab1
----
288

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 >= - col2 * + col0 + - col1 * + 45
----

query I rowsort
SELECT 18 * + 21 FROM tab1
----
378
378
378

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - COUNT( * ) * + - 77 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-1989
SELECT - COUNT ( * ) * + - 77 FROM tab2
----
231

query I rowsort
SELECT ( - 32 ) * - 20 FROM tab1
----
640
640
640

query I rowsort
SELECT - 98 AS col1 FROM tab2 WHERE NOT 98 <= NULL
----

query I rowsort
SELECT ( - 67 ) AS col0 FROM tab1
----
-67
-67
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 88 / + col1 + col0 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT + col1 DIV col1 col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT + col1 / col1 col2 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 32 - col0
----
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 32 - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT DISTINCT - - col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - - col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT col2 * ( col0 ) FROM tab2 WHERE NOT ( + + 92 + 21 ) IS NULL
----
1058
2560
4350

query II rowsort
SELECT ALL - col2 AS col1, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - 6 * + col0 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT + col1 * + + col1 * - col2 - + 40 AS col1 FROM tab0 AS cor0
----
-139
-308407
-4450

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT ( 65 ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT - 18 * col2 DIV + + col2 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT - 18 * col2 / + + col2 AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 83 + col0 * - ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 67 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 36 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE - - col1 < - col1
----

query I rowsort
SELECT ALL 35 + - + 36 * - - col0 * + - 9 AS col0 FROM tab1
----
16559
27575
29519

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + COUNT( 3 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2008
SELECT + COUNT ( 3 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT DISTINCT - col0 * - 95 + - 56 DIV ( + col1 ) FROM tab0
----
1425
8263
9159

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - col0 * - 95 + - 56 / ( + col1 ) FROM tab0
----
1425
8263
9159

query I rowsort
SELECT ALL 57 * - 48 * - + col0 + 59 + - col1 FROM tab2
----
125864
175086
205192

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT col1 DIV - col1 + - ( + col2 ) FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2011
SELECT col1 / - col1 + - ( + col2 ) FROM tab1
----
-60
-69
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT + col0 DIV col1 + + 14 DIV - - col0 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + col0 / col1 + + 14 / - - col0 AS col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL 9 + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL 9 + COUNT ( * ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NULL BETWEEN col2 AND col2 + + 96 / col0
----

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 1 * - col1 + - 34 * col2 BETWEEN col2 AND 47
----

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0 WHERE NOT + col1 NOT IN ( 13 )
----

query II rowsort
SELECT - - col2 + - - col1, col1 * + + 69 AS col0 FROM tab0 AS cor0
----
100
69
128
5589
31
1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT + CAST( + + 1 AS SIGNED ) - + 4 AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + CAST ( + + 1 AS INTEGER ) - + 4 AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 * + 24 FROM tab2 AS cor0 WHERE + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT + 94 * - + 71 FROM tab2
----
-6674
-6674
-6674

query I rowsort
SELECT ALL 27 + + + col0 FROM tab0
----
114
124
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - - + 83 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - + 83 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN ( + - ( + - col0 ) ) AND col2 + col1 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - 39, + 73 AS col2 FROM tab0 AS cor0
----
-39
73
-39
73
-39
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT MIN( + + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT MIN ( + + col0 ) AS col1 FROM tab0
----
15

query II rowsort
SELECT - 62, col1 AS col1 FROM tab0
----
-62
1
-62
21
-62
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT + col0 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT + col0 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 99 col2 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT - 59 * col1 AS col0 FROM tab0
----
-1239
-4779
-59

query I rowsort
SELECT col1 / - col0 + col1 FROM tab0 WHERE NOT col1 * col0 + - col0 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT - 71 DIV - col1 FROM tab0 AS cor0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-2035
SELECT - 71 / - col1 FROM tab0 AS cor0
----
0
3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + SUM( ALL - + col1 ) FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-2036
SELECT + SUM ( ALL - + col1 ) FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2037
SELECT - + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - - 41 AS col0 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2039
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE ( NULL ) <> ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE ( NULL ) <> ( col1 )
----

query I rowsort
SELECT DISTINCT + ( + 72 ) AS col0 FROM tab1 WHERE + col1 <= + col1 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT - COUNT( * ) + - - 19 + + 98 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2043
SELECT - COUNT ( * ) + - - 19 + + 98 FROM tab1 AS cor0
----
114

query I rowsort
SELECT ALL col1 * 62 * + col0 - 90 * 81 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
138162
298246
304260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT + CAST( COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT - + MAX( + 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - + MAX ( + 13 ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE + 28 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 90 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + - col1 * col0 + + col1 + col0 FROM tab0 AS cor0
----
-38259
-98319
1

query I rowsort
SELECT - + col1 * col2 * - ( - col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-123123
-225321
-26928

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + 41 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) BETWEEN ( + col0 / - 15 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT - COUNT( * ) + + 30 FROM tab1 WHERE col2 * + + ( + CAST( NULL AS SIGNED ) ) * + col1 * - + col0 / col1 - - col1 NOT BETWEEN ( NULL ) AND NULL
----
30

skipif mysql # not compatible
query I rowsort label-2054
SELECT - COUNT ( * ) + + 30 FROM tab1 WHERE col2 * + + ( + CAST ( NULL AS INTEGER ) ) * + col1 * - + col0 / col1 - - col1 NOT BETWEEN ( NULL ) AND NULL
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT - 52 FROM tab1 WHERE - col0 + - CAST( - - 50 AS SIGNED ) * + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 52 FROM tab1 WHERE - col0 + - CAST ( - - 50 AS INTEGER ) * + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 44 < NULL
----

query II rowsort
SELECT ALL col1, + 85 - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
39
67
10
77
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + col2 + - + col2 / 48 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + col2 + - + col2 / 48 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 18 + + col2 FROM tab2
----
41
58
76

query I rowsort
SELECT DISTINCT col2 + - col1 + + 39 + + ( 91 ) AS col2 FROM tab2
----
102
121
93

query II rowsort
SELECT ALL + 14, col2 AS col1 FROM tab1 AS cor0
----
14
59
14
68
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + COUNT( * ) - + - 56 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2062
SELECT + COUNT ( * ) - + - 56 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT MIN( ALL + 46 ) + 56 AS col0 FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2063
SELECT MIN ( ALL + 46 ) + 56 AS col0 FROM tab1 cor0
----
102

query I rowsort
SELECT - - ( + - col2 ) FROM tab0 WHERE ( NOT 98 IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 95 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - SUM( DISTINCT 24 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2067
SELECT - SUM ( DISTINCT 24 ) FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + - COUNT( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2068
SELECT + - COUNT ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 7 col2 FROM tab1 AS cor0 WHERE 16 * ( - 13 ) + + col0 IS NOT NULL
----
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * 31 FROM tab1 AS cor0 WHERE + col1 + + col1 + - col0 + - col0 IS NOT NULL
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT MAX( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2074
SELECT * FROM tab0 WHERE NOT - ( - + CAST( col0 AS DECIMAL ) ) < ( + + col2 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2074
SELECT * FROM tab0 WHERE NOT - ( - + CAST ( col0 AS REAL ) ) < ( + + col2 )
----
87
21
10

query I rowsort
SELECT - 43 * - + col0 AS col0 FROM tab0
----
3741
4171
645

query I rowsort
SELECT ( - col0 ) + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-128
-150
-92

query I rowsort
SELECT - 10 * - - 55 * col1 FROM tab0
----
-11550
-44550
-550

query I rowsort
SELECT + AVG ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - ( + - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL 51, + 90 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
51
90
51
90
51
90

query II rowsort
SELECT ALL col1 AS col2, col1 * + + 94 * + ( - col1 ) * col1 AS col0 FROM tab0 AS cor0
----
1
-94
21
-870534
81
-49955454

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2083
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - 72 + col1 + CAST( - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2083
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - 72 + col1 + CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT - col1, - col0 + + - col1 - - col0 * - - col1 * col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2085
SELECT + ( + + COUNT( * ) ) * - ( + - 33 ) / + - CAST( NULL AS DECIMAL ) + - - 7 + - + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT + ( + + COUNT ( * ) ) * - ( + - 33 ) / + - CAST ( NULL AS REAL ) + - - 7 + - + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) * 35 col0 FROM tab2 cor0
----
1610
2240
2625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - 61 FROM tab0 AS cor0
----
15
-61
87
-61
97
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT ALL - 73 + col1 + CAST( - - col2 AS SIGNED ) * + col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1151
3084
3880

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - 73 + col1 + CAST ( - - col2 AS INTEGER ) * + col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1151
3084
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + + MAX( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2090
SELECT + + MAX ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col0 * + - col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + 48 * - ( + + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 48 * - ( + + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

query II rowsort
SELECT DISTINCT - col1, - col1 + - 18 AS col1 FROM tab2 AS cor0
----
-51
-69
-67
-85
-77
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT + 49 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 49 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT CAST( NULL AS SIGNED ) + + col0 - - col1 + 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT CAST ( NULL AS INTEGER ) + + col0 - - col1 + 91 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2096
SELECT ALL - col2 + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - 50 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - col2 + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - 50 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 11 * SUM( + - col2 ) + + MAX( DISTINCT - ( - col1 ) ) - - 80 FROM tab0
----
-1555

skipif mysql # not compatible
query I rowsort label-2097
SELECT 11 * SUM ( + - col2 ) + + MAX ( DISTINCT - ( - col1 ) ) - - 80 FROM tab0
----
-1555

query I rowsort
SELECT ALL col0 * - 93 + - 57 * col1 FROM tab1
----
-11142
-5541
-8190

query I rowsort
SELECT - - ( 35 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 53 AS col1 FROM tab0 WHERE - col1 - - col0 <= NULL
----

query I rowsort
SELECT col0 + - col1 + - - 47 * col1 FROM tab0
----
1053
143
3741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT col0 + - col2 + - col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT col0 + - col2 + - col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( * ) + - MIN( DISTINCT col2 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( * ) + - MIN ( DISTINCT col2 ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT ALL 41 - - 10 AS col0, - MAX( DISTINCT - + col1 ) FROM tab0 AS cor0
----
51
1

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL 41 - - 10 AS col0, - MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 41 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 41 IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 * 48 FROM tab2 cor0
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - + COUNT( ALL + 94 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + COUNT ( ALL + 94 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + COUNT( ALL - 77 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2110
SELECT + COUNT ( ALL - 77 ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT + 67 AS col2, 33 FROM tab0 cor0
----
67
33
67
33
67
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL - + COUNT( * ) + - AVG ( col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - + COUNT ( * ) + - AVG ( col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col2 col1, col2 FROM tab2
----
1600
40
3364
58
529
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT col2 - + CAST( - col0 AS SIGNED ) + - col1 - - 72 + col2 AS col0 FROM tab1 WHERE NOT - - col0 * - ( + ( + + col0 ) ) + - col2 IS NULL
----
252
270
301

skipif mysql # not compatible
query I rowsort label-2114
SELECT col2 - + CAST ( - col0 AS INTEGER ) + - col1 - - 72 + col2 AS col0 FROM tab1 WHERE NOT - - col0 * - ( + ( + + col0 ) ) + - col2 IS NULL
----
252
270
301

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 52 * + col1
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2117
SELECT DISTINCT + + 79 * + - col2 + + CAST( NULL AS DECIMAL ) + - 82 + 2 * + + ( + + col1 ) / + + col2 + - CAST( NULL AS SIGNED ) + + - col2 / - col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT + + 79 * + - col2 + + CAST ( NULL AS REAL ) + - 82 + 2 * + + ( + + col1 ) / + + col2 + - CAST ( NULL AS INTEGER ) + + - col2 / - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 58 col1 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT + col2 DIV - 53 + - col1 AS col0 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-2119
SELECT + col2 / - 53 + - col1 AS col0 FROM tab2 AS cor0
----
-51
-68
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2120
SELECT ALL CAST( NULL AS SIGNED ) * 67, CAST( NULL AS SIGNED ) - - - ( - + 59 ) + COUNT( * ) / - - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2120
SELECT ALL CAST ( NULL AS INTEGER ) * 67, CAST ( NULL AS INTEGER ) - - - ( - + 59 ) + COUNT ( * ) / - - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col1 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 + 70 FROM tab0 AS cor0
----
-17
-27
55

query I rowsort
SELECT - 33 FROM tab1 AS cor0 WHERE col2 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT 65 FROM tab0 AS cor0 WHERE - ( + 98 ) + + col2 BETWEEN + 34 + + 46 AND col2 * + col0 * + 34 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2129
SELECT 65 FROM tab0 AS cor0 WHERE - ( + 98 ) + + col2 BETWEEN + 34 + + 46 AND col2 * + col0 * + 34 - - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 + + + col0 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + ( - 16 ) + + COUNT( * ) FROM tab1 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2131
SELECT + ( - 16 ) + + COUNT ( * ) FROM tab1 cor0
----
-13

query I rowsort
SELECT DISTINCT + + col2 + 66 AS col2 FROM tab2 AS cor0
----
106
124
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 5 ) + col1 + - - col1 col0 FROM tab1 AS cor0
----
15
33
99

query I rowsort
SELECT ALL + col1 * + + col1 + + col0 FROM tab0 AS cor0
----
528
6576
98

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( - + col1 ) + + - 19 AND ( 4 )
----

query I rowsort
SELECT DISTINCT + ( 15 ) * - - ( - col2 ) + + 56 AS col1 FROM tab0 AS cor0
----
-1429
-649
-94

query I rowsort
SELECT ALL + 87 * - - 56 * + 48 FROM tab0 AS cor0
----
233856
233856
233856

onlyif mysql # DIV for integer division: 
query II rowsort label-2138
SELECT + col1 * - ( - col0 ) AS col1, - 52 DIV col1 FROM tab0 AS cor0 WHERE + 28 IS NOT NULL
----
1215
0
1827
-2
97
-52

skipif mysql # not compatible
query II rowsort label-2138
SELECT + col1 * - ( - col0 ) AS col1, - 52 / col1 FROM tab0 AS cor0 WHERE + 28 IS NOT NULL
----
1215
0
1827
-2
97
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 8 AS col1 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 8 AS col1 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
NULL

query I rowsort
SELECT ALL - 51 * - - 64 + col2 AS col0 FROM tab1
----
-3168
-3196
-3205

query I rowsort
SELECT ALL - 36 FROM tab2 WHERE - - 54 >= + col2 * col0 + + 9 * + 61
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - col2 + - 71 FROM tab1
----
-130
-139
-167

query I rowsort
SELECT - 28 - col2 AS col1 FROM tab2 AS cor0
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL - - COUNT( * ) + 53 * + 74 AS col1 FROM tab0 AS cor0
----
3925

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - - COUNT ( * ) + 53 * + 74 AS col1 FROM tab0 AS cor0
----
3925

query II rowsort
SELECT DISTINCT - col0 + + 16 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
-30
46
-48
64
-59
75

query I rowsort
SELECT ALL col0 - - col2 - + col2 * - col0 * ( + col0 ) FROM tab1 AS cor0
----
249843
426419
563267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2150
SELECT - + ( - CAST( NULL AS SIGNED ) ), + 40 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
-11
NULL
-27
NULL
-37

skipif mysql # not compatible
query II rowsort label-2150
SELECT - + ( - CAST ( NULL AS INTEGER ) ), + 40 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
-11
NULL
-27
NULL
-37

query I rowsort
SELECT + ( + + col2 ) * + 99 AS col1 FROM tab1 AS cor0
----
5841
6732
9504

query I rowsort
SELECT ALL - + 46 * + ( + - col2 ) FROM tab1 cor0
----
2714
3128
4416

query II rowsort
SELECT DISTINCT + - col1 * + col1 AS col0, + col2 FROM tab1 AS cor0
----
-196
96
-2209
68
-25
59

query I rowsort
SELECT DISTINCT + ( - col2 ) - + 1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE 40 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col1 * - col2 FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 13
----

query I rowsort
SELECT ALL + col2 * - 81 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT ALL col1 + + 96 FROM tab1
----
101
110
143

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2161
SELECT DISTINCT * FROM tab1 WHERE + col2 * + + ( + col1 ) <> + 53 * col2 * + + CAST( - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2161
SELECT DISTINCT * FROM tab1 WHERE + col2 * + + ( + col1 ) <> + 53 * col2 * + + CAST ( - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 8 + col1 FROM tab0 AS cor0
----
-7
13
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2164
SELECT ALL + + CAST( NULL AS DECIMAL ) + - - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + + CAST ( NULL AS REAL ) + - - COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT DISTINCT - ( + 78 ) AS col1, MAX( ALL - col2 ) FROM tab1 AS cor0
----
-78
-59

skipif mysql # not compatible
query II rowsort label-2165
SELECT DISTINCT - ( + 78 ) AS col1, MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-78
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 62 ) FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - + col1 = NULL )
----

query I rowsort
SELECT ALL 88 + - col2 - 22 * 16 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT 91 + 60 + + + col1 + - col0 DIV + 33 + - + col1 AS col0 FROM tab1
----
149
149
150

skipif mysql # not compatible
query I rowsort label-2170
SELECT 91 + 60 + + + col1 + - col0 / + 33 + - + col1 AS col0 FROM tab1
----
149
149
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT col0 DIV + + col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2171
SELECT col0 / + + col1 AS col2 FROM tab1
----
1
17
3

query II rowsort
SELECT 20 AS col0, + ( 34 ) * + - col2 * - col0 FROM tab0
----
20
23970
20
29580
20
326502

query I rowsort
SELECT - 62 * - - 84 * - col1 + + col2 FROM tab2 AS cor0 WHERE - 75 / + 66 <= 82 * + + 79
----
265631
348994
401056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 87 col2 FROM tab1 AS cor0
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 66 IS NULL
----

query I rowsort
SELECT + col1 * 16 AS col2 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT + - ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT - COUNT( * ) + AVG ( ALL + + col1 ) FROM tab2 AS cor0 WHERE NOT + 32 NOT BETWEEN - col2 * - ( col2 ) AND + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT - COUNT ( * ) + AVG ( ALL + + col1 ) FROM tab2 AS cor0 WHERE NOT + 32 NOT BETWEEN - col2 * - ( col2 ) AND + + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT DISTINCT - 32 FROM tab2 AS cor0 WHERE + col2 + 53 / + + CAST( col2 AS SIGNED ) NOT IN ( + col1, + 26 )
----
-32

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - 32 FROM tab2 AS cor0 WHERE + col2 + 53 / + + CAST ( col2 AS INTEGER ) NOT IN ( + col1, + 26 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2180
SELECT DISTINCT col0 AS col0, col0 * CAST( + col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
46
2346
64
4928
75
5025

skipif mysql # not compatible
query II rowsort label-2180
SELECT DISTINCT col0 AS col0, col0 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
46
2346
64
4928
75
5025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT - COUNT( DISTINCT + 91 ), + COUNT( * ) + 19 AS col2 FROM tab1 AS cor0
----
-1
22

skipif mysql # not compatible
query II rowsort label-2182
SELECT - COUNT ( DISTINCT + 91 ), + COUNT ( * ) + 19 AS col2 FROM tab1 AS cor0
----
-1
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT DISTINCT 18, MAX( col0 ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
18
100

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT 18, MAX ( col0 ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
18
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - 31 * - SUM( ALL + - 2 ) FROM tab1 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 31 * - SUM ( ALL + - 2 ) FROM tab1 cor0
----
-186

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + + col1 * + 67 FROM tab0 AS cor0
----
1407
5427
67

query II rowsort
SELECT - 75, - col2 AS col0 FROM tab2 AS cor0
----
-75
-23
-75
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + - COUNT( * ) + - 45 * + COUNT( * ) + + 78 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + col2 + col0
----
78

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + - COUNT ( * ) + - 45 * + COUNT ( * ) + + 78 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + col2 + col0
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT + 27 IS NOT NULL
----

query II rowsort
SELECT ALL col0 * + - col2, + col2 AS col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2191
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT + 71 * - col1 - - CAST( NULL AS SIGNED ) * 45 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2191
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT + 71 * - col1 - - CAST ( NULL AS INTEGER ) * 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 * col1 + + ( + col2 ) * - - col2 FROM tab2
----
-1996
-3551
-4560

query II rowsort
SELECT + 81 * + col1 AS col1, - col2 FROM tab2
----
4131
-23
5427
-58
6237
-40

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 26
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 ) BETWEEN - col1 * + col2 AND col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col2 + col1 + + col0 FROM tab2 AS cor0 WHERE + col0 - - 18 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT + col2 DIV - - col2 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2198
SELECT + col2 / - - col2 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT + ( - 17 ) DIV + 60 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT + ( - 17 ) / + 60 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2200
SELECT ALL col2 DIV + col2, col2 AS col1 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-2200
SELECT ALL col2 / + col2, col2 AS col1 FROM tab1 AS cor0
----
1
59
1
68
1
96

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab2 WHERE NOT NULL IN ( 86 * col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 28 - + col2 + + 7 * + - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 28 - + col2 + + 7 * + - col1 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 49 * + col1 - - 66 AS col2, - col0 FROM tab2 AS cor0
----
2565
-46
3349
-75
3839
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 85 * + COUNT( * ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2204
SELECT 85 * + COUNT ( * ) FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ( + - COUNT( * ) ) FROM tab0 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT ( + - COUNT ( * ) ) FROM tab0 cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - COUNT( ALL + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - COUNT ( ALL + col0 ) FROM tab0
----
-3

query I rowsort
SELECT - + 66 FROM tab2 WHERE + 99 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT DISTINCT 32 DIV - col2 * + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT 32 / - col2 * + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - - MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2210
SELECT - - MAX ( + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT + - MAX( - col0 ), ( + - COUNT( * ) ) col1 FROM tab1 AS cor0
----
51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2211
SELECT + - MAX ( - col0 ), ( + - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
51
-3

query I rowsort
SELECT ALL - ( 46 ) AS col0 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + MAX( DISTINCT - + 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2213
SELECT + MAX ( DISTINCT - + 15 ) FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col1 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT ALL - ( + 43 ) AS col1 FROM tab2 cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + col2 * + col2 * - ( - col2 ) AS col0 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE - 74 <> - 3
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT 75 DIV + 40 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT 75 / + 40 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL MAX( DISTINCT + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL MAX ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col2 * - 76 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT MAX( ALL + - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2222
SELECT MAX ( ALL + - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - 22 * COUNT( * ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2223
SELECT - 22 * COUNT ( * ) FROM tab0
----
-66

query II rowsort
SELECT ALL - 74, 88 AS col0 FROM tab2
----
-74
88
-74
88
-74
88

query I rowsort
SELECT ALL col2 * - col2 + - col2 AS col0 FROM tab0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) + + 33 col1 FROM tab0
----
-48
12
32

query I rowsort
SELECT + col0 + - 49 + - col1 FROM tab2
----
-41
-54
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT DISTINCT + 34 * - col0 + + + col1 + + 24 DIV - 47 * + col1 * - 63 FROM tab0
----
-2937
-3297
-429

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 34 * - col0 + + + col1 + + 24 / - 47 * + col1 * - 63 FROM tab0
----
-2937
-3297
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT 33 + SUM( ALL + col1 ) AS col2 FROM tab0
----
136

skipif mysql # not compatible
query I rowsort label-2229
SELECT 33 + SUM ( ALL + col1 ) AS col2 FROM tab0
----
136

query I rowsort
SELECT ALL col2 * - - col1 + - 63 AS col1 FROM tab2
----
1110
3017
3823

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL - COUNT( * ) + + 88 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - COUNT ( * ) + + 88 FROM tab1
----
85

query II rowsort
SELECT ALL + col0, 70 * - 70 FROM tab2 AS cor0 WHERE col2 BETWEEN - col2 / + - 76 + + ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - + COUNT( * ) + + - COUNT( * ) + - 50 * - 16 + - + MAX( DISTINCT - ( + 44 ) ) AS col2 FROM tab2 AS cor0
----
838

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( * ) + - 50 * - 16 + - + MAX ( DISTINCT - ( + 44 ) ) AS col2 FROM tab2 AS cor0
----
838

query I rowsort
SELECT ALL - ( - col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT + col0 DIV - col0 + - - 63 AS col1 FROM tab0 cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2237
SELECT + col0 / - col0 + - - 63 AS col1 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT DISTINCT 42 * - ( + col1 ) * + col2 AS col2 FROM tab2
----
-129360
-163212
-49266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2239
SELECT ALL col1 * + + CAST( - col1 AS SIGNED ) col1, col2 FROM tab1
----
-196
96
-2209
68
-25
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2239
SELECT ALL col1 * + + CAST ( - col1 AS INTEGER ) col1, col2 FROM tab1
----
-196
96
-2209
68
-25
59

query I rowsort
SELECT col1 * - + 69 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2241
SELECT + SUM( - + col1 ) DIV 11 AS col1, 17 FROM tab1
----
-6
17

skipif mysql # not compatible
query II rowsort label-2241
SELECT + SUM ( - + col1 ) / 11 AS col1, 17 FROM tab1
----
-6
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + col2 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + col2 / + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab0 cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT + + 36 DIV + + 93 * + 10 col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT + + 36 / + + 93 * + 10 col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2245
SELECT DISTINCT CAST( AVG ( col1 ) AS SIGNED ) * COUNT( * ) DIV 16 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT CAST ( AVG ( col1 ) AS INTEGER ) * COUNT ( * ) / 16 FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT + ( - + 44 ) AS col1 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - + COUNT( - - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2247
SELECT - + COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + col2 col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT ALL - ( col0 ) AS col1, - 56 + - 6 * - col2 AS col0 FROM tab2
----
-46
82
-64
184
-75
292

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - + 61 + ( - MAX( ALL - col0 ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2251
SELECT - + 61 + ( - MAX ( ALL - col0 ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT - 83 + + COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 83 + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2253
SELECT DISTINCT 86 * col1 * + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0 WHERE NOT - col0 < + 1 / - - ( - - ( CAST( NULL AS SIGNED ) ) ) / + col2 / col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2253
SELECT DISTINCT 86 * col1 * + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 WHERE NOT - col0 < + 1 / - - ( - - ( CAST ( NULL AS INTEGER ) ) ) / + col2 / col0
----

query I rowsort
SELECT col2 + - 39 AS col2 FROM tab2 AS cor0
----
-16
1
19

query I rowsort
SELECT - col1 + - 87 FROM tab2 AS cor0
----
-138
-154
-164

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 29 <= col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL MIN( + - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL MIN ( + - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + + col1 * - + col0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT - col1 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2260
SELECT - col1 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 + + 81 AS col1 FROM tab2 AS cor0
----
127
145
156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL COUNT( * ) + - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL COUNT ( * ) + - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - 6 * - COUNT( * ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 6 * - COUNT ( * ) AS col2 FROM tab1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT - MIN( ALL + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2265
SELECT - MIN ( ALL + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + col0 * + + 2 - + + 14 FROM tab0 AS cor0
----
16
160
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL COUNT( + - 59 ) + + 27 col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT ALL COUNT ( + - 59 ) + + 27 col2 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL ( - COUNT( * ) ) - - - 61 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL ( - COUNT ( * ) ) - - - 61 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2269
SELECT SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + - 44 * - 64 * + 9 + col2 AS col0 FROM tab2 cor0
----
25367
25384
25402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT 52 IS NOT NULL ) )
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT DISTINCT - COUNT( * ) DIV - 60 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - COUNT ( * ) / - 60 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + MAX( + col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2273
SELECT + MAX ( + col2 ) col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2275
SELECT DISTINCT + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT + 60 DIV col1 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2276
SELECT + 60 / col1 col0 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + 23 * - col1
----

query I rowsort
SELECT col2 * col0 - + col2 FROM tab1 AS cor0
----
4800
4956
6120

query II rowsort
SELECT - col2 AS col2, ( + col1 ) AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col0 + - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + 4 + + + 5 + + - col1 AND + col1 * + + 1 + + - col0 + - 16
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 96 * + 27 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - + 54 > + 5 * - - ( - col2 ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT - col2 * + + 5 + col0 FROM tab0
----
-220
-398
37

query I rowsort
SELECT DISTINCT + col0 + + col1 - - - ( + + 22 ) * + col2 * col0 + + col0 FROM tab0
----
-15399
-18945
-211071

query I rowsort
SELECT col2 + + col2 * - col1 + - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 15 + - + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2287
SELECT 15 + - + COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0 WHERE 57 <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0 WHERE 57 <= col2
----
NULL

query I rowsort
SELECT DISTINCT - + col1 - + + col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT - COUNT( * ) col2, 89 AS col0 FROM tab0
----
-3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2290
SELECT - COUNT ( * ) col2, 89 AS col0 FROM tab0
----
-3
89

query I rowsort
SELECT ALL 72 * 58 FROM tab2 cor0
----
4176
4176
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + - MAX( col2 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + - MAX ( col2 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= - 8
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT + 72 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + 72 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT - MIN( 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2295
SELECT - MIN ( 96 ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - 3 * - col0 * - 76 FROM tab2 AS cor0
----
-10488
-14592
-17100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL col0 * 45 * CAST( + + col0 AS SIGNED ) FROM tab1
----
117045
325125
372645

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL col0 * 45 * CAST ( + + col0 AS INTEGER ) FROM tab1
----
117045
325125
372645

query I rowsort
SELECT ALL - col2 * + - 29 AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + + col2 * ( - 39 ) + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT ALL - MIN( - 49 ) AS col1, 74 col2 FROM tab2 AS cor0 WHERE NULL <= + col1
----
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2300
SELECT ALL - MIN ( - 49 ) AS col1, 74 col2 FROM tab2 AS cor0 WHERE NULL <= + col1
----
NULL
74

query I rowsort
SELECT + ( + 29 ) AS col1 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + 22 + + col0 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT 71 + col1 AS col2 FROM tab1 AS cor0
----
118
76
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT DISTINCT + + ( + - 15 ) * col2 * + col2 FROM tab0 AS cor0
----
-147015
-1500
-33135

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + col1 > col1
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 11 * - 5 * MIN( + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT 11 * - 5 * MIN ( + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 * col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - 98 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - 98 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL MAX( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL MAX ( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT 22 DIV - + col0 - - + 84 col1 FROM tab2 AS cor0
----
84
84
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT 22 / - + col0 - - + 84 col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ALL + - 85 DIV + - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + - 85 / + - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT - + COUNT( * ) DIV + - 23 * 40 * + COUNT( * ) * + 41 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT - + COUNT ( * ) / + - 23 * 40 * + COUNT ( * ) * + 41 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL col1 + + - col0 AS col2 FROM tab2
----
-8
13
5

query II rowsort
SELECT ALL col0 AS col2, + 46 FROM tab2
----
46
46
64
46
75
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 54 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 64 * - + col1 col0 FROM tab1
----
3099
405
947

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT COUNT( * ) - - + COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2321
SELECT COUNT ( * ) - - + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col1 - col0 * - - 61 * + + col2 FROM tab1 AS cor0
----
-298670
-305920
-377515

query I rowsort
SELECT DISTINCT + 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT ALL - 57 DIV - COUNT( * ) FROM tab0, tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - 57 / - COUNT ( * ) FROM tab0, tab0 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2326
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( col1 * + 78 IS NULL )
----
51
85
91

query I rowsort
SELECT 96 * 55 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
5189
5195
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + COUNT( DISTINCT - + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2329
SELECT + COUNT ( DISTINCT - + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 * col1 AS col0 FROM tab2 WHERE col1 > NULL
----

query I rowsort
SELECT ALL + ( ( col2 ) ) AS col2 FROM tab1 WHERE NOT - col2 BETWEEN col0 AND ( NULL )
----
59
68
96

query I rowsort
SELECT ALL + ( - 56 ) AS col2 FROM tab2
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT + + ( + - AVG ( + ( + 66 ) ) ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) >= col2 + 57 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT + + ( + - AVG ( + ( + 66 ) ) ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) >= col2 + 57 + + col0
----
NULL

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT NULL < - + col2
----

query I rowsort
SELECT ALL 65 * - col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - ( - 33 ) * - + COUNT( * ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-2336
SELECT - ( - 33 ) * - + COUNT ( * ) AS col0 FROM tab1
----
-99

query I rowsort
SELECT ALL col0 * + 44 FROM tab2
----
2024
2816
3300

query I rowsort
SELECT DISTINCT 65 * - - col1 - + 6 AS col0 FROM tab1 AS cor0
----
3049
319
904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT - - col0 + + CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT - - col0 + + CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - ( - - col0 ) ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col0 * col1 + - 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT col2 FROM tab1 WHERE NULL < - ( + + 10 ) + + + col0 * + 47 * + CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-2342
SELECT col2 FROM tab1 WHERE NULL < - ( + + 10 ) + + + col0 * + 47 * + CAST ( NULL AS INTEGER ) * + col1
----

query II rowsort
SELECT - 11, + col2 FROM tab1
----
-11
59
-11
68
-11
96

query I rowsort
SELECT ALL - 56 * - col0 * col0 + col0 FROM tab2 AS cor0
----
118542
229440
315075

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - col0 * + + col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, col0 * + ( - col1 ) FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

query I rowsort
SELECT DISTINCT + + col0 - + + 29 AS col2 FROM tab0 AS cor0
----
-14
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT + - COUNT( * ) * + + ( - 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + - COUNT ( * ) * + + ( - 32 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT + ( - col0 ) + - - col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT CAST( NULL AS SIGNED ) + + col0 + + - 74 - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT CAST ( NULL AS INTEGER ) + + col0 + + - 74 - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 86 BETWEEN - - 74 / col2 AND 12 * col2 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col2 col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + 3 ) + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - ( + - col0 ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND col0 * + col2 * col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2359
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - - col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2359
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - - col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT COUNT( + 90 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT COUNT ( + 90 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, 27 - - col0 col2 FROM tab0 cor0
----
-15
42
-87
114
-97
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT + + COUNT( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + + COUNT ( DISTINCT - 5 ) AS col2 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, + col1 * + 1 * - col1 col0 FROM tab1 AS cor0
----
-51
-196
-85
-25
-91
-2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL MAX( ALL - - CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL MAX ( ALL - - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - MIN( - 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2365
SELECT - MIN ( - 97 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT MIN( ALL - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2366
SELECT MIN ( ALL - col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT + col0 + + + col1 + - 39 FROM tab0 WHERE NOT + col1 IS NULL
----
57
59
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT DISTINCT CAST( NULL AS SIGNED ) + - AVG ( 17 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - AVG ( 17 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + 85, - ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 15 * + col2 + 35 IS NULL
----
85
59
85
68
85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2371
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ( MIN( + 12 ) ) AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2372
SELECT ( MIN ( + 12 ) ) AS col1 FROM tab2 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 / - 28 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT + 19 >= - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 5 col0 FROM tab2 cor0
----
28
45
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT + - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + + MIN( + ( + - col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2377
SELECT + + MIN ( + ( + - col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - + COUNT( * ) * + 76 AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2378
SELECT - + COUNT ( * ) * + 76 AS col2 FROM tab2 AS cor0
----
-228

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE - col1 + + + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 96 AS col0 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - 1 FROM tab0 AS cor0 WHERE col2 > - col0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2384
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 81 ) - - + col2 col0 FROM tab0
----
128
180
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - + col1 * 63 col0 FROM tab1
----
3052
400
933

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2387
SELECT ALL - 43 + + CAST( NULL AS SIGNED ) AS col0, 38 + + CAST( - AVG ( ALL 10 ) AS SIGNED ) FROM tab1 cor0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2387
SELECT ALL - 43 + + CAST ( NULL AS INTEGER ) AS col0, 38 + + CAST ( - AVG ( ALL 10 ) AS INTEGER ) FROM tab1 cor0
----
NULL
28

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL - col2 * + - CAST( + 10 AS SIGNED ) FROM tab1 AS cor0
----
590
680
960

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - col2 * + - CAST ( + 10 AS INTEGER ) FROM tab1 AS cor0
----
590
680
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL - 40 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - 40 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 95 FROM tab1 AS cor0
----
59
95
68
95
96
95

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) * + 85 + - - col2 * - ( + + col2 ) <= 59 - col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL - - col2 * - col2 + + 34 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-3447
-4590
-9182

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - - col2 * - col2 + + 34 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3447
-4590
-9182

query II rowsort
SELECT 12 AS col2, col0 FROM tab0
----
12
15
12
87
12
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( 46 * - col0, - 82 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT ( - col1 ) + - col2 * 98 + + col1 DIV col1 FROM tab0
----
-1000
-4686
-9702

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT ( - col1 ) + - col2 * 98 + + col1 / col1 FROM tab0
----
-1000
-4686
-9702

query I rowsort
SELECT + 72 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - 41 IS NOT NULL
----

query I rowsort
SELECT col0 + 86 AS col2 FROM tab0
----
101
173
183

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 45 + + col2
----

query I rowsort
SELECT DISTINCT - + 7 FROM tab2 cor0
----
-7

query II rowsort
SELECT DISTINCT + 33, col0 AS col1 FROM tab1 AS cor0
----
33
51
33
85
33
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * 62 ) < ( NULL )
----

query I rowsort
SELECT ALL - 90 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT 40 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT 40 / - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 * 85 AS col2 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT ALL - 53 AS col1 FROM tab0 WHERE NOT 98 IS NOT NULL
----

query I rowsort
SELECT + col2 + 20 AS col2 FROM tab1 WHERE NOT ( col2 + col0 ) > + ( + col2 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT 13 BETWEEN - 86 * 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT SUM( + 30 ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2411
SELECT SUM ( + 30 ) AS col1 FROM tab2
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * 37 NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * col0 col2 FROM tab2
----
4416
6144
7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT + 41 DIV SUM( col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT + 41 / SUM ( col0 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 32 + col2 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT - 30 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2416
SELECT - 30 / + col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < - 82
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + ( col1 ) DIV 30 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2418
SELECT + ( col1 ) / 30 AS col0 FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT + 14 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT + 14 / col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * + 71 col0 FROM tab1 WHERE NULL IS NULL
----
3337

query I rowsort
SELECT ALL col1 + - 1 * col2 AS col2 FROM tab2
----
28
37
9

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 + col1 IN ( + col0 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT DISTINCT - col1 - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - col1 - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT + col0 + 59 FROM tab2
----
105
123
134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2425
SELECT ALL * FROM tab2 WHERE ( + col1 + + 52 ) BETWEEN ( CAST( NULL AS SIGNED ) ) AND col2
----

skipif mysql # not compatible
query III rowsort label-2425
SELECT ALL * FROM tab2 WHERE ( + col1 + + 52 ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT ( + CAST( - 51 AS SIGNED ) ) DIV - col1 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT ( + CAST ( - 51 AS INTEGER ) ) / - col1 AS col2 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT COUNT( col1 ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( col1 ) * + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT 97 * col1 AS col2 FROM tab0
----
2037
7857
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT - MIN( col0 ) AS col2 FROM tab0 WHERE NOT ( + 31 + + 53 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - MIN ( col0 ) AS col2 FROM tab0 WHERE NOT ( + 31 + + 53 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL + MAX( - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + MAX ( - 4 ) FROM tab0
----
-4

query I rowsort
SELECT 40 * 54 AS col1 FROM tab1 WHERE NOT - 27 * col0 IS NULL
----
2160
2160
2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + - ( + col2 ) col1 FROM tab1
----
-38
-47
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col2 FROM tab1
----
-14
-14
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 89
----

query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL + 25 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( - ( col1 ) ) NOT BETWEEN + col1 AND col0 + 58
----
28

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + 25 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( - ( col1 ) ) NOT BETWEEN + col1 AND col0 + 58
----
28

query I rowsort
SELECT - col1 * - col1 + col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT COUNT( + 50 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2440
SELECT COUNT ( + 50 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + MIN( ALL 14 ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-2441
SELECT + MIN ( ALL 14 ) AS col2 FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT - 77 * + col2 AS col0 FROM tab2 AS cor0
----
-1771
-3080
-4466

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT - + ( col1 ) + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT - col1 * - 77 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 / col0 + col2 NOT IN ( col1 )
----

query I rowsort
SELECT ALL 57 * col2 AS col2 FROM tab2 AS cor0
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 97 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 97 + - col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 15 / + 76 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2450
SELECT ALL + 9 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + 9 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL + SUM( ALL + ( col1 ) ) + 24 AS col2 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + SUM ( ALL + ( col1 ) ) + 24 AS col2 FROM tab2 AS cor0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL col0 DIV 60 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL col0 / 60 AS col0 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - MAX( ALL - + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2454
SELECT - MAX ( ALL - + col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT ALL - 20 + - col2 + 19 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT ALL + 76 * + 16 + col1 FROM tab1 WHERE - col2 * - col2 NOT BETWEEN + ( 50 ) AND + col1
----
1221
1230
1263

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - ( + - COUNT( * ) ) + COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - ( + - COUNT ( * ) ) + COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab2 WHERE + col2 * 91 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 36 / - col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + + col0 + 88 AS col2 FROM tab0 cor0
----
154
184
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT 71 + - - ( 68 ) + - 97 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-2461
SELECT 71 + - - ( 68 ) + - 97 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT + - SUM( DISTINCT - 85 ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + - SUM ( DISTINCT - 85 ) FROM tab1 cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + - MIN( - col0 ) + MAX( DISTINCT + 69 ) FROM tab0 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + - MIN ( - col0 ) + MAX ( DISTINCT + 69 ) FROM tab0 AS cor0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT DISTINCT col0 FROM tab2 WHERE - col2 * - CAST( col0 + - 12 * + 99 AS SIGNED ) IN ( + 87 )
----

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT col0 FROM tab2 WHERE - col2 * - CAST ( col0 + - 12 * + 99 AS INTEGER ) IN ( + 87 )
----

query I rowsort
SELECT DISTINCT 26 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26

query I rowsort
SELECT ALL 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + + - col2 * - col0 + + 20 FROM tab0 AS cor0
----
806
911
9624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab1 AS cor0 WHERE NULL < ( - 88 + + - col2 )
----

query I rowsort
SELECT ALL + - col0 - col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE 71 / - - CAST( NULL AS SIGNED ) BETWEEN + 56 / - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2471
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE 71 / - - CAST ( NULL AS INTEGER ) BETWEEN + 56 / - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT ALL - + 26 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-26
3

skipif mysql # not compatible
query II rowsort label-2472
SELECT ALL - + 26 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-26
3

query I rowsort
SELECT DISTINCT - ( 95 ) AS col0 FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL + ( - - 37 ) - + - COUNT( + col2 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + ( - - 37 ) - + - COUNT ( + col2 ) FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + 38 - + + COUNT( - - col1 ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 38 - + + COUNT ( - - col1 ) AS col2 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT 93 * COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT 93 * COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
279

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( + 86 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 58 * COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-2479
SELECT 58 * COUNT ( * ) FROM tab0
----
174

query I rowsort
SELECT + col1 * + + ( - + col0 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + col2 * 14 AS col1 FROM tab0
----
1386
140
658

query I rowsort
SELECT col1 * - ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 16 - - col1 - 26 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL 4 * - 44 FROM tab2 AS cor0
----
-176
-176
-176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2485
SELECT DISTINCT ( + 36 ), - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2485
SELECT DISTINCT ( + 36 ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
36
NULL

query I rowsort
SELECT - col0 * - col1 FROM tab0 WHERE NOT - 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT + 0 * + MIN( col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + 0 * + MIN ( col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = + col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT ALL - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 35, + 29 * col2 * col1 - 39 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2492
SELECT DISTINCT + 91 * + + SUM( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + - 6 * - COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + 91 * + + SUM ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) + - 6 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT ALL + col2 DIV - - col0 * + 21 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + col2 / - - col0 * + 21 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 + + 1 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 87 + 49 col1 FROM tab2
----
187
203
213

query I rowsort
SELECT 57 + + 44 + 64 AS col1 FROM tab1
----
165
165
165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT CAST( + - col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - + col0 + + + 51 FROM tab2
----
1109
2611
4401

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT - col2 DIV 61 + + 68 FROM tab0
----
67
68
68

skipif mysql # not compatible
query I rowsort label-2500
SELECT - col2 / 61 + + 68 FROM tab0
----
67
68
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - MAX( DISTINCT + + 32 ) + - + ( - 21 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - MAX ( DISTINCT + + 32 ) + - + ( - 21 ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - ( - - ( 4 ) ) IN ( col1 - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - ( - - ( 4 ) ) IN ( col1 - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + - MAX( ALL - 30 ) AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + - MAX ( ALL - 30 ) AS col2 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + COUNT( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + COUNT ( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL <= + 58 * - 59
----

query II rowsort
SELECT col2 - - + 99 AS col1, 56 FROM tab1
----
158
56
167
56
195
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT + 26 - - col1 * + CAST( + col2 AS SIGNED ) + 16 AS col1 FROM tab2 AS cor0
----
1215
3122
3928

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + 26 - - col1 * + CAST ( + col2 AS INTEGER ) + 16 AS col1 FROM tab2 AS cor0
----
1215
3122
3928

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + - SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2509
SELECT + - SUM ( - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL - COUNT( ALL 78 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - COUNT ( ALL 78 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col2 * + col2 / + + col1 * + 54 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col2 * + col2 / + + col1 * + 54 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( ( - + col0 ) ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT 78 * ( + col2 ) AS col0, 24 AS col1 FROM tab1
----
4602
24
5304
24
7488
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2514
SELECT col2 * + 37 * - 30 AS col1, ( + - CAST( NULL AS SIGNED ) ) * - + 50, + + col0 FROM tab2
----
9 values hashing to fdd403185dcf9937bd820c90e9f46e33

skipif mysql # not compatible
query III rowsort label-2514
SELECT col2 * + 37 * - 30 AS col1, ( + - CAST ( NULL AS INTEGER ) ) * - + 50, + + col0 FROM tab2
----
9 values hashing to fdd403185dcf9937bd820c90e9f46e33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL <= 5 / 84 - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL <= 5 / 84 - CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * + - 16 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT 63 * + + COUNT( * ) * - - ( - 86 ) * + COUNT( * ) FROM tab1 AS cor0
----
-48762

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT 63 * + + COUNT ( * ) * - - ( - 86 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-48762

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT - ( - 46 ) DIV + col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2518
SELECT - ( - 46 ) / + col2 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT - - 21 AS col0, + col1 FROM tab0 AS cor0
----
21
1
21
21
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <= - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 20 * + 67 FROM tab1
----
-1340

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) AS col2 FROM tab1 WHERE + + 32 / col2 NOT IN ( + 10 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2523
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 + + - col2 + - col1 col0 FROM tab1 AS cor0
----
2491
7161
8166

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT - col0 * + 19 + col2 DIV - - 33 AS col0 FROM tab2 AS cor0
----
-1215
-1424
-874

skipif mysql # not compatible
query I rowsort label-2525
SELECT - col0 * + 19 + col2 / - - 33 AS col0 FROM tab2 AS cor0
----
-1215
-1424
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT + - col1 * col1 DIV col0 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-115
-54
-85

skipif mysql # not compatible
query I rowsort label-2526
SELECT + - col1 * col1 / col0 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-115
-54
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL col1 * - CAST( - 12 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
252
972

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL col1 * - CAST ( - 12 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
252
972

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT col0 DIV + - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2528
SELECT col0 / + - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2529
SELECT + col2 AS col1, + col0 + + - col0 DIV - col1 FROM tab2
----
23
46
40
64
58
76

skipif mysql # not compatible
query II rowsort label-2529
SELECT + col2 AS col1, + col0 + + - col0 / - col1 FROM tab2
----
23
46
40
64
58
76

query I rowsort
SELECT ALL - - 73 * + col1 * col0 FROM tab0 WHERE + + col2 <= - col2
----

query I rowsort
SELECT + 25 + - col2 / - col1 AS col1 FROM tab1 WHERE - col2 + 98 > NULL
----

query I rowsort
SELECT ALL + col1 * - 75 + col2 FROM tab2
----
-3802
-4967
-5735

query I rowsort
SELECT ALL - col0 - + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT col2 * + col2 * - col1 + 17 + + 54 AS col2 FROM tab0 AS cor0
----
-178858
-2029
-9730

query I rowsort
SELECT - col0 + - + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT ALL col2 - ( col1 ) + 32 FROM tab2 AS cor0
----
-5
23
4

query II rowsort
SELECT DISTINCT 21 AS col0, + ( + - col2 ) FROM tab1
----
21
-59
21
-68
21
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col2 + - col0 col0 FROM tab1
----
14
45
47
-23
5
-26

query II rowsort
SELECT ALL - col2, col2 FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + col2 * - col1 + - - 73, 30, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 14 AS col1 FROM tab0 AS cor0
----
-14
-14
-14

query II rowsort
SELECT DISTINCT - 86, + col0 FROM tab0 AS cor0
----
-86
15
-86
87
-86
97

query I rowsort
SELECT + - 87 FROM tab1 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2545
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2545
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT 35, COUNT( * ) * COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
35
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2547
SELECT 35, COUNT ( * ) * COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
35
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + 39 AS col0, col0 col1 FROM tab0
----
-3393
87
-3783
97
-585
15

query I rowsort
SELECT col1 * 57 * + 19 AS col0 FROM tab1
----
15162
50901
5415

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + col0 DIV + ( + col1 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT + col0 / + ( + col1 ) FROM tab2
----
0
0
1

query I rowsort
SELECT col1 * + 40 * - 72 FROM tab0
----
-233280
-2880
-60480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - CAST( + ( - + col2 ) AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - CAST ( + ( - + col2 ) AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2553
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2553
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, - 80 AS col0 FROM tab0
----
10
-80
47
-80
99
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT DISTINCT + CAST( + 54 AS SIGNED ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + CAST ( + 54 AS INTEGER ) AS col1 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT DISTINCT - col1 AS col2, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + + 97 * + - col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT - col1 AS col2, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 97 * + - col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ( COUNT( DISTINCT + - 30 ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2557
SELECT ( COUNT ( DISTINCT + - 30 ) ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL - col2 + + + 41 FROM tab1 AS cor0
----
-18
-27
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + - COUNT( - - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2559
SELECT + - COUNT ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE ( + 16 ) <= ( - - col0 )
----
59
68
96

query I rowsort
SELECT ALL ( 29 ) * - col0 FROM tab2 cor0
----
-1334
-1856
-2175

onlyif mysql # DIV for integer division: 
query II rowsort label-2562
SELECT ( - 50 ) + + + 80 * 26 DIV + col0 + + 42 AS col0, - col1 col0 FROM tab1 AS cor0
----
14
-47
16
-5
32
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2562
SELECT ( - 50 ) + + + 80 * 26 / + col0 + + 42 AS col0, - col1 col0 FROM tab1 AS cor0
----
14
-47
16
-5
32
-14

query I rowsort
SELECT col2 + + - 73 AS col2 FROM tab1
----
-14
-5
23

query I rowsort
SELECT col2 + - 13 AS col2 FROM tab2
----
10
27
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT + 83 * + 93 + col2 DIV 94 + + col1 AS col2 FROM tab1
----
7724
7734
7766

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 83 * + 93 + col2 / 94 + + col1 AS col2 FROM tab1
----
7724
7734
7766

query I rowsort
SELECT ALL col0 * 16 * + col1 FROM tab1
----
11424
6800
68432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2567
SELECT DISTINCT COUNT( * ) + + - CAST( + - 12 AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT COUNT ( * ) + + - CAST ( + - 12 AS INTEGER ) FROM tab0
----
15

query I rowsort
SELECT ALL + col2 - + col0 AS col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col1 IS NULL
----

query I rowsort
SELECT - - ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT 37 + - col2 DIV col0 FROM tab1 AS cor0
----
36
37

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT 37 + - col2 / col0 FROM tab1 AS cor0
----
36
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - col1, col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 35
----

query I rowsort
SELECT + 27 - - - col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-171
-67
7

query I rowsort
SELECT DISTINCT col2 - - 48 FROM tab1
----
107
116
144

query I rowsort
SELECT DISTINCT + 85 * - 95 AS col1 FROM tab0
----
-8075

query II rowsort
SELECT + col1, col0 * - col1 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + SUM( + + 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2578
SELECT + SUM ( + + 17 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT DISTINCT + col1, - ( col0 ) + col1 FROM tab0 cor0 WHERE NULL > + 3 * - ( + - col2 ) * + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT + MAX( DISTINCT + 50 ) * + 60 AS col1 FROM tab2
----
3000

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + MAX ( DISTINCT + 50 ) * + 60 AS col1 FROM tab2
----
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 + - col1 + col0 * col1 col1 FROM tab1
----
14
751
47
4321
5
505

onlyif mysql # DIV for integer division: 
query II rowsort label-2583
SELECT ALL - 31 DIV - - 31 AS col2, col2 AS col1 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL - 31 / - - 31 AS col2, col2 AS col1 FROM tab1
----
-1
59
-1
68
-1
96

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 WHERE NOT - 32 * - col2 + + col0 >= - + col2
----

query I rowsort
SELECT + 42 + - + 22 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 30, col2 FROM tab2
----
-30
23
-30
40
-30
58

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 IS NULL
----
-51
-67
-77

query II rowsort
SELECT + col1, col0 + 58 FROM tab2 AS cor0
----
51
104
67
133
77
122

query I rowsort
SELECT col0 + - - 16 AS col2 FROM tab0
----
103
113
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT col0 * col0 FROM tab1 WHERE - - 29 * + CAST( NULL AS SIGNED ) + - - 27 IS NULL
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-2591
SELECT col0 * col0 FROM tab1 WHERE - - 29 * + CAST ( NULL AS INTEGER ) + - - 27 IS NULL
----
2601
7225
8281

query II rowsort
SELECT 0 * + col1 AS col2, 86 FROM tab1 AS cor0
----
0
86
0
86
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - COUNT( ALL 22 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - COUNT ( ALL 22 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col1 + + 28
----

query II rowsort
SELECT + ( + 19 ), 81 AS col0 FROM tab0 AS cor0
----
19
81
19
81
19
81

query I rowsort
SELECT ALL - + 40 AS col2 FROM tab2 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 20 * col2 ) > NULL
----

query I rowsort
SELECT ALL col0 * col0 + + - col1 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT + + col0 FROM tab2 WHERE - - col1 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + 98 * - 10 - MAX( ALL 54 ) AS col1 FROM tab1
----
-1034

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 98 * - 10 - MAX ( ALL 54 ) AS col1 FROM tab1
----
-1034

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL = col2 * + + col1 + - 0
----

query I rowsort
SELECT + ( - col2 ) - - - col1 FROM tab2
----
-117
-125
-74

query II rowsort
SELECT col2 * - col2 - - 50 AS col0, - 37 * - 48 * + col2 * + - 1 FROM tab1
----
-3431
-104784
-4574
-120768
-9166
-170496

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 49 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT 53 + + col2 DIV + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
101
69
73

skipif mysql # not compatible
query I rowsort label-2606
SELECT 53 + + col2 / + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
101
69
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 20 < - - 91
----

query I rowsort
SELECT DISTINCT - col1 - - 87 FROM tab1 AS cor0
----
40
73
82

query I rowsort
SELECT + col1 * - - 61 FROM tab2 AS cor0
----
3111
4087
4697

query II rowsort
SELECT col1, 76 AS col0 FROM tab0 AS cor0
----
1
76
21
76
81
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 / - col1 AND col0 * + col0 * - - col2 * 18 + - col0 + + col1
----

query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT + 1 DIV col1, 46 AS col0 FROM tab2
----
0
46
0
46
0
46

skipif mysql # not compatible
query II rowsort label-2613
SELECT + 1 / col1, 46 AS col0 FROM tab2
----
0
46
0
46
0
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2614
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) col0, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2614
SELECT ALL col1 * - CAST ( NULL AS REAL ) col0, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - COUNT( + ( col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - COUNT ( + ( col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - - COUNT( * ) * - 53 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2616
SELECT - - COUNT ( * ) * - 53 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2618
SELECT DISTINCT * FROM tab0 WHERE + + col0 + col1 BETWEEN ( - + CAST( + + col2 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2618
SELECT DISTINCT * FROM tab0 WHERE + + col0 + col1 BETWEEN ( - + CAST ( + + col2 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 + + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - MIN( DISTINCT - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2620
SELECT - MIN ( DISTINCT - - col1 ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) col2 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT col0 * + - col0 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * col1 * col1 AS col0 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ( - - col0 ) + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT - 35 * col1 + col2 * + 81 AS col2 FROM tab0
----
75
7984
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT CAST( NULL AS DECIMAL ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT CAST ( NULL AS REAL ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( 11 ) FROM tab0 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2628
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2628
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + col2 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 86 + 75 AS col0 FROM tab0
----
161
161
161

query II rowsort
SELECT + col2 AS col0, + 53 FROM tab0
----
10
53
47
53
99
53

query II rowsort
SELECT + 17, col1 AS col0 FROM tab2
----
17
51
17
67
17
77

query I rowsort
SELECT - - 76 - + col2 AS col1 FROM tab0 cor0
----
-23
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL 41 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL 41 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE ( - col2 + + col1 + - + CAST( - col0 AS SIGNED ) * - + col1 ) <= - 40
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2634
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE ( - col2 + + col1 + - + CAST ( - col0 AS INTEGER ) * - + col1 ) <= - 40
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 87 + - col1 AS col2 FROM tab0 AS cor0
----
-108
-168
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT DISTINCT + col0 DIV - 30 AS col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + col0 / - 30 AS col0 FROM tab2 cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT + - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 - col2 IS NULL
----
-3

query I rowsort
SELECT 74 * - col1 + + col0 FROM tab0
----
-1467
-5979
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab1
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) col1, col0 + - 89 FROM tab2
----
-51
-43
-67
-14
-77
-25

query I rowsort
SELECT ALL + col2 + 19 AS col0 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT COUNT( - col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2642
SELECT DISTINCT COUNT ( - col1 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - 62 * + + ( + 92 ) NOT BETWEEN - - 71 AND + 74 * - 65 * + - 18
----

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - 62 * + + ( + 92 ) NOT BETWEEN - - 71 AND + 74 * - 65 * + - 18
----

query I rowsort
SELECT ALL 44 * + col0 AS col2 FROM tab1
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL MAX( DISTINCT + - 5 ) col1 FROM tab2
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2645
SELECT ALL MAX ( DISTINCT + - 5 ) col1 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - MIN( ALL + 74 ) * - MIN( + 97 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * col1 + col0 NOT IN ( + col2, 93, + + col2 * + 83, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT - MIN ( ALL + 74 ) * - MIN ( + 97 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * col1 + col0 NOT IN ( + col2, 93, + + col2 * + 83, + col1 )
----
NULL

query I rowsort
SELECT 99 * - 50 FROM tab2 AS cor0
----
-4950
-4950
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT + ( + ( COUNT( + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + ( + ( COUNT ( + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT + - 15 DIV 80 * + 55 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT + - 15 / 80 * + 55 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 IS NULL AND NOT NULL <> + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 <> + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + - MAX( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2653
SELECT + - MAX ( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT + + 64 DIV + - col0 - - 47 col1 FROM tab0 AS cor0
----
43
47
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT + + 64 / + - col0 - - 47 col1 FROM tab0 AS cor0
----
43
47
47

query I rowsort
SELECT - - col0 + 70 FROM tab1 AS cor0
----
121
155
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col0 - + col2 AS col0 FROM tab0
----
-15
-32
-87
77
-97
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT DISTINCT 62 * CAST( - - col1 AS SIGNED ) + + 85 FROM tab1
----
2999
395
953

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT 62 * CAST ( - - col1 AS INTEGER ) + + 85 FROM tab1
----
2999
395
953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * + - ( + col2 ) * + - col1 + - col2 col2 FROM tab0
----
1782
3980
72286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL ( - + ( + CAST( NULL AS SIGNED ) ) ) + - 50 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL ( - + ( + CAST ( NULL AS INTEGER ) ) ) + - 50 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + - 42, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT + 89 + - - COUNT( * ) AS col2 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2661
SELECT + 89 + - - COUNT ( * ) AS col2 FROM tab0
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2662
SELECT + col0 * - + 22 + col1, col1 DIV + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1108
1
-1865
1
-1955
1

skipif mysql # not compatible
query II rowsort label-2662
SELECT + col0 * - + 22 + col1, col1 / + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1108
1
-1865
1
-1955
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT ALL + + CAST( + col0 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + + CAST ( + col0 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * - - col1 AS col0 FROM tab0 cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2665
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 NOT BETWEEN + CAST( + col1 AS SIGNED ) / + col2 AND + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2665
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 NOT BETWEEN + CAST ( + col1 AS INTEGER ) / + col2 AND + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - - MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2666
SELECT - - MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + 84 + + + ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 19 col1 FROM tab2 AS cor0
----
-1102
-437
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT col2 DIV - 98 - + + col2 AS col2 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-2669
SELECT col2 / - 98 - + + col2 AS col2 FROM tab0
----
-10
-100
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + 90
----

query I rowsort
SELECT DISTINCT - 41 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1, 68 AS col0 FROM tab0
----
1
68
21
68
81
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 25
----

query I rowsort
SELECT 61 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - + MAX( DISTINCT + 29 ) FROM tab2 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2675
SELECT - + MAX ( DISTINCT + 29 ) FROM tab2 cor0
----
-29

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - ( - MAX( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - ( - MAX ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT 4 * ( col0 ) AS col2 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT + 67 + - 73 AS col1 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL 12 / MIN( - 35 ) + - COUNT( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL 12 / MIN ( - 35 ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT - ( - COUNT( * ) ) + + 13 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - ( - COUNT ( * ) ) + + 13 FROM tab0
----
16

query I rowsort
SELECT DISTINCT 48 + - ( 42 ) * - 58 * - 62 FROM tab0
----
-150984

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT ( + + ( - - col0 ) ) + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - 32 + + + 14 AS col0 FROM tab2
----
-18
-18
-18

query II rowsort
SELECT ALL - 9 AS col0, col2 FROM tab2 cor0
----
-9
23
-9
40
-9
58

query I rowsort
SELECT ALL 87 + + col1 * 56 AS col0 FROM tab1 cor0
----
2719
367
871

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT DISTINCT - MIN( DISTINCT + 65 ) AS col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - MIN ( DISTINCT + 65 ) AS col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT ALL + - 91 - 56 + - 98 AS col1 FROM tab0 AS cor0
----
-245
-245
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT + 44 DIV + col2 + 64 col2 FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT + 44 / + col2 + 64 col2 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT col2 + - - CAST( + 66 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
125
134
162

skipif mysql # not compatible
query I rowsort label-2694
SELECT col2 + - - CAST ( + 66 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
125
134
162

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 97 * - 32 - + + col2 + + - 81 * 21 + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT COUNT( + - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2698
SELECT COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col0, - 60 col0 FROM tab0 AS cor0
----
-10
-60
-47
-60
-99
-60

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - 61 * + 83 * - 18 + + col2 * - 89 AS col2 FROM tab2 AS cor0
----
85972
87574
89087

query I rowsort
SELECT DISTINCT - + 55 AS col0 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT - col2 + - - ( - 20 ) AS col1 FROM tab1 AS cor0
----
-116
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - - 63 AS col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT 8 AS col1 FROM tab0 cor0
----
8
8
8

query II rowsort
SELECT DISTINCT - 13 * 29 + - col2, col1 AS col1 FROM tab0
----
-387
21
-424
81
-476
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT - col2 * - - col0 * + + ( CAST( NULL AS SIGNED ) ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT - col2 * - - col0 * + + ( CAST ( NULL AS INTEGER ) ) / - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2709
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2709
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( 50 ) * 58 + 66 AS col1 FROM tab0
----
2966
2966
2966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL + - col0 AS col1 FROM tab0 WHERE + - ( CAST( NULL AS SIGNED ) ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + - col0 AS col1 FROM tab0 WHERE + - ( CAST ( NULL AS INTEGER ) ) IS NULL
----
-15
-87
-97

query II rowsort
SELECT 94 + - 2 AS col2, - col1 FROM tab1 AS cor0
----
92
-14
92
-47
92
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN + + col1 + + 76 AND + col2
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * 93 + - col1 FROM tab2 AS cor0
----
-2190
-3797
-5461

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - - 56 AND + 58
----

query I rowsort
SELECT ALL + col1 * - col2 * - 61 AS col0 FROM tab2 AS cor0
----
187880
237046
71553

query I rowsort
SELECT + + 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 47 * - ( + col1 ), + col1 AS col0 FROM tab2
----
-2397
51
-3149
67
-3619
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT + + CAST( NULL AS SIGNED ) / + + col0 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT + + CAST ( NULL AS INTEGER ) / + + col0 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 2 * + 7 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT + ( - MIN( DISTINCT + 12 ) ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2723
SELECT + ( - MIN ( DISTINCT + 12 ) ) AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - COUNT( * ) * - 45 AS col1 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - COUNT ( * ) * - 45 AS col1 FROM tab0 AS cor0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( 70 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab0
----
66

query I rowsort
SELECT - ( col0 ) * - col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - 50 DIV + col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 50 / + col1 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT - - 47 * - col0 AS col2 FROM tab0 AS cor0
----
-4089
-4559
-705

query II rowsort
SELECT + + col2 * - 49 AS col0, - col0 * - col0 FROM tab1 AS cor0
----
-2891
7225
-3332
8281
-4704
2601

query I rowsort
SELECT DISTINCT + col1 + - col0 * - col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT DISTINCT COUNT( + col1 ) + + 56 AS col0, SUM( ALL - col1 ) FROM tab1
----
59
-66

skipif mysql # not compatible
query II rowsort label-2732
SELECT DISTINCT COUNT ( + col1 ) + + 56 AS col0, SUM ( ALL - col1 ) FROM tab1
----
59
-66

query I rowsort
SELECT + 50 * + 48 AS col0 FROM tab0 AS cor0
----
2400
2400
2400

query I rowsort
SELECT ALL + - col0 * 9 AS col2 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT ALL + 97 DIV col1 * 56 AS col1 FROM tab1 cor0
----
1064
112
336

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + 97 / col1 * 56 AS col1 FROM tab1 cor0
----
1064
112
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT + COUNT( ALL - 98 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + COUNT ( ALL - 98 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 26 * - col2 FROM tab0 AS cor0 WHERE NOT 66 IS NULL
----
-1222
-2574
-260

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN - col2 AND 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 AS col0, col0 AS col1 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 WHERE - col1 + 99 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col0 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT CAST( NULL AS SIGNED ) * - ( + 97 ) + - 47 / - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT CAST ( NULL AS INTEGER ) * - ( + 97 ) + - 47 / - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 * - col0 + col0 AS col1 FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT * FROM tab2 WHERE - + col2 + + + col1 * + 99 IS NULL
----

query I rowsort
SELECT ALL - 95 * col1 + - 80 AS col0 FROM tab0
----
-175
-2075
-7775

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2746
SELECT + col1 * + col1 + + 90 + - 66 + - CAST( + col0 AS SIGNED ) + - + ( + col0 ) * - 81 * - col0 - + col1 DIV col1 AS col2 FROM tab2
----
-168818
-325888
-451188

skipif mysql # not compatible
query I rowsort label-2746
SELECT + col1 * + col1 + + 90 + - 66 + - CAST ( + col0 AS INTEGER ) + - + ( + col0 ) * - 81 * - col0 - + col1 / col1 AS col2 FROM tab2
----
-168818
-325888
-451188

query I rowsort
SELECT - col1 + col1 - + col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 91 + col0 FROM tab1 AS cor0
----
142
176
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + MAX( DISTINCT 28 ) col2 FROM tab0 cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT ALL + MAX ( DISTINCT 28 ) col2 FROM tab0 cor0
----
28

query I rowsort
SELECT ALL 30 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1770
2040
2880

query I rowsort
SELECT + col0 - + - col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT col1 * 84 DIV 76 - - col2 FROM tab2
----
125
132
79

skipif mysql # not compatible
query I rowsort label-2752
SELECT col1 * 84 / 76 - - col2 FROM tab2
----
125
132
79

query I rowsort
SELECT DISTINCT col2 * + 65 + + 94 AS col1 FROM tab0 AS cor0
----
3149
6529
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( + ( - + col1 ) ) NOT IN ( - 50 / + + col2 + - - col0, col0 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2754
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( + ( - + col1 ) ) NOT IN ( - 50 / + + col2 + - - col0, col0 * + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT 76 * - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2755
SELECT 76 * - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2756
SELECT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + - 75 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2
----
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 78 NOT BETWEEN + col2 * + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + + 10 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT DISTINCT + 74 / - - 57 * - - CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT + 74 / - - 57 * - - CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2764
SELECT ALL 74 DIV + - COUNT( * ) - - - 26 AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL 74 / + - COUNT ( * ) - - - 26 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-50
3

query I rowsort
SELECT DISTINCT + ( ( ( - col1 ) ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2767
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 80 * col1, - col0 * + col2 * + - col2 col0 FROM tab0 AS cor0
----
-1680
8700
-6480
33135
-80
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 27 col0 FROM tab1 AS cor0 WHERE ( NULL ) <> + 83 * - 3
----

query I rowsort
SELECT 50 + - + col0 FROM tab2 AS cor0
----
-14
-25
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - 3 ) = NULL
----

query I rowsort
SELECT - + 73 * - + col0 + + 35 + + 38 FROM tab1 cor0 WHERE - 37 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 73 col1 FROM tab1 AS cor0
----
-3723
-6205
-6643

query I rowsort
SELECT + - col1 * + 11 FROM tab2 cor0
----
-561
-737
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT + col2 + - col1, + 98 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT DISTINCT - col0 + + col2 * - + 41 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - col0 + + col2 * - + 41 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 + - col1 * - col1 + + col1 * - + col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - col0 + + - ( - col0 ) AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT + col1 - + 62 + - col2 AS col0, col0 FROM tab2
----
-25
64
-34
46
-53
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2782
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + + col1 < - 85
----

skipif mysql # not compatible
query III rowsort label-2782
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + + col1 < - 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT DISTINCT - + 42 + 89 + + col0 + + col1 DIV col0 FROM tab1 AS cor0
----
132
138
98

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT - + 42 + 89 + + col0 + + col1 / col0 FROM tab1 AS cor0
----
132
138
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT - - col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 + 25 + - + col1 * + CAST( NULL AS SIGNED ) * 34 * ( + - col1 ) > - col0 + - 9
----

skipif mysql # not compatible
query I rowsort label-2784
SELECT - - col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 + 25 + - + col1 * + CAST ( NULL AS INTEGER ) * 34 * ( + - col1 ) > - col0 + - 9
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + 60 + - MAX( DISTINCT + 75 ), 77 col0 FROM tab2 AS cor0
----
-15
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2785
SELECT + 60 + - MAX ( DISTINCT + 75 ), 77 col0 FROM tab2 AS cor0
----
-15
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT COUNT( * ) + + 27 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2786
SELECT COUNT ( * ) + + 27 AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL + ( + + 56 ) + - - COUNT( * ) + 60 col1 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT ALL + ( + + 56 ) + - - COUNT ( * ) + 60 col1 FROM tab1 AS cor0
----
119

query I rowsort
SELECT ALL 24 FROM tab0 AS cor0 WHERE NULL <= + 45
----

query I rowsort
SELECT + 45 + + col0 * + 47 FROM tab0 cor0
----
4134
4604
750

query I rowsort
SELECT + col1 * + ( + 7 ) + - - col0 AS col2 FROM tab1 AS cor0
----
120
149
420

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col1, + col1 * - col2, col0, + + col0 )
----

query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + 87 + + - col2 AS col1 FROM tab0
----
-12
40
77

query I rowsort
SELECT DISTINCT - 11 * ( - col0 ) FROM tab0
----
1067
165
957

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + - 37 + 28 IS NOT NULL AND NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 56 col2, + col0 FROM tab1 AS cor0
----
56
51
56
85
56
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - - COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2797
SELECT - - COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 69 / + 22 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT 11 DIV - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2799
SELECT 11 / - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT MAX( - col1 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2800
SELECT MAX ( - col1 ) AS col1 FROM tab2 cor0
----
-51

query II rowsort
SELECT DISTINCT - + col2 AS col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE + + 97 / - - col1 * - col1 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 12 > col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT 57 * COUNT( DISTINCT ( col1 ) ) AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT 57 * COUNT ( DISTINCT ( col1 ) ) AS col2 FROM tab2
----
171

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL = - - col0
----

query I rowsort
SELECT DISTINCT 23 * - + col0 * - + col1 * col0 AS col0 FROM tab2
----
2482068
7254016
8668125

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - 32 * - + col0
----

query I rowsort
SELECT DISTINCT + col2 + 58 FROM tab2
----
116
81
98

query I rowsort
SELECT + 56 + - col2 + + + 91 + - col0 AS col0 FROM tab2 AS cor0
----
14
43
78

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab0 AS cor0
----
98

query II rowsort
SELECT col0, col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2812
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > CAST( col1 AS SIGNED ) * + 90
----

skipif mysql # not compatible
query III rowsort label-2812
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > CAST ( col1 AS INTEGER ) * + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT + ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL - - COUNT( ALL 63 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - - COUNT ( ALL 63 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT col2 AS col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT ALL col0 + - + col2 * col1, col1 col0, + col0 + - - CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab0
----
9 values hashing to 146d90a7bb9ba77b66a7196c62701f4c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2816
SELECT ALL col0 + - + col2 * col1, col1 col0, + col0 + - - CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab0
----
9 values hashing to 146d90a7bb9ba77b66a7196c62701f4c

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col1 FROM tab1 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * + col1 * + 85 + + col0 col0 FROM tab1 AS cor0
----
-279559
-29665
-83249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT + - CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT + - CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + + SUM( - col2 ) + + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2821
SELECT + + SUM ( - col2 ) + + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT ALL - col1 + CAST( + 23 AS SIGNED ) FROM tab0 cor0
----
-58
2
22

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - col1 + CAST ( + 23 AS INTEGER ) FROM tab0 cor0
----
-58
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - + MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - + MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL - + 73 AS col2, MIN( - - col2 ) FROM tab1 AS cor0
----
-73
59

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL - + 73 AS col2, MIN ( - - col2 ) FROM tab1 AS cor0
----
-73
59

query I rowsort
SELECT 10 + col2 AS col1 FROM tab0 AS cor0
----
109
20
57

query I rowsort
SELECT - + col0 + + + col2 AS col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 23 > - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + 81 + + COUNT( * ) * - 1 AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2828
SELECT + 81 + + COUNT ( * ) * - 1 AS col1 FROM tab2
----
78

query I rowsort
SELECT col2 + 51 AS col0 FROM tab2
----
109
74
91

query I rowsort
SELECT ALL - 87 * col2 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT DISTINCT col1 - + col1 + + col0 / + - 95 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT col1 - + col1 + + col0 / + - 95 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL - + col0 - + CAST( - 66 AS SIGNED ) + - col0 + - - col0 * - + col2 FROM tab1 AS cor0
----
-4932
-5119
-6304

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - + col0 - + CAST ( - 66 AS INTEGER ) + - col0 + - - col0 * - + col2 FROM tab1 AS cor0
----
-4932
-5119
-6304

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > col2 * col2
----

query I rowsort
SELECT + 95 * + + col0 FROM tab1
----
4845
8075
8645

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - 12 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL + CAST( ( 87 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + CAST ( ( 87 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL 76 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT + MIN( - 86 ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + MIN ( - 86 ) AS col1 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2840
SELECT COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT col2, col1 + - col1 * + - col0 FROM tab1
----
59
430
68
4324
96
728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2842
SELECT col0, CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-2842
SELECT col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT ALL 47, 72 AS col1 FROM tab1
----
47
72
47
72
47
72

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - 74 + col2 col1 FROM tab0
----
-1677
-1729
-1766

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT MIN( + + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT MIN ( + + col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - 72 IS NOT NULL
----

query I rowsort
SELECT ( 95 ) AS col0 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT DISTINCT - col0, + 89 AS col1 FROM tab0 AS cor0
----
-15
89
-87
89
-97
89

query I rowsort
SELECT DISTINCT + 49 + - col2 + - + 68 AS col1 FROM tab0
----
-118
-29
-66

query I rowsort
SELECT + + col2 + - + col2 - - col0 * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 69 * - col1 FROM tab2 AS cor0 WHERE NOT - col0 - col2 IS NULL
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL - - ( + 29 ) + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - - ( + 29 ) + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
104

query I rowsort
SELECT + 59 * + col0 - - col0 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2855
SELECT ALL + + 55 - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + + 55 - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 * + 99 AS col2, ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
2277
-23
3960
-40
5742
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT + CAST( 52 AS SIGNED ) + col2 BETWEEN + col2 * + CAST( NULL AS SIGNED ) / + col2 * - col1 * - - col0 * + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT + CAST ( 52 AS INTEGER ) + col2 BETWEEN + col2 * + CAST ( NULL AS INTEGER ) / + col2 * - col1 * - - col0 * + - col2 AND NULL
----

query I rowsort
SELECT ( + col1 ) * + - 27 + - + col1 - - col0 + + col1 FROM tab2 AS cor0
----
-1331
-1734
-2015

query I rowsort
SELECT - 78 * + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT 4 - + - 47 AS col2 FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL COUNT( * ) * + + 48 AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL COUNT ( * ) * + + 48 AS col2 FROM tab1
----
144

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NOT ( + col1 ) + - + col1 IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL - MIN( ALL - 2 ) + - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - MIN ( ALL - 2 ) + - COUNT ( * ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 50 + 57 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - COUNT( * ) * - + 45 * + 15 FROM tab0 AS cor0
----
2025

skipif mysql # not compatible
query I rowsort label-2866
SELECT - COUNT ( * ) * - + 45 * + 15 FROM tab0 AS cor0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT + - COUNT( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2867
SELECT + - COUNT ( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT ( MAX( DISTINCT - col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT ( MAX ( DISTINCT - col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT 97 * + col2 + col1 FROM tab2
----
2282
3957
5693

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col1 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 30 + + col0 AS col0 FROM tab1 WHERE ( col0 * col2 ) <> + 80 * + col2
----
115
121
81

query I rowsort
SELECT ALL - 87 + - col2 FROM tab0
----
-134
-186
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 - + col2 col0 FROM tab0 WHERE NULL IS NULL
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT - col2 DIV + col2 - 87 FROM tab2
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-2875
SELECT - col2 / + col2 - 87 FROM tab2
----
-88
-88
-88

query III rowsort
SELECT * FROM tab0 WHERE col2 <= - 93
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) NOT IN ( 81 )
----

query I rowsort
SELECT - 71 * col0 + + 54 FROM tab1
----
-3567
-5981
-6407

query I rowsort
SELECT ALL col2 * + ( col0 * col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col2 FROM tab1 WHERE NOT - 27 * col1 BETWEEN - 81 + col1 AND ( NULL )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL - COUNT( * ) * + 84 FROM tab1 WHERE NOT ( col0 / col1 + - 66 ) NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - COUNT ( * ) * + 84 FROM tab1 WHERE NOT ( col0 / col1 + - 66 ) NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT - col0 + 4 AS col1 FROM tab2
----
-42
-60
-71

query I rowsort
SELECT - 60 + 71 AS col0 FROM tab0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + COUNT( * ) * + 55 AS col2 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-2884
SELECT + COUNT ( * ) * + 55 AS col2 FROM tab2
----
165

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT IN ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - COUNT( * ) * 69 AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-2886
SELECT - COUNT ( * ) * 69 AS col1 FROM tab2
----
-207

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL MAX( ALL col0 ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL MAX ( ALL col0 ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
91

query I rowsort
SELECT 56 * 78 FROM tab0
----
4368
4368
4368

query I rowsort
SELECT 85 FROM tab0 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 + 11 FROM tab2 AS cor0
----
26

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( - col1 + + 24 ) BETWEEN NULL AND + col1 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + col1 / 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT COUNT( CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2894
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
-97

query I rowsort
SELECT 93 * - col0 - col1 AS col1 FROM tab0
----
-1476
-8112
-9022

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT COUNT( * ) - + 47 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2897
SELECT COUNT ( * ) - + 47 FROM tab1
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 - col1 ) <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 - col1 col1 FROM tab0 AS cor0
----
-29
31
51

query I rowsort
SELECT col0 + ( - col1 ) AS col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 56 / - CAST( NULL AS SIGNED ) + 84 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 56 / - CAST ( NULL AS INTEGER ) + 84 AND ( col1 )
----

query I rowsort
SELECT ALL - col0 - - 16 * - col2 FROM tab2 cor0
----
-1003
-414
-704

query I rowsort
SELECT ALL - 45 * - 81 FROM tab1 AS cor0
----
3645
3645
3645

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT ALL - col2 - 25 DIV col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - col2 - 25 / col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL - 60 * + MIN( DISTINCT + col1 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - 60 * + MIN ( DISTINCT + col1 ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + MAX( + col2 ) + + COUNT( * ) FROM tab0 WHERE col2 IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-2907
SELECT + MAX ( + col2 ) + + COUNT ( * ) FROM tab0 WHERE col2 IS NOT NULL
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL 82 * COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL 82 * COUNT ( * ) FROM tab0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT - col1 * 91 DIV - col1 AS col1 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-2909
SELECT - col1 * 91 / - col1 AS col1 FROM tab0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL + MAX( ALL - col0 ) FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + MAX ( ALL - col0 ) FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col0
----
NULL

query I rowsort
SELECT col2 * - + 30 AS col1 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT ALL + 78 + - col1 AS col2 FROM tab1
----
31
64
73

query III rowsort
SELECT * FROM tab0 WHERE NOT 40 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= - col0 + - col1
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * - 12 * 68 col2 FROM tab1
----
-17136
-17136
-17136

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL MAX( + + 39 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL MAX ( + + 39 ) AS col1 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL COUNT( DISTINCT col1 ) + COUNT( * ) FROM tab0 WHERE NOT col2 >= 30 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL COUNT ( DISTINCT col1 ) + COUNT ( * ) FROM tab0 WHERE NOT col2 >= 30 - + col0
----
0

query I rowsort
SELECT DISTINCT col1 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT + CAST( - + 69 AS SIGNED ) * - 84 col1 FROM tab2 cor0
----
5796

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT DISTINCT + CAST ( - + 69 AS INTEGER ) * - 84 col1 FROM tab2 cor0
----
5796

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( - col0 * ( col1 ) ) < 23
----

query II rowsort
SELECT col0, ( - col2 ) * + col1 AS col0 FROM tab0
----
15
-3807
87
-210
97
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT DISTINCT + + COUNT( * ) AS col0, + MIN( - 71 ) FROM tab0 AS cor0
----
3
-71

skipif mysql # not compatible
query II rowsort label-2923
SELECT DISTINCT + + COUNT ( * ) AS col0, + MIN ( - 71 ) FROM tab0 AS cor0
----
3
-71

query I rowsort
SELECT DISTINCT col1 * - - 38 + + col2 AS col0 FROM tab1 AS cor0
----
1854
249
628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN + CAST( NULL AS SIGNED ) * ( + col2 * 90 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN + CAST ( NULL AS INTEGER ) * ( + col2 * 90 ) AND NULL
----

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - ( + + MIN( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - ( + + MIN ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - SUM( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - SUM ( + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT 73 + col0 FROM tab2
----
119
137
148

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + + 48 AND NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE + - col0 NOT BETWEEN col1 AND + 33
----
14
47
5

query I rowsort
SELECT - + col0 + + 6 FROM tab1 WHERE NULL IS NULL
----
-45
-79
-85

query III rowsort
SELECT * FROM tab2 WHERE 11 / - 55 NOT IN ( + 61 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT - SUM( ALL + + ( ( 4 ) ) ) * MAX( ALL + 2 + + col0 ) AS col1 FROM tab1 AS cor0
----
-1116

skipif mysql # not compatible
query I rowsort label-2935
SELECT - SUM ( ALL + + ( ( 4 ) ) ) * MAX ( ALL + 2 + + col0 ) AS col1 FROM tab1 AS cor0
----
-1116

query I rowsort
SELECT ALL + - 74 * 63 FROM tab0 cor0 WHERE ( col0 ) IS NOT NULL
----
-4662
-4662
-4662

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 71 BETWEEN ( + col0 ) AND ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2940
SELECT ALL + col2 / - + 83 * - CAST( NULL AS DECIMAL ) / col2 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + col2 / - + 83 * - CAST ( NULL AS REAL ) / col2 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT ALL + col2 + + + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT 52 col2 FROM tab2 AS cor0 WHERE ( 69 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2942
SELECT DISTINCT 52 col2 FROM tab2 AS cor0 WHERE ( 69 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ( - 48 ) AS col1 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + 66 + - 95 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL - - col2 - 8 * col1 * + + 24 AS col0 FROM tab1 AS cor0
----
-2592
-8956
-901

query I rowsort
SELECT 61 FROM tab0 cor0 WHERE NULL BETWEEN col0 / + col0 * + col1 AND - col0 + col0
----

query I rowsort
SELECT DISTINCT 26 - + col1 FROM tab0 AS cor0
----
-55
25
5

query I rowsort
SELECT ALL - - col2 - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT 52 - 74 + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2949
SELECT 52 - 74 + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + 0 * + col2 * col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT ALL - 74, COUNT( * ) AS col1 FROM tab1 WHERE NOT - 52 IS NULL
----
-74
3

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL - 74, COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 52 IS NULL
----
-74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( col1 ) col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - ( - 94 ) AS col2 FROM tab0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL - MAX( + - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - MAX ( + - col0 ) FROM tab2
----
46

query I rowsort
SELECT + col2 * 39 FROM tab1
----
2301
2652
3744

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - col1 * - + col0 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT + COUNT( * ) * + - 23 col0 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT DISTINCT + COUNT ( * ) * + - 23 col0 FROM tab0
----
-69

query II rowsort
SELECT + col2 AS col1, + 57 AS col0 FROM tab0 AS cor0
----
10
57
47
57
99
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - MAX( - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2961
SELECT - MAX ( - col2 ) FROM tab0 cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 19 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL + + COUNT( * ) * + - 63 col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2963
SELECT ALL + + COUNT ( * ) * + - 63 col1 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT DISTINCT - 23 * + col1 + ( col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( + + col0 + - - col0 IS NOT NULL )
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + col0 ) ) )
----

query I rowsort
SELECT 16 * col1 + + - 51 + - col1 FROM tab1 cor0
----
159
24
654

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT MAX( 41 ) + + 28 col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT - col2 NOT IN ( + col2 ) ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2967
SELECT DISTINCT MAX ( 41 ) + + 28 col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT - col2 NOT IN ( + col2 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT col2 / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT col2 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 25 AS col2 FROM tab2 AS cor0 WHERE col0 * + col2 IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL + - AVG ( ALL + - 83 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL >= - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2972
SELECT + ( col1 ) FROM tab0 AS cor0 WHERE 55 + - col0 - - ( - col1 ) / CAST( NULL AS DECIMAL ) IN ( + ( + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-2972
SELECT + ( col1 ) FROM tab0 AS cor0 WHERE 55 + - col0 - - ( - col1 ) / CAST ( NULL AS REAL ) IN ( + ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT - CAST( - + 93 AS SIGNED ) FROM tab0 WHERE 80 * - + col0 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - CAST ( - + 93 AS INTEGER ) FROM tab0 WHERE 80 * - + col0 IS NOT NULL
----
93

query I rowsort
SELECT ALL col1 + - - col2 AS col1 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + 15 + col0 AS col1 FROM tab1
----
100
106
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2976
SELECT ALL - + col0 AS col2, CAST( NULL AS SIGNED ) FROM tab1 WHERE + col2 IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2976
SELECT ALL - + col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col2 IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT col1 * 68 * - 57 * + 26 + + col0 + + col1 + col1 - col2 * + col1 FROM tab1
----
-1412129
-4739483
-504080

query I rowsort
SELECT col1 + 36 * 94 AS col0 FROM tab1
----
3389
3398
3431

query I rowsort
SELECT DISTINCT 55 + col1 FROM tab0
----
136
56
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL + col0 * col1 * + ( + col0 ) + - col2 * 34 DIV - col0 AS col2 FROM tab2
----
107933
315413
376901

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + col0 * col1 * + ( + col0 ) + - col2 * 34 / - col0 AS col2 FROM tab2
----
107933
315413
376901

query II rowsort
SELECT DISTINCT 51, col0 FROM tab2
----
51
46
51
64
51
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL <> col1 )
----

query I rowsort
SELECT + 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - 29 * - + 87 + - - 7 AS col0 FROM tab1
----
2530
2530
2530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + - + col2 col1 FROM tab0 AS cor0
----
-136
-188
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 < ( + + 32 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - ( + - col1 )
----

query I rowsort
SELECT + - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + + MAX( + 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2992
SELECT + + MAX ( + 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT + + 25 * + 24 AS col0 FROM tab1 AS cor0
----
600
600
600

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2994
SELECT CAST( - - CAST( - 0 AS DECIMAL ) AS SIGNED ) * - - 41 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT CAST ( - - CAST ( - 0 AS REAL ) AS INTEGER ) * - - 41 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + 9 * + SUM( - col2 ) AS col0 FROM tab0
----
-1404

skipif mysql # not compatible
query I rowsort label-2995
SELECT + 9 * + SUM ( - col2 ) AS col0 FROM tab0
----
-1404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 25 col2 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT ( MIN( DISTINCT - + 17 ) ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT ( MIN ( DISTINCT - + 17 ) ) AS col1 FROM tab0
----
-17

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NOT - col0 / - - 27 * 85 + - col1 + - 88 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL COUNT( - col2 ) FROM tab2 WHERE NOT + - col2 - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COUNT ( - col2 ) FROM tab2 WHERE NOT + - col2 - + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT ALL - 38 - 5 col0, + SUM( - + 79 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-43
-711

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3000
SELECT ALL - 38 - 5 col0, + SUM ( - + 79 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-43
-711

query II rowsort
SELECT - 29 AS col1, - col2 AS col1 FROM tab2
----
-29
-23
-29
-40
-29
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT - col0 * - CAST( - col1 AS SIGNED ) * - col2 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) * - col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT 4 DIV + + MAX( ALL ( - 92 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT 4 / + + MAX ( ALL ( - 92 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT - 76 + + CAST( NULL AS SIGNED ) * col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT - 76 + + CAST ( NULL AS INTEGER ) * col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + 20 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT 57 * - CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3007
SELECT 57 * - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + col0 ) + + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3009
SELECT * FROM tab2 AS cor0 WHERE + 23 + + col1 + - col2 - - + CAST( + - 63 AS SIGNED ) - - - 54 * - col1 NOT IN ( + col0 + + col2 / + 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3009
SELECT * FROM tab2 AS cor0 WHERE + 23 + + col1 + - col2 - - + CAST ( + - 63 AS INTEGER ) - - - 54 * - col1 NOT IN ( + col0 + + col2 / + 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 AS col0, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, col1 * - + 0 * - 16 + - - col2 * - - 13 col2 FROM tab2 AS cor0
----
-46
299
-64
520
-75
754

query II rowsort
SELECT DISTINCT 19 + col2, + col0 AS col1 FROM tab2
----
42
46
59
64
77
75

query I rowsort
SELECT DISTINCT + ( + - 17 ) + + col0 AS col1 FROM tab2
----
29
47
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ALL col1 DIV + col2 + + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL col1 / + col2 + + - col2 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - + 47 + 92 col2 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT ALL - 13 - - + 69 + - CAST( NULL AS SIGNED ) * + - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - 13 - - + 69 + - CAST ( NULL AS INTEGER ) * + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT + + COUNT( * ) + CAST( NULL AS SIGNED ) - + + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - col2 * - + 24 AS col1 FROM tab0
----
2376
5040
91368

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3021
SELECT - + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT MIN( DISTINCT - + 22 ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-3022
SELECT MIN ( DISTINCT - + 22 ) FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + SUM( + 47 ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3023
SELECT + SUM ( + 47 ) AS col2 FROM tab1 AS cor0
----
141

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT ALL 68 AS col1, - MIN( + 45 ) col1 FROM tab0 AS cor0
----
68
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3025
SELECT ALL 68 AS col1, - MIN ( + 45 ) col1 FROM tab0 AS cor0
----
68
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3026
SELECT col2 DIV - col0 * 13 + + col1 FROM tab2 AS cor0 WHERE NOT col0 * + + 87 + - CAST( + 68 AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3026
SELECT col2 / - col0 * 13 + + col1 FROM tab2 AS cor0 WHERE NOT col0 * + + 87 + - CAST ( + 68 AS INTEGER ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 + col0 / - - col1 / col1 <> ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 + col0 / - - col1 / col1 <> ( NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL - - COUNT( * ) AS col2, - 54 AS col2 FROM tab2 AS cor0
----
3
-54

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL - - COUNT ( * ) AS col2, - 54 AS col2 FROM tab2 AS cor0
----
3
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT - ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - + 87 * - col2 + + col0 + col0 * col2 + - 91
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL OR ( NULL ) NOT BETWEEN - col2 AND + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - COUNT( * ) * + - MAX( col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3032
SELECT - COUNT ( * ) * + - MAX ( col1 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3033
SELECT DISTINCT MIN( - col1 ) AS col1, ( - COUNT( DISTINCT + col0 ) ) DIV + 86 AS col0 FROM tab0
----
-81
0

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT MIN ( - col1 ) AS col1, ( - COUNT ( DISTINCT + col0 ) ) / + 86 AS col0 FROM tab0
----
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT DISTINCT 59 + - + 38 * - col2 + - - col2 + - + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT 59 + - + 38 * - col2 + - - col2 + - + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3035
SELECT + 76 * - col1 / - - CAST( NULL AS DECIMAL ) * 95 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 76 * - col1 / - - CAST ( NULL AS REAL ) * 95 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3036
SELECT * FROM tab2 WHERE - col2 IN ( 64, + ( + CAST( NULL AS SIGNED ) ) + - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3036
SELECT * FROM tab2 WHERE - col2 IN ( 64, + ( + CAST ( NULL AS INTEGER ) ) + - ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - col0 - + col1 NOT BETWEEN col1 * - 68 AND NULL
----

query I rowsort
SELECT ALL 71 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT ALL - COUNT( * ) DIV 13 + - 48 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - COUNT ( * ) / 13 + - 48 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT COUNT( * ) + + + COUNT( - + col2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3041
SELECT COUNT ( * ) + + + COUNT ( - + col2 ) AS col1 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 70 col1 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT ALL + + 40 - - - 8 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + col0 * - - 76 AS col2 FROM tab0
----
1187
6622
7471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 col2, - 59, - 15 * + col1 AS col1 FROM tab0
----
9 values hashing to 8910f9945a6ff56844ef4bdba073c1fe

query I rowsort
SELECT + col0 * + 50 FROM tab1
----
2550
4250
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT col0 DIV 73 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3047
SELECT col0 / 73 FROM tab2
----
0
0
1

query II rowsort
SELECT + col2, 58 + - 78 FROM tab1 AS cor0
----
59
-20
68
-20
96
-20

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 < + col0 * col1 - col0 + - col1 / - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3052
SELECT DISTINCT - ( + - ( - - 51 ) ) - 14 + + CAST( - SUM( DISTINCT - col2 ) AS SIGNED ) DIV - 25 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - ( + - ( - - 51 ) ) - 14 + + CAST ( - SUM ( DISTINCT - col2 ) AS INTEGER ) / - 25 FROM tab1 AS cor0
----
29

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 3 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT COUNT( ALL + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT COUNT ( ALL + col1 ) FROM tab1
----
3

query I rowsort
SELECT + - col0 * - 23 AS col0 FROM tab1 WHERE NOT - + col2 / - col2 + + col0 / - 22 IN ( - col2, col1 * 99 )
----
1173
1955
2093

query I rowsort
SELECT ALL - + 73 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 25 * - 98 + - col0 * - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0 WHERE CAST( - 29 AS SIGNED ) * + + 62 * - col2 * + + 31 + - 43 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( - 29 AS INTEGER ) * + + 62 * - col2 * + + 31 + - 43 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 89, + 67, + 24 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 77 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 93 + - + col2 AS col0 FROM tab2
----
35
53
70

query II rowsort
SELECT DISTINCT col0, 10 AS col1 FROM tab0
----
15
10
87
10
97
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL + SUM( 12 ) AS col1 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + SUM ( 12 ) AS col1 FROM tab2 cor0
----
36

query I rowsort
SELECT ALL ( - 62 ) AS col0 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT - 68 + - 31, MAX( ALL col1 ) * + - 5 AS col1 FROM tab1
----
-99
-235

skipif mysql # not compatible
query II rowsort label-3069
SELECT - 68 + - 31, MAX ( ALL col1 ) * + - 5 AS col1 FROM tab1
----
-99
-235

query I rowsort
SELECT ALL 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query II rowsort
SELECT + col0 + + + 25 AS col2, + col1 FROM tab2
----
100
67
71
51
89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( * ) + + + 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( * ) + + + 76 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3073
SELECT DISTINCT + 36 + 54 * - + ( + col0 ), + col0 + - col2 * CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
-2718
NULL
-4554
NULL
-4878
NULL

skipif mysql # not compatible
query II rowsort label-3073
SELECT DISTINCT + 36 + 54 * - + ( + col0 ), + col0 + - col2 * CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
-2718
NULL
-4554
NULL
-4878
NULL

query I rowsort
SELECT DISTINCT - 67 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-8
1
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 55 col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + - 58 * - + col2 AS col1 FROM tab1 AS cor0
----
3422
3944
5568

query II rowsort
SELECT ALL + col0 + - col2 * - - 81, - 2 AS col2 FROM tab0
----
-3792
-2
-723
-2
-7922
-2

query I rowsort
SELECT - 89 FROM tab2 WHERE - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - ( SUM( 94 ) ) + + + COUNT( * ) AS col2 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - ( SUM ( 94 ) ) + + + COUNT ( * ) AS col2 FROM tab1
----
-279

query I rowsort
SELECT 33 * - - ( - 5 ) + + ( col1 ) * + - 87 FROM tab1
----
-1383
-4254
-600

query I rowsort
SELECT - ( + 30 ) FROM tab2 cor0
----
-30
-30
-30

query I rowsort
SELECT 8 AS col2 FROM tab1 cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col2 col0 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 48 + + + col1 AND NULL
----

query II rowsort
SELECT ALL 8 * - - col2 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
376
81
792
1
80
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL - col1 * + 38 + + 46 AS col0 FROM tab2 AS cor0
----
-1892
-2500
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT + ( - - col0 ) FROM tab0 AS cor0 WHERE NOT 47 <= - col0 * - col0 - - - col0 + - - CAST( col2 AS SIGNED ) * + 92
----

skipif mysql # not compatible
query I rowsort label-3088
SELECT + ( - - col0 ) FROM tab0 AS cor0 WHERE NOT 47 <= - col0 * - col0 - - - col0 + - - CAST ( col2 AS INTEGER ) * + 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT ALL + COUNT( * ) DIV + + ( - - 83 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + COUNT ( * ) / + + ( - - 83 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 98 - col1 NOT BETWEEN - col2 * + col1 AND - col1 - + + col1 * + ( - col1 )
----
97
1
99

query I rowsort
SELECT DISTINCT - + col1 / 35 + - col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT - + 42 AS col0 FROM tab0 WHERE NOT - col2 / + col1 + + - col2 IS NULL
----
-42
-42
-42

query I rowsort
SELECT + col0 + + - 57 AS col2 FROM tab2
----
-11
18
7

query I rowsort
SELECT col2 + - + 71 AS col1 FROM tab2
----
-13
-31
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT + col1 + - 21 DIV - + 98 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3095
SELECT + col1 + - 21 / - + 98 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT + 90 * + col0 * + + col2 * + - 37 + - 98 * + 42 DIV col0 * - 0 * - - col2 AS col1 FROM tab0 AS cor0
----
-2347650
-2897100
-31977990

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + 90 * + col0 * + + col2 * + - 37 + - 98 * + 42 / col0 * - 0 * - - col2 AS col1 FROM tab0 AS cor0
----
-2347650
-2897100
-31977990

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3097
SELECT ( - + CAST( NULL AS SIGNED ) ) - + 62 / - - CAST( - 8 AS DECIMAL ) AS col2, col0 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3097
SELECT ( - + CAST ( NULL AS INTEGER ) ) - + 62 / - - CAST ( - 8 AS REAL ) AS col2, col0 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3098
SELECT + CAST( NULL AS DECIMAL ) AS col0, col0 - + col0 * + col1 FROM tab2
----
NULL
-2300
NULL
-4864
NULL
-4950

skipif mysql # not compatible
query II rowsort label-3098
SELECT + CAST ( NULL AS REAL ) AS col0, col0 - + col0 * + col1 FROM tab2
----
NULL
-2300
NULL
-4864
NULL
-4950

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 34
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT - col1 - - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - col1 - - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL COUNT( + 66 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL COUNT ( + 66 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE - 88 * + 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT MIN( ALL - - col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT MIN ( ALL - - col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * col1 + 43 + col0 * - + col1 FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT - CAST( NULL AS SIGNED ) + - col0 * ( - col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT - CAST ( NULL AS INTEGER ) + - col0 * ( - col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 FROM tab0
----
-189
-3726
-98

query II rowsort
SELECT + 17 * - 11 AS col0, 80 FROM tab0
----
-187
80
-187
80
-187
80

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3111
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - - 68 * col1 + + CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3111
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 * - - 68 * col1 + + CAST ( + + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( + + 20 ) FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - ( + COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3113
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab2
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 + + col2 > + + ( - 85 ) * + col2 - + col2 - - 74 + + + col2 + col2
----

query I rowsort
SELECT + 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab2 AS cor0 WHERE NOT + col2 * col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3117
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2 + col0 + + 68 + - + col0 + CAST( - + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3117
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2 + col0 + + 68 + - + col0 + CAST ( - + col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL 15 * + - 11 FROM tab1 AS cor0
----
-165
-165
-165

query II rowsort
SELECT + col0, + 39 FROM tab2 cor0
----
46
39
64
39
75
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT DISTINCT + 17 DIV + + col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT + 17 / + + col2 FROM tab0 cor0
----
0
1

query I rowsort
SELECT + 95 * - col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT 13 DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT 13 / col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 31 * - 17 AS col0 FROM tab2 AS cor0
----
-527

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3125
SELECT DISTINCT + 72 AS col1, + COUNT( * ) DIV + COUNT( + 70 ) AS col0 FROM tab1
----
72
1

skipif mysql # not compatible
query II rowsort label-3125
SELECT DISTINCT + 72 AS col1, + COUNT ( * ) / + COUNT ( + 70 ) AS col0 FROM tab1
----
72
1

query II rowsort
SELECT + col0, col0 * - col0 * - + col1 AS col2 FROM tab1
----
51
36414
85
36125
91
389207

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + col1 BETWEEN NULL AND 14
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 27 + + - col2 AS col2 FROM tab1
----
-32
-41
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= col1 * col0
----

query II rowsort
SELECT DISTINCT + + col0 AS col1, + col2 + - - col0 + - 48 * 41 FROM tab0 AS cor0
----
15
-1906
87
-1871
97
-1772

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - MIN( - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3132
SELECT - MIN ( - col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL 85 - - ( + MIN( ALL + 99 ) ) FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL 85 - - ( + MIN ( ALL + 99 ) ) FROM tab2 AS cor0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - MIN( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3134
SELECT - MIN ( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 42 * col1 - - - 40 col0 FROM tab2 AS cor0
----
-207016
-211090
-98572

query I rowsort
SELECT ALL - col1 * + - ( + col1 ) + + + col0 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT - 65 - - - col2 + + col1 FROM tab2 AS cor0
----
-28
-37
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT - 72 * - + COUNT( * ) * - COUNT( * ) - - - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 <= 27
----
-651

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - 72 * - + COUNT ( * ) * - COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 <= 27
----
-651

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3139
SELECT DISTINCT - col0 AS col2, + 72 - - col2 - + 48 * CAST( NULL AS DECIMAL ) * - - ( col2 ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT DISTINCT - col0 AS col2, + 72 - - col2 - + 48 * CAST ( NULL AS REAL ) * - - ( col2 ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT DISTINCT - col1 + + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 WHERE NOT - + col0 + 9 * + 60 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - col1 + + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 WHERE NOT - + col0 + 9 * + 60 IS NOT NULL
----

query I rowsort
SELECT ( - 41 ) AS col1 FROM tab2
----
-41
-41
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3142
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 85 ) * + + col1 AS col1 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT 48 * ( + ( + COUNT( * ) ) ) * 11 AS col1 FROM tab1
----
1584

skipif mysql # not compatible
query I rowsort label-3144
SELECT 48 * ( + ( + COUNT ( * ) ) ) * 11 AS col1 FROM tab1
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT - AVG ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT - AVG ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - ( + - col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT - col2 * + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3149
SELECT DISTINCT + - COUNT( * ) col2, CAST( 98 AS SIGNED ) FROM tab0 AS cor0
----
-3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3149
SELECT DISTINCT + - COUNT ( * ) col2, CAST ( 98 AS INTEGER ) FROM tab0 AS cor0
----
-3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT + ( - col0 ) * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT + ( - col0 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3152
SELECT * FROM tab1 WHERE NOT + 59 + - + col2 - + + 2 = - 87 + - - CAST( - col2 AS SIGNED ) * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3152
SELECT * FROM tab1 WHERE NOT + 59 + - + col2 - + + 2 = - 87 + - - CAST ( - col2 AS INTEGER ) * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 69 * + + 98 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 69 * + + 98 FROM tab0
----
NULL

query I rowsort
SELECT - - 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT 93 * - COUNT( 5 ) * - COUNT( - 34 ) FROM tab1
----
837

skipif mysql # not compatible
query I rowsort label-3155
SELECT 93 * - COUNT ( 5 ) * - COUNT ( - 34 ) FROM tab1
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - MAX( DISTINCT ( col1 ) ) * + MIN( + - col0 ) - + 13 AS col0 FROM tab2 AS cor0
----
5762

skipif mysql # not compatible
query I rowsort label-3156
SELECT - MAX ( DISTINCT ( col1 ) ) * + MIN ( + - col0 ) - + 13 AS col0 FROM tab2 AS cor0
----
5762

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * - 49 col0 FROM tab2 AS cor0
----
-103684
-200704
-275625

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL + - MIN( + 6 ) AS col2 FROM tab2 cor0 WHERE NOT + col2 / + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + - MIN ( + 6 ) AS col2 FROM tab2 cor0 WHERE NOT + col2 / + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL 88 * + - col0 + col0 FROM tab0 AS cor0 WHERE NOT + col0 + CAST( - col1 AS SIGNED ) + - col2 >= col1 + + 67
----
-1305
-7569
-8439

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 88 * + - col0 + col0 FROM tab0 AS cor0 WHERE NOT + col0 + CAST ( - col1 AS INTEGER ) + - col2 >= col1 + + 67
----
-1305
-7569
-8439

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3161
SELECT - 86 * - col0 + + col0 + + col0 + col1 DIV col0 + - - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
1340
7743
8633

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 86 * - col0 + + col0 + + col0 + col1 / col0 + - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
1340
7743
8633

query I rowsort
SELECT ALL + col1 + - col1 * - - col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + col2 * - 81 + + 33, + col0 FROM tab2
----
-1830
46
-3207
64
-4665
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + MIN( - col0 ) + - COUNT( * ) AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + MIN ( - col0 ) + - COUNT ( * ) AS col2 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + + COUNT( + col0 ) + 45 AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3165
SELECT + + COUNT ( + col0 ) + 45 AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL col1 * + - col0 + 3 FROM tab1 AS cor0
----
-422
-4274
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT + + COUNT( * ) + - 59 FROM tab0 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + + COUNT ( * ) + - 59 FROM tab0 cor0
----
-56

query I rowsort
SELECT ALL - col1 - - 42 AS col1 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 + + 78 col2 FROM tab2 AS cor0 WHERE NULL <= - col2 + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT - - 22 * - COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col2, 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1791
48

skipif mysql # not compatible
query II rowsort label-3171
SELECT - - 22 * - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col2, 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1791
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 79 * 15 + - col2 / + - col2 / col1 )
----

query I rowsort
SELECT DISTINCT - col2 + + col2 + + 20 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT + col0 - 97 FROM tab1 cor0
----
-12
-46
-6

query I rowsort
SELECT col0 * - - col2 * + 7 + + - 62 * + 93 + + - col1 FROM tab0 AS cor0 WHERE + 25 IS NULL
----

query I rowsort
SELECT ALL + - 50 + + + col1 + + 71 FROM tab1 cor0
----
26
35
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - + + col1 + + 20 AS col2 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT - col0 * col0 + + col1 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-12235
-14422
-7483

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( col0 ) = col1 / + + 30 + + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( ( + + 9 ) ) AS col1 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT ALL + COUNT( ALL - col0 ) col0, 69 FROM tab1
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3182
SELECT ALL + COUNT ( ALL - col0 ) col0, 69 FROM tab1
----
3
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3183
SELECT col2 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT col2 / - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT ALL - col2 DIV col2 * col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - col2 / col2 * col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT - COUNT( + - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - COUNT ( + - col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3186
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 24 AS col0 FROM tab0 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab1 cor0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT ALL COUNT( * ) AS col1, - 70 FROM tab2
----
3
-70

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL COUNT ( * ) AS col1, - 70 FROM tab2
----
3
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT COUNT( * ) * - - ( + 9 ) * 38 + + COUNT( + 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3087

skipif mysql # not compatible
query I rowsort label-3191
SELECT COUNT ( * ) * - - ( + 9 ) * 38 + + COUNT ( + 28 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3087

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT + col2 DIV - + 25 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT + col2 / - + 25 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT AVG ( ALL + 4 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 19 AS col0 FROM tab2 cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + 45 DIV - 51 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT + 45 / - 51 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL + col0 DIV col1 DIV + col0 + + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + col0 / col1 / + col0 + + col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 35 + + 98 * col1 AS col0 FROM tab1
----
1407
4641
525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - 73, 30 col2 FROM tab0
----
-154
30
-74
30
-94
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT DISTINCT col2 * CAST( 60 AS SIGNED ) + col1 FROM tab1
----
3545
4127
5774

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT col2 * CAST ( 60 AS INTEGER ) + col1 FROM tab1
----
3545
4127
5774

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT ( - 87 ) + COUNT( * ) - 0 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT ( - 87 ) + COUNT ( * ) - 0 AS col2 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3203
SELECT + 63 / - 57 * - col0 + CAST( NULL AS SIGNED ) * + - CAST( - + col2 AS DECIMAL ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT + 63 / - 57 * - col0 + CAST ( NULL AS INTEGER ) * + - CAST ( - + col2 AS REAL ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT + MIN( DISTINCT col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT + MIN ( DISTINCT col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT + - ( + col2 ) + - col2 + - CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT + - ( + col2 ) + - col2 + - CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 34 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL col2 + col0 + + - 83 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + 69 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
69
69
69

query I rowsort
SELECT + col0 * + col2 * + col2 + 92 * + + col0 - - col1 FROM tab1 AS cor0
----
303710
429203
474722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col1 FROM tab2 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3212
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 93, + 61 AS col1 FROM tab1 AS cor0
----
-93
61
-93
61
-93
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + - 35 * + COUNT( * ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + - 35 * + COUNT ( * ) FROM tab0 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + - ( + COUNT( * ) ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3215
SELECT ALL + - ( + COUNT ( * ) ) col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT + CAST( - 41 AS SIGNED ) col2 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3216
SELECT + CAST ( - 41 AS INTEGER ) col2 FROM tab2 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + MAX( ALL 25 ) FROM tab1 WHERE NOT 12 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + MAX ( ALL 25 ) FROM tab1 WHERE NOT 12 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 27 <> + col1 * + col0 * col1
----

query II rowsort
SELECT DISTINCT col1 AS col2, + 26 * + col1 FROM tab0
----
1
26
21
546
81
2106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( col0 ) * - - col0 + col1 FROM tab0
----
306
7590
9410

query I rowsort
SELECT 7 * + col0 AS col1 FROM tab0
----
105
609
679

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT col2 DIV col2 * + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3224
SELECT col2 / col2 * + + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT MIN( - - 6 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT MIN ( - - 6 ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT CAST( NULL AS SIGNED ) / - - MAX( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT CAST ( NULL AS INTEGER ) / - - MAX ( - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT + - col2 * - + col2 + - col2 + 83 AS col0 FROM tab2 cor0
----
1643
3389
589

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 / col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + MAX( DISTINCT - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3229
SELECT + MAX ( DISTINCT - + col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3230
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) / - 95 + 16 + - + 53 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) / - 95 + 16 + - + 53 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 72 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT - + CAST( + 19 AS SIGNED ) FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3232
SELECT - + CAST ( + 19 AS INTEGER ) FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT MAX( ALL - + ( col0 ) ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3233
SELECT MAX ( ALL - + ( col0 ) ) AS col0 FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - + MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 45 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL COUNT( * ) FROM tab2 WHERE - col0 * - 50 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL COUNT ( * ) FROM tab2 WHERE - col0 * - 50 <= NULL
----
0

query I rowsort
SELECT ALL + col0 + - 94 AS col2 FROM tab2
----
-19
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - 58 + + - COUNT( * ) - COUNT( * ) * + + COUNT( * ) * - 18 AS col0 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-3238
SELECT - 58 + + - COUNT ( * ) - COUNT ( * ) * + + COUNT ( * ) * - 18 AS col0 FROM tab2
----
101

query I rowsort
SELECT ALL - + col2 + - 43 - + + col0 AS col0 FROM tab2 AS cor0
----
-112
-147
-176

query I rowsort
SELECT + 59 - 87 AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - col1 - + - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT COUNT( * ) - - - ( + - CAST( - MIN( 54 ) AS SIGNED ) ) + + - 62 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-3242
SELECT COUNT ( * ) - - - ( + - CAST ( - MIN ( 54 ) AS INTEGER ) ) + + - 62 FROM tab0
----
-113

query I rowsort
SELECT DISTINCT - 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

query II rowsort
SELECT + ( - 20 ), ( col0 ) FROM tab0 AS cor0
----
-20
15
-20
87
-20
97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-3246
SELECT DISTINCT + + col2 DIV - col0, + col2 DIV + col1 + + - 81 col2 FROM tab1 AS cor0
----
-1
-75
0
-70
0
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3246
SELECT DISTINCT + + col2 / - col0, + col2 / + col1 + + - 81 col2 FROM tab1 AS cor0
----
-1
-75
0
-70
0
-80

query I rowsort
SELECT - col1 * col2 * + col2 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT + MIN( ALL - + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3248
SELECT + MIN ( ALL - + col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT 91 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - + ( + - 20 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT 91 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - + ( + - 20 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 * col0 FROM tab0
----
15
225
87
7569
97
9409

query I rowsort
SELECT ALL - col0 * - col1 + + + 58 * - col1 + col1 FROM tab0 WHERE NOT + col1 * - + 15 IS NULL
----
-3402
40
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT + ( + + COUNT( ALL + - ( - CAST( NULL AS SIGNED ) ) ) ) * COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT + ( + + COUNT ( ALL + - ( - CAST ( NULL AS INTEGER ) ) ) ) * COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + 58 FROM tab0 AS cor0
----
1218
4698
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 67 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT 42 DIV + - ( col0 ) * + 33 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3255
SELECT 42 / + - ( col0 ) * + 33 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, 19 + col1 col0 FROM tab2 AS cor0
----
23
70
40
96
58
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT - col1 DIV 91 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - col1 / 91 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 83 + + col0 FROM tab1
----
-32
2
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 + - col2 * + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * + col2 col2 FROM tab2 cor0
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL - - MIN( - + 73 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - - MIN ( - + 73 ) FROM tab1 AS cor0
----
-73

query II rowsort
SELECT + 59 AS col0, col2 FROM tab0 cor0
----
59
10
59
47
59
99

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 cor0 WHERE NOT 47 >= - col0 + - col2 + - 54
----

query I rowsort
SELECT + col1 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT + ( + COUNT( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3266
SELECT + ( + COUNT ( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 21 * - 92 * 70 FROM tab0
----
-135240
-135240
-135240

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT COUNT( * ) * - 95 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-3268
SELECT COUNT ( * ) * - 95 FROM tab1
----
-285

query I rowsort
SELECT - col2 * - 92 FROM tab2 WHERE + 86 IS NOT NULL
----
2116
3680
5336

query I rowsort
SELECT ALL 24 + col2 + - col0 FROM tab0
----
-53
26
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT col0 * - - col0 - - 42 DIV - col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3271
SELECT col0 * - - col0 - - 42 / - col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - 70 + - + COUNT( * ) + + 75 AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3272
SELECT - 70 + - + COUNT ( * ) + + 75 AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - - col2 * col2 - + col0 + + col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3274
SELECT - + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3274
SELECT - + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 cor0
----
-1

query II rowsort
SELECT 55 AS col0, + 77 + + 61 FROM tab0 AS cor0
----
55
138
55
138
55
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col1 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL + 60 * - + SUM( + col0 ) * + 54 - COUNT( * ) FROM tab0 AS cor0
----
-644763

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + 60 * - + SUM ( + col0 ) * + 54 - COUNT ( * ) FROM tab0 AS cor0
----
-644763

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL + 24, + MIN( DISTINCT 17 ) AS col2 FROM tab2 AS cor0
----
24
17

skipif mysql # not compatible
query II rowsort label-3278
SELECT ALL + 24, + MIN ( DISTINCT 17 ) AS col2 FROM tab2 AS cor0
----
24
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + - MIN( - ( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3279
SELECT + - MIN ( - ( col1 ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + col0 - + col0 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col2 ) * col1 * 97 * + col2 + + + 83 AS col0 FROM tab0
----
17356196
203783
950780

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL 33 * + + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL 33 * + + COUNT ( * ) FROM tab2
----
99

query II rowsort
SELECT - col0 + col0 AS col0, 40 * - + col0 * col0 * - + col1 FROM tab0
----
0
376360
0
6357960
0
729000

query I rowsort
SELECT - col1 + col2 * + 9 AS col0 FROM tab0
----
342
69
890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT DISTINCT COUNT( * ) * + + 54 * - CAST( - 93 AS SIGNED ) * - ( 47 ) AS col0 FROM tab1
----
-708102

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT COUNT ( * ) * + + 54 * - CAST ( - 93 AS INTEGER ) * - ( 47 ) AS col0 FROM tab1
----
-708102

query I rowsort
SELECT DISTINCT + - 30 * - col1 FROM tab0 AS cor0
----
2430
30
630

query I rowsort
SELECT ALL 37 * - + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-160950
-39146
-94720

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + COUNT( * ) * - + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3288
SELECT + COUNT ( * ) * - + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query II rowsort
SELECT - + col0, - 8 FROM tab2 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col1 col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - 87 * col1 AND + col0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT MIN( - - 93 ) + MAX( - + col0 ) col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3292
SELECT MIN ( - - 93 ) + MAX ( - + col0 ) col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE + col2 * - + col1 + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 4 + + col2 AS col2 FROM tab1
----
55
64
92

query I rowsort
SELECT - 53 + + + 93 * - 35 * - 43 FROM tab2
----
139912
139912
139912

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT 80 + - + MAX( + col1 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3297
SELECT 80 + - + MAX ( + col1 ) FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT + ( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + + col1 * - - ( + col1 ) < + + 6
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL COUNT( * ) + - MAX( DISTINCT + 85 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT + 85 ) FROM tab1
----
-82

query I rowsort
SELECT DISTINCT - 29 + + col0 FROM tab0
----
-14
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT MAX( - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3302
SELECT MAX ( - + col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT + COUNT( * ) + - 16 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT + COUNT ( * ) + - 16 FROM tab1
----
-13

query II rowsort
SELECT + 95, col1 FROM tab1
----
95
14
95
47
95
5

query I rowsort
SELECT ALL - 81 * - 18 AS col1 FROM tab0 WHERE + 43 IS NOT NULL
----
1458
1458
1458

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - + col0 > - col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT - 24 AS col2, COUNT( * ) FROM tab1
----
-24
3

skipif mysql # not compatible
query II rowsort label-3307
SELECT - 24 AS col2, COUNT ( * ) FROM tab1
----
-24
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL + col1 + - col0 + - + 53 + - + CAST( NULL AS SIGNED ) + + col2 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + col1 + - col0 + - + 53 + - + CAST ( NULL AS INTEGER ) + + col2 / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT - 49 DIV - 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 49 / - 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 33 FROM tab0 WHERE NOT + + col1 BETWEEN NULL AND - ( + + col1 )
----
-33
-33
-33

query II rowsort
SELECT col2 AS col1, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
87
47
15
99
97

query I rowsort
SELECT + ( - + 4 ) FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + COUNT( DISTINCT 94 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3315
SELECT + COUNT ( DISTINCT 94 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col1 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL SUM( ALL + - 61 ) AS col0 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL SUM ( ALL + - 61 ) AS col0 FROM tab2
----
-183

query II rowsort
SELECT DISTINCT 45 AS col0, col2 + + col0 FROM tab2
----
45
104
45
133
45
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT - COUNT( ALL 57 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - COUNT ( ALL 57 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 20 + col2 AS col2 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
116
79
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT ( - 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT + COUNT( * ) * + 9 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + COUNT ( * ) * + 9 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - 75 + - col0 * 51 AS col2 FROM tab0
----
-4512
-5022
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT COUNT( DISTINCT 1 ) * + 40 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-3324
SELECT COUNT ( DISTINCT 1 ) * + 40 AS col2 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT COUNT( * ) * + ( 20 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( * ) * + ( 20 ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT - COUNT( * ) * ( 72 ) AS col0 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT - COUNT ( * ) * ( 72 ) AS col0 FROM tab2
----
-216

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE - col0 * + 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE - col0 * + 84 IS NOT NULL
----
NULL

query I rowsort
SELECT 85 * 51 AS col1 FROM tab1
----
4335
4335
4335

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 17 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col0 + - 7 AS col0 FROM tab1 WHERE + col0 + col1 IS NOT NULL
----
-58
-92
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT ALL col2 * 90 + - 73 DIV col2 col1 FROM tab1
----
5309
6119
8640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3332
SELECT ALL col2 * 90 + - 73 / col2 col1 FROM tab1
----
5309
6119
8640

query I rowsort
SELECT DISTINCT 52 FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - COUNT( * ) * + 71 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) * + 71 FROM tab0
----
-213

query I rowsort
SELECT + 15 - 19 AS col2 FROM tab0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT ALL 43 DIV col1 AS col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL 43 / col1 AS col1 FROM tab1
----
0
3
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 * + ( col2 * col1 ) )
----

query I rowsort
SELECT 58 + col1 AS col2 FROM tab2
----
109
125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT SUM( - 24 ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT SUM ( - 24 ) AS col2 FROM tab0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT SUM( 37 ) DIV 91 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3341
SELECT SUM ( 37 ) / 91 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT + 29 * COUNT( * ) + + COUNT( ALL col1 ) col1 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT DISTINCT + 29 * COUNT ( * ) + + COUNT ( ALL col1 ) col1 FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + 29 DIV - col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 29 / - col1 FROM tab1
----
-2
-5
0

query I rowsort
SELECT ALL col1 + + 52 FROM tab1
----
57
66
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT - col0 DIV + 9 AS col2 FROM tab1
----
-10
-5
-9

skipif mysql # not compatible
query I rowsort label-3345
SELECT - col0 / + 9 AS col2 FROM tab1
----
-10
-5
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3347
SELECT * FROM tab0 WHERE NOT - 62 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3347
SELECT * FROM tab0 WHERE NOT - 62 / CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + col0 ) >= - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + ( - col2 ) FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - ( + ( - COUNT( * ) ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT ALL - ( + ( - COUNT ( * ) ) ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3351
SELECT ALL * FROM tab1 WHERE ( 78 ) NOT BETWEEN + CAST( - 45 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3351
SELECT ALL * FROM tab1 WHERE ( 78 ) NOT BETWEEN + CAST ( - 45 AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( 68 ) ) BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3356
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3356
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) > ( NULL )
----

query I rowsort
SELECT 28 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / + 68 NOT IN ( + 9 * col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT - - SUM( ALL ( 25 ) ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - - SUM ( ALL ( 25 ) ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT - col2 DIV ( - 18 + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-3360
SELECT - col2 / ( - 18 + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-4

query I rowsort
SELECT + col2 * 6 AS col2 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT + + col2 * 53 AS col1 FROM tab2 AS cor0
----
1219
2120
3074

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - 23 * - MIN( DISTINCT + 25 * + col2 + - col2 ) FROM tab1 cor0
----
32568

skipif mysql # not compatible
query I rowsort label-3364
SELECT - 23 * - MIN ( DISTINCT + 25 * + col2 + - col2 ) FROM tab1 cor0
----
32568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col2 FROM tab2 AS cor0
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 56 BETWEEN ( + 48 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3367
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL - + COUNT( * ) * - ( - 10 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL - + COUNT ( * ) * - ( - 10 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( col2 ) < - col1 * + col1
----

query I rowsort
SELECT ALL col1 + - ( col0 ) FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + - col1 DIV col0 FROM tab2
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + - col1 / col0 FROM tab2
----
-47
-65
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 93 NOT BETWEEN + 97 * 13 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + col1 + + 51 FROM tab2
----
-2550
-4438
-5878

query I rowsort
SELECT + col0 * col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + 74 + COUNT( * ) + - COUNT( * ) * ( 68 ) AS col0 FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 74 + COUNT ( * ) + - COUNT ( * ) * ( 68 ) AS col0 FROM tab1
----
-127

query I rowsort
SELECT DISTINCT - 51 + - 10 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * - 65 AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 6 - - col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - col1 AND 93
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT + CAST( NULL AS SIGNED ) - - + 54 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT + CAST ( NULL AS INTEGER ) - - + 54 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + - 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL + - MIN( ( - 31 ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
31

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + - MIN ( ( - 31 ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3385
SELECT DISTINCT + SUM( col0 ) + - COUNT( * ) DIV - 11 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + SUM ( col0 ) + - COUNT ( * ) / - 11 FROM tab2
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3386
SELECT + + col0 * + col1 + - 50 - - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + + col0 * + col1 + - 50 - - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + 57 * COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + 57 * COUNT ( * ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT DISTINCT - 47 * - col1 FROM tab1 AS cor0
----
2209
235
658

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 / 38 + col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + + 85 + + col1 col1 FROM tab0 AS cor0
----
-1194
-7374
-8244

query I rowsort
SELECT 53 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL - COUNT( * ) * - 30 - + + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - COUNT ( * ) * - 30 - + + COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT + 79 * 38 AS col1 FROM tab0
----
3002
3002
3002

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 46 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3396
SELECT CAST( NULL AS DECIMAL ) * - ( - - col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT CAST ( NULL AS REAL ) * - ( - - col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * 96 AS col2, - 77 FROM tab1
----
4896
-77
8160
-77
8736
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col1 * col0 col1 FROM tab1
----
-36125
-36414
-389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 AS col1, ( col2 ) col0 FROM tab1
----
1344
96
295
59
3196
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 12 * - col0 + - col1 + + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT ALL ( + - CAST( - 28 AS SIGNED ) ) * + col2 col2 FROM tab1
----
1652
1904
2688

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3401
SELECT ALL ( + - CAST ( - 28 AS INTEGER ) ) * + col2 col2 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT ( - col2 ) IN ( col0 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL 50 * - - 88 AS col1, COUNT( * ) FROM tab2 cor0
----
4400
3

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL 50 * - - 88 AS col1, COUNT ( * ) FROM tab2 cor0
----
4400
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL col1 DIV - 17 AS col1 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL col1 / - 17 AS col1 FROM tab0
----
-1
-4
0

query I rowsort
SELECT ALL 14 FROM tab2 WHERE col2 * - col1 * - col0 BETWEEN col1 AND 31
----

query I rowsort
SELECT DISTINCT + col2 - col0 AS col0 FROM tab2 WHERE NOT ( + ( + + col0 ) ) * 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * + + col2 + col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IS NOT NULL AND NOT ( - col1 ) NOT IN ( 56 + - col1 / + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, + 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 38 DIV col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3412
SELECT 38 / col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN - + col0 + col2 * + col1 AND NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 90 * + 86 * + + col2 + - col2 + - - col1 * + col2 AS col0 FROM tab1 AS cor0
----
456896
529448
744288

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL >= ( - 18 + + 61 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT COUNT( * ) DIV - + 78 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT COUNT ( * ) / - + 78 AS col2 FROM tab2
----
0

query I rowsort
SELECT + ( - 24 ) AS col1 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT ALL - COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + 34 + + - col1 + + col1 AS col1 FROM tab2
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + - 29 + + ( + col1 ) NOT IN ( + 46 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT DISTINCT + - col2 + col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + 54 = NULL
----

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + - col2 + col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + 54 = NULL
----

query I rowsort
SELECT ALL + 72 + + col0 / + 61 AS col0 FROM tab2 cor0 WHERE col0 = - col0
----

query I rowsort
SELECT + ( + - col0 ) + col2 FROM tab1 AS cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, - col0 * - col0 * + + col0 col2 FROM tab1 AS cor0
----
-59
614125
-68
753571
-96
132651

query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT ALL 14 DIV 73 * - 12 + + 43 FROM tab0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL 14 / 73 * - 12 + + 43 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT col1 - 68 + col0 * - 67 * col2 FROM tab1 AS cor0
----
-328086
-336068
-414617

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col2 - col0 + - - 16 + - col2 * + col2 * - + 50 * - 25 col0 FROM tab2 AS cor0
----
-2000072
-4205076
-661303

query I rowsort
SELECT + - col1 - + 77 + + + col1 * col0 AS col0 FROM tab0 cor0
----
1057
1729
19

query I rowsort
SELECT DISTINCT ( col0 ) - + 10 FROM tab0 AS cor0
----
5
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL 96 * + COUNT( * ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 96 * + COUNT ( * ) FROM tab2 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT 33 * + col0 * CAST( NULL AS SIGNED ) AS col0, - col2 * + + col2 AS col2 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

skipif mysql # not compatible
query II rowsort label-3435
SELECT 33 * + col0 * CAST ( NULL AS INTEGER ) AS col0, - col2 * + + col2 AS col2 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL MIN( + col0 ) * - SUM( ALL col0 ) FROM tab1
----
-11577

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL MIN ( + col0 ) * - SUM ( ALL col0 ) FROM tab1
----
-11577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3437
SELECT DISTINCT CAST( AVG ( - 31 ) AS SIGNED ), COUNT( * ) * - - 67 AS col1 FROM tab2
----
-31
201

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT CAST ( AVG ( - 31 ) AS INTEGER ), COUNT ( * ) * - - 67 AS col1 FROM tab2
----
-31
201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3438
SELECT ALL - col0 + + + ( - CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - col0 + + + ( - CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 FROM tab0 WHERE NOT ( + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT SUM( ALL + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT SUM ( ALL + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ( + + 18 ) * - - 91 * - col1 FROM tab2
----
-109746
-126126
-83538

query II rowsort
SELECT ALL + col2, + col1 + + - col0 AS col0 FROM tab1
----
59
-80
68
-44
96
-37

query II rowsort
SELECT 78 AS col2, - col1 AS col1 FROM tab1
----
78
-14
78
-47
78
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3444
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT - - col1 DIV - + 98 + + - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3445
SELECT - - col1 / - + 98 + + - col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 39 * + 97 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT ALL + col2 DIV 26 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + col2 / 26 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - - col1 / + + col2 * + col2 - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 19 FROM tab0 WHERE ( + - col1 * 5 ) IS NOT NULL
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT - - col1 * - 66 AS col1 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-3453
SELECT ALL + col2 DIV col1, - 32 AS col2 FROM tab2 AS cor0
----
0
-32
0
-32
0
-32

skipif mysql # not compatible
query II rowsort label-3453
SELECT ALL + col2 / col1, - 32 AS col2 FROM tab2 AS cor0
----
0
-32
0
-32
0
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT - - col2 * + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - - col2 * + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT ( 84 ) FROM tab2
----
84

query I rowsort
SELECT ALL - col2 + 15 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT DISTINCT 90 - + col1 * + col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL 47 + - col0 + - - col0 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT + 26 + 55 * - + MAX( + 95 ) FROM tab0
----
-5199

skipif mysql # not compatible
query I rowsort label-3459
SELECT + 26 + 55 * - + MAX ( + 95 ) FROM tab0
----
-5199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT + MAX( ALL + + col2 ) + + CAST( - - 50 AS SIGNED ) FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + MAX ( ALL + + col2 ) + + CAST ( - - 50 AS INTEGER ) FROM tab0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + 48 DIV - - col2 + col1 AS col0 FROM tab0
----
1
25
82

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 48 / - - col2 + col1 AS col0 FROM tab0
----
1
25
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT col0 + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT col0 + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV 4 + + ( + 61 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / 4 + + ( + 61 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col2 * + - 85 + + + col1 AS col2 FROM tab1 AS cor0
----
5020
5827
8174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col1 FROM tab2 cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT + 61 col0 FROM tab0 AS cor0 WHERE + CAST( + - col2 AS SIGNED ) NOT IN ( + ( - - ( - - col1 ) ) )
----
61
61
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3468
SELECT + 61 col0 FROM tab0 AS cor0 WHERE + CAST ( + - col2 AS INTEGER ) NOT IN ( + ( - - ( - - col1 ) ) )
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 29 col1 FROM tab1 AS cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 47 <> - 43 * - col2 - - - ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 56 ) IN ( ( + + 8 ), + 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3473
SELECT col2 DIV + col0, + col1 FROM tab0
----
0
21
1
1
3
81

skipif mysql # not compatible
query II rowsort label-3473
SELECT col2 / + col0, + col1 FROM tab0
----
0
21
1
1
3
81

query III rowsort
SELECT ALL - ( col1 ), - col1, + + 50 AS col1 FROM tab1
----
9 values hashing to 42b4016665836f115dc8c7dfa494df23

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT 72 * - COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3475
SELECT 72 * - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT COUNT( DISTINCT col2 ) * - + 20 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3476
SELECT COUNT ( DISTINCT col2 ) * - + 20 FROM tab2
----
-60

query I rowsort
SELECT + 37 AS col2 FROM tab1 WHERE NOT ( ( NULL ) NOT BETWEEN ( + 95 ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL - CAST( - - col2 AS SIGNED ) + + col1 * 48 FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( - col0 - - CAST( + col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - CAST ( - - col2 AS INTEGER ) + + col1 * 48 FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( - col0 - - CAST ( + col2 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT ALL - COUNT( - + 13 ) col2, 35 FROM tab0 AS cor0
----
-3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3479
SELECT ALL - COUNT ( - + 13 ) col2, 35 FROM tab0 AS cor0
----
-3
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NULL ) > + ( - + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL + MIN( 36 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + MIN ( 36 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT - COUNT( * ) + - 27 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - COUNT ( * ) + - 27 FROM tab1
----
-30

query II rowsort
SELECT col1 + 12 + col2 - + - 23 AS col0, - col2 AS col1 FROM tab1
----
145
-96
150
-68
99
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT ALL ( col0 ) DIV - col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL ( col0 ) / - col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL 53 / + 92 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE + col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL 53 / + 92 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE + col0 <= NULL
----

query II rowsort
SELECT + ( + col1 ) AS col2, + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * 25 AS col0 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT - MAX( ALL 79 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - MAX ( ALL 79 ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - col0 * - - col1 + + 46 * - 39 - 46 FROM tab2 AS cor0
----
-4186
-6768
-6865

query I rowsort
SELECT + + ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - - col0, 49 AS col2 FROM tab2 cor0
----
46
49
64
49
75
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 col0 FROM tab1
----
4368
510
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL col1 + + + 0 * CAST( - - 56 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL col1 + + + 0 * CAST ( - - 56 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT 45 AS col2 FROM tab0 WHERE + col0 * - 82 * 95 + + 19 = + ( + col0 )
----

query I rowsort
SELECT ALL - 12 + col2 + col2 AS col1 FROM tab0
----
186
8
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - 45 - COUNT( * ) + - 36 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - 45 - COUNT ( * ) + - 36 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL + 15 - 97 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - 20 + col0 AS col1 FROM tab0 AS cor0
----
-5
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT - + ( + 17 ) FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT - + COUNT( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3503
SELECT - + COUNT ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL MIN( - 70 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL MIN ( - 70 ) FROM tab1 AS cor0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ALL + 57 DIV 46 FROM tab1 AS cor0 WHERE - 12 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + 57 / 46 FROM tab1 AS cor0 WHERE - 12 IS NOT NULL
----
1
1
1

query I rowsort
SELECT ALL - 25 AS col0 FROM tab1 cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL MAX( col1 ) * - SUM( + - 79 ) FROM tab1 AS cor0 WHERE NULL IN ( ( CAST( NULL AS SIGNED ) ), ( + - col1 ) + + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL MAX ( col1 ) * - SUM ( + - 79 ) FROM tab1 AS cor0 WHERE NULL IN ( ( CAST ( NULL AS INTEGER ) ), ( + - col1 ) + + 49 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + - col2 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT 41 * + col0 AS col0 FROM tab2
----
1886
2624
3075

query II rowsort
SELECT - 50 * col0, col0 AS col2 FROM tab0
----
-4350
87
-4850
97
-750
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 63 col2 FROM tab2
----
-14
-4
12

query I rowsort
SELECT ALL + 81 AS col1 FROM tab2 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT MIN( DISTINCT col2 ) * 74 + - + 83 col0 FROM tab0
----
657

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT DISTINCT MIN ( DISTINCT col2 ) * 74 + - + 83 col0 FROM tab0
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - - COUNT( * ) + - + 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3515
SELECT - - COUNT ( * ) + - + 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 + + + 69 + - 62 FROM tab1 cor0
----
12
21
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT - 7 - COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - 7 - COUNT ( * ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT + + 39 AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - 54 + - col2 AS col2 FROM tab2
----
-112
-77
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col1 * - 35 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col1 * - 35 col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 88 + - - 81 < ( NULL )
----

query I rowsort
SELECT DISTINCT 40 + - 11 FROM tab0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3525
SELECT * FROM tab1 WHERE + + col2 BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3525
SELECT * FROM tab1 WHERE + + col2 BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + MAX( DISTINCT col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3526
SELECT + MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL + 86 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - - col0 / + + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT ALL + 86 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - col0 / + + col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL COUNT( * ) + + - 97 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) + + - 97 FROM tab2
----
-94

query I rowsort
SELECT DISTINCT col0 * + col2 - + col1 + col2 FROM tab0
----
671
859
9701

query I rowsort
SELECT + ( - 71 ) AS col2 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + 89 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + COUNT( - col0 ) + 89 AS col0 FROM tab2 AS cor0 WHERE + col1 + + 17 < NULL
----
89

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COUNT ( - col0 ) + 89 AS col0 FROM tab2 AS cor0 WHERE + col1 + + 17 < NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + - COUNT( + col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3534
SELECT + - COUNT ( + col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 * 37 col0 FROM tab0
----
26085
32190
355311

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT - ( 64 ) DIV - + col1 FROM tab0
----
0
3
64

skipif mysql # not compatible
query I rowsort label-3536
SELECT - ( 64 ) / - + col1 FROM tab0
----
0
3
64

query I rowsort
SELECT DISTINCT + + ( 14 ) * - + col2 + col0 + - + col1 + col2 FROM tab1 AS cor0 WHERE 97 IS NOT NULL
----
-1211
-687
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT DISTINCT ( COUNT( * ) ), - SUM( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
3
-185

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT ( COUNT ( * ) ), - SUM ( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
3
-185

query II rowsort
SELECT DISTINCT + - 83 * - col0 + - + col1 * + col0, col0 FROM tab1 cor0
----
3276
91
3519
51
6630
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab1 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT + COUNT( DISTINCT + 64 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + COUNT ( DISTINCT + 64 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ( MAX( ALL - + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3543
SELECT ( MAX ( ALL - + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT MAX( DISTINCT - 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-3544
SELECT MAX ( DISTINCT - 25 ) FROM tab2
----
-25

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT DISTINCT + col1 DIV - - col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + col1 / - - col2 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT - col1 * - col0 * - col2 * + 65 AS col1 FROM tab0
----
-1187550
-3711825
-624195

query I rowsort
SELECT ALL 13 + col0 FROM tab2
----
59
77
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT + col2 DIV col1 * 53 * + col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3549
SELECT DISTINCT + col2 / col1 * 53 * + col1 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT COUNT( DISTINCT - 86 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT COUNT ( DISTINCT - 86 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT NULL IN ( col1, col0, - col0, - - 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT - + col1 * - col1 * - col2 / col0 * - col2 / - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3552
SELECT - + col1 * - col1 * - col2 / col0 * - col2 / - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 / - col1 * - col2 FROM tab0 AS cor0 WHERE NOT - 26 NOT BETWEEN NULL AND + 36
----

query I rowsort
SELECT + - col0 + + col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT ALL - 83 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL - - COUNT( DISTINCT + 72 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - - COUNT ( DISTINCT + 72 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT MAX( + ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3557
SELECT MAX ( + ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT - 93 AS col1, col0 FROM tab0 AS cor0
----
-93
15
-93
87
-93
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( + 62 AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
-102
-120
-85

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( + 62 AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
-102
-120
-85

query I rowsort
SELECT ALL + 70 * - + col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

query I rowsort
SELECT DISTINCT col0 - + - 96 AS col0 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT DISTINCT - col0 * - 80 * + col0 FROM tab1 AS cor0
----
208080
578000
662480

query I rowsort
SELECT ALL + col0 * - - col2 + + + col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT + COUNT( * ) - - - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT + COUNT ( * ) - - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT - col1 - - col0 - - col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT - col1 - - col0 - - col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 IS NULL AND NOT 3 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * col1 * - 37 FROM tab2
----
-166093
-219373
-96237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL - col1 + + - 94 AS col0, - col1 FROM tab0
----
-115
-21
-175
-81
-95
-1

query I rowsort
SELECT DISTINCT ( + col1 ) - ( + - col2 ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT - 63 + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 63 + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL + MIN( 41 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + MIN ( 41 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
41

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 + + col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT 87 * - + 64 AS col1 FROM tab0
----
-5568
-5568
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT ALL - ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3576
SELECT ALL - ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - - CAST( NULL AS SIGNED ) * - CAST( + CAST( + - 85 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - - CAST ( NULL AS INTEGER ) * - CAST ( + CAST ( + - 85 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 14 * - - col1 * - - col2 * - 74 FROM tab2 cor0
----
-1215228
-3190880
-4025896

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - 81
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT MAX( - + 1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3580
SELECT MAX ( - + 1 ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT + - ( + - col1 ) DIV - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3581
SELECT + - ( + - col1 ) / - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + + 12 * + 83 AS col1 FROM tab2 AS cor0
----
996

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL col0 DIV 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL col0 / 95 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 36 > ( - + col1 ) + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 12 * - col0 AS col2 FROM tab1 AS cor0
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL MIN( DISTINCT + + col0 ) * + + COUNT( * ) + + - MIN( ( - col2 ) ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
342

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL MIN ( DISTINCT + + col0 ) * + + COUNT ( * ) + + - MIN ( ( - col2 ) ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
342

query I rowsort
SELECT DISTINCT + 43 * + col1 + + 8 AS col0 FROM tab2 AS cor0
----
2201
2889
3319

query I rowsort
SELECT - 46 AS col0 FROM tab1 AS cor0 WHERE NOT - 25 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT SUM( - + col2 ) * - + 25 col1 FROM tab2
----
3025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT SUM ( - + col2 ) * - + 25 col1 FROM tab2
----
3025

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT - COUNT( * ) * - ( + - COUNT( * ) ) + + 48 + + 57 - + 25 * 59 FROM tab0 WHERE + - 83 + - - col0 + - col2 / + col2 IS NOT NULL
----
-1379

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - COUNT ( * ) * - ( + - COUNT ( * ) ) + + 48 + + 57 - + 25 * 59 FROM tab0 WHERE + - 83 + - - col0 + - col2 / + col2 IS NOT NULL
----
-1379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - ( + 53 ) col2 FROM tab2
----
-13
-30
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT COUNT( * ) DIV MAX( - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT COUNT ( * ) / MAX ( - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + COUNT( DISTINCT - 15 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + COUNT ( DISTINCT - 15 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 WHERE NOT + col0 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT + CAST( 22 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3596
SELECT + CAST ( 22 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - 89 * - + col0 AS col0 FROM tab1
----
4553
7570
8146

query I rowsort
SELECT DISTINCT - 62 - 22 AS col0 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT - - col2 + 5 AS col0 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT DISTINCT + col0 + + col1 * + CAST( - 51 AS SIGNED ) * - - 6 - - 4 col2 FROM tab0 cor0
----
-205
-24767
-6335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3600
SELECT DISTINCT + col0 + + col1 * + CAST ( - 51 AS INTEGER ) * - - 6 - - 4 col2 FROM tab0 cor0
----
-205
-24767
-6335

query I rowsort
SELECT - - col2 + - - col2 + col2 * - + 90 AS col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3602
SELECT - + col2, col2 col1 FROM tab1 AS cor0 WHERE NULL >= col0 * - 74 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3602
SELECT - + col2, col2 col1 FROM tab1 AS cor0 WHERE NULL >= col0 * - 74 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 + ( + - col0 ) + col1 * + col2 + + 51 FROM tab2 AS cor0
----
1224
3131
3937

query I rowsort
SELECT - ( - col2 ) + - ( col0 ) FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL - COUNT( + col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - COUNT ( + col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + 36 + - 5 - 70 + col0 * - col1 * - 83 AS col0 FROM tab2
----
194679
408985
417036

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - COUNT( * ) * COUNT( - 91 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3609
SELECT - COUNT ( * ) * COUNT ( - 91 ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 AS col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT 62 * + + SUM( ALL - col1 ) AS col2 FROM tab1
----
-4092

skipif mysql # not compatible
query I rowsort label-3611
SELECT 62 * + + SUM ( ALL - col1 ) AS col2 FROM tab1
----
-4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT + CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3612
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col0 col0, - 40 + - - 8 AS col0 FROM tab2
----
2346
-32
4928
-32
5025
-32

query I rowsort
SELECT DISTINCT - col2 * + + col2 * - 36 AS col2 FROM tab1 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT ALL - 49 * + 42 AS col1 FROM tab1 AS cor0
----
-2058
-2058
-2058

query I rowsort
SELECT - 97 * - + col2 AS col0 FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT COUNT( * ) FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3617
SELECT COUNT ( * ) FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL <= 44
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT + + 8 DIV + col0 * + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3620
SELECT + + 8 / + col0 * + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1 * - 9 + + 65
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 52 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 * + - 39 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 * + - 39 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 54 * - + 94 AS col2 FROM tab0 AS cor0
----
-5076
-5076
-5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL + - ( + col0 ) + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT ALL + - ( + col0 ) + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT + COUNT( col2 ) AS col2, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3626
SELECT + COUNT ( col2 ) AS col2, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT + 17 AS col1, - ( + - col1 ) AS col1 FROM tab1
----
17
14
17
47
17
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3628
SELECT ALL CAST( NULL AS SIGNED ) + - - COUNT( col0 ), COUNT( * ) col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3628
SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( col0 ), COUNT ( * ) col1 FROM tab2
----
NULL
3

query II rowsort
SELECT + 30 AS col0, - col2 FROM tab1
----
30
-59
30
-68
30
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT + ( + 94 ) * CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + ( + 94 ) * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT COUNT( * ) AS col2, - COUNT( col2 ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-3631
SELECT COUNT ( * ) AS col2, - COUNT ( col2 ) FROM tab1
----
3
-3

query I rowsort
SELECT ALL - col2 + 95 FROM tab0
----
-4
48
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT - col1 + col2 * CAST( NULL AS SIGNED ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3633
SELECT - col1 + col2 * CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - SUM( - col0 ) AS col2 FROM tab1 AS cor0 WHERE - 48 - 81 IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-3634
SELECT - SUM ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE - 48 - 81 IS NOT NULL
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + 82 AS col1 FROM tab2
----
105
122
140

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3637
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( 82 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3637
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( 82 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3638
SELECT - 77 * - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT - 77 * - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 81 - - - col1 FROM tab1 AS cor0
----
34
67
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) col2, 31 col0 FROM tab1 AS cor0
----
0
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3640
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) col2, 31 col0 FROM tab1 AS cor0
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 66 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 66 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL - + col1 - + 94 FROM tab1 AS cor0
----
-108
-141
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - 25 * + SUM( - ( + col1 ) ) FROM tab2
----
4875

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 25 * + SUM ( - ( + col1 ) ) FROM tab2
----
4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col2, - col2 + - + col1 AS col0 FROM tab1 AS cor0
----
51
-110
85
-64
91
-115

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * + col1 + - 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT COUNT( ALL col1 ) * 79 AS col2 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT COUNT ( ALL col1 ) * 79 AS col2 FROM tab0 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL col0 DIV + + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL col0 / + + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT + col2 * + - 21 FROM tab0 AS cor0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL COUNT( + - 92 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COUNT ( + - 92 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3652
SELECT col1 DIV + + 1 + - + 58 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
44
76
96

skipif mysql # not compatible
query I rowsort label-3652
SELECT col1 / + + 1 + - + 58 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
44
76
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT col2 DIV - - 75 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT col2 / - - 75 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT ALL + COUNT( * ) AS col0, + 34 FROM tab2 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-3654
SELECT ALL + COUNT ( * ) AS col0, + 34 FROM tab2 AS cor0
----
3
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT IN ( col2, + 50, + col2 / - col2 + col1, - - 26 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3657
SELECT col1 * + - col0 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT col1 * + - col0 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3660
SELECT + 43 * + ( - CAST( - 71 AS DECIMAL ) ) / + col0 * + 23 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT + 43 * + ( - CAST ( - 71 AS REAL ) ) / + col0 * + 23 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col1 + + 95 FROM tab1
----
159
205
210

query III rowsort
SELECT * FROM tab2 WHERE - + ( + col2 ) BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL CAST( NULL AS SIGNED ) * ( + AVG ( - - ( col2 ) ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL CAST ( NULL AS INTEGER ) * ( + AVG ( - - ( col2 ) ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT MAX( DISTINCT - + 25 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-3664
SELECT MAX ( DISTINCT - + 25 ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - ( - MIN( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3665
SELECT - ( - MIN ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( ( 20 IS NULL ) )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + - MIN( + col0 ) FROM tab1 WHERE 38 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - MIN ( + col0 ) FROM tab1 WHERE 38 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT col1 + + col2 DIV 8 FROM tab0 AS cor0
----
13
22
86

skipif mysql # not compatible
query I rowsort label-3668
SELECT col1 + + col2 / 8 FROM tab0 AS cor0
----
13
22
86

query I rowsort
SELECT ALL - 13 - 11 * col2 * + col1 * - 22 AS col0 FROM tab0 AS cor0
----
23945
50807
921281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 94 col1 FROM tab2 cor0
----
4324
6016
7050

query I rowsort
SELECT ALL + - 79 * + 72 AS col1 FROM tab1 AS cor0
----
-5688
-5688
-5688

query I rowsort
SELECT DISTINCT - - col0 * + + 81 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3726
5184
6075

query II rowsort
SELECT ALL - + col2, + ( col2 ) FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col2 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + ( + col2 ) + + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT - col2 DIV - + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3676
SELECT - col2 / - + col0 FROM tab0
----
0
1
3

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT - + 81 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + 5 AS col1 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL + MIN( + - col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + MIN ( + - col0 ) AS col2 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT COUNT( * ) + - 34 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT COUNT ( * ) + - 34 FROM tab0
----
-31

query II rowsort
SELECT ALL col0 + + ( + + col2 ) * - ( - col1 ) AS col2, col0 AS col2 FROM tab2
----
1219
46
3144
64
3961
75

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 45 * - MIN( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
4095

skipif mysql # not compatible
query I rowsort label-3683
SELECT 45 * - MIN ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL - MAX( - 47 ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - MAX ( - 47 ) AS col1 FROM tab2 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT col1 DIV - col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-102
-2210
-9801

skipif mysql # not compatible
query I rowsort label-3685
SELECT col1 / - col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-102
-2210
-9801

query II rowsort
SELECT 90, 48 FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT + - col2 * + 10 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3688
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3689
SELECT col2 AS col0, col0 DIV - - col2 AS col1 FROM tab0
----
10
8
47
0
99
0

skipif mysql # not compatible
query II rowsort label-3689
SELECT col2 AS col0, col0 / - - col2 AS col1 FROM tab0
----
10
8
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT + COUNT( * ) + COUNT( ALL - - 79 ) FROM tab2 WHERE NOT ( NOT 93 >= + col1 )
----
6

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + COUNT ( * ) + COUNT ( ALL - - 79 ) FROM tab2 WHERE NOT ( NOT 93 >= + col1 )
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * - col0 + - 48 col2 FROM tab1
----
-4842
-8038
-8602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT DISTINCT - col0 FROM tab0 WHERE ( NOT 39 * - col0 + - - col2 >= col2 + + - CAST( - col2 AS SIGNED ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - col0 FROM tab0 WHERE ( NOT 39 * - col0 + - - col2 >= col2 + + - CAST ( - col2 AS INTEGER ) )
----
-15
-87
-97

query I rowsort
SELECT - 42 - - col1 - - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT 2 + + COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3694
SELECT 2 + + COUNT ( * ) FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 93 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 93 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + 9 * - - col2, col1 AS col2 FROM tab2
----
207
51
360
77
522
67

query I rowsort
SELECT ALL 46 + col0 AS col0 FROM tab0
----
133
143
61

query I rowsort
SELECT ALL - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <> + 5 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT + CAST( col1 AS SIGNED ) * CAST( + ( 40 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
1880
200
560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3700
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * CAST ( + ( 40 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
1880
200
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( - 20 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( - 20 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 17 * + - 13 + + col0 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + 94 * - 10 AS col0 FROM tab1
----
-47940
-79900
-85540

query I rowsort
SELECT ALL + col2 * + 1 FROM tab1
----
59
68
96

query I rowsort
SELECT - 52 * - 46 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
2392
2392
2392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT - CAST( NULL AS SIGNED ) / col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CAST ( NULL AS INTEGER ) / col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT + 51 DIV - + 94 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT + 51 / - + 94 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT COUNT( * ) * + 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3708
SELECT COUNT ( * ) * + 53 FROM tab0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * + 93 * - col1 col2 FROM tab2
----
147033
193161
221991

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL - COUNT( * ) * - 92 AS col0 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - COUNT ( * ) * - 92 AS col0 FROM tab1 AS cor0
----
276

query I rowsort
SELECT DISTINCT - ( - - 92 ) FROM tab0 AS cor0
----
-92

query I rowsort
SELECT ALL + 45 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 28 + - 0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3714
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 28 + - 0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - 59 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5133
-5723
-885

query I rowsort
SELECT + col0 + + 34 + col1 FROM tab0 AS cor0
----
130
132
142

query I rowsort
SELECT - - 18 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-49
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - + col1 ) * + - col1 * - - 44 * + - 68 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - 0 AND - 16
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT + MIN( ALL + col2 ) col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3720
SELECT DISTINCT + MIN ( ALL + col2 ) col2 FROM tab2 cor0
----
23

query I rowsort
SELECT + 81 + col1 AS col2 FROM tab2 AS cor0
----
132
148
158

query II rowsort
SELECT - col0 + - + col2 + - col2, col1 AS col2 FROM tab0
----
-107
21
-109
81
-295
1

query I rowsort
SELECT ALL + 97 + + - col1 AS col0 FROM tab2
----
20
30
46

query I rowsort
SELECT col0 + 71 + + col0 FROM tab0
----
101
245
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT + CAST( - 38 AS SIGNED ) AS col0 FROM tab2
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-3725
SELECT + CAST ( - 38 AS INTEGER ) AS col0 FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 4 <> + col1 - col2 + col2 + + col0 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT DISTINCT + col0 - - - CAST( + - col0 AS SIGNED ) FROM tab1 cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + col0 - - - CAST ( + - col0 AS INTEGER ) FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT - 50 - col0 AS col2 FROM tab0 AS cor0
----
-137
-147
-65

query II rowsort
SELECT col0 * - + col2, ( col0 ) * - col0 * + 98 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT ALL - 6 AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL - 6 AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL - 21 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - 21 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3733
SELECT DISTINCT + CAST( 57 AS SIGNED ), 0 AS col0 FROM tab1
----
57
0

skipif mysql # not compatible
query II rowsort label-3733
SELECT DISTINCT + CAST ( 57 AS INTEGER ), 0 AS col0 FROM tab1
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL - + COUNT( * ) * 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL - + COUNT ( * ) * 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL + + 19 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + + 19 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT - 99, 83 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-99
86

skipif mysql # not compatible
query II rowsort label-3736
SELECT - 99, 83 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-99
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col0 > - 69
----
3

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 > - 69
----
3

query II rowsort
SELECT col1 AS col2, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

query II rowsort
SELECT - col0, - col1 AS col0 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * + col2 col1, col1 AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1, tab2 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT 29 DIV + col1 AS col0 FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-3743
SELECT 29 / + col1 AS col0 FROM tab0
----
0
1
29

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2, tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + - SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - col1 + - ( - col1 ) * + 95 + 12 FROM tab1 AS cor0
----
1328
4430
482

query I rowsort
SELECT col1 * - col1 * - col0 + - col1 AS col0 FROM tab2
----
119595
336608
379379

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3748
SELECT + col2 + CAST( NULL AS DECIMAL ) + + + ( + col1 ) * col2 * + CAST( + 58 AS SIGNED ) + - col2 * ( - col1 ) * - + 5, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3748
SELECT + col2 + CAST ( NULL AS REAL ) + + + ( + col1 ) * col2 * + CAST ( + 58 AS INTEGER ) + - col2 * ( - col1 ) * - + 5, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, col2 col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT ( ( col0 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( ( col0 IS NULL ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3753
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT 74, + col0 AS col2 FROM tab0 AS cor0
----
74
15
74
87
74
97

query I rowsort
SELECT ALL ( - col1 ) + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT 33 + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3757
SELECT DISTINCT 33 + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL - COUNT( * ) + 28 + + 8 AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - COUNT ( * ) + 28 + + 8 AS col1 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3759
SELECT * FROM tab0 cor0 WHERE 34 + + col2 - col2 + - ( + ( ( - + 6 ) ) ) * col1 * + col0 * - ( - col1 ) NOT BETWEEN + + ( - col2 ) - + CAST( NULL AS SIGNED ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3759
SELECT * FROM tab0 cor0 WHERE 34 + + col2 - col2 + - ( + ( ( - + 6 ) ) ) * col1 * + col0 * - ( - col1 ) NOT BETWEEN + + ( - col2 ) - + CAST ( NULL AS INTEGER ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT ALL COUNT( * ) DIV + COUNT( * ) - + 69 AS col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL COUNT ( * ) / + COUNT ( * ) - + 69 AS col2 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT + 42 - - 32 + - - 92 FROM tab1 AS cor0
----
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 61 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 88 col2 FROM tab1 AS cor0
----
-4488
-7480
-8008

query I rowsort
SELECT ALL - + 42 * + 23 AS col0 FROM tab1 AS cor0
----
-966
-966
-966

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 17
----

query II rowsort
SELECT col2 AS col1, col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col2, + col2 col1 FROM tab1 AS cor0
----
32
59
32
68
32
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT COUNT( DISTINCT 64 ) DIV - + 81 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3770
SELECT COUNT ( DISTINCT 64 ) / - + 81 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 68 * - col1 AS col1 FROM tab0 AS cor0
----
-1428
-5508
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT MAX( - ( + col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3772
SELECT MAX ( - ( + col2 ) ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 * + + 82 * + 39 AS col2 FROM tab0
----
-10
67158
-47
259038
-99
3198

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3774
SELECT ALL 24 * - CAST( - - col0 AS DECIMAL ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 24 * - CAST ( - - col0 AS REAL ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + 76 + - - COUNT( * ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + 76 + - - COUNT ( * ) FROM tab2
----
79

query I rowsort
SELECT col2 * + + col1 + + + col0 FROM tab0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT col2 + - - 24 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3777
SELECT col2 + - - 24 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) * + + col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT DISTINCT - + 93 * + 22, + SUM( DISTINCT - - 61 ) AS col1 FROM tab2 AS cor0
----
-2046
61

skipif mysql # not compatible
query II rowsort label-3779
SELECT DISTINCT - + 93 * + 22, + SUM ( DISTINCT - - 61 ) AS col1 FROM tab2 AS cor0
----
-2046
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + COUNT( DISTINCT + ( + - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT + COUNT ( DISTINCT + ( + - col1 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 + - col1 - 55 * - col2 * - col0 AS col0 FROM tab2
----
-140800
-239250
-58190

query I rowsort
SELECT ALL 25 + + col1 AS col2 FROM tab1
----
30
39
72

query I rowsort
SELECT - + col0 + - 20 AS col2 FROM tab0 AS cor0
----
-107
-117
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT ALL MAX( ALL + - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * 17 AND NULL NOT BETWEEN NULL AND CAST( + 3 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL MAX ( ALL + - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * 17 AND NULL NOT BETWEEN NULL AND CAST ( + 3 AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - + ( - + col2 ) + col0
----

query I rowsort
SELECT + 54 + + + col1 FROM tab2 cor0
----
105
121
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT DISTINCT 35 DIV - MAX( col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT 35 / - MAX ( col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + 14 / + col2 / 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3789
SELECT CAST( NULL AS DECIMAL ) * + + ( + - col0 ) AS col2, 21 AS col1 FROM tab0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-3789
SELECT CAST ( NULL AS REAL ) * + + ( + - col0 ) AS col2, 21 AS col1 FROM tab0
----
NULL
21
NULL
21
NULL
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3790
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + col0 DIV col1 FROM tab2
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + col0 / col1 FROM tab2
----
NULL
0
NULL
1

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND + 85 + ( col0 )
----

query I rowsort
SELECT DISTINCT - 75 + + - 25 AS col2 FROM tab0
----
-100

query I rowsort
SELECT 94 - + 41 AS col0 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL COUNT( - 12 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL COUNT ( - 12 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3795
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - + col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-198
-20
-94

query I rowsort
SELECT col2 + + + col1 + - col2 * - col2 * - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL > col0 * - - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT + MIN( DISTINCT ( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + MIN ( DISTINCT ( + col1 ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE ( 3 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + 72 AS col0 FROM tab1
----
123
157
163

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT + 24 DIV 19 - + col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-3802
SELECT + 24 / 19 - + col2 FROM tab0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT SUM( ALL - 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT SUM ( ALL - 20 ) FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT + 81 DIV + 61 - - col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3804
SELECT + 81 / + 61 - - col0 FROM tab0
----
16
88
98

query I rowsort
SELECT + 2 + col0 AS col2 FROM tab0
----
17
89
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3806
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col1 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 * - ( - 15 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT CAST ( NULL AS REAL ) * - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 * - ( - 15 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT IN ( col2 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT MAX( 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3808
SELECT MAX ( 21 ) FROM tab2
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= col2 * - 71
----

query I rowsort
SELECT DISTINCT 6 FROM tab0 WHERE - col1 IS NOT NULL
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - col1 IS NULL
----

query I rowsort
SELECT - 99 + ( + col1 + - col1 ) FROM tab1
----
-99
-99
-99

query I rowsort
SELECT ALL col0 + 58 FROM tab0
----
145
155
73

query I rowsort
SELECT ALL col2 - col1 AS col2 FROM tab1 WHERE ( 15 + ( 4 ) ) = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL - COUNT( * ) + - COUNT( + 35 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - COUNT ( * ) + - COUNT ( + 35 ) FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 - 60 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 50 AND NULL
----

query I rowsort
SELECT ALL 95 * + col0 FROM tab0
----
1425
8265
9215

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - ( + ( - 7 ) ) IN ( + 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * col1 + - col2 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT col1 * - 54 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT ALL + 17 * - col2 AS col2 FROM tab1 WHERE NOT ( 20 + + col1 ) IS NULL
----
-1003
-1156
-1632

query I rowsort
SELECT ALL - col1 - + col1 FROM tab1 WHERE NOT + 67 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * 96 AS col1 FROM tab0 cor0
----
2016
7776
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT col2 DIV col0 + ( ( col2 ) ) FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-3826
SELECT col2 / col0 + ( ( col2 ) ) FROM tab0 AS cor0
----
10
100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + col0 col2 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT DISTINCT + 52 * 90 + - 38 AS col1 FROM tab0 AS cor0
----
4642

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3830
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3830
SELECT DISTINCT * FROM tab0 WHERE col1 * - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 55 * col1 + 50
----

query I rowsort
SELECT ALL - 96 + col0 FROM tab2 cor0
----
-21
-32
-50

query I rowsort
SELECT DISTINCT ( - 90 ) AS col1 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT col0 * - ( 60 ) FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - ( ( - col1 ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT 67 * - COUNT( * ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3838
SELECT 67 * - COUNT ( * ) FROM tab0 AS cor0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT + 41 DIV 72 - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3839
SELECT + 41 / 72 - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT 37 * - 52 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT 37 * - 52 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col2 <> col0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT + col0 * + - col0 - + col1 FROM tab2
----
-2167
-4173
-5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + - col1 - - 62 * col2 col2 FROM tab2
----
1433
2461
3587

query I rowsort
SELECT DISTINCT col0 * 89 AS col1 FROM tab0
----
1335
7743
8633

query I rowsort
SELECT ALL 26 * + + 77 FROM tab2
----
2002
2002
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT - COUNT( * ) DIV + 26 * 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - COUNT ( * ) / + 26 * 63 FROM tab1
----
0

query I rowsort
SELECT col2 * ( - col2 ) * 69 FROM tab2
----
-110400
-232116
-36501

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT - col1 DIV - 90 * + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT - col1 / - 90 * + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3850
SELECT DISTINCT * FROM tab0 WHERE + ( 56 ) * ( col2 * col2 ) - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3850
SELECT DISTINCT * FROM tab0 WHERE + ( 56 ) * ( col2 * col2 ) - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * col1 - - col1 * col2 )
----

query I rowsort
SELECT + + 88 AS col1 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT - + col2 DIV col2 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3853
SELECT - + col2 / col2 col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT + + CAST( + 66 AS SIGNED ) FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-3856
SELECT + + CAST ( + 66 AS INTEGER ) FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL - SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - ( 32 ) AS col2 FROM tab1 AS cor0 WHERE + 92 < ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT COUNT( * ) * SUM( ALL 61 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4941

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( * ) * SUM ( ALL 61 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4941

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( 62 )
----

query I rowsort
SELECT col0 * + + col0 + - 50 FROM tab0 AS cor0
----
175
7519
9359

query I rowsort
SELECT ALL + - ( - ( + - 29 ) ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL + SUM( - ( - col0 ) ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT ALL + SUM ( - ( - col0 ) ) col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - 46 AS col0 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT DISTINCT col0 DIV - 77 + col2 FROM tab1 AS cor0 WHERE - col0 - + col1 - 67 * - 80 <> - col1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT col0 / - 77 + col2 FROM tab1 AS cor0 WHERE - col0 - + col1 - 67 * - 80 <> - col1
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 3 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT 75 * + col0 AS col0 FROM tab1 WHERE NOT ( - 90 ) BETWEEN ( col1 ) AND 99 - - CAST( col0 AS SIGNED )
----
3825
6375
6825

skipif mysql # not compatible
query I rowsort label-3871
SELECT 75 * + col0 AS col0 FROM tab1 WHERE NOT ( - 90 ) BETWEEN ( col1 ) AND 99 - - CAST ( col0 AS INTEGER )
----
3825
6375
6825

query I rowsort
SELECT col2 + + 25 + + 8 * + col0 AS col1 FROM tab1
----
529
764
821

query I rowsort
SELECT ALL 39 FROM tab1 WHERE col2 * + col1 IN ( + col1 + - col0 )
----

query I rowsort
SELECT - ( 0 ) + - ( + + col1 ) AS col0 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - + col0 * - + 94 col1 FROM tab1
----
4875
8071
8635

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + 91 * - + 73 / - 89 + 41 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col1 + col0 + + col2 * col2 AS col1 FROM tab0
----
397
6031
9997

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT COUNT( * ) * - 65 + + MIN( col1 ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-3878
SELECT COUNT ( * ) * - 65 + + MIN ( col1 ) FROM tab2
----
-144

query I rowsort
SELECT + col2 + + col2 * + col1 AS col0 FROM tab2
----
1196
3120
3944

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 66 + + col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT - COUNT( * ) + 42 AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - COUNT ( * ) + 42 AS col0 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3883
SELECT DISTINCT - 90 * - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - 90 * - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 36 + + col0 AS col0 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT DISTINCT - col1 * - - 69 + - 18 * col2 + - 50 * + col1 AS col0 FROM tab0 cor0
----
-10485
-1901
-2679

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 >= ( + - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 90 - - 92 - 12, col0 AS col1 FROM tab1 AS cor0
----
170
51
170
85
170
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT + CAST( NULL AS SIGNED ) * - COUNT( 60 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( 60 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - - col1 ) * col1 + + col0 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT + 2 * + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT - 75 * + col2 * + col1 FROM tab2
----
-231000
-291450
-87975

query I rowsort
SELECT - col1 * - col1 * + 92 FROM tab1
----
18032
203228
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT ALL - 25 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - 25 / + + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + MAX( ALL - col1 ) * + - COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3895
SELECT + MAX ( ALL - col1 ) * + - COUNT ( * ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col0 * + 27 FROM tab1
----
-1377
-2295
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + COUNT( + + 70 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3897
SELECT + COUNT ( + + 70 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + ( - 16 ) FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL - COUNT( DISTINCT - col0 ) + + MIN( + col0 - - 47 ) * + COUNT( * ) FROM tab1 WHERE + col0 > - col2
----
291

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - COUNT ( DISTINCT - col0 ) + + MIN ( + col0 - - 47 ) * + COUNT ( * ) FROM tab1 WHERE + col0 > - col2
----
291

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - 57, col0 )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( - + col1 ) * + - col0 + - col2 NOT BETWEEN + + col1 AND + 6
----
10
47
99

query II rowsort
SELECT DISTINCT 77 AS col1, + col0 - + 48 - - col2 FROM tab1 AS cor0
----
77
111
77
96
77
99

query I rowsort
SELECT ALL col1 * + - col2 * + + col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 * + col1 * + 47 + - + col2, + 96 AS col2 FROM tab1 AS cor0
----
-103891
96
-1234
96
-9308
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT DISTINCT + + col2 DIV col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + + col2 / col0 FROM tab0 AS cor0
----
0
1
3

query II rowsort
SELECT - 18 AS col2, + 10 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-460
-18
-640
-18
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + COUNT( ALL 57 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3907
SELECT + COUNT ( ALL 57 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query II rowsort
SELECT ALL col1 * - col1, - 61 AS col1 FROM tab0 AS cor0
----
-1
-61
-441
-61
-6561
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 31 AND - + col2
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 31 AND - + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT + 52 * + CAST( NULL AS SIGNED ) - + - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + 52 * + CAST ( NULL AS INTEGER ) - + - col1 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + - col2 * col0 * + 40 + - + col1 NOT IN ( + + col1 * + col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col1 ) col2, - 67 - - col1 FROM tab1 AS cor0
----
14
-53
47
-20
5
-62

query I rowsort
SELECT ALL + col0 * + - ( + 89 ) * 12 + - - col1 FROM tab0
----
-103595
-15939
-92895

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL MIN( - 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL MIN ( - 89 ) FROM tab0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT + 22 DIV + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT + 22 / + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL 41 + - - COUNT( * ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL 41 + - - COUNT ( * ) AS col2 FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col2 + - col0 AS col2, 39 + col1 col1 FROM tab1
----
1293
53
210
44
3105
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + COUNT( * ) + - 36 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3919
SELECT + COUNT ( * ) + - 36 FROM tab0 cor0
----
-33

query I rowsort
SELECT - - 61 + + col0 + - - ( - col0 ) * - col1 FROM tab2 AS cor0
----
2453
5053
5161

query I rowsort
SELECT + 42 + col1 * + col0 FROM tab1 AS cor0
----
4319
467
756

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 93 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - - 31 AS col0 FROM tab2 AS cor0
----
31
31
31

query II rowsort
SELECT DISTINCT col2 + 32, + 74 AS col2 FROM tab1
----
100
74
128
74
91
74

query II rowsort
SELECT DISTINCT col0 * 15 AS col0, ( - - 48 ) AS col2 FROM tab2
----
1125
48
690
48
960
48

query I rowsort
SELECT DISTINCT + + 50 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT + MAX( ALL - col0 ) + - COUNT( * ) / - 26 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + MAX ( ALL - col0 ) + - COUNT ( * ) / - 26 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-115
-168
-208

query I rowsort
SELECT ALL - col2 * - + col2 * + 70 AS col0 FROM tab1 AS cor0
----
243670
323680
645120

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT - COUNT( DISTINCT 30 ) AS col2 FROM tab1 cor0 WHERE ( - col0 * - 85 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT - COUNT ( DISTINCT 30 ) AS col2 FROM tab1 cor0 WHERE ( - col0 * - 85 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT 43 AS col2, + AVG ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
43
NULL

query I rowsort
SELECT DISTINCT - col1 * 87 AS col2 FROM tab0
----
-1827
-7047
-87

query I rowsort
SELECT - ( - 30 ) AS col2 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + - col2 * 58 AS col1 FROM tab1 AS cor0
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT - 38 * + - MIN( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
2014

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - 38 * + - MIN ( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
2014

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - ( + - col2 ) + col0 - + col0 / + col2 * ( + - col2 ) * col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col2, - col2 + - 73 * - col1 FROM tab2 AS cor0
----
46
3700
64
5581
75
4833

query I rowsort
SELECT ALL 19 * col0 + col2 FROM tab0 cor0
----
1663
1942
332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 3 col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col2 col2 FROM tab0
----
100
128
31

query II rowsort
SELECT ALL - col0 AS col1, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT ALL col0 + + + col1 * + - col1 AS col2 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT ALL col1 * - - 23 FROM tab0
----
1863
23
483

query II rowsort
SELECT ALL + col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - - 82 FROM tab2 AS cor0 WHERE NOT - col0 + + + 67 IN ( + - col2 + - 7, col0 )
----
82
82
82

query I rowsort
SELECT - col0 * 51 + + - 97 AS col2 FROM tab0 AS cor0
----
-4534
-5044
-862

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + - 61 AS col0 FROM tab1 AS cor0 WHERE + 24 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 < - col2 * 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col2 ) + + - col0 - + col1 AS col1 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT 72 + + + col2 - col1 FROM tab2
----
35
44
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - 58
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 80 + - 50 FROM tab1
----
30
30
30

query I rowsort
SELECT DISTINCT - ( 41 ) * + col1 + + - col1 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT DISTINCT col1 * + col2 + - + 94 + ( - - 71 ) * + - col2 FROM tab1 AS cor0
----
-1726
-3988
-5566

query I rowsort
SELECT - col2 * + 53 - 84 * + col2 FROM tab1
----
-13152
-8083
-9316

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3959
SELECT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT ( 44 ) FROM tab1
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( ( 56 ) ) ) * + 21 col2 FROM tab2 AS cor0
----
1176
1176
1176

query II rowsort
SELECT col2 AS col0, 98 * + + 37 AS col1 FROM tab1 AS cor0
----
59
3626
68
3626
96
3626

query I rowsort
SELECT - + ( - 30 ) AS col1 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT - - 93 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3964
SELECT - - 93 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + - col1 AS INTEGER )
----

query II rowsort
SELECT DISTINCT - 50 AS col2, col0 + - 36 AS col2 FROM tab2 AS cor0
----
-50
10
-50
28
-50
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + - ( + ( + SUM( + col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + - ( + ( + SUM ( + col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + ( - ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL <= + col2
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT ALL + SUM( - + 93 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
-279
3

skipif mysql # not compatible
query II rowsort label-3969
SELECT ALL + SUM ( - + 93 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
-279
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 NOT BETWEEN ( - ( + - ( + - col1 ) ) ) + + col2 AND + + col0
----
87
21
10

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0, col0 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT 92 * + COUNT( * ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT 92 * + COUNT ( * ) FROM tab1 AS cor0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 * + - 74 * - - col2 + col2 * col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3974
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 * + - 74 * - - col2 + col2 * col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - + 87 ) FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 29 * - col1 BETWEEN + - ( 65 ) AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT + col1 - + 5 AS col1 FROM tab1 AS cor0 WHERE + 16 IS NOT NULL
----
0
42
9

query I rowsort
SELECT ALL - + col2 * + + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT - + CAST( + col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + CAST ( + col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT 40 DIV + ( - col2 ) + 24 AS col2 FROM tab0 AS cor0
----
20
24
24

skipif mysql # not compatible
query I rowsort label-3981
SELECT 40 / + ( - col2 ) + 24 AS col2 FROM tab0 AS cor0
----
20
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 38 col0 FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + col0 ) ) >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT col1 DIV - col1 - 77 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3984
SELECT col1 / - col1 - 77 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 WHERE + 27 IS NULL
----

query II rowsort
SELECT + col2, - 21 FROM tab0
----
10
-21
47
-21
99
-21

query I rowsort
SELECT - 48 - + + col2 FROM tab0
----
-147
-58
-95

query II rowsort
SELECT col2 - - 29 + + col1 * - col0 AS col0, col1 - + col1 FROM tab1
----
-337
0
-4180
0
-589
0

query I rowsort
SELECT DISTINCT col0 + + - col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT ALL col1 + - + CAST( NULL AS SIGNED ) - - 65 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL col1 + - + CAST ( NULL AS INTEGER ) - - 65 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 98, + 56 AS col0 FROM tab1 cor0
----
98
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + + SUM( 10 ) + 69 col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3992
SELECT + + SUM ( 10 ) + 69 col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - + 92 + + col1 + - col0 FROM tab0 AS cor0
----
-158
-188
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT DISTINCT - CAST( 40 AS SIGNED ), + col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-40
15
-40
87
-40
97

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT - CAST ( 40 AS INTEGER ), + col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-40
15
-40
87
-40
97

query I rowsort
SELECT + 83 + + col1 FROM tab1 AS cor0
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + COUNT( * ) * + 35 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3996
SELECT + COUNT ( * ) * + 35 FROM tab1 AS cor0
----
105

query II rowsort
SELECT DISTINCT col1 * + col2 * col0 * - col0 * - col2 AS col2, col2 FROM tab1
----
125751125
59
1799693168
68
335591424
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT MIN( - 9 ), + COUNT( * ) AS col2 FROM tab0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3998
SELECT MIN ( - 9 ), + COUNT ( * ) AS col2 FROM tab0
----
-9
3

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT MIN( DISTINCT - ( + 32 ) ) AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT MIN ( DISTINCT - ( + 32 ) ) AS col1 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT + MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT + MAX ( col2 ) FROM tab2
----
58

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 AS col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT COUNT( * ) * + 33 AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( * ) * + 33 AS col0 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 86, col2 col1 FROM tab2
----
86
23
86
40
86
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4007
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, 8 + 41 * + - ( col0 ) col0 FROM tab1 AS cor0
----
59
-3477
68
-3723
96
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT MAX( - 35 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-4009
SELECT MAX ( - 35 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 13 >= ( - 5 )
----

query I rowsort
SELECT ALL 93 * - col0 * col1 + + col2 * - 53 FROM tab2 AS cor0
----
-219397
-460424
-470399

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + COUNT( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT col0 + + - 52, col2 FROM tab0 AS cor0
----
-37
47
35
10
45
99

query I rowsort
SELECT ALL - col1 * 91 AS col2 FROM tab2 AS cor0
----
-4641
-6097
-7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE NOT ( 8 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 = ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 AND + - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col0 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col0 col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - + 20 ) + - 48 * - col0 FROM tab0
----
4156
4636
700

query I rowsort
SELECT + col0 * 17 AS col0 FROM tab0
----
1479
1649
255

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - + 15 AND NULL
----

query I rowsort
SELECT ALL + col1 + - col2 * + col0 * + 83 AS col1 FROM tab2
----
-212403
-360983
-87763

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT ( + - col2 ) DIV - 28 + col2 FROM tab0
----
10
102
48

skipif mysql # not compatible
query I rowsort label-4024
SELECT ( + - col2 ) / - 28 + col2 FROM tab0
----
10
102
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - MIN( DISTINCT - 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-4025
SELECT - MIN ( DISTINCT - 80 ) FROM tab0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) < - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT DISTINCT CAST( + COUNT( + - col0 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT CAST ( + COUNT ( + - col0 ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

query II rowsort
SELECT ALL col1, + 25 FROM tab2 AS cor0
----
51
25
67
25
77
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL - MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - + COUNT( DISTINCT - + 39 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - + COUNT ( DISTINCT - + 39 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 82 * + 44 * + col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT MIN( ALL + - ( ( + 92 ) ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4035
SELECT MIN ( ALL + - ( ( + 92 ) ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT MAX( DISTINCT + col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT MAX ( DISTINCT + col2 ) col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + COUNT( * ) * + 33 AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4037
SELECT + COUNT ( * ) * + 33 AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT + 23 * + 16 + 17 * + COUNT( * ) AS col0 FROM tab2
----
419

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + 23 * + 16 + 17 * + COUNT ( * ) AS col0 FROM tab2
----
419

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + - col0 + 61 * - + 83 FROM tab1
----
-5128
-5153
-5201

query II rowsort
SELECT DISTINCT + ( + + 52 ) AS col1, 2 FROM tab1 AS cor0
----
52
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab1 cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT - 29 + + - col2 + + - col2 * + ( CAST( + 81 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-1915
-3309
-4785

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 29 + + - col2 + + - col2 * + ( CAST ( + 81 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-1915
-3309
-4785

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT 47 + + 98, COUNT( * ) AS col0 FROM tab2 AS cor0
----
145
3

skipif mysql # not compatible
query II rowsort label-4044
SELECT 47 + + 98, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
145
3

query I rowsort
SELECT - ( + col0 ) + col2 * + 26 - - col2 FROM tab1
----
1508
1745
2541

query III rowsort
SELECT * FROM tab0 WHERE 41 * - col0 IS NULL
----

query I rowsort
SELECT col0 * 21 AS col2 FROM tab2
----
1344
1575
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - - MIN( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4048
SELECT - - MIN ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT + 62 + - - ( - CAST( NULL AS SIGNED ) ) - - col2 / - - 17 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4049
SELECT DISTINCT + 62 + - - ( - CAST ( NULL AS INTEGER ) ) - - col2 / - - 17 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL CAST( NULL AS SIGNED ) * - 89 * + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL CAST ( NULL AS INTEGER ) * - 89 * + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 * 6 AS col1 FROM tab0 AS cor0
----
558
558
558

query I rowsort
SELECT + 98 * - 6 FROM tab0 AS cor0
----
-588
-588
-588

query I rowsort
SELECT ALL - ( - 41 ) FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + ( - + 74 ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT - col2 - - - col2 + col0 FROM tab0
----
-101
-79
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - - col2
----

query I rowsort
SELECT ( + 56 ) - + ( - + col2 ) FROM tab0
----
103
155
66

query I rowsort
SELECT - 36 + - - ( - - col2 ) FROM tab1
----
23
32
60

query I rowsort
SELECT DISTINCT col1 * + 24 AS col0 FROM tab1
----
1128
120
336

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT + col2 + - col0 DIV - col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + col2 + - col0 / - col0 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE + ( + 15 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + 87 - - col1 col2 FROM tab2
----
-532
-542
-558

query III rowsort
SELECT ALL * FROM tab2 WHERE + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 33 AS col1 FROM tab1 cor0
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( col0, - col1 / 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + + ( 60 ) * - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
-6180

skipif mysql # not compatible
query I rowsort label-4067
SELECT + + ( 60 ) * - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
-6180

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL COUNT( * ) * + COUNT( * ) * - 18 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - 18 FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL + - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + col1 * - + 5 AS col0 FROM tab2 AS cor0
----
-255
-335
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT - SUM( DISTINCT - ( CAST( + col0 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4071
SELECT - SUM ( DISTINCT - ( CAST ( + col0 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT 48 DIV - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT 48 / - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4073
SELECT + ( 83 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 55 + + ( + CAST( + + col2 AS DECIMAL ) ) + - - 38, - ( + 10 ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-4073
SELECT + ( 83 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 55 + + ( + CAST ( + + col2 AS REAL ) ) + - - 38, - ( + 10 ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - COUNT( * ) * 33 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT - COUNT ( * ) * 33 FROM tab1 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 > - - 85
----

query I rowsort
SELECT ALL - ( - 51 ) FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 88 * + 91 + - COUNT( * ) FROM tab0
----
8005

skipif mysql # not compatible
query I rowsort label-4077
SELECT 88 * + 91 + - COUNT ( * ) FROM tab0
----
8005

query I rowsort
SELECT DISTINCT col0 + + 83 + + 38 * + + 82 * + 40 * - - col0 FROM tab0
----
10843850
12090260
1869698

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL MIN( DISTINCT + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT ALL - 20 * - - col1 * CAST( NULL AS SIGNED ) + + col2 / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - 20 * - - col1 * CAST ( NULL AS INTEGER ) + + col2 / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 45 FROM tab0
----
-36
24
44

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE + 1 * - col0 <> + col0
----
10
47
99

query II rowsort
SELECT + col1, + col0 * col1 * + col0 FROM tab1 AS cor0
----
14
36414
47
389207
5
36125

query I rowsort
SELECT DISTINCT - + 16 FROM tab1 cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT 16 + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
13

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 16 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4086
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4087
SELECT - col0 DIV - CAST( - 33 AS SIGNED ) FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4087
SELECT - col0 / - CAST ( - 33 AS INTEGER ) FROM tab1
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT MIN( ALL + - 39 ) AS col1, + 94 + + 27 * - + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-39
-149

skipif mysql # not compatible
query II rowsort label-4088
SELECT MIN ( ALL + - 39 ) AS col1, + 94 + + 27 * - + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-39
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT - col0 + + CAST( 54 AS SIGNED ) FROM tab2
----
-10
-21
8

skipif mysql # not compatible
query I rowsort label-4089
SELECT - col0 + + CAST ( 54 AS INTEGER ) FROM tab2
----
-10
-21
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 97 - + 76 FROM tab0 AS cor0
----
21
21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 69 BETWEEN NULL AND ( - + col2 ) / col0
----

query I rowsort
SELECT - 20 AS col0 FROM tab2 cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT 65 - - col2 + - 25 AS col0 FROM tab1
----
108
136
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT ALL - 78 FROM tab0 WHERE NOT + 25 * - CAST( - ( - + 64 ) AS SIGNED ) * + - col2 + + - col1 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - 78 FROM tab0 WHERE NOT + 25 * - CAST ( - ( - + 64 ) AS INTEGER ) * + - col2 + + - col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NULL >= - + col2
----

query I rowsort
SELECT - col0 * + - col0 + - + ( col1 ) AS col2 FROM tab1 cor0
----
2587
7220
8234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 63 ) col2 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + 31 * + + col1 FROM tab1 cor0
----
1457
155
434

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 51 ) col2 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

query I rowsort
SELECT ALL - 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 88 * - 51 FROM tab1
----
-4488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + CAST( + ( + 63 ) AS SIGNED ) col2 FROM tab1 cor0
----
63
63
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4106
SELECT ALL + CAST ( + ( + 63 ) AS INTEGER ) col2 FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT + + 17 * - col1 AS col0 FROM tab2 AS cor0
----
-1139
-1309
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 AS cor0 WHERE NOT - col2 * 23 + + + 83 NOT IN ( + + ( 48 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT - COUNT( * ) * + MAX( - + 51 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - COUNT ( * ) * + MAX ( - + 51 ) FROM tab2 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query II rowsort label-4110
SELECT - col1 * - - col2 DIV col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-4110
SELECT - col1 * - - col2 / col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4111
SELECT - CAST( NULL AS SIGNED ) AS col0, SUM( ALL - - col0 ) FROM tab2
----
NULL
185

skipif mysql # not compatible
query II rowsort label-4111
SELECT - CAST ( NULL AS INTEGER ) AS col0, SUM ( ALL - - col0 ) FROM tab2
----
NULL
185

query II rowsort
SELECT + 22 AS col1, col1 FROM tab0
----
22
1
22
21
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + MAX( + + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4113
SELECT + MAX ( + + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - ( - ( + + col2 ) ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - col1 * ( 51 ) AS col2 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT col2 * - col0 + + 69 FROM tab0
----
-636
-801
-9534

query I rowsort
SELECT + - ( + + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT COUNT( ALL - - 11 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT COUNT ( ALL - - 11 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL - + SUM( ALL - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + COUNT( - - col1 ) + - 77 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4121
SELECT + COUNT ( - - col1 ) + - 77 FROM tab0 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE - - 88 * + col0 BETWEEN NULL AND 50 * - - col2
----

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col0 FROM tab2
----
104
133
69

query II rowsort
SELECT ALL col0 * col0 + col2 - - col2, + col0 AS col1 FROM tab2 AS cor0
----
2162
46
4176
64
5741
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT - CAST( + ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4125
SELECT - CAST ( + ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + COUNT( * ) + + - 33 AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + COUNT ( * ) + + - 33 AS col2 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT ALL + + COUNT( * ) AS col0, + SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-4127
SELECT ALL + + COUNT ( * ) AS col0, + SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
3
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= - 32 * - 73 * col1 * - + ( - col2 ) + col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 - + 69 + col1 - + col0 * col0 FROM tab2 cor0
----
-2088
-4024
-5552

query I rowsort
SELECT + col0 - + - col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 7 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - + col0
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT + - col2 * - CAST( - - col1 AS SIGNED ) - col2 - - - col1 col2 FROM tab2 AS cor0
----
1099
2963
3761

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4134
SELECT + - col2 * - CAST ( - - col1 AS INTEGER ) - col2 - - - col1 col2 FROM tab2 AS cor0
----
1099
2963
3761

query I rowsort
SELECT DISTINCT - col0 - col0 + - 28 AS col1 FROM tab1 AS cor0
----
-130
-198
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT ALL - COUNT( * ) AS col2, 53 FROM tab0 AS cor0
----
-3
53

skipif mysql # not compatible
query II rowsort label-4136
SELECT ALL - COUNT ( * ) AS col2, 53 FROM tab0 AS cor0
----
-3
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT - 37 - + MAX( + col1 ) + + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4137
SELECT - 37 - + MAX ( + col1 ) + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT COUNT( * ) - + + 28 + + 18 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT COUNT ( * ) - + + 28 + + 18 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT - 31 * col1 - 90 FROM tab2 AS cor0
----
-1671
-2167
-2477

query II rowsort
SELECT col1, col2 * + + 59 FROM tab0 AS cor0
----
1
5841
21
590
81
2773

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4141
SELECT - AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT - AVG ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - COUNT( + col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - COUNT ( + col0 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT - 1 DIV - + 15 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 1 / - + 15 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL - + COUNT( * ) * 51 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - + COUNT ( * ) * 51 FROM tab0 AS cor0
----
-153

query I rowsort
SELECT ALL + - col0 * - - col2 * + + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT ALL 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + MIN( ALL 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4148
SELECT + MIN ( ALL 14 ) FROM tab1
----
14

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + - 25 + - col0 - - 40 * + ( + - col0 ) * - + 91 <= NULL
----

query I rowsort
SELECT + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4151
SELECT 64 col0, COUNT( * ) DIV + 82 - 92 AS col0 FROM tab2 AS cor0
----
64
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4151
SELECT 64 col0, COUNT ( * ) / + 82 - 92 AS col0 FROM tab2 AS cor0
----
64
-92

query I rowsort
SELECT - 48 * col0 AS col2 FROM tab2 cor0
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4153
SELECT ALL - COUNT( * ) * + + 93 DIV + 46 + 64 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - COUNT ( * ) * + + 93 / + 46 + 64 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT - - col2 * - + 94 + + col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

query I rowsort
SELECT ALL col2 + - - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL ( + 79 ) FROM tab2 cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT CAST( NULL AS SIGNED ) + col1 / - 26 * + ( - CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT CAST ( NULL AS INTEGER ) + col1 / - 26 * + ( - CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col0 - + - col0 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + ( 73 ) + COUNT( * ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4159
SELECT + ( 73 ) + COUNT ( * ) AS col2 FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT col0 + - CAST( - - 70 AS SIGNED ) FROM tab2
----
-24
-6
5

skipif mysql # not compatible
query I rowsort label-4160
SELECT col0 + - CAST ( - - 70 AS INTEGER ) FROM tab2
----
-24
-6
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + col0 DIV - 42 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + col0 / - 42 AS col0 FROM tab0
----
-2
-2
0

query I rowsort
SELECT ALL - 5 + - col2 FROM tab1
----
-101
-64
-73

query III rowsort
SELECT * FROM tab0 WHERE NULL < 56 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT 15 * + - MIN( ALL 82 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT 15 * + - MIN ( ALL 82 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 / + 93 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - ( - + col1 ) - + - col0 + - - col0 FROM tab1 AS cor0
----
116
175
229

query I rowsort
SELECT ALL col1 * + + 24 FROM tab1
----
1128
120
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT - - 20 AS col2 FROM tab2 WHERE ( - - col1 ) / + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - 20 AS col2 FROM tab2 WHERE ( - - col1 ) / + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT col2 - - col0 + - + col2 + col1 - + + col1 + - col2 * - 21 FROM tab0 AS cor0
----
1002
2176
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + + COUNT( * ) + 81 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4170
SELECT + + COUNT ( * ) + 81 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL - 76 + 64 AS col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab0 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4173
SELECT ALL col0 AS col1, + 54 + + - CAST( NULL AS SIGNED ) - - col2 col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4173
SELECT ALL col0 AS col1, + 54 + + - CAST ( NULL AS INTEGER ) - - col2 col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL ( ( + + 60 ) ) AS col0 FROM tab2
----
60
60
60

query I rowsort
SELECT + ( col0 ) / + col0 + col0 + ( + col0 ) * - col1 * - - col1 * + - col2 * - + col0 + + col2 + 7 AS col1 FROM tab0 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT ALL col1, + 79 FROM tab1
----
14
79
47
79
5
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4178
SELECT CAST ( - MAX ( DISTINCT + col0 ) AS INTEGER ) FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT MIN( DISTINCT - col2 ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT MIN ( DISTINCT - col2 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT + col2 AS col0, - col1 AS col0 FROM tab1 WHERE NOT + + col1 IS NULL
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4182
SELECT DISTINCT + col2 AS col2, 36 DIV + 97 FROM tab2 cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-4182
SELECT DISTINCT + col2 AS col2, 36 / + 97 FROM tab2 cor0
----
23
0
40
0
58
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 > col1
----

query I rowsort
SELECT + col0 + + - ( + 52 ) * + - col0 FROM tab0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT DISTINCT - - SUM( + - 14 ) AS col2, - 71 FROM tab0 AS cor0
----
-42
-71

skipif mysql # not compatible
query II rowsort label-4185
SELECT DISTINCT - - SUM ( + - 14 ) AS col2, - 71 FROM tab0 AS cor0
----
-42
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT + - ( col1 ) DIV - + 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4186
SELECT + - ( col1 ) / - + 88 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col1 * - 81 AS col1, + col2 FROM tab0 AS cor0
----
-1701
10
-6561
47
-81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT + 84 DIV - col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 84 / - col2 AS col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col2 + 66 AS col1 FROM tab1
----
-2
-30
7

query III rowsort
SELECT * FROM tab2 WHERE ( + 75 ) >= 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 7 ) + + col1 col2, + col1 AS col0 FROM tab1
----
-2
5
40
47
7
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( ALL - 58 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( ALL - 58 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col1 * - col2 * + 62 AS col1 FROM tab1
----
-18290
-198152
-83328

query III rowsort
SELECT * FROM tab1 WHERE - 87 + col0 NOT BETWEEN + 95 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - + col1 + + 31 + - - 51 - - + ( 68 ) FROM tab2 AS cor0
----
2751
4639
6079

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT + 52 + + CAST( NULL AS SIGNED ) * - col2 + + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 52 + + CAST ( NULL AS INTEGER ) * - col2 + + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - COUNT( DISTINCT 43 ) * 42 AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4198
SELECT - COUNT ( DISTINCT 43 ) * 42 AS col0 FROM tab1 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT + col0 DIV - - ( col0 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4200
SELECT + col0 / - - ( col0 ) AS col1 FROM tab0
----
1
1
1

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE + + ( + 26 ) IS NULL
----

query I rowsort
SELECT - 54 AS col2 FROM tab0 cor0
----
-54
-54
-54

query I rowsort
SELECT ALL - ( - 62 ) AS col1 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 0 * - - 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4206
SELECT DISTINCT - col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 38 * col2 AS col1 FROM tab1
----
-2242
-2584
-3648

query III rowsort
SELECT ALL * FROM tab0 WHERE - 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT - 88 DIV - - col0 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - 88 / - - col0 AS col1 FROM tab0
----
-1
-5
0

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 86 < col2
----
15
81
47
87
21
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 90 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + - COUNT( * ) AS col1 FROM tab1 WHERE NOT + 29 / + ( + col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 29 / + ( + col1 ) <= NULL
----
0

query II rowsort
SELECT DISTINCT + 35, col1 FROM tab2
----
35
51
35
67
35
77

query II rowsort
SELECT - col1 AS col0, 39 - + col1 * col1 AS col0 FROM tab2 cor0
----
-51
-2562
-67
-4450
-77
-5890

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 - + col1 AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4217
SELECT ALL 96, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + 47 NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4217
SELECT ALL 96, - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT + 47 NOT BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE ( col1 + col2 + + + ( + 57 ) + col1 + - - 27 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT + CAST( - col0 AS SIGNED ) * + - col2 + + col0 FROM tab1
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-4220
SELECT + CAST ( - col0 AS INTEGER ) * + - col2 + + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL + CAST( SUM( ALL - col0 ) AS SIGNED ) FROM tab1 WHERE - + col2 + CAST( - CAST( - - 29 AS SIGNED ) AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + CAST ( SUM ( ALL - col0 ) AS INTEGER ) FROM tab1 WHERE - + col2 + CAST ( - CAST ( - - 29 AS INTEGER ) AS INTEGER ) >= NULL
----
NULL

query II rowsort
SELECT ALL col1 * + 39 AS col2, + col1 + - col1 AS col2 FROM tab2
----
1989
0
2613
0
3003
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - ( + + COUNT( * ) ) * + 26 + MIN( DISTINCT - 87 ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - ( + + COUNT ( * ) ) * + 26 + MIN ( DISTINCT - 87 ) FROM tab1
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT CAST( + COUNT( col1 ) AS SIGNED ) * + 20 AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-4224
SELECT CAST ( + COUNT ( col1 ) AS INTEGER ) * + 20 AS col1 FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + 67 DIV - col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 67 / - col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT ALL - col0 * - ( 26 ) FROM tab0
----
2262
2522
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 63, col0 col0 FROM tab1 AS cor0
----
-63
51
-63
85
-63
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT + col2 * - + 12 AS col0 FROM tab2 AS cor0 WHERE NOT 27 + - 35 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4228
SELECT + col2 * - + 12 AS col0 FROM tab2 AS cor0 WHERE NOT 27 + - 35 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 84 FROM tab0 AS cor0
----
1260
7308
8148

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT DISTINCT col2 DIV + - col0 - - - col0 * + col0 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT DISTINCT col2 / + - col0 - - - col0 * + col0 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - 64 * + - 6 AS col0 FROM tab2
----
384
384
384

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + - 26
----

query I rowsort
SELECT DISTINCT + col2 * 74 * 45 FROM tab2
----
133200
193140
76590

query II rowsort
SELECT - col2 * - col0 AS col0, - col1 FROM tab0
----
705
-81
870
-21
9603
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT col0 + + 24 AS col1 FROM tab0
----
111
121
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL - COUNT( * ) * SUM( + 50 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4050

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - COUNT ( * ) * SUM ( + 50 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4050

query III rowsort
SELECT * FROM tab2 WHERE 47 IS NULL
----

query I rowsort
SELECT ALL ( col2 ) + + + 61 AS col1 FROM tab2 AS cor0
----
101
119
84

query I rowsort
SELECT + 54 * - 75 FROM tab1 cor0
----
-4050
-4050
-4050

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + 4 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 44 ) col1 FROM tab1 cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ALL + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - 48 - - col1 FROM tab1 AS cor0
----
-1
-34
-43

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 17 * + + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 37 - + col2 FROM tab1
----
-105
-133
-96

query I rowsort
SELECT col1 * + col1 - - col2 * + + 30 FROM tab0
----
2971
741
7971

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT 25 + ( - - SUM( ALL 35 ) ) + - - MIN( + + 57 ) + + COUNT( * ) FROM tab0
----
190

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT 25 + ( - - SUM ( ALL 35 ) ) + - - MIN ( + + 57 ) + + COUNT ( * ) FROM tab0
----
190

query I rowsort
SELECT - col1 * + - col1 - col1 FROM tab1
----
182
20
2162

query II rowsort
SELECT DISTINCT col1, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT - col0 * col1 + + + 88 + + 97 DIV - 61 FROM tab1
----
-338
-4190
-627

skipif mysql # not compatible
query I rowsort label-4253
SELECT - col0 * col1 + + + 88 + + 97 / - 61 FROM tab1
----
-338
-4190
-627

query I rowsort
SELECT DISTINCT + col1 + + 70 AS col0 FROM tab1
----
117
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL col0 DIV + col1 + + - col2 - col0 + + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1
15
34

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL col0 / + col1 + + - col2 - col0 + + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1
15
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * + 79 + + col1 col0 FROM tab0 cor0
----
-3474
-3534
-3554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 - - col1, + col2 col2 FROM tab2 cor0
----
58
23
74
58
84
40

query I rowsort
SELECT ALL + - 77 AS col0 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT MIN( - + col2 ) * + + 61 AS col0 FROM tab0 AS cor0
----
-6039

skipif mysql # not compatible
query I rowsort label-4259
SELECT MIN ( - + col2 ) * + + 61 AS col0 FROM tab0 AS cor0
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT COUNT( + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4260
SELECT COUNT ( + col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL + 80 * + + MIN( - - 23 ) - COUNT( * ) * - - SUM( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
2437

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + 80 * + + MIN ( - - 23 ) - COUNT ( * ) * - - SUM ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
2437

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT ALL 40 * col1 + - - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1881
201
561

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL 40 * col1 + - - col0 / + col0 AS col2 FROM tab1 AS cor0
----
1881
201
561

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - - SUM( + 70 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
210

skipif mysql # not compatible
query I rowsort label-4264
SELECT - - SUM ( + 70 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT - CAST( - COUNT( - - col0 ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - CAST ( - COUNT ( - - col0 ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT + col1 + + 80 AS col2 FROM tab1
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + 49 + - COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 49 + - COUNT ( * ) FROM tab1
----
46

query I rowsort
SELECT ALL + 66 + - col2 AS col0 FROM tab1
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - SUM( ALL + + col1 ) * + + COUNT( * ) * - 17 FROM tab0
----
5253

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - SUM ( ALL + + col1 ) * + + COUNT ( * ) * - 17 FROM tab0
----
5253

query I rowsort
SELECT - col1 * 23 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT DISTINCT - COUNT( * ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

query I rowsort
SELECT ( + ( - col2 ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT 78 ) AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT 78 ) AS col0 FROM tab1
----
234

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN ( + 88 * - col1 ) AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 42 <= ( ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT SUM( DISTINCT + 43 ) FROM tab2 WHERE NOT ( NULL ) = 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT SUM ( DISTINCT + 43 ) FROM tab2 WHERE NOT ( NULL ) = 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + ( - COUNT( col0 ) ) * MIN( 47 ) col0 FROM tab2
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT + ( - COUNT ( col0 ) ) * MIN ( 47 ) col0 FROM tab2
----
-141

query I rowsort
SELECT 70 * col2 AS col1 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + ( 44 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT ALL ( - col2 ) DIV col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL ( - col2 ) / col0 AS col0 FROM tab0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 * + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT - SUM( - CAST( 36 AS SIGNED ) ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - SUM ( - CAST ( 36 AS INTEGER ) ) FROM tab1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT - CAST( col2 AS SIGNED ) * - col2 FROM tab2 WHERE NOT col2 IS NULL
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4284
SELECT - CAST ( col2 AS INTEGER ) * - col2 FROM tab2 WHERE NOT col2 IS NULL
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT DISTINCT 97 DIV col1 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT 97 / col1 FROM tab1
----
19
2
6

query I rowsort
SELECT - col0 + + ( col1 ) * col1 FROM tab0
----
-96
354
6546

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( 22 ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL + 79 FROM tab1 WHERE NOT col0 / col0 < ( + col2 ) * - ( - 27 )
----

query I rowsort
SELECT ALL 65 * - ( - 13 ) AS col2 FROM tab0
----
845
845
845

query I rowsort
SELECT DISTINCT - 22 - 25 * - 50 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - AVG ( ALL 24 ) + + COUNT( * ) * 49 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - AVG ( ALL 24 ) + + COUNT ( * ) * 49 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 64 + 92 / col0 > col1 * col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE NOT ( NULL ) >= col2
----

query I rowsort
SELECT col0 + - 10 * - col0 FROM tab0
----
1067
165
957

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col1 * col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4297
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + 28 AND CAST( 91 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4297
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + 28 AND CAST ( 91 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 43 IN ( col0 / - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 66 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4300
SELECT ALL CAST( NULL AS DECIMAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL CAST ( NULL AS REAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 54 FROM tab0 cor0 CROSS JOIN tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4302
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4302
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * col2 - ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 31 ) IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4303
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * col2 - ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 31 ) IN ( + col0 )
----

query I rowsort
SELECT ALL - AVG ( - ( col1 ) ) * + AVG ( ALL + 78 + + 53 ) FROM tab1 AS cor0 WHERE NOT + col1 IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT MIN( ( 57 ) ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT MIN ( ( 57 ) ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4306
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + col2 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT SUM( 13 ) * COUNT( * ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-4307
SELECT SUM ( 13 ) * COUNT ( * ) AS col2 FROM tab1
----
117

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( 6 )
----

query III rowsort
SELECT * FROM tab0 WHERE 78 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( - col0 + + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4311
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND ( CAST( NULL AS DECIMAL ) * ( - col0 * + 79 ) )
----

skipif mysql # not compatible
query III rowsort label-4311
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND ( CAST ( NULL AS REAL ) * ( - col0 * + 79 ) )
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + MAX( ALL 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + MAX ( ALL 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 94 + - 14 FROM tab2 cor0
----
-108
-108
-108

query I rowsort
SELECT - col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT 45 + - 36 AS col2 FROM tab2
----
9

query I rowsort
SELECT + 47 + + 88 AS col2 FROM tab1 WHERE ( NULL BETWEEN + col1 AND col0 * + 6 )
----

query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 99 * + - col2 + + col0 FROM tab1 AS cor0
----
-5756
-6641
-9453

query I rowsort
SELECT DISTINCT + 5 * col0 - + + 76 FROM tab0 AS cor0
----
-1
359
409

query I rowsort
SELECT 3 FROM tab2 AS cor0 WHERE - col1 * + + 10 - col1 IS NOT NULL
----
3
3
3

query I rowsort
SELECT DISTINCT - col1 + - col1 FROM tab2 AS cor0 WHERE NOT - col1 - 13 * - col2 NOT IN ( col2 )
----

query I rowsort
SELECT ALL + 60 - ( - 21 ) FROM tab2 AS cor0
----
81
81
81

query II rowsort
SELECT DISTINCT - - col2 AS col0, + 18 FROM tab2 AS cor0
----
23
18
40
18
58
18

query I rowsort
SELECT + - col1 * + - col2 - + - col0 * col1 AS col0 FROM tab1 AS cor0
----
2058
720
7473

query I rowsort
SELECT 27 - col1 AS col2 FROM tab1 AS cor0
----
-20
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL SUM( DISTINCT col2 ) + + - COUNT( * ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL SUM ( DISTINCT col2 ) + + - COUNT ( * ) FROM tab2
----
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col2 ) col1 FROM tab2 WHERE ( + - 15 ) > + col1
----

query I rowsort
SELECT + col0 * - 46 AS col1 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 18 * 7 FROM tab0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * + + col0 col1 FROM tab2
----
1024
1200
736

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( + ( 30 ) + + col1 / - col2 ) AND ( 89 )
----
-59
-68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 6 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT ALL col2 AS col0 FROM tab0 WHERE + ( - CAST( NULL AS SIGNED ) ) * - 21 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL col2 AS col0 FROM tab0 WHERE + ( - CAST ( NULL AS INTEGER ) ) * - 21 IS NOT NULL
----

query II rowsort
SELECT 44 AS col0, + col2 + + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
118
44
136
44
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) >= col0 * + ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-4337
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) >= col0 * + ( - col1 )
----

query I rowsort
SELECT col1 * - 41 FROM tab1 AS cor0 WHERE NOT - col1 <> 19 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT + ( + + col1 ) * - CAST( - - 69 AS SIGNED ) * + col0 + 43 FROM tab1 AS cor0
----
-29282
-295070
-49223

skipif mysql # not compatible
query I rowsort label-4339
SELECT + ( + + col1 ) * - CAST ( - - 69 AS INTEGER ) * + col0 + 43 FROM tab1 AS cor0
----
-29282
-295070
-49223

query I rowsort
SELECT DISTINCT + + 92 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - SUM( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4341
SELECT - SUM ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL - SUM( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - SUM ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL - ( + + 3 ) FROM tab0 AS cor0
----
-3
-3
-3

query II rowsort
SELECT ALL + col1 AS col1, ( + col2 ) * col2 * + col0 + col1 FROM tab0 AS cor0
----
1
950698
21
8721
81
33216

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + MIN( ALL + col2 ) + ( - COUNT( * ) ) AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4346
SELECT + MIN ( ALL + col2 ) + ( - COUNT ( * ) ) AS col2 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE ( NULL IN ( + CAST( + 36 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE ( NULL IN ( + CAST ( + 36 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT DISTINCT CAST( - 59 AS SIGNED ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT CAST ( - 59 AS INTEGER ) FROM tab2
----
-59

query I rowsort
SELECT 97 + + col2 FROM tab1
----
156
165
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL + 54 * - + COUNT( ALL 0 ) + - - 6 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + 54 * - + COUNT ( ALL 0 ) + - - 6 FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT COUNT( * ) + - COUNT( - col2 ) * - SUM( + col2 ) AS col1 FROM tab0
----
471

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT COUNT ( * ) + - COUNT ( - col2 ) * - SUM ( + col2 ) AS col1 FROM tab0
----
471

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( - col2 * - - 33 * + col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT ALL + col0 DIV + col0 + + + col0 - col1 + 99 AS col0 FROM tab2
----
108
87
95

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + col0 / + col0 + + + col0 - col1 + 99 AS col0 FROM tab2
----
108
87
95

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 50 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4355
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 )
----
3

query I rowsort
SELECT - 56 + - + col2 - - col0 FROM tab1
----
-101
-30
-33

query II rowsort
SELECT col2 + - + col1 AS col1, ( 55 ) AS col0 FROM tab2
----
-28
55
-37
55
-9
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4358
SELECT ALL CAST( NULL AS DECIMAL ) - + col1 FROM tab2 AS cor0 WHERE - 30 IN ( + col0 / + ( + + 53 ) * - ( + - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL CAST ( NULL AS REAL ) - + col1 FROM tab2 AS cor0 WHERE - 30 IN ( + col0 / + ( + + 53 ) * - ( + - col0 ) )
----

query I rowsort
SELECT ALL - - col1 * + - 78 AS col1 FROM tab0 cor0
----
-1638
-6318
-78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - + 19 * - SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
-3781

skipif mysql # not compatible
query I rowsort label-4361
SELECT - + 19 * - SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3781

query I rowsort
SELECT 88 * + - 71 AS col2 FROM tab1
----
-6248
-6248
-6248

query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab1 WHERE NOT - col0 = - col0
----

query II rowsort
SELECT ALL col1, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT 37 * + col2 AS col0 FROM tab2
----
1480
2146
851

query II rowsort
SELECT ALL col1, 47 FROM tab2 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 * - col2 + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * 76 * - - col0 * - col0 * 34 - + col0
----

query II rowsort
SELECT 79, col0 AS col1 FROM tab2 AS cor0
----
79
46
79
64
79
75

query I rowsort
SELECT DISTINCT col1 * - col0 * col1 AS col1 FROM tab2
----
-119646
-336675
-379456

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 7 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT + CAST( + ( - col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT + CAST ( + ( - col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 * + 37 AND + 69 + - 58
----

query I rowsort
SELECT + 44 + - col2 FROM tab1 AS cor0 WHERE col1 * - 42 IN ( - - col0, col2, + - ( - col0 ) + - 27 )
----

query I rowsort
SELECT ALL - col0 * + col2 FROM tab1 cor0 WHERE col2 + ( - 94 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT + col2 * + - col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL NOT IN ( + + ( - col1 ) + - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 70 AS col0 FROM tab1
----
-51
70
-85
70
-91
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL - col0 * + - 84 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT DISTINCT - col1 * - + 25 * + col2 + col2 FROM tab2
----
29348
77040
97208

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + col0 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL + col0 - - col1 + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + col0 - - col1 + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT 1 + - COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4385
SELECT 1 + - COUNT ( * ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 60 ) / - col2 IN ( - 62 )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NOT ( - + 83 ) NOT IN ( - col1 ) )
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - col1 BETWEEN 17 * + 82 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 49 - 71 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT * FROM tab2 WHERE + - 42 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 < - 46
----

query II rowsort
SELECT + col2 * - - col1 - - + ( col1 ) AS col1, col1 AS col0 FROM tab2
----
1224
51
3157
77
3953
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4393
SELECT DISTINCT + - MIN( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT + - MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - ( ( - 69 ) ) AS col2 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT - - MAX( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4396
SELECT - - MAX ( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39, + col1 col1 FROM tab2 AS cor0
----
39
51
39
67
39
77

query II rowsort
SELECT col2, + ( + col2 ) FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT - col0 AS col0, col2 * + + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4399
SELECT - col0 AS col0, col2 * + + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT COUNT( * ) * - MAX( DISTINCT - ( - col2 ) ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-4400
SELECT COUNT ( * ) * - MAX ( DISTINCT - ( - col2 ) ) FROM tab0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT SUM( DISTINCT - + 43 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT SUM ( DISTINCT - + 43 ) FROM tab1
----
-43

query I rowsort
SELECT DISTINCT col2 * - - 98 FROM tab0
----
4606
9702
980

query I rowsort
SELECT col1 * - - ( 6 ) AS col2 FROM tab0
----
126
486
6

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 54 <= ( NULL ) )
----

query II rowsort
SELECT DISTINCT + 89 * - col1, - col0 * col0 AS col0 FROM tab2
----
-4539
-2116
-5963
-5625
-6853
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL 10 * - MAX( + + col2 ) FROM tab1
----
-960

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 10 * - MAX ( + + col2 ) FROM tab1
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + + col0 DIV + col2 + col0 * + col0 + + col0 FROM tab0 AS cor0
----
240
7664
9506

skipif mysql # not compatible
query I rowsort label-4407
SELECT + + col0 / + col2 + col0 * + col0 + + col0 FROM tab0 AS cor0
----
240
7664
9506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 + - col1 + - 24 ) IS NULL
----

query II rowsort
SELECT + 59 AS col2, 96 + - col1 + 24 FROM tab2
----
59
43
59
53
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL col1 / 3 AS col2 FROM tab0 cor0 WHERE NOT - col1 * - 34 <> + 36
----

query II rowsort
SELECT + col1 AS col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + 47 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4413
SELECT + 47 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT ALL + 66 + - - col0 + ( + 96 ) * + col1 FROM tab0 AS cor0
----
2169
259
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT DISTINCT - + 13 DIV + + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - + 13 / + + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 67 - - 45 * + col2 * - col1 * ( + - col1 ) * col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( + + 15, + 29 )
----
123833543
683020733
878721683

query I rowsort
SELECT ALL 59 * col0 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT - COUNT( * ) DIV MIN( - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - COUNT ( * ) / MIN ( - col1 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 + + 81 AS col0 FROM tab0 AS cor0
----
0
60
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 38 + - + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 38 + - + col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL + MIN( DISTINCT - - 34 ) - - COUNT( * ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + MIN ( DISTINCT - - 34 ) - - COUNT ( * ) AS col0 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT - SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4424
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + - 15 + + col2 * - col1 IS NULL AND - 38 - - 97 IS NULL
----

query I rowsort
SELECT ALL - col2 * col1 + - ( + - 47 ) + + + col1 AS col0 FROM tab2 AS cor0
----
-1075
-2956
-3772

query I rowsort
SELECT 69 + ( + 80 ) FROM tab2, tab2 AS cor0
----
9 values hashing to e405bda2d02faef1ec0a7731ac2315a4

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4429
SELECT DISTINCT CAST( NULL AS SIGNED ), + COUNT( - ( - - 41 ) ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4429
SELECT DISTINCT CAST ( NULL AS INTEGER ), + COUNT ( - ( - - 41 ) ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 - - col0 + - - col2 - + + col1 / - + 95 * - 9 * - col0 AND - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT - - 83 * + - MIN( 97 ) FROM tab2 AS cor0
----
-8051

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - - 83 * + - MIN ( 97 ) FROM tab2 AS cor0
----
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4433
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 37 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT ( - col1 ) * + 31 FROM tab2 AS cor0
----
-1581
-2077
-2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT - 67 * col1 FROM tab1
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT COUNT( ALL - - col2 ) * + COUNT( + + 83 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4438
SELECT COUNT ( ALL - - col2 ) * + COUNT ( + + 83 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT - ( + - 63 ) AS col2 FROM tab0
----
63
63
63

query II rowsort
SELECT ALL col0, - col0 * + col0 * ( 33 ) FROM tab1
----
51
-85833
85
-238425
91
-273273

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT + col0 * + col1 DIV + col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4441
SELECT + col0 * + col1 / + col1 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17, col2 col0 FROM tab0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT + ( COUNT( * ) ) * + 61 col2 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4443
SELECT + ( COUNT ( * ) ) * + 61 col2 FROM tab0
----
183

query I rowsort
SELECT DISTINCT col0 * + col1 * + col2 * - 37 AS col2 FROM tab0
----
-2112885
-355311
-675990

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col1
----

query I rowsort
SELECT ALL - 98 / - col2 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL
----

query II rowsort
SELECT - - col1 AS col1, + col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
51
-2300
67
-4950
77
-4864

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 + - 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 / - col0 - - 47 / + col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - + MAX( 82 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - + MAX ( 82 ) FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT DISTINCT + - 42 / - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + - 42 / - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT ALL + 60 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 60 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + 69 - COUNT( * ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-4454
SELECT + 69 - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - 24 * - COUNT( * ) - - - ( 15 ) + + MAX( col1 ) AS col2 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-4455
SELECT - 24 * - COUNT ( * ) - - - ( 15 ) + + MAX ( col1 ) AS col2 FROM tab0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) / + + col1 * ( - - 81 ) * + ( - ( - col2 ) ) - + col1 * + 44 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) / + + col1 * ( - - 81 ) * + ( - ( - col2 ) ) - + col1 * + 44 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col1 - - 79 > ( col0 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + 66 * - col0 + + col0 + + + 58 + + col2 + + 27 FROM tab1
----
-3134
-5381
-5762

query I rowsort
SELECT ALL 73 FROM tab2 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT - col0 + col1 - col0 * - col1 + 40 FROM tab0
----
1321
1801
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT - 94 + + col0 AS col0 FROM tab0 AS cor0
----
-7
-79
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 + - - col1 + col0 col2, - 61 - 46 * ( col1 ) AS col0 FROM tab2 cor0
----
102
-2407
146
-3603
147
-3143

query I rowsort
SELECT DISTINCT - col1 - + 7 FROM tab0 AS cor0
----
-28
-8
-88

query I rowsort
SELECT + 54 * + 60 FROM tab0 AS cor0
----
3240
3240
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + - COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT MAX( CAST( NULL AS SIGNED ) ) * - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT MAX ( CAST ( NULL AS INTEGER ) ) * - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT COUNT( DISTINCT + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT COUNT ( DISTINCT + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT SUM( + 72 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT SUM ( + 72 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT ALL - col0 DIV - + col0 FROM tab1 cor0 WHERE - col0 NOT BETWEEN + 30 AND NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL - col0 / - + col0 FROM tab1 cor0 WHERE - col0 NOT BETWEEN + 30 AND NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ( MAX( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4472
SELECT ( MAX ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 96 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + + 7 ) FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - - 10 AS col0 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4476
SELECT * FROM tab2 WHERE NOT NULL > + 43 + col2 + + + col0 - + + CAST( + col1 AS SIGNED ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4476
SELECT * FROM tab2 WHERE NOT NULL > + 43 + col2 + + + col0 - + + CAST ( + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + + 75 col1 FROM tab2
----
3825
5025
5775

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * + ( + 17 ) col0 FROM tab2
----
748
748
748

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - 7 * + col0 FROM tab2
----
14812
28672
39375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4483
SELECT * FROM tab0 WHERE NOT + ( + - CAST( + col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4483
SELECT * FROM tab0 WHERE NOT + ( + - CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + 11 AS col1 FROM tab1
----
154
517
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT 20 DIV 88 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT 20 / 88 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col0, - 38 FROM tab0
----
15
-38
87
-38
97
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + COUNT( * ) + - COUNT( ALL + - 99 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT + COUNT ( * ) + - COUNT ( ALL + - 99 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4489
SELECT col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col1 / + col1 + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col1 / + col1 + - col1 IS NOT NULL
----
-3

query II rowsort
SELECT ALL + col1, - 17 FROM tab1 AS cor0
----
14
-17
47
-17
5
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT ALL + MIN( DISTINCT 15 ), + COUNT( DISTINCT + 87 ) AS col0 FROM tab1 AS cor0
----
15
1

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL + MIN ( DISTINCT 15 ), + COUNT ( DISTINCT + 87 ) AS col0 FROM tab1 AS cor0
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT + ( + SUM( ALL + col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT + ( + SUM ( ALL + col2 ) ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - 78 + + - col2 FROM tab2 AS cor0
----
20
38
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE NOT - col2 / - col0 = col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT DISTINCT COUNT( ALL - 25 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT COUNT ( ALL - 25 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 57 >= + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 50 + + 5 FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT + CAST( col1 AS SIGNED ) * 80 FROM tab0
----
1680
6480
80

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * 80 FROM tab0
----
1680
6480
80

query III rowsort
SELECT * FROM tab2 WHERE - + 64 - + - 0 + - col2 + col2 > + col1 + + 84 * + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT + col0 DIV + 18 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-4501
SELECT + col0 / + 18 FROM tab0
----
0
4
5

query I rowsort
SELECT col1 * - col2 - col0 AS col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT DISTINCT - 83 * - col0 + - 98 FROM tab0
----
1147
7123
7953

query I rowsort
SELECT col0 * - col0 - col2 * + col0 - + 56 FROM tab1 AS cor0
----
-12296
-14525
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL SUM( DISTINCT - 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL SUM ( DISTINCT - 83 ) FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT + COUNT( * ) * 39 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT + COUNT ( * ) * 39 FROM tab0 AS cor0
----
117

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 * col0 < - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT 24 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT 24 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 <> + col1 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT - + 78 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-78

query II rowsort
SELECT DISTINCT col0, + 78 + + col1 + - + col2 AS col1 FROM tab0 AS cor0
----
15
112
87
89
97
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + 86 AND ( + col2 + + + ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - 45 + + - 45 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - MAX( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT - MAX ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL + ( ( + - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - + SUM( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - + SUM ( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col0 + ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4520
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 16 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + CAST ( NULL AS REAL ) + 16 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL - 47 DIV - + col1 + + 1 AS col0 FROM tab1
----
10
2
4

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 47 / - + col1 + + 1 AS col0 FROM tab1
----
10
2
4

query I rowsort
SELECT - - 91 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 * 12 AS col1, - col0 * + - col1 + + 67 FROM tab1
----
1152
781
708
492
816
4344

query I rowsort
SELECT DISTINCT - ( + + ( - + col0 ) ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + + COUNT( - 94 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4525
SELECT + + COUNT ( - 94 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 32 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0 + 27, 31 * - - 38 AS col0 FROM tab2 AS cor0
----
-19
1178
-37
1178
-48
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT - 14 DIV - - col0 + + col0 * - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - 14 / - - col0 + + col0 * - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
-60

query I rowsort
SELECT ALL + - col2 - - ( + + col1 ) - + 74 AS col2 FROM tab2 AS cor0
----
-37
-46
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, + 61 AS col2 FROM tab2 AS cor0
----
-23
61
-40
61
-58
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT + - col0 DIV 34 + + 87 - + 45 FROM tab0 AS cor0
----
40
40
42

skipif mysql # not compatible
query I rowsort label-4532
SELECT + - col0 / 34 + + 87 - + 45 FROM tab0 AS cor0
----
40
40
42

query I rowsort
SELECT DISTINCT + 65 * + ( - + 63 ) + 13 - - col1 FROM tab1 AS cor0
----
-4035
-4068
-4077

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT COUNT( * ) - + 50 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4535
SELECT COUNT ( * ) - + 50 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 48 - col1 + - + 56 * - + 15 AS col1 FROM tab2 AS cor0
----
811
821
837

query I rowsort
SELECT + col0 - - 43 - - col0 AS col2 FROM tab1 AS cor0
----
145
213
225

query I rowsort
SELECT DISTINCT + 60 * + - col1 * + 15 + - 84 FROM tab0
----
-18984
-72984
-984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL CAST( NULL AS SIGNED ) / - + 86 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL CAST ( NULL AS INTEGER ) / - + 86 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 13 col2 FROM tab0
----
100
110
28

query III rowsort
SELECT * FROM tab2 WHERE - ( - col0 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 + 9 AS col0, - col0 * col2 FROM tab2
----
32
-1058
49
-2560
67
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 AS col1, 13 AS col2, - + col2 col2 FROM tab2
----
9 values hashing to 4b8c73c5182e1ea8577779e7de825dc7

query II rowsort
SELECT col0 * + col0 AS col1, 67 FROM tab2 AS cor0
----
2116
67
4096
67
5625
67

query I rowsort
SELECT ALL + - col1 * + - 89 * + + 96 AS col0 FROM tab2 AS cor0
----
435744
572448
657888

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT DISTINCT + + col1, 58 DIV + col0 FROM tab1 AS cor0
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-4546
SELECT DISTINCT + + col1, 58 / + col0 FROM tab1 AS cor0
----
14
1
47
0
5
0

query I rowsort
SELECT + 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT ALL - 62 DIV col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - 62 / col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( * ) * - 84 AS col2 FROM tab1 AS cor0 WHERE NOT 93 IS NULL
----
-252

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) * - 84 AS col2 FROM tab1 AS cor0 WHERE NOT 93 IS NULL
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT - + MIN( ALL - col1 ) AS col0, 15 FROM tab2 AS cor0
----
77
15

skipif mysql # not compatible
query II rowsort label-4551
SELECT - + MIN ( ALL - col1 ) AS col0, 15 FROM tab2 AS cor0
----
77
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT MIN( 99 ) * + 98 AS col0 FROM tab0 AS cor0
----
9702

skipif mysql # not compatible
query I rowsort label-4552
SELECT MIN ( 99 ) * + 98 AS col0 FROM tab0 AS cor0
----
9702

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT + col1 DIV + col0, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
5
-81

skipif mysql # not compatible
query II rowsort label-4553
SELECT + col1 / + col0, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
5
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT - MIN( DISTINCT ( CAST( - col2 AS SIGNED ) ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4554
SELECT - MIN ( DISTINCT ( CAST ( - col2 AS INTEGER ) ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT 27 * - 3 * ( + col2 ) * col1 + + col1 FROM tab2 cor0
----
-249403
-314699
-94962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT - - col1 FROM tab1 WHERE NOT + 66 BETWEEN NULL AND - col2 + + CAST( NULL AS SIGNED ) * - 55
----

skipif mysql # not compatible
query I rowsort label-4556
SELECT - - col1 FROM tab1 WHERE NOT + 66 BETWEEN NULL AND - col2 + + CAST ( NULL AS INTEGER ) * - 55
----

query I rowsort
SELECT 31 + 41 AS col0 FROM tab2
----
72
72
72

query I rowsort
SELECT ALL + col1 + + - 44 AS col0 FROM tab0
----
-23
-43
37

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col0 * + col2 + - 42 / - 27 * + 40 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - - col1 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 26 * 19 + + col1 AS col2 FROM tab2 WHERE ( NULL ) >= 37
----

query I rowsort
SELECT DISTINCT col2 + + 71 * + col0 AS col2 FROM tab2
----
3289
4584
5383

query I rowsort
SELECT + col0 * - col1 * - col1 * - col0 AS col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL - ( SUM( col1 ) ) AS col2, + SUM( + - 17 ) AS col1 FROM tab1
----
-66
-51

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - ( SUM ( col1 ) ) AS col2, + SUM ( + - 17 ) AS col1 FROM tab1
----
-66
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - SUM( + + 81 ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-4565
SELECT - SUM ( + + 81 ) FROM tab2
----
-243

query II rowsort
SELECT col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - SUM( ALL - col1 ) + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + - col1 * + + col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT ALL - SUM ( ALL - col1 ) + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( + - col1 * + + col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - + 66 FROM tab2 WHERE + 21 <> + + col2
----
-66
-66
-66

query I rowsort
SELECT + col0 + ( 42 ) FROM tab1 cor0
----
127
133
93

query I rowsort
SELECT ALL + ( - col2 ) * - col2 - - + col1 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL + CAST( NULL AS SIGNED ) * 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + CAST ( NULL AS INTEGER ) * 78 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 20 * - - ( - 82 ) FROM tab2, tab2 cor0
----
9 values hashing to ea2721ad2fe7f55cfef960904a3c5ed1

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 * col1 * 74 AS col1 FROM tab2
----
14586880
21567300
3992892

query II rowsort
SELECT - col0 AS col1, + col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT + + col1 * + + col2 AS col1 FROM tab1 WHERE NOT ( col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + 16 FROM tab1
----
59
16
68
16
96
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT col2 * + 61 AS col0 FROM tab2
----
1403
2440
3538

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 18 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT COUNT( DISTINCT col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4582
SELECT COUNT ( DISTINCT col2 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4583
SELECT DISTINCT 26 AS col0, COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4583
SELECT DISTINCT 26 AS col0, COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
26
NULL

query I rowsort
SELECT - 15 * - 20 AS col2 FROM tab0
----
300
300
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT DISTINCT - col0 * + CAST( - 58 AS SIGNED ) FROM tab0 AS cor0
----
5046
5626
870

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - col0 * + CAST ( - 58 AS INTEGER ) FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 49 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT + ( - + 44 ) AS col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4589
SELECT ALL + - ( ( col2 ) ) DIV 43 - - col2 col2 FROM tab0 AS cor0
----
10
46
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4589
SELECT ALL + - ( ( col2 ) ) / 43 - - col2 col2 FROM tab0 AS cor0
----
10
46
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT DISTINCT col2 + col1 + + CAST( - + 39 AS SIGNED ) * col1 * - col0 + col0 FROM tab0 AS cor0
----
3980
47528
71371

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT col2 + col1 + + CAST ( - + 39 AS INTEGER ) * col1 * - col0 + col0 FROM tab0 AS cor0
----
3980
47528
71371

query II rowsort
SELECT + - ( - + 16 ), - 73 AS col1 FROM tab1 AS cor0
----
16
-73
16
-73
16
-73

query I rowsort
SELECT DISTINCT - - 4 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4593
SELECT + MIN ( - col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 17 + + col1 * col0 FROM tab0
----
1198
1810
80

query I rowsort
SELECT 8 * col0 FROM tab1
----
408
680
728

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col1 FROM tab1
----
21
54
82

query II rowsort
SELECT ALL col2 * col0 + - 47 AS col1, col2 * + - 29 FROM tab0
----
658
-1363
823
-290
9556
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + COUNT( ALL + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT + COUNT ( ALL + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) + 23 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) + 23 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + + 80 + + - COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4601
SELECT + + 80 + + - COUNT ( * ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT + col1 + - col0, + 77 + - col1 AS col2 FROM tab2 AS cor0 WHERE + 33 / + 46 IS NOT NULL
----
-8
10
13
0
5
26

query II rowsort
SELECT ALL col1 AS col1, + ( - col2 ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + 49 - - - MAX( ALL + col1 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 49 - - - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 2 + - ( - col2 ) col2 FROM tab2 cor0
----
119
127
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL - 16 - - 78 DIV 53 FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - 16 - - 78 / 53 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT 70 - + - 45 AS col1 FROM tab0 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT DISTINCT ( 23 ) - 80 col2, MAX( ALL 46 ) FROM tab0 AS cor0
----
-57
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4609
SELECT DISTINCT ( 23 ) - 80 col2, MAX ( ALL 46 ) FROM tab0 AS cor0
----
-57
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT + ( 58 ) DIV - + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT + ( 58 ) / - + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL + + SUM( ALL + 74 ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + + SUM ( ALL + 74 ) FROM tab2 AS cor0
----
222

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 = ( + + 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col0 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / - - col0 * col0 - - 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT + 92 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab0
----
103

query III rowsort
SELECT * FROM tab0 WHERE NOT 93 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + + ( + COUNT( * ) ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT + + ( + COUNT ( * ) ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT CAST( + - 30 AS SIGNED ) AS col0 FROM tab0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4620
SELECT CAST ( + - 30 AS INTEGER ) AS col0 FROM tab0
----
-30
-30
-30

query II rowsort
SELECT ALL col2 * - col0 + + col2 AS col1, 27 * + 82 FROM tab1 AS cor0
----
-4800
2214
-4956
2214
-6120
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + + MIN( DISTINCT + + col0 ) * + 82 FROM tab0 AS cor0
----
1230

skipif mysql # not compatible
query I rowsort label-4622
SELECT + + MIN ( DISTINCT + + col0 ) * + 82 FROM tab0 AS cor0
----
1230

query I rowsort
SELECT + - col0 * - 80 * - 53 + + + col0 AS col2 FROM tab1 AS cor0
----
-216189
-360315
-385749

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT ALL + col1 * col0 DIV + ( 57 ) + + 49 AS col1 FROM tab0 AS cor0
----
50
70
81

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + col1 * col0 / + ( 57 ) + + 49 AS col1 FROM tab0 AS cor0
----
50
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT MIN( + ( 50 ) ) col1 FROM tab2
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4625
SELECT MIN ( + ( 50 ) ) col1 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT 39 * + COUNT( * ) AS col1 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-4626
SELECT 39 * + COUNT ( * ) AS col1 FROM tab1
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + ( col2 ) + + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + ( col2 ) + + - col2 FROM tab0
----
NULL

query II rowsort
SELECT + ( - col2 ) AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 52 ) / + col1 + col1 IS NULL
----

query I rowsort
SELECT ALL - + 17 + + col0 AS col2 FROM tab2 AS cor0
----
29
47
58

query II rowsort
SELECT ALL - col1 AS col2, 45 + col2 FROM tab2 cor0
----
-51
68
-67
103
-77
85

query I rowsort
SELECT DISTINCT - 82 * 21 * - - col2 - + 95 * col1 - - col2 FROM tab1
----
-102014
-121493
-166546

query II rowsort
SELECT ALL - col2 AS col2, - ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN + col2 AND col2 * - 84 )
----

query II rowsort
SELECT DISTINCT + col0 * - col2, - 2 FROM tab0 AS cor0 WHERE NULL IN ( col1, + 76 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 < - 60 + 72 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT - COUNT( - ( col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - COUNT ( - ( col2 ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT NULL BETWEEN col1 * - 36 * col0 * + ( + 90 ) / + col1 + + 35 + CAST( - col0 AS SIGNED ) / + + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT NULL BETWEEN col1 * - 36 * col0 * + ( + 90 ) / + col1 + + 35 + CAST ( - col0 AS INTEGER ) / + + col0 AND NULL
----

query II rowsort
SELECT ALL - 43, col0 AS col2 FROM tab1
----
-43
51
-43
85
-43
91

query II rowsort
SELECT ALL col1, + col1 FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 94 ) col1 FROM tab1
----
94
94
94

query I rowsort
SELECT col1 + + col1 * col1 AS col0 FROM tab2
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT - + COUNT( * ) * 98 - + 78 AS col1, 41 FROM tab0 WHERE NOT 14 = - col0 - - - col0 * - 33
----
-372
41

skipif mysql # not compatible
query II rowsort label-4644
SELECT - + COUNT ( * ) * 98 - + 78 AS col1, 41 FROM tab0 WHERE NOT 14 = - col0 - - - col0 * - 33
----
-372
41

query I rowsort
SELECT ALL - + 35 * + col0 + - col0 + + ( + 53 ) FROM tab0 cor0
----
-3079
-3439
-487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab2 AS cor0 WHERE NOT + col2 + - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT - - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT DISTINCT AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) * 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) * 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT col1 DIV col0 + col1 FROM tab0 cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-4649
SELECT col1 / col0 + col1 FROM tab0 cor0
----
1
21
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE + 46 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4653
SELECT - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE + col2 * 62 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4653
SELECT - - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE + col2 * 62 >= NULL
----

query I rowsort
SELECT 38 * - + 40 AS col2 FROM tab1 AS cor0
----
-1520
-1520
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT DISTINCT col1 * - col0 - - + 14 + - - col2 - col0 + + 64 + - + CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT col1 * - col0 - - + 14 + - - col2 - col0 + + 64 + - + CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4656
SELECT + col1, - 61 DIV - col1 AS col2 FROM tab1
----
14
4
47
1
5
12

skipif mysql # not compatible
query II rowsort label-4656
SELECT + col1, - 61 / - col1 AS col2 FROM tab1
----
14
4
47
1
5
12

query I rowsort
SELECT ( - col1 ) - - 21 - + 56 FROM tab2
----
-102
-112
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + + col1 / 83 col0 FROM tab1 WHERE - 42 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL MIN( DISTINCT - - 24 ) + - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL MIN ( DISTINCT - - 24 ) + - COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT ALL col2 - - ( + ( - 58 ) ) FROM tab2 AS cor0
----
-18
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + MAX( DISTINCT col0 ) - COUNT( ALL - - 27 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + MAX ( DISTINCT col0 ) - COUNT ( ALL - - 27 ) AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT col0 + + 33 AS col0 FROM tab1 cor0
----
118
124
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 67 ) IS NULL
----

query II rowsort
SELECT + col0, - col2 AS col1 FROM tab0 cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 41 + + 16 IN ( 2, 71 * col1, + col1, - - col0, + 55 + + 95 + col0 + col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT - - COUNT( * ) AS col2, - MIN( ALL - col0 ) FROM tab0 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-4667
SELECT - - COUNT ( * ) AS col2, - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
3
97

query I rowsort
SELECT - col2 * - col2 * - 12 AS col1 FROM tab1 AS cor0
----
-110592
-41772
-55488

query I rowsort
SELECT ALL + 47 * + 6 * - ( + 47 ) + col2 * + col1 FROM tab2 AS cor0
----
-10174
-12081
-9368

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + - MAX( DISTINCT + ( - 27 ) ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4670
SELECT + - MAX ( DISTINCT + ( - 27 ) ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 <> + 9 * 24
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 <= col2
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT DISTINCT + + col2 DIV + col0 + + - col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + + col2 / + col0 + + - col0 FROM tab1 AS cor0
----
-50
-85
-91

query I rowsort
SELECT + col2 * - 66 * ( - col2 ) * - col2 / + 15 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 - col0 + - col0 * - col0 col1 FROM tab1 AS cor0
----
12467
3264
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + MAX( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4676
SELECT + MAX ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT - 33 DIV + COUNT( * ) AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 33 / + COUNT ( * ) AS col0 FROM tab1
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-4678
SELECT DISTINCT 60 DIV - - col1 AS col2, 50 * col0 FROM tab1
----
1
4550
12
4250
4
2550

skipif mysql # not compatible
query II rowsort label-4678
SELECT DISTINCT 60 / - - col1 AS col2, 50 * col0 FROM tab1
----
1
4550
12
4250
4
2550

query I rowsort
SELECT + 99 * - - 94 AS col1 FROM tab1
----
9306
9306
9306

query III rowsort
SELECT 71 * + 64, col0, col1 FROM tab0
----
9 values hashing to 96655c0deba1bc9b45fa325c4ab704ae

query I rowsort
SELECT - col2 * + 28 FROM tab2 cor0 WHERE NOT col1 * + - col2 <= - 12
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 11 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT MIN( - 13 ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4683
SELECT MIN ( - 13 ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT col2 + + col2 - col1 * - col2 AS col1 FROM tab1
----
1536
3332
413

query I rowsort
SELECT + 52 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT - 4 * + col1 * col2 * col0 DIV + - col0 AS col1 FROM tab1
----
1180
12784
5376

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 4 * + col1 * col2 * col0 / + - col0 AS col1 FROM tab1
----
1180
12784
5376

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + ( - - 72 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - ( + - MAX( 69 ) ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4689
SELECT - ( + - MAX ( 69 ) ) AS col1 FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE + 6 + + col0 - + + col1 * col0 * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 col2, 12 * + + 40 + - - col2 AS col2 FROM tab1
----
87
539
87
548
87
576

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4693
SELECT CAST( NULL AS DECIMAL ) / + + 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT CAST ( NULL AS REAL ) / + + 11 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT - col2 >= NULL
----
0

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 AS cor0 WHERE - col2 = - col2 / + 80 + col0
----

query I rowsort
SELECT ALL + 79 * - col1 FROM tab1 AS cor0
----
-1106
-3713
-395

onlyif mysql # DIV for integer division: 
query II rowsort label-4697
SELECT DISTINCT - 70 DIV 43 + - 1 * 68 - + 7 AS col1, - 24 AS col1 FROM tab2 AS cor0
----
-76
-24

skipif mysql # not compatible
query II rowsort label-4697
SELECT DISTINCT - 70 / 43 + - 1 * 68 - + 7 AS col1, - 24 AS col1 FROM tab2 AS cor0
----
-76
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT + - 24 * + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + - 24 * + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT ALL + - 24 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - 24 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT MIN( - - col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4700
SELECT MIN ( - - col2 ) AS col0 FROM tab0 cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 95 FROM tab2
----
23
-95
40
-95
58
-95

query II rowsort
SELECT 45, col0 FROM tab2
----
45
46
45
64
45
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT + col0, + ( - 27 ) + + - col2 + + + col1 FROM tab1
----
51
-109
85
-81
91
-48

query III rowsort
SELECT ALL ( + col0 ) AS col2, - col0 * col1 AS col1, + 10 FROM tab1
----
9 values hashing to e8fbe3d7f01ebbd25869760259f7ee43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col1 + + col2 + col0 - + col1 col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4707
SELECT ALL + CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4707
SELECT ALL + CAST ( NULL AS REAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT COUNT( ALL + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT COUNT ( ALL + + col1 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 67 = NULL
----

query I rowsort
SELECT ALL - 52 * 7 AS col0 FROM tab1
----
-364
-364
-364

query I rowsort
SELECT 1 * - col2 AS col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col2 + 92 / 15 + 66 >= NULL
----

query I rowsort
SELECT ALL - 26 * + + 76 AS col1 FROM tab2 AS cor0
----
-1976
-1976
-1976

query I rowsort
SELECT - + 56 + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-143
-153
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT - - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT - col2 * + col2 * + col2 + - col1 * - - col1 AS col0 FROM tab2
----
-14768
-199601
-69929

query II rowsort
SELECT DISTINCT + - col1, col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT ALL 64 * col1 DIV + col0 + 86 * + 72 FROM tab2 AS cor0
----
6249
6262
6269

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 64 * col1 / + col0 + 86 * + 72 FROM tab2 AS cor0
----
6249
6262
6269

query I rowsort
SELECT DISTINCT + - col2 + - 61 FROM tab1 AS cor0
----
-120
-129
-157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4720
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4720
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - 39 AS col1 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + 86 * + ( + 40 ) * ( col1 ) - col1 + 95 FROM tab2 cor0
----
175484
230508
264898

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT - COUNT( + + col0 ) * - + 38 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - COUNT ( + + col0 ) * - + 38 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT DISTINCT 5, + COUNT( * ) + - + 34 AS col0 FROM tab1
----
5
-31

skipif mysql # not compatible
query II rowsort label-4724
SELECT DISTINCT 5, + COUNT ( * ) + - + 34 AS col0 FROM tab1
----
5
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + COUNT( DISTINCT col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4725
SELECT ALL + COUNT ( DISTINCT col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 15 + - col0 FROM tab2
----
-31
-49
-60

query III rowsort
SELECT * FROM tab0 WHERE + - 93 * + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL - MIN( 23 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col1 - + 72 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - MIN ( 23 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col1 - + 72 AND + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 < ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT ALL col1 + - + col2 + + col1 DIV + + col1 + + col1 - + col0 DIV + col1 + - col1 * + ( - 82 ) FROM tab0
----
-111
1751
6758

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL col1 + - + col2 + + col1 / + + col1 + + col1 - + col0 / + col1 + - col1 * + ( - 82 ) FROM tab0
----
-111
1751
6758

query II rowsort
SELECT + col0 * + col1 + + + 17, col1 FROM tab1 AS cor0
----
4294
47
442
5
731
14

query II rowsort
SELECT - col2 AS col2, - 44 AS col1 FROM tab2 AS cor0
----
-23
-44
-40
-44
-58
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 96 > + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT SUM( ALL - col1 ) col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4735
SELECT SUM ( ALL - col1 ) col1 FROM tab0 cor0
----
-103

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 54 * + col2 + - col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT - col0 - CAST( - col1 AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4737
SELECT - col0 - CAST ( - col1 AS INTEGER ) FROM tab2
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN ( NULL ) AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT col2 DIV - 82 + - col1 * 99 AS col0 FROM tab2 WHERE NOT + col2 + col2 IS NULL
----
-5049
-6633
-7623

skipif mysql # not compatible
query I rowsort label-4739
SELECT col2 / - 82 + - col1 * 99 AS col0 FROM tab2 WHERE NOT + col2 + col2 IS NULL
----
-5049
-6633
-7623

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN 27 - - col0 AND 27
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL 20 * - 36 + col0 DIV 79 FROM tab2
----
-720
-720
-720

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 20 * - 36 + col0 / 79 FROM tab2
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 7 NOT BETWEEN ( - 64 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + ( ( col0 ) ) * col2 AND col2 * 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col1 FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT CAST( 20 AS SIGNED ) + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-4747
SELECT CAST ( 20 AS INTEGER ) + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4748
SELECT * FROM tab0 WHERE NOT ( 51 * col0 ) NOT BETWEEN ( CAST( + col0 AS SIGNED ) - + col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4748
SELECT * FROM tab0 WHERE NOT ( 51 * col0 ) NOT BETWEEN ( CAST ( + col0 AS INTEGER ) - + col0 ) AND NULL
----

query I rowsort
SELECT ALL 92 FROM tab2 WHERE NOT col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4750
SELECT * FROM tab2 WHERE NULL IN ( col1 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4750
SELECT * FROM tab2 WHERE NULL IN ( col1 / CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE 21 > NULL
----

query I rowsort
SELECT ALL 35 - 20 * col0 FROM tab2
----
-1245
-1465
-885

query I rowsort
SELECT + 79 * + col2 AS col0 FROM tab2
----
1817
3160
4582

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 94 + + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + 24 * COUNT( * ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4755
SELECT + 24 * COUNT ( * ) AS col1 FROM tab2
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE 90 IS NULL
----

query I rowsort
SELECT + 63 * 45 FROM tab2
----
2835
2835
2835

query I rowsort
SELECT ALL - col0 - col1 * + col2 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT ALL + 48 + col2 AS col2 FROM tab1
----
107
116
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - SUM( 77 ) * + 81 col0 FROM tab1
----
-18711

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4760
SELECT ALL - SUM ( 77 ) * + 81 col0 FROM tab1
----
-18711

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( ( - 70 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( ( - 70 ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( col2 / col1 ) NOT IN ( - col0 + - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - 72 col1 FROM tab1 AS cor0
----
-1728
-1728
-1728

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - - col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 74 FROM tab2 AS cor0 WHERE NOT ( col1 ) < NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE col2 <= ( 81 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 96 <= ( col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( ( CAST( 11 AS SIGNED ) ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4770
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( ( CAST ( 11 AS INTEGER ) ) ) IS NOT NULL
----
0

query I rowsort
SELECT 98 + - col1 FROM tab1
----
51
84
93

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + 86 BETWEEN col2 * col1 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + 0 col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - ( + col1 ) - + 13 FROM tab1 AS cor0
----
-18
-27
-60

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 68 ) * 63 AS col2 FROM tab2 AS cor0
----
4284
4284
4284

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab0 WHERE ( ( col0 ) + - col1 ) IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 96 col0 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT 13 * - - 66 FROM tab0
----
858
858
858

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - - 79 * col2 IN ( - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ( + 0 ) * - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ( + 0 ) * - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col2 > + col2 + - col2 * - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + ( COUNT( * ) ) - + 78 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-4786
SELECT + ( COUNT ( * ) ) - + 78 FROM tab0
----
-75

query I rowsort
SELECT col2 - - ( 33 ) AS col1 FROM tab1
----
101
129
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT 44 - - COUNT( DISTINCT 8 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4788
SELECT 44 - - COUNT ( DISTINCT 8 ) FROM tab0
----
45

query I rowsort
SELECT 62 * - + col2 AS col2 FROM tab1
----
-3658
-4216
-5952

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT MIN( ALL - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4791
SELECT MIN ( ALL - col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT MIN( ALL + CAST( col1 AS SIGNED ) ) * 28 AS col0 FROM tab1 AS cor0 WHERE NOT + ( col1 ) > ( col1 )
----
140

skipif mysql # not compatible
query I rowsort label-4792
SELECT MIN ( ALL + CAST ( col1 AS INTEGER ) ) * 28 AS col0 FROM tab1 AS cor0 WHERE NOT + ( col1 ) > ( col1 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( NOT col2 NOT IN ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( NOT col2 NOT IN ( col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - MIN( DISTINCT col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4796
SELECT - MIN ( DISTINCT col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL + col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - col1 * - + col0 * + ( 72 ) AS col1 FROM tab2 AS cor0
----
168912
354816
361800

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - ( + + 18 ) FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL col1 + 38 * - ( + col2 ) + + col1 FROM tab0
----
-1624
-338
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL col2 FROM tab0 WHERE NOT - - col2 * CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL col2 FROM tab0 WHERE NOT - - col2 * CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL + 56 * + COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + 56 * + COUNT ( * ) FROM tab0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 + - col0 + 13 col1 FROM tab0 cor0
----
-34
-44
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT ALL - COUNT( * ) * COUNT( * ), 36 AS col2 FROM tab2 cor0
----
-9
36

skipif mysql # not compatible
query II rowsort label-4806
SELECT ALL - COUNT ( * ) * COUNT ( * ), 36 AS col2 FROM tab2 cor0
----
-9
36

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 75 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT SUM( - 61 ) FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT SUM ( - 61 ) FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----
NULL

query I rowsort
SELECT ALL - + 49 AS col0 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 31 - - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * 68 BETWEEN ( + col1 ) AND 91 + + 21
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL - col0 DIV ( - + 45 ) + + 26 AS col2 FROM tab0
----
26
27
28

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - col0 / ( - + 45 ) + + 26 AS col2 FROM tab0
----
26
27
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN - col1 + + 49 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 76 >= ( + 97 )
----

query I rowsort
SELECT 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4816
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 - + + col1 col2 FROM tab0 cor0
----
1134
1806
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + 18 * - 17 AS col1 FROM tab1 AS cor0
----
-306
-306
-306

query I rowsort
SELECT + col0 + + - 42 FROM tab1 AS cor0
----
43
49
9

query II rowsort
SELECT ALL 12 AS col2, 64 FROM tab2
----
12
64
12
64
12
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4822
SELECT ALL - 41, - COUNT( * ) AS col2 FROM tab2
----
-41
-3

skipif mysql # not compatible
query II rowsort label-4822
SELECT ALL - 41, - COUNT ( * ) AS col2 FROM tab2
----
-41
-3

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col0 * - + col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col2 FROM tab2 AS cor0
----
99
99
99

query II rowsort
SELECT DISTINCT - col2, 85 AS col0 FROM tab1 AS cor0
----
-59
85
-68
85
-96
85

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - COUNT( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4829
SELECT - COUNT ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT CAST( - col1 AS SIGNED ) / + col0 + - col1 FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4830
SELECT CAST ( - col1 AS INTEGER ) / + col0 + - col1 FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT 98 * col2 AS col2 FROM tab1 cor0
----
5782
6664
9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT + + AVG ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT + + AVG ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT + col1 * + 29 * - col1 * CAST( NULL AS SIGNED ) + + 97 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + col1 * + 29 * - col1 * CAST ( NULL AS INTEGER ) + + 97 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 AS col0, - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL COUNT( * ) * - - COUNT( * ) * + + ( - - COUNT( * ) ) + COUNT( * ) + - 93 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * + + ( - - COUNT ( * ) ) + COUNT ( * ) + - 93 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 56 + - col1
----

query I rowsort
SELECT ALL + col0 + - ( col1 ) FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT DISTINCT 60 + col2 DIV + col0 + + col0 AS col1 FROM tab1
----
112
145
151

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT 60 + col2 / + col0 + + col0 AS col1 FROM tab1
----
112
145
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 96 col1 FROM tab2 WHERE NOT col0 - + col2 + + + 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT DISTINCT - col1 + - ( 13 ) + - - col0 DIV + 24 AS col1 FROM tab2
----
-63
-77
-88

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - col1 + - ( 13 ) + - - col0 / + 24 AS col1 FROM tab2
----
-63
-77
-88

query II rowsort
SELECT col2, 42 AS col0 FROM tab1
----
59
42
68
42
96
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <> + 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 + - col0 * - - ( + - col0 ) col2, 91 AS col2 FROM tab1
----
2620
91
7244
91
8300
91

query II rowsort
SELECT + col2 + + 19, col0 FROM tab1
----
115
51
78
85
87
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT - 78 + + col2 DIV - + col2 col2 FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4847
SELECT - 78 + + col2 / - + col2 col2 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - - MIN( DISTINCT - col0 ) + - COUNT( - col2 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - - MIN ( DISTINCT - col0 ) + - COUNT ( - col2 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL - ( - 0 ) - + - col1 * - + col0 * 3 AS col0 FROM tab1 AS cor0
----
-1275
-12831
-2142

query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT - CAST( - + MAX( col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - CAST ( - + MAX ( col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - 81 * col1 FROM tab2 AS cor0
----
4131
5427
6237

query I rowsort
SELECT + col2 * - - col0 - + col0 AS col1 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT - 42 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT MAX( ( + + ( - col2 ) ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4856
SELECT MAX ( ( + + ( - col2 ) ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL COUNT( - 34 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL COUNT ( - 34 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 50 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 31 AS col0 FROM tab0
----
-2511
-31
-651

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4860
SELECT ALL * FROM tab1 WHERE NOT + ( col1 ) + CAST( - 18 AS DECIMAL ) NOT IN ( + 53 )
----

skipif mysql # not compatible
query III rowsort label-4860
SELECT ALL * FROM tab1 WHERE NOT + ( col1 ) + CAST ( - 18 AS REAL ) NOT IN ( + 53 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT COUNT( ALL - ( + 5 ) ) DIV + + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4861
SELECT COUNT ( ALL - ( + 5 ) ) / + + COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + 53 AS col2 FROM tab0 cor0
----
53
53
53

query II rowsort
SELECT DISTINCT - 50, col0 FROM tab2 AS cor0
----
-50
46
-50
64
-50
75

query I rowsort
SELECT DISTINCT + ( + 34 ) FROM tab1 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT ALL - - 67 DIV + col1 + + col1 FROM tab2 AS cor0
----
52
68
77

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - - 67 / + col1 + + col1 FROM tab2 AS cor0
----
52
68
77

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1
----
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * 34 - - + col0 * - col0 * + col1 + - 34 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT 48 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT 48 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 13 * - col0 FROM tab1
----
-63648
-65195
-80444

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + - COUNT( ALL - ( - col0 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + - COUNT ( ALL - ( - col0 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - col2 <= + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 + - col1 FROM tab2 cor0 WHERE NOT ( + col2 ) <= - 29 * + col0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + ( + + MIN( ALL col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4874
SELECT + ( + + MIN ( ALL col2 ) ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 / + + 1 IS NULL
----

query I rowsort
SELECT + 14 AS col0 FROM tab1 AS cor0 WHERE NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4877
SELECT CAST( + 51 AS SIGNED ), 22 DIV - 6 AS col0 FROM tab2 cor0
----
51
-3
51
-3
51
-3

skipif mysql # not compatible
query II rowsort label-4877
SELECT CAST ( + 51 AS INTEGER ), 22 / - 6 AS col0 FROM tab2 cor0
----
51
-3
51
-3
51
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL - col2 * - CAST( + + col2 AS SIGNED ) * + 26 AS col2 FROM tab0
----
254826
2600
57434

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - col2 * - CAST ( + + col2 AS INTEGER ) * + 26 AS col2 FROM tab0
----
254826
2600
57434

query I rowsort
SELECT ALL col0 * - - ( + + col0 ) + col1 FROM tab2
----
2167
4173
5692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT + COUNT( * ) + - SUM( DISTINCT - col0 ) + 98 DIV - COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4880
SELECT + COUNT ( * ) + - SUM ( DISTINCT - col0 ) + 98 / - COUNT ( * ) FROM tab2
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 * - col0 + - col0, col2 col2 FROM tab1
----
1887
96
3145
59
3367
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL CAST( NULL AS SIGNED ) * + - 63 + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL CAST ( NULL AS INTEGER ) * + - 63 + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - 84 IS NULL
----

query I rowsort
SELECT ALL 84 * - col0 * + ( - - col2 ) FROM tab0 WHERE NULL = ( - + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 <= + ( - col2 ) * + + 20 * + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + 88 FROM tab0 AS cor0
----
-9
1
73

query I rowsort
SELECT ALL + - 66 * - col0 * - 30 AS col1 FROM tab0 cor0
----
-172260
-192060
-29700

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + MIN( ALL - + ( - col1 ) ) * MAX( 14 ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4888
SELECT + MIN ( ALL - + ( - col1 ) ) * MAX ( 14 ) AS col1 FROM tab1 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 + - 2 col0 FROM tab0
----
72
72
72

query I rowsort
SELECT 93 * - 33 / + col0 + + 63 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51, + 32 * - 63 col0 FROM tab0 AS cor0
----
51
-2016
51
-2016
51
-2016

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT ALL - col0 AS col1, + 14 DIV col0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL - col0 AS col1, + 14 / col0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4893
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT ALL - + 29 * + col1 + - 44 FROM tab1 AS cor0
----
-1407
-189
-450

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4895
SELECT + col0 AS col0, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4895
SELECT + col0 AS col0, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * + col0 - + 65 AS col0, + 43 col0 FROM tab1 AS cor0
----
4831
43
4950
43
6123
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( - 11 ) IN ( 96 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL col2 DIV - - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL col2 / - - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + + col0 * 52 + - col0 AS col2 FROM tab1 AS cor0
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT COUNT( DISTINCT + - col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL + col2 * + 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-4902
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + MAX( DISTINCT 77 ) * 52 * - - COUNT( - col1 ) FROM tab2
----
12012

skipif mysql # not compatible
query I rowsort label-4903
SELECT + MAX ( DISTINCT 77 ) * 52 * - - COUNT ( - col1 ) FROM tab2
----
12012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT ALL + COUNT( * ) * - SUM( - col1 ) DIV ( - 55 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + COUNT ( * ) * - SUM ( - col1 ) / ( - 55 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4905
SELECT ALL - col0, 92 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE CAST( - 14 AS SIGNED ) - col0 - col2 * + + 25 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL - col0, 92 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE CAST ( - 14 AS INTEGER ) - col0 - col2 * + + 25 IS NULL
----

query I rowsort
SELECT + 1 AS col2 FROM tab0 AS cor0 WHERE NOT 37 - col1 BETWEEN + col1 AND - + 10
----
1
1
1

query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
42

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - 35 * COUNT( * ) AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 35 * COUNT ( * ) AS col2 FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4910
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - - MAX( ALL - - col2 ) col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4912
SELECT DISTINCT - - MAX ( ALL - - col2 ) col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( 84 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 84 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT DISTINCT - 40 + - + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - 40 + - + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT + 27 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
27
27
27

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4917
SELECT ALL - COUNT( + 96 ) + - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - COUNT ( + 96 ) + - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4918
SELECT - col0 AS col2, + CAST( + - CAST( - - 48 AS SIGNED ) AS SIGNED ) FROM tab1
----
-51
-48
-85
-48
-91
-48

skipif mysql # not compatible
query II rowsort label-4918
SELECT - col0 AS col2, + CAST ( + - CAST ( - - 48 AS INTEGER ) AS INTEGER ) FROM tab1
----
-51
-48
-85
-48
-91
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + ( - 1 ) + + col2 col1 FROM tab0
----
-1
98
-21
9
-81
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----
0

query I rowsort
SELECT col2 - - 87 AS col1 FROM tab2 AS cor0
----
110
127
145

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 42 * 23 * 43 * col1 + col2 AS col0, - col0 AS col2 FROM tab0
----
3364625
-15
41637
-97
872308
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + 72 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + COUNT( * ) + - 58 + + + 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + COUNT ( * ) + - 58 + + + 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT + COUNT( * ) DIV + + 89 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT + COUNT ( * ) / + + 89 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - 11 FROM tab0 AS cor0
----
-1089
-110
-517

query I rowsort
SELECT + col2 + + 9 AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - - col0 * + ( col0 ) AS col2 FROM tab0 cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4931
SELECT ALL + col2, CAST( NULL AS DECIMAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4931
SELECT ALL + col2, CAST ( NULL AS REAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + SUM( DISTINCT - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4932
SELECT + SUM ( DISTINCT - col1 ) col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - ( + 63 ) FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4934
SELECT 26 * CAST( - col0 AS SIGNED ) DIV - col1 AS col2 FROM tab0
----
107
2522
4

skipif mysql # not compatible
query I rowsort label-4934
SELECT 26 * CAST ( - col0 AS INTEGER ) / - col1 AS col2 FROM tab0
----
107
2522
4

query II rowsort
SELECT + col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 53 * - 34 * ( + col2 ) + + col1 + col1 FROM tab1 AS cor0
----
-106308
-122442
-172964

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - COUNT( ALL + 36 ) - - + 96 AS col1 FROM tab2 WHERE NULL IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - COUNT ( ALL + 36 ) - - + 96 AS col1 FROM tab2 WHERE NULL IS NULL
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4940
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 > - 75 + - - CAST( - col1 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4940
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 > - 75 + - - CAST ( - col1 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + 29 col2 FROM tab0 cor0
----
-19
18
70

query I rowsort
SELECT DISTINCT + ( + + 84 ) AS col1 FROM tab2 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 80 - - + 37 + + 78 = - + 23
----

query I rowsort
SELECT col0 * + 95 * - 82 - - + col0 FROM tab1
----
-397239
-662065
-708799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col0 - col0 * 6, - col0 AS col1 FROM tab2
----
-230
-46
-320
-64
-375
-75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > + col0 + + 94 + - col0 * ( 39 )
----

query I rowsort
SELECT ALL + col1 + + 2 FROM tab0 AS cor0 WHERE NULL = - col0 / + - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 / - + col1 NOT BETWEEN ( + ( - + col1 ) ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + 6 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT 89 * + - col2 FROM tab0 cor0
----
-4183
-8811
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 col2 FROM tab2 cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 / - col2 col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL + COUNT( ALL + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + COUNT ( ALL + - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL - MIN( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - MIN ( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 IN ( col0 + + 39, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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 # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT - - col2 AS col2 FROM tab0 cor0 WHERE NOT CAST( + - col0 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4958
SELECT - - col2 AS col2 FROM tab0 cor0 WHERE NOT CAST ( + - col0 AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT col0 * CAST( NULL AS SIGNED ) + + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT col0 * CAST ( NULL AS INTEGER ) + + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + 10 FROM tab1 AS cor0
----
-51
10
-85
10
-91
10

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT 76 + + 98 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4962
SELECT COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * - 36 + + 37 - - col1 + - + col0 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 8 ) col2 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - MAX( + + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4966
SELECT - MAX ( + + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-4967
SELECT ALL - col0 DIV col0 + col0 col1, - col1 FROM tab0
----
14
-81
86
-21
96
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4967
SELECT ALL - col0 / col0 + col0 col1, - col1 FROM tab0
----
14
-81
86
-21
96
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 48 col1 FROM tab0
----
147
58
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT + 86 + - - CAST( - 37 AS SIGNED ) AS col1 FROM tab1 cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-4969
SELECT + 86 + - - CAST ( - 37 AS INTEGER ) AS col1 FROM tab1 cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT - CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) * - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

skipif mysql # not compatible
query I rowsort label-4970
SELECT - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) * - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT col1 - + ( + col2 ) FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL + ( 69 ) FROM tab0 cor0
----
69
69
69

query II rowsort
SELECT ALL col1, 48 FROM tab1 cor0 WHERE NOT + 15 > + col2
----
14
48
47
48
5
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4974
SELECT ALL - + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + + + 63 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL - + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 63 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4975
SELECT ALL + + 71 * - - COUNT( + 26 ) AS col1, 36 AS col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) >= + + 74
----
0
36

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL + + 71 * - - COUNT ( + 26 ) AS col1, 36 AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) >= + + 74
----
0
36

query I rowsort
SELECT DISTINCT - col2 * - 92 AS col0 FROM tab0
----
4324
9108
920

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT * FROM tab2 WHERE - CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT * FROM tab2 WHERE - CAST ( - - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT + COUNT( - - col2 ) - + - 33 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + COUNT ( - - col2 ) - + - 33 FROM tab2 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 + col0 + - - col0 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 + + - col1 * - + col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 27 BETWEEN NULL AND - 2 + - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - - SUM( DISTINCT 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4982
SELECT - - SUM ( DISTINCT 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT - + ( + + 27 ) DIV + + col0 FROM tab2 AS cor0 WHERE NOT col1 * col0 <= + + col0 * - - 64
----
0
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT - + ( + + 27 ) / + + col0 FROM tab2 AS cor0 WHERE NOT col1 * col0 <= + + col0 * - - 64
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT DISTINCT + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + ( - MAX( + 31 ) ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + ( - MAX ( + 31 ) ) FROM tab0 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT + 87 DIV col0 + - col2 FROM tab0 AS cor0
----
-42
-9
-99

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 87 / col0 + - col2 FROM tab0 AS cor0
----
-42
-9
-99

query I rowsort
SELECT ALL - col2 + - - 1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + COUNT( - col1 ) - 85 + COUNT( - - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-85

skipif mysql # not compatible
query I rowsort label-4988
SELECT + COUNT ( - col1 ) - 85 + COUNT ( - - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 col1, 8 col0 FROM tab2
----
82
8
82
8
82
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * + + 62 col1 FROM tab1
----
4092
4092
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL COUNT( * ) * + - COUNT( col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL COUNT ( * ) * + - COUNT ( col0 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT COUNT( ALL + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT COUNT ( ALL + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + ( - - col1 ) + + - col2 * col0 AS col0 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 90 + - MAX( - 66 ) * COUNT( * ) AS col0 FROM tab1 WHERE - col0 * 6 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 90 + - MAX ( - 66 ) * COUNT ( * ) AS col0 FROM tab1 WHERE - col0 * 6 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 + col0 - + 70 + - col0 * - - 44 col1 FROM tab1 AS cor0
----
-2359
-3821
-4079

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4996
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 97, + ( - + col2 ) + + col0 * - 51 AS col0 FROM tab0 AS cor0 WHERE NOT ( 17 ) IS NULL
----
NULL
-4447
NULL
-5046
NULL
-812

skipif mysql # not compatible
query II rowsort label-4996
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 97, + ( - + col2 ) + + col0 * - 51 AS col0 FROM tab0 AS cor0 WHERE NOT ( 17 ) IS NULL
----
NULL
-4447
NULL
-5046
NULL
-812

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

query II rowsort
SELECT 12 * - 10 AS col2, - col1 AS col1 FROM tab2
----
-120
-51
-120
-67
-120
-77

query I rowsort
SELECT ALL + + 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT + 77 + + 13 + - MIN( ALL col0 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT + 77 + + 13 + - MIN ( ALL col0 ) AS col2 FROM tab0
----
75

query I rowsort
SELECT ALL - 41 AS col1 FROM tab1 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT + 53 - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-32
-38
2

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + 53 - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-32
-38
2

query I rowsort
SELECT DISTINCT ( + 15 ) * + col0 FROM tab0 AS cor0
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT + + col1 DIV - ( col0 ) - - + col1 - - 46 AS col0 FROM tab1 AS cor0
----
51
60
93

skipif mysql # not compatible
query I rowsort label-5005
SELECT + + col1 / - ( col0 ) - - + col1 - - 46 AS col0 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT ALL - - col0 - + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT COUNT( * ) - - 28 + - COUNT( * ) * 71 FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-5007
SELECT COUNT ( * ) - - 28 + - COUNT ( * ) * 71 FROM tab2 cor0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - MAX( - 98 ) * - + 46 + - 68 FROM tab2 AS cor0
----
-4576

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - MAX ( - 98 ) * - + 46 + - 68 FROM tab2 AS cor0
----
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * + + 82 * col1 col0 FROM tab2
----
-192326
-404032
-411975

query I rowsort
SELECT DISTINCT col1 * + 8 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5011
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) + - MIN( - - ( - col1 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - MIN ( - - ( - col1 ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 98, col0 FROM tab1
----
98
51
98
85
98
91

query II rowsort
SELECT - 8 AS col0, + col2 FROM tab1
----
-8
59
-8
68
-8
96

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE + 37 + col2 = 6 - col1 + + col1 * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5016
SELECT - 30, col0 DIV + col0 + col0 - - col1 AS col0 FROM tab2 AS cor0
----
-30
142
-30
143
-30
98

skipif mysql # not compatible
query II rowsort label-5016
SELECT - 30, col0 / + col0 + col0 - - col1 AS col0 FROM tab2 AS cor0
----
-30
142
-30
143
-30
98

query I rowsort
SELECT + 57 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 98 * 10 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + - SUM( 33 ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5019
SELECT + - SUM ( 33 ) AS col0 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT - col2 + + + col1 FROM tab0 AS cor0 WHERE NOT - col1 * 86 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col1 + + - col0 + 39 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL CAST( - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL CAST ( - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL 62 + COUNT( - - col0 ) + - - 65 AS col1 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL 62 + COUNT ( - - col0 ) + - - 65 AS col1 FROM tab2
----
130

query I rowsort
SELECT + col2 * - 83 + 92 FROM tab0
----
-3809
-738
-8125

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + COUNT( - + col2 ) * - + COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5025
SELECT + COUNT ( - + col2 ) * - + COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT - 14 + - col2 AS col2 FROM tab1
----
-110
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + ( MAX( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + ( MAX ( + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IN ( 85 )
----

query I rowsort
SELECT + ( - - 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT - CAST( + 47 AS SIGNED ) FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-5030
SELECT - CAST ( + 47 AS INTEGER ) FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT + 14 + - 50 + - ( + 46 ) DIV - - COUNT( * ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 14 + - 50 + - ( + 46 ) / - - COUNT ( * ) FROM tab2
----
-51

query I rowsort
SELECT - ( + - col1 ) + + col0 AS col2 FROM tab2
----
141
142
97

query II rowsort
SELECT DISTINCT + col0 * + 57 * + 56 + + - 56 + - col0 * - col0, col0 AS col0 FROM tab0 AS cor0
----
285217
87
318977
97
48049
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT - COUNT( * ) * + ( - 80 ) + + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - COUNT ( * ) * + ( - 80 ) + + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5035
SELECT COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col1 - - + 84 + - - col0 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-197113
-291433
-53925

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT ALL - + col1 * col1 DIV - + col2 FROM tab1 cor0
----
0
2
32

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - + col1 * col1 / - + col2 FROM tab1 cor0
----
0
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col1 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5038
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col1 col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - col2 )
----

query I rowsort
SELECT ALL - col2 * - + col0 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT 78 * col2, + col0 FROM tab0
----
3666
15
7722
97
780
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT MAX( 43 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT MAX ( 43 ) AS col2 FROM tab1
----
43

query I rowsort
SELECT ALL 18 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT ALL - col0 * - + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - col0 * - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT + - SUM( - - 44 ) * 13 FROM tab2 AS cor0
----
-1716

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT + - SUM ( - - 44 ) * 13 FROM tab2 AS cor0
----
-1716

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + col1, + col1 )
----

query II rowsort
SELECT 1, col0 + + col1 * - 48 + - - col1 + + - 82 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
-32
1
-3874
1
-982

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT COUNT( * ) - - + 49 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-5048
SELECT COUNT ( * ) - - + 49 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 WHERE NOT col2 - + col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL > col2
----
0

query I rowsort
SELECT ALL - 92 * - + 96 AS col2 FROM tab0 AS cor0
----
8832
8832
8832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT ( - COUNT( * ) ) * 27 DIV - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT ( - COUNT ( * ) ) * 27 / - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT - 2 DIV + - SUM( ALL 95 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - 2 / + - SUM ( ALL 95 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT + COUNT( * ) AS col0, 60 * + - COUNT( * ) FROM tab1 AS cor0
----
3
-180

skipif mysql # not compatible
query II rowsort label-5054
SELECT + COUNT ( * ) AS col0, 60 * + - COUNT ( * ) FROM tab1 AS cor0
----
3
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + SUM( col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 * + col1 + col1 IS NULL
----

query I rowsort
SELECT ALL - ( + 17 ) + - col1 AS col1 FROM tab1
----
-22
-31
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT COUNT( * ) + 62 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT COUNT ( * ) + 62 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL + MIN( DISTINCT - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + MIN ( DISTINCT - 15 ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + 71 + + - COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 71 + + - COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL + 38 * - - 35 * col2 FROM tab0 AS cor0
----
131670
13300
62510

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + col0 * - - col0 * - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - COUNT( * ) + - + 71 AS col2 FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( * ) + - + 71 AS col2 FROM tab1 cor0
----
-74

query I rowsort
SELECT ALL + + 22 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL col2 - - + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT + 22 * + col1 + + col1 DIV col0 + - ( - 87 ) + + - col1 * + col1 col1 FROM tab2 AS cor0
----
-1391
-2928
-4147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT DISTINCT + 22 * + col1 + + col1 / col0 + - ( - 87 ) + + - col1 * + col1 col1 FROM tab2 AS cor0
----
-1391
-2928
-4147

query I rowsort
SELECT - - 78 - - col0 * + 63 AS col2 FROM tab1 cor0
----
3291
5433
5811

query I rowsort
SELECT DISTINCT + col0 - + col2 + + + ( + col0 ) FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT + - col2 * + + col2 * - + col2 FROM tab0 AS cor0
----
1000
103823
970299

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5070
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col2 + + - col1 col0 FROM tab2 WHERE NOT + - col1 + 0 IS NOT NULL
----

query II rowsort
SELECT ALL 18 AS col2, col2 * ( + 51 ) / - + 63 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ( - COUNT( DISTINCT + col2 ) ) * MAX( DISTINCT - + 31 ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5074
SELECT ( - COUNT ( DISTINCT + col2 ) ) * MAX ( DISTINCT - + 31 ) AS col1 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 91, col0 col0 FROM tab0 cor0
----
-91
15
-91
87
-91
97

query II rowsort
SELECT 84, col2 FROM tab1 AS cor0
----
84
59
84
68
84
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + COUNT( * ) * SUM( ALL - 5 ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + COUNT ( * ) * SUM ( ALL - 5 ) AS col0 FROM tab2
----
-45

query II rowsort
SELECT + - col2 * + col2, - 41 AS col2 FROM tab1 AS cor0
----
-3481
-41
-4624
-41
-9216
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5081
SELECT + + COUNT( * ) + - - 88, + ( + + SUM( col1 ) ) + - - MIN( ALL - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5081
SELECT + + COUNT ( * ) + - - 88, + ( + + SUM ( col1 ) ) + - - MIN ( ALL - - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 cor0
----
91
NULL

query I rowsort
SELECT - - col1 + 44 + col1 AS col1 FROM tab0 AS cor0
----
206
46
86

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
94

query I rowsort
SELECT + 79 * + col0 + + 65 FROM tab2 AS cor0
----
3699
5121
5990

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT COUNT( - col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT COUNT ( - col1 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT ALL 86 col1, COUNT( * ) - - + 10 * + - 50 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
86
-500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5086
SELECT ALL 86 col1, COUNT ( * ) - - + 10 * + - 50 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
86
-500

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab2 WHERE NULL < col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN + - col1 * + 18 - + - col0 - - col1 AND - col1 * - col1
----

query II rowsort
SELECT DISTINCT + col2, - col1 AS col0 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) + + - ( + col1 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) + + - ( + col1 ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 - 76 AS col1 FROM tab0
----
-61
11
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5092
SELECT CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5093
SELECT 75, 44 DIV - col2 AS col2 FROM tab1
----
75
0
75
0
75
0

skipif mysql # not compatible
query II rowsort label-5093
SELECT 75, 44 / - col2 AS col2 FROM tab1
----
75
0
75
0
75
0

query I rowsort
SELECT DISTINCT - - col2 - + col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + COUNT( ALL + 75 ) - 5 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + COUNT ( ALL + 75 ) - 5 AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT + 6 DIV + - 90 DIV - + ( + + ( + COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 6 / + - 90 / - + ( + + ( + COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT MAX( - col1 ) + - COUNT( * ) AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5097
SELECT MAX ( - col1 ) + - COUNT ( * ) AS col0 FROM tab2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5098
SELECT ( SUM( + ( - col1 ) ) ) AS col1, CAST( NULL AS SIGNED ) * - 47 AS col1 FROM tab0 AS cor0
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-5098
SELECT ( SUM ( + ( - col1 ) ) ) AS col1, CAST ( NULL AS INTEGER ) * - 47 AS col1 FROM tab0 AS cor0
----
-103
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 74 ) col1, + col2 + + col2 col0 FROM tab1 AS cor0
----
-74
118
-74
136
-74
192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col0 * - col1
----

query I rowsort
SELECT + + 57 AS col2 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT col1 * + - 60 FROM tab1
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT MAX( DISTINCT + 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-5103
SELECT MAX ( DISTINCT + 71 ) FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT DISTINCT + COUNT( * ) * + 93 AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT + COUNT ( * ) * + 93 AS col1 FROM tab2
----
279

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - 74 + + col0 IS NULL
----
51
67
77

query I rowsort
SELECT col1 * - 2 * + ( - + col1 ) AS col0 FROM tab0
----
13122
2
882

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE 39 - + 58 IS NULL
----

query I rowsort
SELECT + 26 + - col2 FROM tab1
----
-33
-42
-70

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + col0 + - col1 + - - col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col1 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( * ) * - + 75 col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5111
SELECT + COUNT ( * ) * - + 75 col1 FROM tab0 AS cor0
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 + - col2 col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT - 0 * col0 * 75 * - col2 * - 89 - + ( + col1 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + col0 + + col1 + 82 AS col0 FROM tab0
----
178
180
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - COUNT( * ) * - - 87 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - COUNT ( * ) * - - 87 FROM tab0
----
-261

query III rowsort
SELECT * FROM tab1 WHERE - - 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + col2 * + - col0 - col0 AS col2 FROM tab0 AS cor0
----
10560
75603
931394

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT DISTINCT + - 52 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + - 52 / col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + SUM( + 96 ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5119
SELECT + SUM ( + 96 ) AS col2 FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT - COUNT( * ) AS col1, 59 AS col0 FROM tab0 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-5120
SELECT - COUNT ( * ) AS col1, 59 AS col0 FROM tab0 AS cor0
----
-3
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT DISTINCT - - CAST( - 10 AS SIGNED ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - - CAST ( - 10 AS INTEGER ) FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT ALL + 3 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + 3 / - col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col2 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT - col2 DIV - - 34 - - 9 FROM tab0 AS cor0
----
7
8
9

skipif mysql # not compatible
query I rowsort label-5126
SELECT - col2 / - - 34 - - 9 FROM tab0 AS cor0
----
7
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 * + col2 + + 11 FROM tab0
----
-199
-3796
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT - COUNT( + + col1 ) + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - COUNT ( + + col1 ) + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 + 47 IS NULL
----

query I rowsort
SELECT + + col2 + + + 35 AS col2 FROM tab2 cor0
----
58
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5132
SELECT - col2 + + col2 * col1 AS col2, CAST( NULL AS SIGNED ) * - ( 85 ) FROM tab2 AS cor0
----
1150
NULL
3040
NULL
3828
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT - col2 + + col2 * col1 AS col2, CAST ( NULL AS INTEGER ) * - ( 85 ) FROM tab2 AS cor0
----
1150
NULL
3040
NULL
3828
NULL

query I rowsort
SELECT - 62 + + col1 FROM tab0 AS cor0
----
-41
-61
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13 col0, + 75 - 4 FROM tab1
----
-13
71
-13
71
-13
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT MAX( + col1 ), 1 AS col1 FROM tab2
----
77
1

skipif mysql # not compatible
query II rowsort label-5135
SELECT MAX ( + col1 ), 1 AS col1 FROM tab2
----
77
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT COUNT( DISTINCT - - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + ( + - SUM( - + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5139
SELECT + ( + - SUM ( - + col2 ) ) FROM tab2
----
121

query I rowsort
SELECT 79 * col2 FROM tab2
----
1817
3160
4582

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5141
SELECT DISTINCT * FROM tab2 WHERE CAST( 88 AS DECIMAL ) > 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5141
SELECT DISTINCT * FROM tab2 WHERE CAST ( 88 AS REAL ) > 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 - 78 col0 FROM tab2
----
-153
-153
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT ( 22 ) FROM tab1 cor0 WHERE - col0 = + CAST( NULL AS SIGNED ) * - col1 + + - 82 + col1
----

skipif mysql # not compatible
query I rowsort label-5145
SELECT ( 22 ) FROM tab1 cor0 WHERE - col0 = + CAST ( NULL AS INTEGER ) * - col1 + + - 82 + col1
----

query II rowsort
SELECT DISTINCT - - col0, + 19 AS col1 FROM tab2 AS cor0
----
46
19
64
19
75
19

query I rowsort
SELECT ALL - ( - 4 ) * + 8 AS col2 FROM tab1 cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL - ( col1 ) * - + CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
-158949
-18225
-9409

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - ( col1 ) * - + CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
-158949
-18225
-9409

query I rowsort
SELECT - col0 * - col2 - - 89 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL - CAST( + - SUM( - col2 ) AS SIGNED ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - CAST ( + - SUM ( - col2 ) AS INTEGER ) AS col2 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT col0 * - CAST( NULL AS SIGNED ) * + 98 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT col0 * - CAST ( NULL AS INTEGER ) * + 98 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL - + 77 * + col2 + + col0 * + ( col2 ) FROM tab1 AS cor0
----
-2496
472
952

query II rowsort
SELECT ALL + ( - + col0 ) AS col2, + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-1344
-85
-295
-91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 / + + CAST( + col2 AS SIGNED ) = + + ( col1 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5155
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 / + + CAST ( + col2 AS INTEGER ) = + + ( col1 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - SUM( DISTINCT - 17 ) col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5156
SELECT - SUM ( DISTINCT - 17 ) col0 FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 40 ) col2, - 99 AS col0 FROM tab2 AS cor0
----
40
-99

query I rowsort
SELECT - + 97 AS col0 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + 73 + + + col0 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
124
158
164

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT 97, COUNT( * ) AS col1 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-5160
SELECT 97, COUNT ( * ) AS col1 FROM tab2
----
97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT + 82 DIV MAX( + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT + 82 / MAX ( + col2 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT DISTINCT col0 * col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT col0 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT 62 * + COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-5164
SELECT 62 * + COUNT ( * ) FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT + COUNT( * ) * 49 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + COUNT ( * ) * 49 FROM tab1
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 74 - + col2 DIV 64 AS col1 FROM tab0
----
73
74
74

skipif mysql # not compatible
query I rowsort label-5166
SELECT 74 - + col2 / 64 AS col1 FROM tab0
----
73
74
74

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE ( col1 ) BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT ALL + 28 * 69 FROM tab0
----
1932
1932
1932

query I rowsort
SELECT DISTINCT + col2 * ( - col0 * col2 ) AS col0 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT 41 * 54 IS NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) NOT IN ( col2 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + 48 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT COUNT( * ) DIV + 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) / + 45 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5176
SELECT col1 DIV ( + 1 * + ( col0 ) ) AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5176
SELECT col1 / ( + 1 * + ( col0 ) ) AS col2 FROM tab0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT 15 DIV + ( col0 * col1 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT 15 / + ( col0 * col1 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * + col1 + + col1 * col1 AS col2 FROM tab1
----
1540
320
5405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 0 ) col1 FROM tab0
----
0

query I rowsort
SELECT - col0 * - 15 FROM tab2
----
1125
690
960

query I rowsort
SELECT col0 / 24 + 29 FROM tab1 WHERE ( NULL ) <> col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT col2 * + ( 18 * col0 ) AS col0 FROM tab2
----
19044
46080
78300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

query I rowsort
SELECT 52 AS col1 FROM tab1 WHERE NULL = ( + col2 )
----

query I rowsort
SELECT + 91 + - 95 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL - COUNT( * ) * 84 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - COUNT ( * ) * 84 FROM tab0 AS cor0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ( - AVG ( ALL CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ( - AVG ( ALL CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 29 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5193
SELECT ALL * FROM tab1 WHERE NOT 4 + - CAST( 39 AS SIGNED ) >= - col1 + + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5193
SELECT ALL * FROM tab1 WHERE NOT 4 + - CAST ( 39 AS INTEGER ) >= - col1 + + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 84 * col2 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > col2 * col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT + 25 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT + 25 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL - col1 DIV 7 col2 FROM tab2 AS cor0
----
-11
-7
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT ALL - col1 / 7 col2 FROM tab2 AS cor0
----
-11
-7
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( 91 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 25 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL COUNT( * ) + 90 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL COUNT ( * ) + 90 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) * 9 + + COUNT( * ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) * 9 + + COUNT ( * ) AS col1 FROM tab1
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT 54 + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND - ( 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT COUNT( * ) * + 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-5207
SELECT COUNT ( * ) * + 40 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL + COUNT( + col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT ALL + COUNT ( + col0 ) col2 FROM tab2
----
3

query I rowsort
SELECT 50 * - 96 + col0 AS col1 FROM tab0 cor0 WHERE col1 >= ( 37 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT 38 * + COUNT( * ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT 38 * + COUNT ( * ) FROM tab0 AS cor0
----
114

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2 AS cor0 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT + + ( col1 ) * 3 FROM tab0 AS cor0
----
243
3
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE ( - 41 - - col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5214
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col2 NOT IN ( CAST( NULL AS SIGNED ) + - 23 * col1 )
----

skipif mysql # not compatible
query III rowsort label-5214
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col2 NOT IN ( CAST ( NULL AS INTEGER ) + - 23 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 23 + 51 + MAX( 57 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 23 + 51 + MAX ( 57 ) AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col2 col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - COUNT( DISTINCT col1 ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT - COUNT ( DISTINCT col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + - 95 + + + col2 AS col0 FROM tab2 AS cor0
----
-104
-123
-132

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 58 <= - col0 OR ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col1 * col2 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col2, - ( col1 ) FROM tab0 cor0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT + 15 AS col0 FROM tab2 AS cor0 WHERE - 4 IN ( - 15 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > - - col1 * - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col0 - + 9 + + - col1 FROM tab0 AS cor0
----
-105
-107
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT + COUNT( ALL + col1 ) * + AVG ( + col0 ) FROM tab2 AS cor0 WHERE NOT 97 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + COUNT ( ALL + col1 ) * + AVG ( + col0 ) FROM tab2 AS cor0 WHERE NOT 97 < NULL
----
NULL

query I rowsort
SELECT - col0 * col0 * col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT 94 * - col2 AS col1 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - ( - - MAX( + 27 ) ) - + MIN( - col0 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5231
SELECT - ( - - MAX ( + 27 ) ) - + MIN ( - col0 ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ( COUNT( * ) ) AS col0 FROM tab0 WHERE ( col1 ) < 98 * 69
----
3

skipif mysql # not compatible
query I rowsort label-5232
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 WHERE ( col1 ) < 98 * 69
----
3

query I rowsort
SELECT DISTINCT - ( - col1 ) + + + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + col2 + 53 AS col1 FROM tab2
----
111
76
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5235
SELECT COUNT( * ) DIV + - CAST( - 39 AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT COUNT ( * ) / + - CAST ( - 39 AS INTEGER ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - col1 * - col2 * + col2 AS col0 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab1 WHERE 29 IN ( + col1 ) AND NOT col1 BETWEEN - col0 * + 97 AND ( NULL )
----

query I rowsort
SELECT ALL + 86 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT - col1 + col0 DIV col1 AS col0 FROM tab0 cor0 WHERE - col0 NOT IN ( - + col1 )
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - col1 + col0 / col1 AS col0 FROM tab0 cor0 WHERE - col0 NOT IN ( - + col1 )
----
-17
-81
96

query I rowsort
SELECT DISTINCT - ( - 78 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab1 WHERE NOT + 19 + - 35 * + - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 10 * - col2 AS col0 FROM tab2
----
230
400
580

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - - 21 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / + col0 * - col2 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5247
SELECT + - CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + 52 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5247
SELECT + - CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT ALL + 93 * + + col1 AS col1 FROM tab0 cor0
----
1953
7533
93

query I rowsort
SELECT col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( + col2 / + col0 / - col0 )
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5250
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5250
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL + CAST( 90 AS SIGNED ) FROM tab1 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + CAST ( 90 AS INTEGER ) FROM tab1 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5252
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - AVG ( ALL - col1 * CAST( col1 AS DECIMAL ) ) FROM tab1 AS cor0 WHERE + col1 * + 20 NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - AVG ( ALL - col1 * CAST ( col1 AS REAL ) ) FROM tab1 AS cor0 WHERE + col1 * + 20 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT ALL CAST( 85 AS SIGNED ) FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL CAST ( 85 AS INTEGER ) FROM tab1 AS cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + 40 * + 12 / + - col0 + col0 + 93 ) IS NULL
----

query II rowsort
SELECT DISTINCT 71, col2 FROM tab0
----
71
10
71
47
71
99

query I rowsort
SELECT ALL - ( + col1 ) + + + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - + col0 * - - ( - col1 ) + - + col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col2 + - ( + + col2 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col0 * + + col0 + col0 FROM tab2 AS cor0 WHERE NULL IN ( + 28, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 96 + - + COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5261
SELECT 96 + - + COUNT ( * ) FROM tab2 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - col1 * - ( col0 ) * - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT ALL - - COUNT( * ), - 66 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-63

skipif mysql # not compatible
query II rowsort label-5263
SELECT ALL - - COUNT ( * ), - 66 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-63

query I rowsort
SELECT + + 18 * - 85 + 54 FROM tab0 AS cor0
----
-1476
-1476
-1476

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 + + col2 ) >= + 50 OR col2 * col1 <> ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL 47 + + + COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL 47 + + + COUNT ( * ) FROM tab2
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + SUM( - col0 ) - + + MIN( - 37 ) * + 1 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5270
SELECT + SUM ( - col0 ) - + + MIN ( - 37 ) * + 1 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT DISTINCT col0 - - + 86 AS col0 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT - col1 * + 14 * - + col1 * ( col1 ) + - 2 AS col0 FROM tab0 AS cor0
----
12
129652
7440172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 30 + + + col2 AS col1, + col0 col0 FROM tab2 AS cor0
----
-7
46
10
64
28
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT - col0 DIV 13 + + col2 FROM tab0 AS cor0
----
4
46
92

skipif mysql # not compatible
query I rowsort label-5274
SELECT - col0 / 13 + + col2 FROM tab0 AS cor0
----
4
46
92

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 < + 77
----
-99

query I rowsort
SELECT - ( col1 ) + + col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT ALL 44 DIV - col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL 44 / - col2 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - 43 + + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <= - col1
----
-43

skipif mysql # not compatible
query I rowsort label-5278
SELECT - 43 + + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <= - col1
----
-43

query I rowsort
SELECT ALL - 87 * col0 FROM tab1
----
-4437
-7395
-7917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab2 WHERE - ( - 18 ) < + 49
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 * + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT MIN( ALL + 13 ) AS col1 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT MIN ( ALL + 13 ) AS col1 FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5285
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1, - col1 col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5285
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1, - col1 col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - COUNT( - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5286
SELECT - COUNT ( - col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * - col2 AND + + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT + + 26 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT + + 26 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT COUNT( * ) * - ( - - MIN( ALL + 10 ) ) + - 66 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5290
SELECT COUNT ( * ) * - ( - - MIN ( ALL + 10 ) ) + - 66 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT - CAST( col0 AS SIGNED ) + + + col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-5291
SELECT - CAST ( col0 AS INTEGER ) + + + col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - MIN( DISTINCT + 16 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - MIN ( DISTINCT + 16 ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT ALL - col2 * + 59 + + + col0 FROM tab1
----
-3396
-3921
-5613

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT ALL + ( - + col0 ) + 17 DIV 3 FROM tab1
----
-46
-80
-86

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL + ( - + col0 ) + 17 / 3 FROM tab1
----
-46
-80
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + ( - - COUNT( - 9 ) ) * - COUNT( * ) + 59 AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5295
SELECT + ( - - COUNT ( - 9 ) ) * - COUNT ( * ) + 59 AS col0 FROM tab1 AS cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 + + - 24 FROM tab0
----
-111
-121
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT COUNT( * ) + - 8 * COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5298
SELECT COUNT ( * ) + - 8 * COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + 97 * + col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 58 - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
105
157
68

query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + 39 FROM tab0 AS cor0 WHERE NOT + 60 + - 89 * - col2 <= 43
----
39
39
39

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 87 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + - col0 ) FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col1 FROM tab0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL - col1 DIV col1 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5307
SELECT ALL - col1 / col1 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5308
SELECT + CAST( NULL AS DECIMAL ) / - col2 * + - col2 * 94 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT + CAST ( NULL AS REAL ) / - col2 * + - col2 * 94 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT DISTINCT + SUM( + + col0 ) DIV + 44 AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + SUM ( + + col0 ) / + 44 AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT + MAX( ( + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5310
SELECT + MAX ( ( + col2 ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL - CAST( + 16 AS SIGNED ) AS col0 FROM tab0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - CAST ( + 16 AS INTEGER ) AS col0 FROM tab0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 72 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 27 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - COUNT( ALL - + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - COUNT ( ALL - + col0 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - - MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5316
SELECT - - MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5317
SELECT DISTINCT - COUNT( * ) AS col0, + ( CAST( + + COUNT( + - 47 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - COUNT ( * ) AS col0, + ( CAST ( + + COUNT ( + - 47 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - ( 91 ) + - COUNT( * ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - ( 91 ) + - COUNT ( * ) FROM tab1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + ( - col1 ) / - col2 * - - col2 * - col1 )
----

query I rowsort
SELECT ALL + 47 * col1 + - - col1 - + 0 FROM tab0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT 16 * col1 + + CAST( NULL AS SIGNED ) + - 70 / ( col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT 16 * col1 + + CAST ( NULL AS INTEGER ) + - 70 / ( col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL COUNT( * ) + + COUNT( ALL - + col0 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL COUNT ( * ) + + COUNT ( ALL - + col0 ) FROM tab1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5324
SELECT - - CAST( NULL AS DECIMAL ), col2 AS col1 FROM tab0 WHERE - + col1 - - col0 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5324
SELECT - - CAST ( NULL AS REAL ), col2 AS col1 FROM tab0 WHERE - + col1 - - col0 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col1 + - 31 * + col0 FROM tab0
----
-2676
-3006
-384

query I rowsort
SELECT + col0 + + - col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL + 9 + col0 FROM tab2 AS cor0
----
55
73
84

query II rowsort
SELECT - + 40 + col1 AS col0, - 52 FROM tab1 AS cor0
----
-26
-52
-35
-52
7
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col0 + + + ( - 88 ) > NULL
----

query I rowsort
SELECT - + col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + col1 FROM tab2 WHERE ( col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5332
SELECT * FROM tab1 WHERE + col2 + - CAST( col1 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5332
SELECT * FROM tab1 WHERE + col2 + - CAST ( col1 AS INTEGER ) * col2 IS NULL
----

query I rowsort
SELECT ALL - ( 30 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1 + - ( col1 ) + - 33 + 55, - col2 * col1 - - col1 AS col1 FROM tab1
----
22
-1330
22
-290
22
-3149

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT ALL SUM( ALL + 44 ) col1, ( - 68 ) FROM tab0, tab1 AS cor0
----
396
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5335
SELECT ALL SUM ( ALL + 44 ) col1, ( - 68 ) FROM tab0, tab1 AS cor0
----
396
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5336
SELECT ALL - 78, col2 * + col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-78
18270
-78
57105
-78
9603

skipif mysql # not compatible
query II rowsort label-5336
SELECT ALL - 78, col2 * + col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-78
18270
-78
57105
-78
9603

query I rowsort
SELECT ALL - 76 * - - 12 AS col0 FROM tab1 AS cor0
----
-912
-912
-912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT ALL - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT 40 * - + COUNT( * ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-5339
SELECT 40 * - + COUNT ( * ) FROM tab0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 14 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 14 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * + - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT col0 * - 58 FROM tab1
----
-2958
-4930
-5278

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5343
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col0 AS DECIMAL ) BETWEEN - 50 - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5343
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col0 AS REAL ) BETWEEN - 50 - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT ALL + col0 DIV - - 60 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + col0 / - - 60 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL SUM( ALL - - col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5345
SELECT ALL SUM ( ALL - - col2 ) col2 FROM tab0
----
156

query I rowsort
SELECT ( col2 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5347
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col0 * - + CAST( - col2 AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-5347
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col0 * - + CAST ( - col2 AS INTEGER ) + - col1
----

query II rowsort
SELECT col1, + 19 FROM tab1 AS cor0
----
14
19
47
19
5
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL <> - col2 + col2 )
----

query I rowsort
SELECT ALL + 71 + col2 + 53 * col1 * col0 AS col1 FROM tab1 AS cor0
----
22655
226820
38009

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 30 + + 66 > col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL SUM( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5353
SELECT ALL SUM ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT + 8 + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 8 + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 60 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - col2 ) + ( + - 74 ) AS col1 FROM tab2
----
-114
-132
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + ( + COUNT( DISTINCT - col2 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5357
SELECT + ( + COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( + ( col2 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - COUNT( * ) - - + 59 + - 19 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5359
SELECT - COUNT ( * ) - - + 59 + - 19 FROM tab2 AS cor0
----
37

query II rowsort
SELECT ALL ( - - 54 ) - - + 29 AS col2, - 99 * - - col1 FROM tab2 cor0
----
83
-5049
83
-6633
83
-7623

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + col0 * - 15 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5362
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT - COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * col0 - + - 78 * - col2 * col0 col1 FROM tab0 AS cor0
----
-56145
-74559
-756503

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5365
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5365
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - 48 * COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - 48 * COUNT ( * ) FROM tab2 AS cor0
----
-144

query II rowsort
SELECT ALL 91 * - col2 AS col2, - 46 FROM tab0 cor0
----
-4277
-46
-9009
-46
-910
-46

query II rowsort
SELECT + col1, col2 FROM tab1 AS cor0 WHERE NOT ( 67 / 88 + + - col2 ) IS NULL
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT - col0 * - col2 DIV col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5370
SELECT - col0 * - col2 / col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT - + col1 + col1 IS NULL
----
51
85
91

query I rowsort
SELECT - col2 * ( + - 95 ) FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query II rowsort label-5374
SELECT ALL - SUM( DISTINCT - col2 ), MIN( - + 65 ) / + + COUNT( * ) * + ( - COUNT( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL - SUM ( DISTINCT - col2 ), MIN ( - + 65 ) / + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT ALL + col2 * col1 DIV + 25 AS col0 FROM tab1
----
11
127
53

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + col2 * col1 / + 25 AS col0 FROM tab1
----
11
127
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT + CAST( 8 AS SIGNED ) * - COUNT( * ) col0 FROM tab1
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5376
SELECT + CAST ( 8 AS INTEGER ) * - COUNT ( * ) col0 FROM tab1
----
-24

query I rowsort
SELECT ALL ( - 76 ) FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5378
SELECT DISTINCT - COUNT( + col2 ), 70 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + - col2 * + col1 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5378
SELECT DISTINCT - COUNT ( + col2 ), 70 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - col2 * + col1 IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - SUM( ALL + col0 ) FROM tab1 WHERE NOT + col2 BETWEEN col1 * + col2 AND 21 - + col0
----
-227

skipif mysql # not compatible
query I rowsort label-5379
SELECT - SUM ( ALL + col0 ) FROM tab1 WHERE NOT + col2 BETWEEN col1 * + col2 AND 21 - + col0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL COUNT( * ) * + + 55 AS col0 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL COUNT ( * ) * + + 55 AS col0 FROM tab1 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT - COUNT( * ) * + 30 AS col2 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - COUNT ( * ) * + 30 AS col2 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + 32 * + + 52 + + MAX( - - 4 ) AS col0 FROM tab1
----
1668

skipif mysql # not compatible
query I rowsort label-5382
SELECT + 32 * + + 52 + + MAX ( - - 4 ) AS col0 FROM tab1
----
1668

query II rowsort
SELECT ALL 1, + col0 AS col1 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT ALL - col2 + col1 - col1 * - 45 FROM tab0
----
-53
3679
956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT DISTINCT + ( - + CAST( + - 38 AS SIGNED ) ) * - 59 + + 35 FROM tab0 cor0
----
-2207

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + ( - + CAST ( + - 38 AS INTEGER ) ) * - 59 + + 35 FROM tab0 cor0
----
-2207

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 14 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 14 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + 78 * col0 IS NULL
----

query I rowsort
SELECT - col1 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + col2 * + col1 + + + col2 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT + 80 - - 31 - col0 * - col0 + + 56 + col1 DIV col2 FROM tab2 AS cor0
----
2285
4264
5793

skipif mysql # not compatible
query I rowsort label-5389
SELECT + 80 - - 31 - col0 * - col0 + + 56 + col1 / col2 FROM tab2 AS cor0
----
2285
4264
5793

query I rowsort
SELECT ALL - + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - + 18 * - ( - - 33 ) + - col2 FROM tab2 AS cor0
----
536
554
571

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT - 42 DIV - + col0 + - 93 FROM tab0
----
-91
-93
-93

skipif mysql # not compatible
query I rowsort label-5392
SELECT - 42 / - + col0 + - 93 FROM tab0
----
-91
-93
-93

query III rowsort
SELECT * FROM tab2 WHERE - 48 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 + - - col0, col0 FROM tab0 cor0
----
196
97
62
15
97
87

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 NOT IN ( + col1 * 72 + - + 29 )
----

query II rowsort
SELECT ALL col2 - + 22, 61 AS col2 FROM tab0 AS cor0
----
-12
61
25
61
77
61

query II rowsort
SELECT - 16 AS col1, - col0 AS col2 FROM tab2
----
-16
-46
-16
-64
-16
-75

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> - + col1 + 6
----

query I rowsort
SELECT DISTINCT - + 19 * col0 FROM tab1 AS cor0 WHERE col0 + - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL MIN( + 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL MIN ( + 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT - COUNT( * ) DIV - + COUNT( ALL + col2 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - COUNT ( * ) / - + COUNT ( ALL + col2 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - col1 * - 90 AS col2 FROM tab0 cor0
----
1890
7290
90

query II rowsort
SELECT - col0 AS col1, 53 * + col2 AS col0 FROM tab2 AS cor0
----
-46
1219
-64
2120
-75
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL SUM( - + 78 ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL SUM ( - + 78 ) FROM tab1
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5408
SELECT DISTINCT 4 + - - MAX( - - CAST( NULL AS SIGNED ) ) AS col0, + 41 AS col0 FROM tab0, tab0 AS cor0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT 4 + - - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0, + 41 AS col0 FROM tab0, tab0 AS cor0
----
NULL
41

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 <= col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( 46 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + MAX( col1 ) + + COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5411
SELECT + MAX ( col1 ) + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + col2 + + col1 - - - col0 AS col0 FROM tab2
----
28
50
53

query I rowsort
SELECT col2 + + col0 + - + col2 + - + col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT + col0 + - 44 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + col0 + - 44 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 - - col0 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
33150
8787
950794

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + 63 + + - CAST( 68 AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
-51
-69
-80

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 63 + + - CAST ( 68 AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
-51
-69
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL + COUNT( * ) * + + 0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + COUNT ( * ) * + + 0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 21 AS col2 FROM tab0 AS cor0 WHERE NULL < + 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + + 80 col0 FROM tab2
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT DISTINCT - MAX( 94 ) DIV + + MIN( + col1 ) AS col0 FROM tab2 WHERE NOT - ( - col0 ) IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - MAX ( 94 ) / + + MIN ( + col1 ) AS col0 FROM tab2 WHERE NOT - ( - col0 ) IS NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT COUNT( col1 ) + - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT COUNT ( col1 ) + - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT 95 DIV - 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT 95 / - 99 FROM tab0
----
0
0
0

query I rowsort
SELECT - 37 - - + 56 * + col2 AS col0 FROM tab0
----
2595
523
5507

query I rowsort
SELECT 3 - + - col2 - - 1 * + col1 * + 3 FROM tab2
----
179
262
274

query II rowsort
SELECT + col1 - + col2 AS col0, 33 * + - 35 FROM tab2
----
28
-1155
37
-1155
9
-1155

query I rowsort
SELECT DISTINCT - col2 * col1 * - - col1 AS col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT col1 - - col0 + - col1 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - COUNT( * ) - + 14 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5433
SELECT - COUNT ( * ) - + 14 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL + col1 + + 86 * CAST( - 38 AS SIGNED ) FROM tab0
----
-3187
-3247
-3267

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + col1 + + 86 * CAST ( - 38 AS INTEGER ) FROM tab0
----
-3187
-3247
-3267

query I rowsort
SELECT ALL 82 * col2 * + - col0 - - col2 FROM tab2
----
-209880
-356642
-86733

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) * - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - + col0 * - col1 AS col0 FROM tab0 cor0 WHERE NOT - 56 * + - col2 IS NULL
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT DISTINCT - CAST( - + 49 AS SIGNED ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - CAST ( - + 49 AS INTEGER ) FROM tab0 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT ALL + 51 + + col0 + + col2 * 39 * + CAST( NULL AS SIGNED ) * + col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + 51 + + col0 + + col2 * 39 * + CAST ( NULL AS INTEGER ) * + col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT + ( + ( CAST( + + col1 AS SIGNED ) ) ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + ( + ( CAST ( + + col1 AS INTEGER ) ) ) FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 15 + - + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col0 - - 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 81 col2, - 21 + - col1 FROM tab2
----
81
-72
81
-88
81
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL - CAST( NULL AS SIGNED ) + - ( + + COUNT( * ) ) - - 58 + - MIN( ALL - + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( + + COUNT ( * ) ) - - 58 + - MIN ( ALL - + col0 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col1, + 22 FROM tab2
----
4
22
4
22
4
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT - 39 + + COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - 39 + + COUNT ( * ) AS col1 FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT + col1 + - - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5447
SELECT + col1 + - - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 90 + 97 col1 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL COUNT( * ) * + MAX( + + 55 ) AS col2 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL COUNT ( * ) * + MAX ( + + 55 ) AS col2 FROM tab0 AS cor0
----
165

query I rowsort
SELECT ALL + - 87 - - + 67 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + - 91 * - 43 * + COUNT( * ) + + ( + - COUNT( * ) ) + + COUNT( * ) FROM tab2 AS cor0
----
11739

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + - 91 * - 43 * + COUNT ( * ) + + ( + - COUNT ( * ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
11739

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - 98 + + 19 AND NOT 54 >= col2 * col1 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ( - 66 ) + + COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5453
SELECT ( - 66 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT CAST( NULL AS SIGNED ) + col1 + - - 82 + - col1 * - col2 + 9 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT CAST ( NULL AS INTEGER ) + col1 + - - 82 + - col1 * - col2 + 9 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 64 + ( + col2 ) FROM tab2
----
104
122
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT + col2 + - 96 DIV + col1 + col1 FROM tab0
----
127
27
4

skipif mysql # not compatible
query I rowsort label-5456
SELECT + col2 + - 96 / + col1 + col1 FROM tab0
----
127
27
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT 47 * + MAX( ALL col1 ) AS col1 FROM tab0
----
3807

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT 47 * + MAX ( ALL col1 ) AS col1 FROM tab0
----
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT + - col2 + + 83 * - - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + CAST( NULL AS SIGNED ) * - 22 + - col1
----

skipif mysql # not compatible
query I rowsort label-5458
SELECT + - col2 + + 83 * - - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + CAST ( NULL AS INTEGER ) * - 22 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT - COUNT( - - 4 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5461
SELECT - COUNT ( - - 4 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT - CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5462
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT + - 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT col1 + - - 78 AS col1 FROM tab1 AS cor0
----
125
83
92

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT col2 AS col0, + col2 * - ( + + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5469
SELECT * FROM tab0 AS cor0 WHERE + 35 + col1 = + - ( 39 ) - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5469
SELECT * FROM tab0 AS cor0 WHERE + 35 + col1 = + - ( 39 ) - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + COUNT( * ) * - + 73 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + COUNT ( * ) * - + 73 FROM tab2
----
-219

query II rowsort
SELECT ALL + col1 AS col2, + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5472
SELECT DISTINCT 72 + + col1 DIV col0 AS col1, - 96 AS col0 FROM tab1
----
72
-96

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT 72 + + col1 / col0 AS col1, - 96 AS col0 FROM tab1
----
72
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT CAST( NULL AS SIGNED ) + - + AVG ( ALL 49 ) * + + 95 * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT CAST ( NULL AS INTEGER ) + - + AVG ( ALL 49 ) * + + 95 * - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 91 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT DISTINCT - col2 - - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT - col2 - - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + ( + col2 ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + col2 * - - 47 + - col1 + + col0 FROM tab1 AS cor0
----
2853
3240
4549

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5478
SELECT - col1 AS col0, - ( - + ( + - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-5478
SELECT - col1 AS col0, - ( - + ( + - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND - 62
----

query I rowsort
SELECT DISTINCT + 69 - col2 FROM tab1 AS cor0
----
-27
1
10

query I rowsort
SELECT DISTINCT 81 * col0 * + col1 * - + col1 * - 49 AS col1 FROM tab2 AS cor0
----
1336263075
1506060864
474874974

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT MAX( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT MAX ( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 * + 88 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 * + 88 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * - col2 * - 13 FROM tab0
----
-1287
-2730
-49491

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + COUNT( * ) * + + 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5485
SELECT + COUNT ( * ) * + + 55 FROM tab1
----
165

query I rowsort
SELECT DISTINCT + 45 * - + col1 * + 84 FROM tab1
----
-177660
-18900
-52920

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT - 26 * 4 AS col2, MIN( ( + col1 ) ) AS col2 FROM tab1
----
-104
5

skipif mysql # not compatible
query II rowsort label-5487
SELECT - 26 * 4 AS col2, MIN ( ( + col1 ) ) AS col2 FROM tab1
----
-104
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 / + 53 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 / + 53 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + 24 * COUNT( * ) * - 76 FROM tab0
----
-5472

skipif mysql # not compatible
query I rowsort label-5489
SELECT + 24 * COUNT ( * ) * - 76 FROM tab0
----
-5472

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT ALL - - SUM( + 37 ), - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
111
-3

skipif mysql # not compatible
query II rowsort label-5490
SELECT ALL - - SUM ( + 37 ), - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
111
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL ( - + ( - - 4 ) ) * - - COUNT( * ) + + + 82 AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL ( - + ( - - 4 ) ) * - - COUNT ( * ) + + + 82 AS col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + 0 AS col1 FROM tab0 AS cor0 WHERE NOT + 21 > + - 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT - COUNT( * ) AS col2, 32 FROM tab1
----
-3
32

skipif mysql # not compatible
query II rowsort label-5493
SELECT - COUNT ( * ) AS col2, 32 FROM tab1
----
-3
32

query I rowsort
SELECT ALL + col0 * - - 54 AS col2 FROM tab0
----
4698
5238
810

query I rowsort
SELECT + 36 + - 0 * + - 40 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL - + COUNT( * ) * 27 AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL - + COUNT ( * ) * 27 AS col1 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + MIN( DISTINCT + col2 ) + 78 * - 0 FROM tab0 AS cor0 WHERE col1 IN ( - 37, + 45 * - 12, + + 83, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + MIN ( DISTINCT + col2 ) + 78 * - 0 FROM tab0 AS cor0 WHERE col1 IN ( - 37, + 45 * - 12, + + 83, col2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5498
SELECT DISTINCT + + COUNT( * ) DIV 15 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + + COUNT ( * ) / 15 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 77 * - col1 AS col2 FROM tab0 AS cor0
----
-1617
-6237
-77

query I rowsort
SELECT ALL col1 + + 55 AS col1 FROM tab2 AS cor0
----
106
122
132

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT - + 29 DIV 53 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - + 29 / 53 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 + - col0 * - 63 FROM tab1
----
3309
5414
5801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL - 1 * COUNT( * ) + - MIN( CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - 1 * COUNT ( * ) + - MIN ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL 63 DIV + 41 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 63 / + 41 AS col0 FROM tab0
----
1
1
1

query II rowsort
SELECT col0 * + col2 AS col0, col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, ( col1 ) + 43 col0 FROM tab2 cor0
----
23
94
40
120
58
110

query I rowsort
SELECT + ( + ( 74 ) ) AS col2 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL 84 - COUNT( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT ALL 84 - COUNT ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 47 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-2397
-3995
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + - COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - 92 * - + ( + col2 ) * - col0 FROM tab2 AS cor0
----
-235520
-400200
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT + - MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + - MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT MIN( ALL - 20 ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT MIN ( ALL - 20 ) AS col0 FROM tab2
----
-20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT CAST( NULL AS SIGNED ), + col1 - + ( - col0 ) AS col0 FROM tab0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-5518
SELECT CAST ( NULL AS INTEGER ), + col1 - + ( - col0 ) AS col0 FROM tab0
----
NULL
108
NULL
96
NULL
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT DISTINCT 11 AS col2, COUNT( * ) FROM tab0 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-5519
SELECT DISTINCT 11 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
11
3

query I rowsort
SELECT DISTINCT - + ( - + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 73 * - col2 AS col2 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT ALL ( col1 ) * - - 89 - + col1 * 28 * col0 FROM tab1
----
-11455
-115573
-18746

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 36 AND 11
----

query I rowsort
SELECT + col0 + + - 11 + col1 FROM tab1 AS cor0
----
127
54
79

query I rowsort
SELECT - ( + 55 ) + - col0 FROM tab1 AS cor0
----
-106
-140
-146

query I rowsort
SELECT + + 63 + + col2 FROM tab0 AS cor0
----
110
162
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + col0 + - + 1 FROM tab0 AS cor0
----
173
193
29

query I rowsort
SELECT ALL + + 53 AS col0 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - MAX( DISTINCT - - 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-5530
SELECT - MAX ( DISTINCT - - 26 ) FROM tab1
----
-26

query I rowsort
SELECT - ( - - 20 ) FROM tab1
----
-20
-20
-20

query I rowsort
SELECT ALL - col0 * - col2 + - - col0 - - col0 FROM tab1
----
4998
5185
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5533
SELECT + MIN( - col0 ) * - ( - - MAX( ALL - col0 ) ) AS col2, 18 * - COUNT( + CAST( 79 AS SIGNED ) ) AS col1 FROM tab2
----
-3450
-54

skipif mysql # not compatible
query II rowsort label-5533
SELECT + MIN ( - col0 ) * - ( - - MAX ( ALL - col0 ) ) AS col2, 18 * - COUNT ( + CAST ( 79 AS INTEGER ) ) AS col1 FROM tab2
----
-3450
-54

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE + col0 * 83 IS NOT NULL
----
76
76
76

query I rowsort
SELECT DISTINCT col2 + + 9 FROM tab2
----
32
49
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 99 ) col2 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT col0 * + 71 AS col1 FROM tab1
----
3621
6035
6461

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5538
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) < - + 98 * - col0
----

skipif mysql # not compatible
query III rowsort label-5538
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) < - + 98 * - col0
----

query I rowsort
SELECT DISTINCT + 0 + col2 * + col1 * - - col0 AS col2 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 13 * - 10 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + 38 - + COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5541
SELECT + 38 - + COUNT ( * ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL + col2 - + col0 * + 48 AS col0 FROM tab0 AS cor0
----
-4166
-4557
-673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL - + CAST( - ( + 45 ) AS SIGNED ) + + 14 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - + CAST ( - ( + 45 ) AS INTEGER ) + + 14 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + - + 7 col2 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT 21 AS col0, COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
21
6

skipif mysql # not compatible
query II rowsort label-5545
SELECT 21 AS col0, COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
21
6

query II rowsort
SELECT ALL col1, col2 FROM tab2 cor0
----
51
23
67
58
77
40

query II rowsort
SELECT + 19 AS col0, - 40 FROM tab1 AS cor0
----
19
-40
19
-40
19
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 58 col0 FROM tab1
----
2726
290
812

query I rowsort
SELECT ALL + - col2 * col0 / + + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - 59 * + - 85 AS col2, col0 + - col2 + + + col0 AS col1 FROM tab0 AS cor0
----
5015
-17
5015
164
5015
95

query I rowsort
SELECT ALL - + ( + + col0 ) * col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL + 50 DIV 5 * col2 col1 FROM tab2 AS cor0
----
230
400
580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT ALL + 50 / 5 * col2 col1 FROM tab2 AS cor0
----
230
400
580

query II rowsort
SELECT 45 AS col1, + 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 861ef4a251109f15ff610e260a011061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - col1 * col2 col0 FROM tab0
----
-10710
-194157
-5049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - CAST( NULL AS SIGNED ) * + + 36 FROM tab1 WHERE NULL BETWEEN NULL AND + + 30
----

skipif mysql # not compatible
query I rowsort label-5555
SELECT - CAST ( NULL AS INTEGER ) * + + 36 FROM tab1 WHERE NULL BETWEEN NULL AND + + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT 57 * + + MAX( + col1 ) FROM tab1 AS cor0
----
2679

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT 57 * + + MAX ( + col1 ) FROM tab1 AS cor0
----
2679

query III rowsort
SELECT * FROM tab0 cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT - 46 - - 33 AS col2 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) * MIN( DISTINCT - 72 ) AS col1 FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) * MIN ( DISTINCT - 72 ) AS col1 FROM tab1
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - 95 * 22 + - + COUNT( * ) col1 FROM tab1
----
-2093

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT - 95 * 22 + - + COUNT ( * ) col1 FROM tab1
----
-2093

query I rowsort
SELECT DISTINCT col2 + - ( - col1 ) AS col0 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 col0 FROM tab1
----
138
65
90

query I rowsort
SELECT 17 + + 83 AS col1 FROM tab2
----
100
100
100

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 - col2 IN ( + + col1 / - 55, + col1 )
----

query I rowsort
SELECT ALL col1 + 88 * col2 AS col2 FROM tab1
----
5197
6031
8462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + 12 col0 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + + MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5567
SELECT + + MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + 67 * col1 AS col0, + col2 FROM tab0 AS cor0
----
1407
10
5427
47
67
99

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - + 36 AS col1 FROM tab2 AS cor0
----
110880
139896
42228

query I rowsort
SELECT col2 - + 23 AS col0 FROM tab1
----
36
45
73

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT ALL - col0 / 83 * - - 15 + + CAST( NULL AS SIGNED ) + + col0 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - col0 / 83 * - - 15 + + CAST ( NULL AS INTEGER ) + + col0 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT - - ( + - 37 ) FROM tab2 AS cor0
----
-37
-37
-37

query II rowsort
SELECT DISTINCT col1, + 17 + - 36 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
1
-19
21
-19
81
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + MAX( 21 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5577
SELECT + MAX ( 21 ) FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT - 59 * + + COUNT( * ) * - + 63 AS col0 FROM tab0 AS cor0
----
11151

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT - 59 * + + COUNT ( * ) * - + 63 AS col0 FROM tab0 AS cor0
----
11151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL - MAX( DISTINCT - + col1 ) * + 19 FROM tab2
----
969

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL - MAX ( DISTINCT - + col1 ) * + 19 FROM tab2
----
969

query II rowsort
SELECT ALL col0, col1 - - - 71 FROM tab1
----
51
-57
85
-66
91
-24

query II rowsort
SELECT ALL col0 AS col0, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT - CAST( - + ( + 30 ) AS SIGNED ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - CAST ( - + ( + 30 ) AS INTEGER ) FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT - col0 DIV + + 23 FROM tab1
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5584
SELECT - col0 / + + 23 FROM tab1
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) + + ( + ( + + col1 ) ) * col2 * - col1 + col1 FROM tab1 WHERE + col1 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) + + ( + ( + + col1 ) ) * col2 * - col1 + col1 FROM tab1 WHERE + col1 * - col0 IS NOT NULL
----
NULL

query II rowsort
SELECT - + col1, - col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT + 79 * - col0 * CAST( - col0 AS SIGNED ) + 87 * col0 FROM tab0 AS cor0
----
19080
605520
751750

skipif mysql # not compatible
query I rowsort label-5587
SELECT + 79 * - col0 * CAST ( - col0 AS INTEGER ) + 87 * col0 FROM tab0 AS cor0
----
19080
605520
751750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + COUNT( ALL + - 55 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5590
SELECT + COUNT ( ALL + - 55 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 37 * + ( col0 ) + - col0 AS col0 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT - col1 + 59 FROM tab2
----
-18
-8
8

query I rowsort
SELECT - 47 + 39 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT DISTINCT + + MAX( DISTINCT + col0 ) AS col0, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
91
-3

skipif mysql # not compatible
query II rowsort label-5594
SELECT DISTINCT + + MAX ( DISTINCT + col0 ) AS col0, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
91
-3

query I rowsort
SELECT ALL col2 * col2 + col0 + + + col2 * + - 28 + - col1 FROM tab0 AS cor0
----
-114
7125
827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5596
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + CAST( NULL AS SIGNED ) * 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5596
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + CAST ( NULL AS INTEGER ) * 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + + MIN( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT + + MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NULL > col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT - 46 * 22 DIV - col2 + + 53 + - col0 + 15 * col2 FROM tab0 WHERE NULL IS NULL
----
1451
217
764

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 46 * 22 / - col2 + + 53 + - col0 + 15 * col2 FROM tab0 WHERE NULL IS NULL
----
1451
217
764

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + COUNT( * ) + + 65 AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + COUNT ( * ) + + 65 AS col0 FROM tab0
----
68

query I rowsort
SELECT DISTINCT 19 * + - col2 AS col2 FROM tab0
----
-1881
-190
-893

query II rowsort
SELECT col2 * - 19 * + col2 * - - col1 - ( + col1 ), - col0 + col2 AS col2 FROM tab2
----
-2340877
-24
-4282439
-17
-512652
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT + SUM( DISTINCT 24 ) * + 40 + - ( + - 99 ) FROM tab1
----
1059

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + SUM ( DISTINCT 24 ) * + 40 + - ( + - 99 ) FROM tab1
----
1059

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5603
SELECT DISTINCT ( + + col0 ) + + + 56, CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
107
-14
141
-5
147
-47

skipif mysql # not compatible
query II rowsort label-5603
SELECT DISTINCT ( + + col0 ) + + + 56, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
107
-14
141
-5
147
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT 34 - + COUNT( * ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5604
SELECT 34 - + COUNT ( * ) AS col0 FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT - CAST( NULL AS SIGNED ) - - - 5 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT - CAST ( NULL AS INTEGER ) - - - 5 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 64 - + col1 + + - 29 + - col0 AS col0 FROM tab2 cor0
----
-190
-234
-235

query I rowsort
SELECT ALL - col2 + - 29 AS col1 FROM tab1 AS cor0
----
-125
-88
-97

query I rowsort
SELECT ALL 76 * col2 + - - col0 FROM tab2 cor0
----
1794
3104
4483

query I rowsort
SELECT ALL + ( 38 ) AS col0 FROM tab2
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT + col1 * col2 - ( CAST( + 27 AS SIGNED ) ) FROM tab2
----
1146
3053
3859

skipif mysql # not compatible
query I rowsort label-5610
SELECT + col1 * col2 - ( CAST ( + 27 AS INTEGER ) ) FROM tab2
----
1146
3053
3859

query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
141
142
97

query I rowsort
SELECT + ( - col0 ) FROM tab2 WHERE NOT - col2 + - col0 IN ( + ( - col2 ) - - col2 / 76 )
----
-46
-64
-75

query I rowsort
SELECT + 20 * + col1 - + 48 FROM tab2
----
1292
1492
972

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL - CAST( 23 AS SIGNED ) FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - CAST ( 23 AS INTEGER ) FROM tab0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT 66 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5616
SELECT 66 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
66
66
66

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * + 32 ) <> ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / ( ( 74 ) ) NOT BETWEEN NULL AND 7 * ( + col1 )
----

query I rowsort
SELECT + 61 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 92 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col2 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 82 * 18 AS col2 FROM tab2
----
1476
1476
1476

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND 39
----

query III rowsort
SELECT * FROM tab0 WHERE ( 87 ) NOT IN ( + ( - col0 ) / 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL COUNT( * ) * 88 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COUNT ( * ) * 88 FROM tab1
----
264

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2 * 20 + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT COUNT( + 40 ) col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT BETWEEN 67 AND - col0 * - col0 + 97
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5629
SELECT DISTINCT COUNT ( + 40 ) col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT BETWEEN 67 AND - col0 * - col0 + 97
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 + - 72 AND 41 + 69 / col2
----
87
21
10

query I rowsort
SELECT col1 + 67 AS col0 FROM tab1 AS cor0
----
114
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL COUNT( * ) + - 28 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL COUNT ( * ) + - 28 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT - - ( + ( - 57 ) ) AS col2 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + + 97 - SUM( DISTINCT 84 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5635
SELECT + + 97 - SUM ( DISTINCT 84 ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + col0 - - col1 * - col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT 20 + 57 FROM tab1 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * + col1 + - col0 col2 FROM tab0 cor0
----
-23
1467
5979

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT + + col0 * ( - 51 ) + - col1 AS col1 FROM tab0 AS cor0
----
-4458
-4948
-846

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 - 51 * - col1 ) AND col2
----

query I rowsort
SELECT + 88 + 29 FROM tab1 cor0
----
117
117
117

query I rowsort
SELECT ALL 62 + 33 FROM tab2 WHERE 23 < ( + col0 )
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT DISTINCT 43 + col2 * + CAST( + CAST( - col0 AS SIGNED ) * - col0 AS SIGNED ) col1 FROM tab1
----
249739
426318
563151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5644
SELECT DISTINCT 43 + col2 * + CAST ( + CAST ( - col0 AS INTEGER ) * - col0 AS INTEGER ) col1 FROM tab1
----
249739
426318
563151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5645
SELECT + col2 DIV + CAST( 33 AS SIGNED ) FROM tab1 WHERE - CAST( - col0 AS SIGNED ) NOT IN ( col2 )
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5645
SELECT + col2 / + CAST ( 33 AS INTEGER ) FROM tab1 WHERE - CAST ( - col0 AS INTEGER ) NOT IN ( col2 )
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL - 57 + + - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - 57 + + - COUNT ( * ) FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT ( - + col1 ) + + col1 DIV 39 FROM tab1
----
-14
-46
-5

skipif mysql # not compatible
query I rowsort label-5647
SELECT ( - + col1 ) + + col1 / 39 FROM tab1
----
-14
-46
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT + COUNT( * ) * + 17 + + 46 * - COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + COUNT ( * ) * + 17 + + 46 * - COUNT ( * ) FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT DISTINCT + 33 - + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + 33 - + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= col0 * 99
----

query I rowsort
SELECT ALL - col2 * 40 * - 92 + - 96 AS col1 FROM tab2
----
147104
213344
84544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT col2 * + + col0 + CAST( col2 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT col2 * + + col0 + CAST ( col2 AS INTEGER ) / col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5653
SELECT ALL - + MIN( + CAST( - col1 AS SIGNED ) ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - + MIN ( + CAST ( - col1 AS INTEGER ) ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
25

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 / col0 + + 53 NOT IN ( + col2 ) )
----

query I rowsort
SELECT ALL + col2 * + col1 * col1 + col2 FROM tab0 AS cor0
----
198
308414
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT - MIN( 22 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - MIN ( 22 ) FROM tab0 AS cor0
----
-22

query II rowsort
SELECT - col2, 6 AS col2 FROM tab2 AS cor0
----
-23
6
-40
6
-58
6

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - col0 AND - col1
----

query I rowsort
SELECT - col1 * + col1 * + - col1 + - col2 AS col2 FROM tab2 AS cor0
----
132628
300705
456493

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab0 AS cor0
----
101
161
81

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 25 * - col0 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT ALL + col1 DIV + ( - 73 ) col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT ALL + col1 / + ( - 73 ) col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL + MIN( col2 ) + 50 FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + MIN ( col2 ) + 50 FROM tab1 AS cor0
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT + COUNT( * ) DIV COUNT( ALL - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + COUNT ( * ) / COUNT ( ALL - col2 ) FROM tab2
----
1

query I rowsort
SELECT ALL + col0 + 55 * - col1 AS col0 FROM tab2
----
-2759
-3610
-4171

query I rowsort
SELECT - col0 FROM tab1 WHERE - 12 < + col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT 8 * - + COUNT( * ) DIV 77 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT 8 * - + COUNT ( * ) / 77 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT MAX( ALL + col0 ) AS col0 FROM tab0 WHERE ( 83 * + - col1 ) NOT BETWEEN - 44 AND - col1
----
97

skipif mysql # not compatible
query I rowsort label-5669
SELECT MAX ( ALL + col0 ) AS col0 FROM tab0 WHERE ( 83 * + - col1 ) NOT BETWEEN - 44 AND - col1
----
97

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 WHERE NOT ( + + col1 ) IS NULL
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT - CAST( ( - - col2 ) AS SIGNED ) * + col2 col2 FROM tab2 cor0
----
-1600
-3364
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT - CAST ( ( - - col2 ) AS INTEGER ) * + col2 col2 FROM tab2 cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 - - + col1 IS NOT NULL
----

query I rowsort
SELECT 56 * - - col1 FROM tab2 AS cor0
----
2856
3752
4312

query I rowsort
SELECT col0 * - - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL - col2 DIV + 28 + - 22 * col1 FROM tab0 AS cor0 WHERE NOT ( - col1 BETWEEN + col0 AND ( NULL ) )
----
-1783
-25
-462

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - col2 / + 28 + - 22 * col1 FROM tab0 AS cor0 WHERE NOT ( - col1 BETWEEN + col0 AND ( NULL ) )
----
-1783
-25
-462

query III rowsort
SELECT * FROM tab2 WHERE + ( + - 54 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + - col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 97 > col0 + + + col0
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT ALL - + col2 - + 10 FROM tab2 AS cor0
----
-33
-50
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT + ( - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5681
SELECT + ( - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT MIN( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5682
SELECT MIN ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL SUM( - col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5683
SELECT ALL SUM ( - col1 ) col1 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT DISTINCT + 5, - col1 AS col2 FROM tab2 AS cor0
----
5
-51
5
-67
5
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5685
SELECT + + 70 DIV + CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE + col0 * - col1 IS NOT NULL
----
-1
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5685
SELECT + + 70 / + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE + col0 * - col1 IS NOT NULL
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT SUM( ALL + + col2 ) + 37 FROM tab1 WHERE NOT + 85 IS NULL
----
260

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT SUM ( ALL + + col2 ) + 37 FROM tab1 WHERE NOT + 85 IS NULL
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5687
SELECT DISTINCT COUNT( * ) AS col1, CAST( - - 7 AS SIGNED ) FROM tab0
----
3
7

skipif mysql # not compatible
query II rowsort label-5687
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( - - 7 AS INTEGER ) FROM tab0
----
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT 68 * + - SUM( ALL + - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT 68 * + - SUM ( ALL + - 0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT - COUNT( ALL - - ( 13 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5689
SELECT - COUNT ( ALL - - ( 13 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5690
SELECT DISTINCT - CAST( + 70 AS SIGNED ) col1, - col0 FROM tab2
----
-70
-46
-70
-64
-70
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5690
SELECT DISTINCT - CAST ( + 70 AS INTEGER ) col1, - col0 FROM tab2
----
-70
-46
-70
-64
-70
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 >= ( + 40 )
----
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT - 36, col2 DIV col1 AS col2 FROM tab0
----
-36
0
-36
0
-36
99

skipif mysql # not compatible
query II rowsort label-5692
SELECT - 36, col2 / col1 AS col2 FROM tab0
----
-36
0
-36
0
-36
99

query I rowsort
SELECT + + 9 AS col2 FROM tab1 WHERE NOT ( + col1 <> + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5694
SELECT + col0 AS col1, 50 * + CAST( 21 AS SIGNED ) AS col0, 75 * - + 74 * col1 + 80 FROM tab2
----
9 values hashing to 3737677ac73efd74c17cce7632029cb7

skipif mysql # not compatible
query III rowsort label-5694
SELECT + col0 AS col1, 50 * + CAST ( 21 AS INTEGER ) AS col0, 75 * - + 74 * col1 + 80 FROM tab2
----
9 values hashing to 3737677ac73efd74c17cce7632029cb7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5695
SELECT ALL - CAST( + + col2 AS SIGNED ) AS col1, - 23 DIV col1 col2 FROM tab1
----
-59
-4
-68
0
-96
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5695
SELECT ALL - CAST ( + + col2 AS INTEGER ) AS col1, - 23 / col1 col2 FROM tab1
----
-59
-4
-68
0
-96
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - col0 + - 3 = NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col0 + - col1 - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - 31 IN ( col0, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5699
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5699
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 35 FROM tab1 AS cor0
----
14
35
47
35
5
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5701
SELECT DISTINCT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5702
SELECT col2 * col2 col2, - CAST( + 55 AS SIGNED ) FROM tab0
----
100
-55
2209
-55
9801
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5702
SELECT col2 * col2 col2, - CAST ( + 55 AS INTEGER ) FROM tab0
----
100
-55
2209
-55
9801
-55

query I rowsort
SELECT 4 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - 68 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1428
-5508
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL - CAST( col1 AS SIGNED ) * 5 col1 FROM tab2 cor0
----
-255
-335
-385

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT ALL - CAST ( col1 AS INTEGER ) * 5 col1 FROM tab2 cor0
----
-255
-335
-385

query I rowsort
SELECT DISTINCT - col1 * + 46 * - - 32 AS col1 FROM tab0 cor0
----
-119232
-1472
-30912

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - 80 * + col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT DISTINCT + ( - + col1 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + ( - + col1 ) / - col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT DISTINCT CAST( + 52 AS SIGNED ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT CAST ( + 52 AS INTEGER ) FROM tab0
----
52

query II rowsort
SELECT - col2 AS col1, + 65 AS col1 FROM tab0
----
-10
65
-47
65
-99
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col2 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT 92, col1 FROM tab1
----
92
14
92
47
92
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + COUNT( - + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5713
SELECT + COUNT ( - + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT 67 AS col2, - COUNT( * ) FROM tab0
----
67
-3

skipif mysql # not compatible
query II rowsort label-5714
SELECT 67 AS col2, - COUNT ( * ) FROM tab0
----
67
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT 22 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) * + + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-5715
SELECT 22 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + + col2 = NULL
----

query I rowsort
SELECT - 64 + - - col2 - - - 3 * + col2 AS col0 FROM tab0
----
-158
-262
-84

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab2 AS cor0 WHERE 34 NOT BETWEEN NULL AND - ( + col2 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5718
SELECT ALL 4, - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
4
NULL
4
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL 4, - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
4
NULL
4
NULL
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT MIN( + col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5719
SELECT MIN ( + col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT ( - + col1 ) + 76 FROM tab0 AS cor0 WHERE + col1 / - + 83 * - col0 + + - col2 + + + col1 IS NOT NULL
----
-5
55
75

query II rowsort
SELECT - col0 AS col2, + 74 AS col0 FROM tab2 AS cor0
----
-46
74
-64
74
-75
74

query I rowsort
SELECT + ( 79 ) FROM tab1 WHERE ( NOT col2 IS NULL )
----
79
79
79

query I rowsort
SELECT 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - 10 - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-5725
SELECT - 10 - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 / + col1 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col1 - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT - - col1 * - + col0 - + CAST( NULL AS SIGNED ) + - 17 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT - - col1 * - + col0 - + CAST ( NULL AS INTEGER ) + - 17 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT - col0 / col1 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - col0 / col1 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5730
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) + - + col2 * - 63 NOT IN ( + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5730
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) + - + col2 * - 63 NOT IN ( + - col0 )
----

query I rowsort
SELECT - 70 * + 13 AS col2 FROM tab2
----
-910
-910
-910

query I rowsort
SELECT ALL + 89 * - col0 AS col0 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5733
SELECT CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * + + col0 col1 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT DISTINCT 86 + 53 AS col2 FROM tab0 WHERE NOT ( + 74 * - - col0 ) NOT IN ( col0 )
----

query I rowsort
SELECT + col0 * + 15 FROM tab0
----
1305
1455
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL MAX( col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL MAX ( col1 ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col2 FROM tab2
----
84
84
84

query I rowsort
SELECT + col2 * + 33 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT + + SUM( - 30 ) col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT DISTINCT + + SUM ( - 30 ) col0 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT 34 * + col1 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE - - col2 NOT IN ( + 98, col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5742
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE - - col2 NOT IN ( + 98, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT COUNT( * ) AS col0, + ( - + COUNT( DISTINCT col1 ) ) + + + COUNT( * ) + + 9 col0 FROM tab0
----
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5743
SELECT COUNT ( * ) AS col0, + ( - + COUNT ( DISTINCT col1 ) ) + + + COUNT ( * ) + + 9 col0 FROM tab0
----
3
9

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab1 WHERE NOT ( + - 59 * 32 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT 38 * + CAST( NULL AS SIGNED ) / - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT 38 * + CAST ( NULL AS INTEGER ) / - col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 68 BETWEEN + 43 AND col2
----
51
67
77

query I rowsort
SELECT + + 88 + + col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT ( - + col2 ) + 87 * col1 + col1 FROM tab2 cor0
----
4465
5838
6736

query II rowsort
SELECT DISTINCT - 23 AS col0, col0 FROM tab1 AS cor0
----
-23
51
-23
85
-23
91

query I rowsort
SELECT col0 + + col1 - 22 FROM tab0 AS cor0
----
74
76
86

query I rowsort
SELECT - 76 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1221
-6633
-7373

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5753
SELECT - + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL 63 AS col2 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE ( + col1 * col0 IS NOT NULL )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col0 / - col2 * + 35
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 * 39 > ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT - 53 AS col1 FROM tab0 WHERE col1 IN ( + + col1 + - + col2 + - 18 / - + col1 + + CAST( NULL AS SIGNED ) + + - 59 / - 23 )
----

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 53 AS col1 FROM tab0 WHERE col1 IN ( + + col1 + - + col2 + - 18 / - + col1 + + CAST ( NULL AS INTEGER ) + + - 59 / - 23 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN - - col1 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL - col0 / 28 * + - col0 * - col0 + + - 37 - - + CAST( NULL AS SIGNED ) / - - 29 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - col0 / 28 * + - col0 * - col0 + + - 37 - - + CAST ( NULL AS INTEGER ) / - - 29 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + - 98 ) NOT BETWEEN + col0 * - col2 AND - + 0 + 90
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 NOT IN ( + + 80, - 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT col1 DIV col0 * - - 2 + - 11 AS col1 FROM tab0
----
-1
-11

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT col1 / col0 * - - 2 + - 11 AS col1 FROM tab0
----
-1
-11

query II rowsort
SELECT DISTINCT ( col0 ) AS col0, col1 * col2 AS col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query I rowsort
SELECT DISTINCT - col1 * + 99 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5767
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 + - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5769
SELECT CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5769
SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5770
SELECT - 68 AS col0, - COUNT( * ) * + 9 AS col2 FROM tab2 AS cor0
----
-68
-27

skipif mysql # not compatible
query II rowsort label-5770
SELECT - 68 AS col0, - COUNT ( * ) * + 9 AS col2 FROM tab2 AS cor0
----
-68
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + COUNT( ALL + + 11 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5771
SELECT + COUNT ( ALL + + 11 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL + + CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + + CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT + 10, COUNT( * ) col2 FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5773
SELECT + 10, COUNT ( * ) col2 FROM tab0 AS cor0
----
10
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / 99 + col0 + - - 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( + 85 ) FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + + 5 * 74 FROM tab0 AS cor0
----
370

query I rowsort
SELECT + col1 * - + 86 FROM tab2 AS cor0
----
-4386
-5762
-6622

query I rowsort
SELECT ALL - 30 + col1 FROM tab0 WHERE ( - 8 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab2
----
98
98
98

query I rowsort
SELECT - 34 * - - 97 * + + col1 AS col0 FROM tab1
----
-155006
-16490
-46172

query I rowsort
SELECT DISTINCT col2 - 26 FROM tab1 WHERE NULL IS NULL OR 8 IS NOT NULL
----
33
42
70

query I rowsort
SELECT - 52 * + col1 * 78 FROM tab1
----
-190632
-20280
-56784

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab1 cor0
----
92

query II rowsort
SELECT DISTINCT col2 + col1 * col2 AS col2, - 64 AS col1 FROM tab0
----
198
-64
220
-64
3854
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 BETWEEN NULL AND + col1
----

query II rowsort
SELECT 94, - col2 AS col1 FROM tab2
----
94
-23
94
-40
94
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT - SUM( + - ( + - col2 ) ) * + - CAST( NULL AS SIGNED ) * + - ( - 77 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - SUM ( + - ( + - col2 ) ) * + - CAST ( NULL AS INTEGER ) * + - ( - 77 ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 40 ) col1 FROM tab2
----
40
40
40

query I rowsort
SELECT ALL - ( + - col1 ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 95 AS col2 FROM tab2 cor0
----
95
95
95

query II rowsort
SELECT ALL - 12 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-12
-23
-12
-40
-12
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - + MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5794
SELECT - + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - 19 ) * + 81 + + 93 col0 FROM tab2 AS cor0
----
-1446

query I rowsort
SELECT 89 + - 11 AS col0 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT 30 + + COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5797
SELECT 30 + + COUNT ( * ) FROM tab2
----
33

query I rowsort
SELECT ALL + + 32 AS col0 FROM tab2 WHERE col0 * - + 57 = + col2 * - col1 * - + col2 * 22 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT ALL + col1 - 72 + - + col2 DIV + col0 FROM tab2
----
-21
-5
5

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL + col1 - 72 + - + col2 / + col0 FROM tab2
----
-21
-5
5

query II rowsort
SELECT ALL - col2, - col1 + - col0 * + ( col2 ) AS col2 FROM tab1
----
-59
-5020
-68
-6235
-96
-4910

query II rowsort
SELECT DISTINCT 50 * - - col2 + + col0 + + + col2 AS col1, - 15 AS col2 FROM tab1
----
3094
-15
3559
-15
4947
-15

query II rowsort
SELECT - - col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT col2 * col2 + ( + col1 ) FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT - 29 * + MIN( ALL + + 33 ) AS col1 FROM tab1 AS cor0
----
-957

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - 29 * + MIN ( ALL + + 33 ) AS col1 FROM tab1 AS cor0
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL - - MAX( DISTINCT + col0 ) * MAX( ALL + col0 ) FROM tab1 AS cor0
----
8281

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - - MAX ( DISTINCT + col0 ) * MAX ( ALL + col0 ) FROM tab1 AS cor0
----
8281

query I rowsort
SELECT DISTINCT 99 * col2 * - col0 FROM tab0 AS cor0
----
-69795
-86130
-950697

query I rowsort
SELECT - col0 * - ( + col1 ) FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL col0 AS col1, - col1 AS col2 FROM tab2
----
46
-51
64
-77
75
-67

query II rowsort
SELECT ALL col1, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5810
SELECT DISTINCT + - 70, + 96 + - col0 + + col1 * + 5 * CAST( NULL AS SIGNED ) * + col2 * + CAST( NULL AS DECIMAL ) * + 78 + - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-5810
SELECT DISTINCT + - 70, + 96 + - col0 + + col1 * + 5 * CAST ( NULL AS INTEGER ) * + col2 * + CAST ( NULL AS REAL ) * + 78 + - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - 58 ) FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - col2 * + + 24 * - col2 * col2 FROM tab0 AS cor0
----
23287176
24000
2491752

onlyif mysql # DIV for integer division: 
query II rowsort label-5813
SELECT - 67, col1 DIV + col2 AS col2 FROM tab2 AS cor0
----
-67
1
-67
1
-67
2

skipif mysql # not compatible
query II rowsort label-5813
SELECT - 67, col1 / + col2 AS col2 FROM tab2 AS cor0
----
-67
1
-67
1
-67
2

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - 16 AS col2 FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5816
SELECT * FROM tab2 WHERE NOT 80 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5816
SELECT * FROM tab2 WHERE NOT 80 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT - CAST( - col2 AS SIGNED ) + col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5817
SELECT - CAST ( - col2 AS INTEGER ) + col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT - col0 * - + col1 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT - col0 * - + col1 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - col1 FROM tab0 cor0 WHERE ( NOT + col0 = col2 / + col2 )
----
108
96
98

query I rowsort
SELECT 17 + - 19 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col1 ) BETWEEN + col1 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( - + 82 ) col2, 3 FROM tab0 AS cor0
----
82
3
82
3
82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - MIN( - + col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5823
SELECT ALL - MIN ( - + col2 ) col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL - MAX( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + - 37, col2, - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + - 37, col2, - col0 ) )
----
NULL

query I rowsort
SELECT ALL + 75 * + 60 FROM tab0
----
4500
4500
4500

query I rowsort
SELECT ALL 82 + - col2 FROM tab2
----
24
42
59

query I rowsort
SELECT ALL col0 + + + 5 AS col2 FROM tab1
----
56
90
96

query III rowsort
SELECT * FROM tab2 WHERE - 94 + - ( - 85 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + - col1 ) + + - col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL + COUNT( * ) * + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + COUNT ( * ) * + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT + - 48 DIV 19 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-5832
SELECT + - 48 / 19 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
-2

query I rowsort
SELECT col0 * - + col0 * 16 FROM tab1
----
-115600
-132496
-41616

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 51 <= NULL
----

query I rowsort
SELECT + + col1 * ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * - + col2, col2, - ( - + col1 ) )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, 74 * - 90 FROM tab0 AS cor0
----
1
-6660
21
-6660
81
-6660

query II rowsort
SELECT DISTINCT col0 * - + col0 * + 45 * col2 AS col2, col0 + - - col1 AS col1 FROM tab1 AS cor0
----
-11236320
65
-19182375
90
-25339860
138

query I rowsort
SELECT ALL + col2 * + 86 FROM tab1 AS cor0
----
5074
5848
8256

query I rowsort
SELECT ALL + 7 * + - 26 + col2 * ( + + 77 ) * + - 40 * - 84 FROM tab0 AS cor0
----
12159658
25613098
2587018

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT COUNT( * ) * - 42 AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-5841
SELECT COUNT ( * ) * - 42 AS col0 FROM tab2
----
-126

onlyif mysql # DIV for integer division: 
query II rowsort label-5842
SELECT + col2 * ( - - 96 ) AS col0, col2 DIV - 47 col2 FROM tab2
----
2208
0
3840
0
5568
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5842
SELECT + col2 * ( - - 96 ) AS col0, col2 / - 47 col2 FROM tab2
----
2208
0
3840
0
5568
-1

query I rowsort
SELECT col2 * 32 AS col1 FROM tab0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL COUNT( DISTINCT CAST( - + col1 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL COUNT ( DISTINCT CAST ( - + col1 AS INTEGER ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT col2 + - 53 FROM tab2 cor0
----
-13
-30
5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT - col1 / + ( - col0 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - col1 / + ( - col0 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5849
SELECT CAST( + 77 AS SIGNED ) + col1 - - - col0 DIV - 41 AS col2, col1 FROM tab0
----
100
21
158
81
80
1

skipif mysql # not compatible
query II rowsort label-5849
SELECT CAST ( + 77 AS INTEGER ) + col1 - - - col0 / - 41 AS col2, col1 FROM tab0
----
100
21
158
81
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT 79 DIV - - 67 + col1 * col1 * + + col1 AS col1 FROM tab0
----
2
531442
9262

skipif mysql # not compatible
query I rowsort label-5850
SELECT 79 / - - 67 + col1 * col1 * + + col1 AS col1 FROM tab0
----
2
531442
9262

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 68
----

query I rowsort
SELECT DISTINCT 3 * + col2 * - 56 - + col0 FROM tab0 AS cor0
----
-16729
-1767
-7911

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 60 + - ( + + COUNT( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 60 + - ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT + 88 DIV - 18 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 88 / - 18 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - ( + + 8 ) AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL > + 92 + 63 * col0 * + - 32 * col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL - COUNT( * ) * + + 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - COUNT ( * ) * + + 86 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT ALL SUM( + 22 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL SUM ( + 22 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - MIN( - + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5861
SELECT - MIN ( - + 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL + + ( + col0 ) - - col0 AS col0 FROM tab1 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT COUNT( - + 24 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT COUNT ( - + 24 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + + 2 ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab1 WHERE NOT + 51 - + + col0 IS NULL
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - col0 + + col2 - col1 + + col2 FROM tab1
----
-2
127
28

query I rowsort
SELECT DISTINCT + 24 * + col0 FROM tab0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT ALL - col2 + + + 26 DIV + 8 FROM tab1
----
-56
-65
-93

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - col2 + + + 26 / + 8 FROM tab1
----
-56
-65
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT ALL - CAST( - 39 AS SIGNED ) * - 35 AS col2 FROM tab0
----
-1365
-1365
-1365

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - CAST ( - 39 AS INTEGER ) * - 35 AS col2 FROM tab0
----
-1365
-1365
-1365

query II rowsort
SELECT + ( + col0 ), col1 FROM tab0 cor0
----
15
81
87
21
97
1

query II rowsort
SELECT DISTINCT - + col1 AS col2, - col0 + 97 FROM tab0 AS cor0
----
-1
0
-21
10
-81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL - - SUM( - + 96 ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL - - SUM ( - + 96 ) FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5874
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND - - CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5874
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND - - CAST ( 78 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-5875
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT MIN( + col0 ) + + 53 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5876
SELECT MIN ( + col0 ) + + 53 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col1 + 42 FROM tab0 AS cor0
----
123
43
63

query I rowsort
SELECT col1 * + - col1 - - col2 FROM tab0 AS cor0
----
-431
-6514
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + col2 + 23 FROM tab1
----
119
82
91

query I rowsort
SELECT + ( + - 36 ) - - + col0 AS col1 FROM tab2
----
10
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col1 col2 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL - col0 AS col2, 12 + + ( - col0 ) AS col1, - col0 FROM tab1
----
9 values hashing to 63f294cd9d1986c9bef1198822fe988a

query I rowsort
SELECT 20 - + - col1 + + - col2 FROM tab1
----
-1
-34
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT + 91 - + COUNT( * ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT + 91 - + COUNT ( * ) AS col2 FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT ALL - col1 + col0 DIV + col2 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - col1 + col0 / + col2 FROM tab0
----
-1
-13
-81

query I rowsort
SELECT + ( - 14 ) FROM tab0
----
-14
-14
-14

query II rowsort
SELECT - + col0, - col0 FROM tab0 cor0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col0 <= - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT ALL + 57 - + - 56 + - col2 * + + col0 - - - 52 FROM tab0 cor0 WHERE NOT - 66 * + col1 * + CAST( + col0 AS SIGNED ) NOT BETWEEN - 83 AND + col1
----

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL + 57 - + - 56 + - col2 * + + col0 - - - 52 FROM tab0 cor0 WHERE NOT - 66 * + col1 * + CAST ( + col0 AS INTEGER ) NOT BETWEEN - 83 AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT ( - 25 ), col0 FROM tab0 AS cor0
----
-25
15
-25
87
-25
97

query II rowsort
SELECT 76 AS col1, col0 FROM tab1
----
76
51
76
85
76
91

query I rowsort
SELECT - 32 + + col0 FROM tab0
----
-17
55
65

query III rowsort
SELECT * FROM tab0 WHERE + 62 * - col1 NOT BETWEEN + 51 + + col2 * + col1 / + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 80 + - 27 AS col0 FROM tab1
----
-107
-107
-107

query II rowsort
SELECT + col2 + 29 + - col1 * + + col1 * col1 AS col0, + col2 FROM tab1
----
-103726
68
-2619
96
-37
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5899
SELECT - col1 * - col1 + + col0 + col0 DIV col2 AS col1, + col0 + + + 20 FROM tab2 AS cor0
----
2649
66
4565
95
5994
84

skipif mysql # not compatible
query II rowsort label-5899
SELECT - col1 * - col1 + + col0 + col0 / col2 AS col1, + col0 + + + 20 FROM tab2 AS cor0
----
2649
66
4565
95
5994
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT COUNT( * ) * - MAX( DISTINCT - 13 ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5900
SELECT COUNT ( * ) * - MAX ( DISTINCT - 13 ) AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT DISTINCT 66 + - COUNT( * ), + 1 AS col1 FROM tab0
----
63
1

skipif mysql # not compatible
query II rowsort label-5901
SELECT DISTINCT 66 + - COUNT ( * ), + 1 AS col1 FROM tab0
----
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL - 91 + COUNT( * ) + 70 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - 91 + COUNT ( * ) + 70 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * + col2 + - col1 - - col0 col2 FROM tab1 AS cor0
----
3915
4464
6277

query I rowsort
SELECT 68 * - col2 - - + col1 * - 49 AS col2 FROM tab0 AS cor0
----
-1709
-6781
-7165

query I rowsort
SELECT ALL + + ( 18 ) - + col1 AS col1 FROM tab0 cor0
----
-3
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT - 37 + - CAST( - 42 AS SIGNED ) FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 37 + - CAST ( - 42 AS INTEGER ) FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-5907
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
3

query I rowsort
SELECT - ( + - col0 ) + + col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT 14 + - - COUNT( col0 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5909
SELECT 14 + - - COUNT ( col0 ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + 57 * COUNT( * ) AS col0 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + 57 * COUNT ( * ) AS col0 FROM tab0
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT - col1 DIV 78 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT - col1 / 78 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT ALL - 31 DIV + - 85 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - 31 / + - 85 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT DISTINCT + + col2 * col1 + CAST( NULL AS SIGNED ) + - + 15 AS col1 FROM tab1 WHERE NOT NULL >= - + 42
----

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + + col2 * col1 + CAST ( NULL AS INTEGER ) + - + 15 AS col1 FROM tab1 WHERE NOT NULL >= - + 42
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 64 + - + col2 + + - 3 / + + 11 + + col1 + col1 <> NULL
----

query I rowsort
SELECT + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT DISTINCT AVG ( ALL - - CAST( NULL AS SIGNED ) ) / + - 10 AS col1, + 93 AS col1 FROM tab0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5918
SELECT DISTINCT AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / + - 10 AS col1, + 93 AS col1 FROM tab0
----
NULL
93

query II rowsort
SELECT + 67, col1 AS col0 FROM tab0 cor0
----
67
1
67
21
67
81

query II rowsort
SELECT ALL + - col1 AS col2, + col0 + - + 43 + - col0 * ( + col2 ) * - col1 - col0 AS col1 FROM tab1 AS cor0
----
-14
68501
-47
290793
-5
25032

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - SUM( 23 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - SUM ( 23 ) FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT - CAST( 34 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-5922
SELECT - CAST ( 34 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-34
-34
-34

query I rowsort
SELECT - 99 + 74 - + col2 + + col1 * + + col0 FROM tab2 AS cor0
----
2298
4863
4942

onlyif mysql # DIV for integer division: 
query II rowsort label-5924
SELECT DISTINCT col0, + col1 + - - 24 DIV col0 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-5924
SELECT DISTINCT col0, + col1 + - - 24 / col0 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - - col1 + - col1 * ( + col0 ), + ( col2 ) FROM tab0 AS cor0
----
-1134
47
-1806
10
-96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT - + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT CAST( - ( + + col0 ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5927
SELECT CAST ( - ( + + col0 ) AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT COUNT( ALL - col2 ) AS col0 FROM tab0 WHERE ( - 94 ) + + col1 IN ( - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5928
SELECT COUNT ( ALL - col2 ) AS col0 FROM tab0 WHERE ( - 94 ) + + col1 IN ( - 93 )
----
1

query I rowsort
SELECT 53 AS col0 FROM tab2 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) + - 3 + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) + - 3 + - COUNT ( * ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 col0 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL + + col2 * 12 + - col0 + - ( - col2 ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + + col2 * 12 + - col0 + - ( - col2 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL - + COUNT( * ) + 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - + COUNT ( * ) + 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT ALL + col2 - + - col0 * + col1 FROM tab0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT - + 33, SUM( DISTINCT - 96 ) AS col2 FROM tab0 AS cor0
----
-33
-96

skipif mysql # not compatible
query II rowsort label-5935
SELECT - + 33, SUM ( DISTINCT - 96 ) AS col2 FROM tab0 AS cor0
----
-33
-96

query I rowsort
SELECT DISTINCT + col0 + - 89 * - col2 AS col0 FROM tab0 AS cor0
----
4198
8908
977

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT ALL - 14 * 9 * - col1 - ( - 34 ) FROM tab2 AS cor0
----
6460
8476
9736

query I rowsort
SELECT DISTINCT + 27 * 36 FROM tab0 cor0
----
972

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 < col2 + + - 14 * - - col2
----

query I rowsort
SELECT ALL 86 * 78 AS col1 FROM tab2 AS cor0
----
6708
6708
6708

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * + + 21 AS col0 FROM tab2
----
-1344
-1575
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT DISTINCT - col2 DIV - - col0 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - col2 / - - col0 AS col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT - 35 DIV + 12 AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 35 / + 12 AS col1 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + 74 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * col1 col1 FROM tab1
----
2350
250
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL + CAST( NULL AS SIGNED ) * - MIN( ALL 71 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + CAST ( NULL AS INTEGER ) * - MIN ( ALL 71 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL MAX( DISTINCT 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL MAX ( DISTINCT 79 ) FROM tab2
----
79

query II rowsort
SELECT DISTINCT + col1, 54 FROM tab2
----
51
54
67
54
77
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT MIN( - 38 ) * + 90 AS col0 FROM tab1 WHERE NOT ( NOT col1 * - ( + - 23 ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT MIN ( - 38 ) * + 90 AS col0 FROM tab1 WHERE NOT ( NOT col1 * - ( + - 23 ) IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * col0 col1 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT ALL + + 55 AS col1 FROM tab2 cor0
----
55
55
55

query II rowsort
SELECT col2, - col0 AS col1 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 / + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 / + col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - 80 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL COUNT( * ) + 35 * - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2161

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL COUNT ( * ) + 35 * - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2161

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 77 > NULL
----

query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL + - MIN( + + col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL + - MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT ALL 87 * + CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL 87 * + CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5962
SELECT MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

query II rowsort
SELECT - ( + 67 ) AS col2, + 86 * + col1 FROM tab1 AS cor0
----
-67
1204
-67
4042
-67
430

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2, + 64 AS col0 FROM tab2 AS cor0
----
-3
64

skipif mysql # not compatible
query II rowsort label-5964
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2, + 64 AS col0 FROM tab2 AS cor0
----
-3
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL - 81 + + - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL - 81 + + - COUNT ( * ) FROM tab0
----
-84

query I rowsort
SELECT - col0 * + col1 * - col1 + - 17 - + ( - col2 ) FROM tab0
----
179
38360
98445

query I rowsort
SELECT DISTINCT + 1 + - 77 AS col1 FROM tab2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT ALL col1 + + col2 * col1 * - 19 * - + CAST( 23 AS SIGNED ) AS col2 FROM tab1
----
128920
1396699
587342

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL col1 + + col2 * col1 * - 19 * - + CAST ( 23 AS INTEGER ) AS col2 FROM tab1
----
128920
1396699
587342

query I rowsort
SELECT ALL col2 + 10 AS col1 FROM tab1
----
106
69
78

query II rowsort
SELECT ALL + col0 + + 26 * col0 AS col1, col2 * col1 AS col0 FROM tab1
----
1377
1344
2295
295
2457
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT - ( - MIN( ALL + col0 ) ) + + - 84 AS col2 FROM tab0 WHERE - col1 / + - ( 39 ) < - col2 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT - ( - MIN ( ALL + col0 ) ) + + - 84 AS col2 FROM tab0 WHERE - col1 / + - ( 39 ) < - col2 + - col2
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + 78 + + col0 FROM tab0
----
-1
-110
-80

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT + 84 + 14 AS col0 FROM tab2 AS cor0 WHERE NOT 35 + + 46 + + + CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + 84 + 14 AS col0 FROM tab2 AS cor0 WHERE NOT 35 + + 46 + + + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

query I rowsort
SELECT ALL - + col2 - + col1 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5976
SELECT - CAST( - + 70 AS SIGNED ) DIV - SUM( - col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT - CAST ( - + 70 AS INTEGER ) / - SUM ( - col0 ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL - MAX( + ( + col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - MAX ( + ( + col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 50 + - - 49 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL col0 - + + col2 AS col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) < + ( 78 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col2 + + 83 + - + col0 / - - col0 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 11 - - 29 col2 FROM tab1 AS cor0
----
1085
678
777

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - COUNT( * ) * + SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - COUNT ( * ) * + SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
585

query I rowsort
SELECT DISTINCT col1 * + 77 + + - 32 AS col2 FROM tab1 AS cor0
----
1046
353
3587

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + 98 ) AS col2 FROM tab2
----
98
98
98

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT + 9 <= + + col0 * 84 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT + SUM( DISTINCT + 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + SUM ( DISTINCT + 30 ) FROM tab2
----
30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 42 * + + 54 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 20 * - col1 * + 97 * col2 AS col0 FROM tab1
----
-2607360
-572300
-6200240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - 88 col1 FROM tab1 AS cor0
----
-1432
-3284
-383

onlyif mysql # DIV for integer division: 
query I rowsort label-5993
SELECT 13 DIV col2 col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5993
SELECT 13 / col2 col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT DISTINCT - col2 * col1 - - 92 DIV - col0 + col2 FROM tab2 AS cor0
----
-1152
-3041
-3829

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - col2 * col1 - - 92 / - col0 + col2 FROM tab2 AS cor0
----
-1152
-3041
-3829

query I rowsort
SELECT - - 16 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT - 63 * - 25 FROM tab0
----
1575

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 * + + ( + col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + - + col2 + - 71 * + ( - ( - col1 ) ) FROM tab2 AS cor0
----
-3690
-4890
-5571

query II rowsort
SELECT ALL col2 * - col2 * - 76 * - col2 AS col2, col0 FROM tab2 AS cor0
----
-14828512
75
-4864000
64
-924692
46

query I rowsort
SELECT + + 85 + + col1 FROM tab1 AS cor0
----
132
90
99

query II rowsort
SELECT DISTINCT + ( + + col1 ) * col0 + - ( + col0 ) * - 30 + col1, + col0 FROM tab2 AS cor0
----
3777
46
6925
64
7342
75

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE 81 * - col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - ( - COUNT( * ) ) * - ( - 96 ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6005
SELECT - ( - COUNT ( * ) ) * - ( - 96 ) FROM tab0 AS cor0
----
288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 68 col2 FROM tab1
----
115
73
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col0 ) <> ( - + 48 ) * - - col0 + ( + - 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT col1 + - col2 AS col2, - 6 + - + col2 FROM tab2
----
28
-29
37
-46
9
-64

query I rowsort
SELECT + col0 - + + 20 * + col1 FROM tab1
----
-15
-229
-849

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - - col0 AND col1
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) - - - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) - - - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 69 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 82 * col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 30, col0 AS col0 FROM tab1
----
30
51
30
85
30
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col2 col1 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL + + col1, - col0 - - + 86 AS col2 FROM tab2 AS cor0
----
51
40
67
11
77
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 60 AND - col1
----

query I rowsort
SELECT ALL 64 * + - 90 FROM tab1 AS cor0
----
-5760
-5760
-5760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 74 ) IS NOT NULL
----

query I rowsort
SELECT 54 FROM tab0 AS cor0 WHERE NOT 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6023
SELECT + - 16 col0, ( - CAST( NULL AS SIGNED ) ) * - + AVG ( ALL - 45 ) FROM tab0 AS cor0
----
-16
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6023
SELECT + - 16 col0, ( - CAST ( NULL AS INTEGER ) ) * - + AVG ( ALL - 45 ) FROM tab0 AS cor0
----
-16
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL CAST( 46 AS SIGNED ) FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL CAST ( 46 AS INTEGER ) FROM tab0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - col1 + + + col0 > + col2
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query II rowsort label-6026
SELECT col2 DIV col1, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6026
SELECT col2 / col1, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT + CAST( 63 AS SIGNED ) * + 30 FROM tab0
----
1890
1890
1890

skipif mysql # not compatible
query I rowsort label-6027
SELECT + CAST ( 63 AS INTEGER ) * + 30 FROM tab0
----
1890
1890
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT ALL 69 + - COUNT( * ) col0, - 49 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
66
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6028
SELECT ALL 69 + - COUNT ( * ) col0, - 49 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
66
-49

query II rowsort
SELECT + col0 * + col1 AS col2, col0 + col2 * col2 FROM tab1
----
425
3566
4277
4715
714
9267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6030
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE - 37 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE - 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT DISTINCT CAST( + col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6031
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 98 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT ALL 87 * - - 32 AS col2 FROM tab2 AS cor0
----
2784
2784
2784

query I rowsort
SELECT 73 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT COUNT( * ) AS col2, 67 AS col2 FROM tab1
----
3
67

skipif mysql # not compatible
query II rowsort label-6035
SELECT COUNT ( * ) AS col2, 67 AS col2 FROM tab1
----
3
67

query I rowsort
SELECT ALL - col2 + + ( + ( - col1 ) ) FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT ALL + col1 AS col1, col1 + 27 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
28
21
48
81
108

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT DISTINCT - 49 DIV - col2 AS col2 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - 49 / - col2 AS col2 FROM tab2 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - - 38 AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT col0 * col1 * + 76 - col0 FROM tab2 AS cor0
----
178250
374464
381825

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL + - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL - 59 + + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - 59 + + COUNT ( * ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT 5 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + 14 + - - 44 FROM tab2 AS cor0
----
116
81
98

query II rowsort
SELECT DISTINCT + col0, - 33 AS col1 FROM tab0
----
15
-33
87
-33
97
-33

query I rowsort
SELECT DISTINCT - col2 + + 90 AS col1 FROM tab2
----
32
50
67

query I rowsort
SELECT 23 + + 59 AS col0 FROM tab1
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col0 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT ( - col2 ) + + 52 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT + 95 + 58 FROM tab0
----
153
153
153

query I rowsort
SELECT ALL 34 + + col2 FROM tab0
----
133
44
81

query I rowsort
SELECT ALL - col2 + col0 + + + col1 AS col0 FROM tab2
----
101
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE 72 * + col1 / + col2 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * - col0 - + + col2 AS col1 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + COUNT( * ) * + MAX( DISTINCT 91 ) AS col0 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-6057
SELECT + COUNT ( * ) * + MAX ( DISTINCT 91 ) AS col0 FROM tab2 AS cor0
----
273

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 NOT BETWEEN + + col2 AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col2, + ( - + 3 ) + + + col1 AS col0 FROM tab2
----
-46
48
-64
74
-75
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * 13 + col1 + + 94 + col2 + ( - 92 ) * + 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 + + col1 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT DISTINCT + col2 * col0 FROM tab2 WHERE NOT + CAST( + + col2 AS SIGNED ) BETWEEN - + 58 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + col2 * col0 FROM tab2 WHERE NOT + CAST ( + + col2 AS INTEGER ) BETWEEN - + 58 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 32 * + 86 FROM tab2
----
2752

query I rowsort
SELECT - 40 * + col2 FROM tab0
----
-1880
-3960
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + - 14 * - 88 * COUNT( - + col0 ) + - + 92 + + - 67 * + 96 AS col2 FROM tab2 AS cor0
----
-2828

skipif mysql # not compatible
query I rowsort label-6069
SELECT + - 14 * - 88 * COUNT ( - + col0 ) + - + 92 + + - 67 * + 96 AS col2 FROM tab2 AS cor0
----
-2828

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT MAX( DISTINCT - 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT MAX ( DISTINCT - 20 ) FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6071
SELECT ALL - COUNT( * ) AS col1, 10 AS col2 FROM tab2 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-6071
SELECT ALL - COUNT ( * ) AS col1, 10 AS col2 FROM tab2 AS cor0
----
-3
10

query II rowsort
SELECT - - col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT - col2 * + + 71 DIV 1 AS col2 FROM tab2 AS cor0
----
-1633
-2840
-4118

skipif mysql # not compatible
query I rowsort label-6073
SELECT - col2 * + + 71 / 1 AS col2 FROM tab2 AS cor0
----
-1633
-2840
-4118

query II rowsort
SELECT ALL - col0 AS col0, - col0 * + + 58 AS col0 FROM tab2 cor0
----
-46
-2668
-64
-3712
-75
-4350

query I rowsort
SELECT ALL + 22 + col2 * - 56 FROM tab1 AS cor0
----
-3282
-3786
-5354

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT + SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6076
SELECT + SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 87 FROM tab1 WHERE NOT NULL > col2
----

query I rowsort
SELECT DISTINCT col2 * + ( - col1 * col1 ) + col0 AS col1 FROM tab2
----
-237096
-260287
-59777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT 47 * - ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT 47 * - ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT 84 * MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT 84 * MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * 69 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT ALL 58 DIV - 30 + - col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL 58 / - 30 + - col1 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab0 WHERE 94 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6084
SELECT * FROM tab1 WHERE col2 * + col1 + col1 NOT BETWEEN + 88 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6084
SELECT * FROM tab1 WHERE col2 * + col1 + col1 NOT BETWEEN + 88 AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT - 86 * col1 FROM tab0
----
-1806
-6966
-86

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col1 NOT IN ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 12 - - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - COUNT( * ) * 2 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6089
SELECT - COUNT ( * ) * 2 AS col2 FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 34 * - ( col1 * - col1 ) col2 FROM tab1
----
6613
75015
765

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT DISTINCT col0 DIV 81 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT col0 / 81 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT 14 * COUNT( * ) col1 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6092
SELECT 14 * COUNT ( * ) col1 FROM tab1
----
42

query I rowsort
SELECT + 65 - - col1 FROM tab2
----
116
132
142

query I rowsort
SELECT ( col0 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT + 6 + col2 DIV + col2 FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6095
SELECT + 6 + col2 / + col2 FROM tab1
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * 76 col0 FROM tab1
----
7220
7220
7220

query III rowsort
SELECT * FROM tab0 WHERE - ( + col2 ) >= ( col2 + + col1 )
----

query I rowsort
SELECT 80 + - 10 FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT 85 * - col2 AS col2 FROM tab0
----
-3995
-8415
-850

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( 98 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( - col0 ) + ( + 52 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT ALL - col2 + col1 DIV - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - col2 + col1 / - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col2 * + 34 AS col0 FROM tab1 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col2 NOT BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ( col1 ) * 63 AS col1 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
2961
315
882

query I rowsort
SELECT col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT + 48 * - 17 FROM tab1 AS cor0
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT - ( 82 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - ( 82 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-246

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 75 )
----

query I rowsort
SELECT 38 * col0 AS col2 FROM tab2
----
1748
2432
2850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6114
SELECT CAST( ( - col1 ) AS SIGNED ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT CAST ( ( - col1 ) AS INTEGER ) / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT COUNT( * ) * + 68 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-6115
SELECT COUNT ( * ) * + 68 FROM tab0
----
204

query I rowsort
SELECT col1 * ( + col1 * col1 + + col1 ) AS col0 FROM tab0 AS cor0
----
2
538002
9702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( ( - col2 ) AS SIGNED ) + ( - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( ( - col2 ) AS INTEGER ) + ( - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT + + MIN( DISTINCT 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + + MIN ( DISTINCT 8 ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( 90 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( 90 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6120
SELECT ALL * FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6120
SELECT ALL * FROM tab2 WHERE ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6121
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + 81 * + - col2 FROM tab2
----
-1863
-3240
-4698

query I rowsort
SELECT col1 * + col1 * 58 FROM tab0
----
25578
380538
58

query I rowsort
SELECT - 48 * + col0 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + COUNT( * ) * - + 61 * - COUNT( * ) + - SUM( ALL 75 + ( col2 + - col2 ) ) col0 FROM tab2
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6125
SELECT + COUNT ( * ) * - + 61 * - COUNT ( * ) + - SUM ( ALL 75 + ( col2 + - col2 ) ) col0 FROM tab2
----
324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6126
SELECT + 14 + + 19 + 17 * CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6126
SELECT + 14 + + 19 + 17 * CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 col0 FROM tab2 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT ALL + + ( + CAST( - 30 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + + ( + CAST ( - 30 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL - + ( - + 59 ) + - col0 FROM tab2 AS cor0
----
-16
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT MAX( + - 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6130
SELECT MAX ( + - 51 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 WHERE - 82 NOT IN ( + col2 + + ( col1 ) * 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL + ( + - ( col2 ) ) + - 10 FROM tab0
----
-109
-20
-57

query I rowsort
SELECT ALL - 52 * 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4251f61e80241b60902199737b666cc

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6135
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 IN ( CAST( + 94 AS SIGNED ) * 65 )
----

skipif mysql # not compatible
query III rowsort label-6135
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 IN ( CAST ( + 94 AS INTEGER ) * 65 )
----

query I rowsort
SELECT ALL col1 - + + col2 + + col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT + + ( - SUM( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT + + ( - SUM ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - + col1 + + col0 * + 27 + 54 AS col0 FROM tab2 cor0
----
1245
1705
2012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT DISTINCT col2 + 6 * 30 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
190
227
279

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT col2 + 6 * 30 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
190
227
279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6140
SELECT DISTINCT col0 - - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6140
SELECT DISTINCT col0 - - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6141
SELECT * FROM tab0 cor0 WHERE ( - col1 + - 39 * + col2 ) NOT BETWEEN ( NULL ) AND - col0 + + col1 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6141
SELECT * FROM tab0 cor0 WHERE ( - col1 + - 39 * + col2 ) NOT BETWEEN ( NULL ) AND - col0 + + col1 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT + - col2 + - - col0 + 24 DIV - 43 * - 98 col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT + - col2 + - - col0 + 24 / - 43 * - 98 col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL + + col1 * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col2 * - 38 FROM tab0 AS cor0
----
1786
3762
380

query I rowsort
SELECT + col1 * - + 93 + - + col1 + - 69 + + 69 * col1 AS col2 FROM tab2
----
-1344
-1744
-1994

query I rowsort
SELECT - ( - col2 ) + 26 AS col1 FROM tab0
----
125
36
73

query I rowsort
SELECT + col2 + - + col0 - + + 85 * - col2 AS col0 FROM tab1
----
4989
5757
8205

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( ( + 49 ) * col2 )
----

query I rowsort
SELECT ALL - col0 * + 12 * - 59 * + 18 AS col0 FROM tab2
----
586224
815616
955800

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 WHERE - col2 + col0 IS NOT NULL
----
210
3807
99

query I rowsort
SELECT - col2 * + col1 + col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * - - 12 + - - col1 / + col1 >= col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - ( + + col1 ) + + col0 + ( col1 + 43 ) FROM tab0 AS cor0
----
-3668
-59
42

query I rowsort
SELECT - 28 * + col2 FROM tab0 AS cor0
----
-1316
-2772
-280

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * ( + + 43 ) + col0 * col0 FROM tab1 AS cor0
----
10302
3203
7440

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - ( - COUNT( * ) ) AS col1 FROM tab2 WHERE NOT ( - - 38 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6160
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT ( - - 38 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT 76 * COUNT( * ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-6161
SELECT 76 * COUNT ( * ) AS col1 FROM tab0
----
228

query I rowsort
SELECT DISTINCT + 5 + - + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT ALL + + ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + - ( - + col0 ) * - ( + col0 ) * - 74 + 93 * - col1 AS col2 FROM tab1 AS cor0
----
191172
534185
608423

query I rowsort
SELECT ALL + 65 * - col2 - + col1 * - col0 FROM tab1 AS cor0
----
-143
-3410
-5526

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT 9 + + col1 - col0 * col1 + + + 61 DIV + 66 AS col1 FROM tab1 AS cor0
----
-411
-4221
-691

skipif mysql # not compatible
query I rowsort label-6166
SELECT 9 + + col1 - col0 * col1 + + + 61 / + 66 AS col1 FROM tab1 AS cor0
----
-411
-4221
-691

query I rowsort
SELECT DISTINCT + + 98 * - col0 FROM tab0 AS cor0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT ALL + 96 * COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + 96 * COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - col1 ) + + + col0 - - + col2 AS col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT + - col0 + + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
340
4186
663

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6173
SELECT CAST( NULL AS SIGNED ) col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6173
SELECT CAST ( NULL AS INTEGER ) col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6174
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + - ( CAST( col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6174
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + - ( CAST ( col1 AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL + COUNT( DISTINCT 85 ) + - - 4 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + COUNT ( DISTINCT 85 ) + - - 4 FROM tab0
----
5

query I rowsort
SELECT DISTINCT col1 * + + 84 * - - 76 + 63 AS col1 FROM tab2
----
325647
427791
491631

query II rowsort
SELECT - col2 AS col1, col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col0 * 1 FROM tab1
----
51
85
91

query I rowsort
SELECT - - 96 AS col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT ALL + - 16 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6182
SELECT + col1 * col2 + - CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NULL IN ( + col2 + col0 + + 32 / - col1 )
----

skipif mysql # not compatible
query I rowsort label-6182
SELECT + col1 * col2 + - CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NULL IN ( + col2 + col0 + + 32 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COUNT( * ) + - ( + COUNT( ALL + 57 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) + - ( + COUNT ( ALL + 57 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + col0 - + ( col1 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT + col0 - + ( col1 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT + COUNT( * ) * - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + COUNT ( * ) * - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL + MIN( col0 ) + + + 80 col1 FROM tab0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6186
SELECT ALL + MIN ( col0 ) + + + 80 col1 FROM tab0
----
95

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT DISTINCT - col2 - - col1 + + - col0 DIV + - ( - + 74 ) AS col2 FROM tab1 AS cor0
----
-22
-55
-82

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT - col2 - - col1 + + - col0 / + - ( - + 74 ) AS col2 FROM tab1 AS cor0
----
-22
-55
-82

query I rowsort
SELECT DISTINCT + 52 - 13 * + col0 FROM tab0 AS cor0
----
-1079
-1209
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6191
SELECT ALL + - 6 + + MAX( - col0 ) + MAX( + CAST( + col1 AS SIGNED ) ) * - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL <> 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + - 6 + + MAX ( - col0 ) + MAX ( + CAST ( + col1 AS INTEGER ) ) * - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL <> 52
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 70 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6193
SELECT ALL + COUNT( * ) DIV - COUNT( * ) - - MAX( ALL - col1 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + COUNT ( * ) / - COUNT ( * ) - - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - CAST( - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - CAST ( - col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - 58 - - col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-37
-57
23

query I rowsort
SELECT - col1 * - - 49 FROM tab1
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL SUM( ALL 60 ) AS col2 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL SUM ( ALL 60 ) AS col2 FROM tab1
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6198
SELECT + CAST( NULL AS DECIMAL ) AS col2, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6198
SELECT + CAST ( NULL AS REAL ) AS col2, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 81, col1 col1 FROM tab0 WHERE NULL IS NULL
----
81
1
81
21
81
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6200
SELECT CAST( NULL AS SIGNED ) DIV + + 6 * + - col1 col2, + 87 DIV + col0 AS col2 FROM tab1
----
NULL
0
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6200
SELECT CAST ( NULL AS INTEGER ) / + + 6 * + - col1 col2, + 87 / + col0 AS col2 FROM tab1
----
NULL
0
NULL
1
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6201
SELECT + 31 DIV - + ( + CAST( + CAST( + - SUM( + col1 ) AS SIGNED ) AS SIGNED ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6201
SELECT + 31 / - + ( + CAST ( + CAST ( + - SUM ( + col1 ) AS INTEGER ) AS INTEGER ) ) col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT 46 AS col1, - 92 FROM tab2
----
46
-92
46
-92
46
-92

query I rowsort
SELECT ALL - - col1 * - - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6205
SELECT ALL - AVG ( ALL + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + ( + col2 ) - - ( col1 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL - AVG ( ALL + CAST ( + CAST ( NULL AS REAL ) AS REAL ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + ( + col2 ) - - ( col1 ) ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 22 AS col1 FROM tab2
----
1012
1408
1650

query II rowsort
SELECT DISTINCT - col2 * - 40 AS col2, col0 AS col1 FROM tab2
----
1600
64
2320
75
920
46

query I rowsort
SELECT ALL - - 82 AS col0 FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + - COUNT( * ) * + 71 col1 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT ALL + - COUNT ( * ) * + 71 col1 FROM tab0 AS cor0
----
-213

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT ALL - 28 * - col1 FROM tab0 cor0
----
2268
28
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - - col2 / 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - - col2 / 2 IS NOT NULL
----

query II rowsort
SELECT ALL col1, col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6214
SELECT DISTINCT - - col0 DIV col0 DIV 25 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - - col0 / col0 / 25 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT COUNT( * ) + + + ( - + MIN( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT COUNT ( * ) + + + ( - + MIN ( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + SUM( + - 93 ) FROM tab2 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6216
SELECT + SUM ( + - 93 ) FROM tab2 cor0
----
-279

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab2 WHERE + col2 + + col1 IS NOT NULL
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) + - - col0 / + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) + - - col0 / + col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6219
SELECT MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT + col2 * - + col2 + + 53 AS col2 FROM tab2
----
-1547
-3311
-476

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT - 42 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT - 42 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6223
SELECT 48 + col2 - + CAST( + col1 AS DECIMAL ) * - - 69 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT 48 + col2 - + CAST ( + col1 AS REAL ) * - - 69 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 70 + - 8 + - - col1 * + col1 FROM tab0
----
-77
363
6483

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT COUNT( * ) + MIN( ALL + 74 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT COUNT ( * ) + MIN ( ALL + 74 ) FROM tab0
----
77

query I rowsort
SELECT DISTINCT + col1 + + col2 + col1 FROM tab0
----
101
209
52

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + COUNT( - 82 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + COUNT ( - 82 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT col0 * + - col2 + + - CAST( + - 90 AS SIGNED ) FROM tab2 AS cor0
----
-2470
-4260
-968

skipif mysql # not compatible
query I rowsort label-6229
SELECT col0 * + - col2 + + - CAST ( + - 90 AS INTEGER ) FROM tab2 AS cor0
----
-2470
-4260
-968

query II rowsort
SELECT DISTINCT - col1, + col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT * FROM tab1 WHERE 49 = NULL
----

query I rowsort
SELECT DISTINCT - - col2 * - + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * + col0 + - col0 + - - col2 col0 FROM tab2 cor0
----
3979
5544
6508

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6234
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + CAST( NULL AS SIGNED ) + + col2 * + + 81 + - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6234
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + CAST ( NULL AS INTEGER ) + + col2 * + + 81 + - + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + col1 * col2 AS col0 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT - + col0 * - 30 * - - 76 * ( - 66 ) FROM tab2 AS cor0
----
-11286000
-6922080
-9630720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( ( - 6 ) ) ) * - col0 col2 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT - 48 DIV - ( - - col2 ) * + - 48 * - ( col2 ) + - 57 FROM tab1 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-6239
SELECT - 48 / - ( - - col2 ) * + - 48 * - ( col2 ) + - 57 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - - COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6240
SELECT - - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT - COUNT( ALL - + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT - COUNT ( ALL - + col2 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT 7 * - - col2 - - col1 * - 89 FROM tab1 WHERE NOT ( - 99 IN ( - - col0 ) )
----
-32
-3707
-574

query I rowsort
SELECT + ( + - AVG ( + 91 ) ) FROM tab2 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT DISTINCT 33 * + + col2, col0 AS col0 FROM tab1
----
1947
85
2244
91
3168
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 84 * - 17 NOT IN ( + 9, - col2, - col0 + + - ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + 87 + col2 col2 FROM tab0
----
-7472
-91
-9223

query I rowsort
SELECT DISTINCT + - col1 * 37 * - - col1 FROM tab2 AS cor0
----
-166093
-219373
-96237

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT + MAX( - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT + MAX ( - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT 5 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT - col2 + - - col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT + - CAST( + - col2 AS SIGNED ) * + col1 + + 45 FROM tab0 cor0
----
144
255
3852

skipif mysql # not compatible
query I rowsort label-6254
SELECT + - CAST ( + - col2 AS INTEGER ) * + col1 + + 45 FROM tab0 cor0
----
144
255
3852

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT - SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - SUM ( + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + col2 AND - 54 + col2 + + + col1 * - 32
----

query I rowsort
SELECT DISTINCT - col2 + - + 96 AS col1 FROM tab2
----
-119
-136
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT DISTINCT 39 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT 39 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - COUNT( * ) * - 73 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( * ) * - 73 FROM tab0
----
219

query I rowsort
SELECT - 91 + - col2 FROM tab2 WHERE col1 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * 27 * 5 + - ( + - 94 ) FROM tab0 AS cor0
----
11839
13189
2119

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * 27 * 5 + - ( + - 94 ) FROM tab0 AS cor0
----
11839
13189
2119

query I rowsort
SELECT ALL + col2 - ( + 32 ) FROM tab2 AS cor0
----
-9
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT - CAST( NULL AS SIGNED ) / + + ( + + col2 ) + - col2 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - CAST ( NULL AS INTEGER ) / + + ( + + col2 ) + - col2 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6264
SELECT - ( + 49 ) DIV + 25 + COUNT( * ) + + ( COUNT( * ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6264
SELECT - ( + 49 ) / + 25 + COUNT ( * ) + + ( COUNT ( * ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + - 55 AS col1 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - ( + 12 ) - + col2 FROM tab1 AS cor0
----
-108
-71
-80

query I rowsort
SELECT + col2 + - + ( col2 ) - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT col0 DIV - + 13 AS col1 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-6269
SELECT col0 / - + 13 AS col1 FROM tab2
----
-3
-4
-5

query I rowsort
SELECT ( + 39 ) FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT + 98, COUNT( * ) AS col0 FROM tab0 cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-6271
SELECT + 98, COUNT ( * ) AS col0 FROM tab0 cor0
----
98
3

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 63 AND + - col2 + - - 64
----

query I rowsort
SELECT + 21 * + 59 FROM tab1 AS cor0
----
1239
1239
1239

query I rowsort
SELECT ALL ( - col0 ) + - 88 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-134
-152
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 85 col2, col0 * - - col1 * + ( - - col2 ) AS col1 FROM tab2
----
-85
197120
-85
291450
-85
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT COUNT( * ) * + 56 * + 24 AS col1 FROM tab1
----
4032

skipif mysql # not compatible
query I rowsort label-6276
SELECT COUNT ( * ) * + 56 * + 24 AS col1 FROM tab1
----
4032

query II rowsort
SELECT ALL col2 AS col2, - 52 * 94 FROM tab0
----
10
-4888
47
-4888
99
-4888

query II rowsort
SELECT DISTINCT col0, 32 * + 38 AS col2 FROM tab0
----
15
1216
87
1216
97
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT 13, + MIN( ALL - - col0 ) AS col2 FROM tab0
----
13
15

skipif mysql # not compatible
query II rowsort label-6279
SELECT 13, + MIN ( ALL - - col0 ) AS col2 FROM tab0
----
13
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT SUM( DISTINCT - + col1 ) * - MIN( + 66 ) + + COUNT( * ) AS col2 FROM tab1
----
4359

skipif mysql # not compatible
query I rowsort label-6280
SELECT SUM ( DISTINCT - + col1 ) * - MIN ( + 66 ) + + COUNT ( * ) AS col2 FROM tab1
----
4359

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT + COUNT( * ) + - + 76 AS col2 FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6281
SELECT + COUNT ( * ) + - + 76 AS col2 FROM tab2 cor0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT COUNT( * ) col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6282
SELECT COUNT ( * ) col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6283
SELECT - col1, col1 DIV - ( + col1 ) AS col2 FROM tab2 cor0
----
-51
-1
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-6283
SELECT - col1, col1 / - ( + col1 ) AS col2 FROM tab2 cor0
----
-51
-1
-67
-1
-77
-1

query I rowsort
SELECT ALL col1 + + 4 + + col2 + + 47 AS col2 FROM tab1
----
115
161
166

query I rowsort
SELECT ALL + + 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT + - COUNT( ALL + 35 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + - COUNT ( ALL + 35 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col1 + - - 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6288
SELECT ALL - COUNT( * ) DIV + COUNT( * ) + - 19 col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6288
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + - 19 col1 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + 56 + - - col2 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN NULL AND - 5
----

query I rowsort
SELECT - 79 + - col2 FROM tab1 AS cor0
----
-138
-147
-175

onlyif mysql # DIV for integer division: 
query II rowsort label-6292
SELECT + + 51 + + - 39 + col2 * + + 2 * - col1, - col1 DIV + 89 col0 FROM tab0 AS cor0
----
-186
0
-408
0
-7602
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6292
SELECT + + 51 + + - 39 + col2 * + + 2 * - col1, - col1 / + 89 col0 FROM tab0 AS cor0
----
-186
0
-408
0
-7602
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT 6 + + ( - COUNT( DISTINCT col2 ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6293
SELECT 6 + + ( - COUNT ( DISTINCT col2 ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT col1 + - col1 * - col0 * + 41 - + 53 FROM tab2
----
202072
206039
96184

query III rowsort
SELECT * FROM tab0 WHERE - + 6 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6296
SELECT ALL + col1 DIV col2 + - col2, col2 AS col0 FROM tab0
----
-46
47
-8
10
-99
99

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL + col1 / col2 + - col2, col2 AS col0 FROM tab0
----
-46
47
-8
10
-99
99

query I rowsort
SELECT 14 + + + 52 AS col0 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT - COUNT( ALL + col2 ) + - + COUNT( * ) * - 18 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - COUNT ( ALL + col2 ) + - + COUNT ( * ) * - 18 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT + - 41 * - + MAX( - 39 ) - - 18 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + - 41 * - + MAX ( - 39 ) - - 18 FROM tab2 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 61 NOT BETWEEN + 13 AND 80 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT + + col2 - - - 95 + col2 / + + CAST( col2 AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6301
SELECT + + col2 - - - 95 + col2 / + + CAST ( col2 AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 + col2 * + - 77 AS col1, - col2 FROM tab2
----
-1725
-23
-3016
-40
-4391
-58

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT + + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6304
SELECT + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 * - 65 AS col0 FROM tab2
----
-1495
-2600
-3770

query I rowsort
SELECT - - 10 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + + 48 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT + COUNT( DISTINCT - 31 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT + COUNT ( DISTINCT - 31 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( - 73 ) * + + col0 * + 37 * + col1 FROM tab1 AS cor0
----
-1147925
-11552177
-1928514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab0 AS cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 31 AND ( - col1 ) + col0
----

query I rowsort
SELECT ALL col0 * - 83 FROM tab2 AS cor0
----
-3818
-5312
-6225

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 42 <> + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT + 79 * CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1659
6399
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6314
SELECT + 79 * CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1659
6399
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6315
SELECT - MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col0 * + + col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT ALL 84 AS col1, COUNT( * ) + - COUNT( col2 ) * - 6 * 70 * - - ( + 15 ) * + COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
84
56700

skipif mysql # not compatible
query II rowsort label-6318
SELECT ALL 84 AS col1, COUNT ( * ) + - COUNT ( col2 ) * - 6 * 70 * - - ( + 15 ) * + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
84
56700

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL < - ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < - ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT - MIN( DISTINCT + 27 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT - MIN ( DISTINCT + 27 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT MAX( + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT MAX ( + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL - CAST( + col0 AS SIGNED ) * ( - col0 ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - CAST ( + col0 AS INTEGER ) * ( - col0 ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT - SUM( - 72 ) DIV + 81 + - 39 AS col0 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6326
SELECT - SUM ( - 72 ) / + 81 + - 39 AS col0 FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6327
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-6327
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab2 WHERE - - 75 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT - + col2 - - - col2 * - col1 * + col0 DIV ( + col0 ) AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
1150
3040
3828

skipif mysql # not compatible
query I rowsort label-6330
SELECT - + col2 - - - col2 * - col1 * + col0 / ( + col0 ) AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
1150
3040
3828

query I rowsort
SELECT ALL + + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT + col0 + - col2 + - 38 DIV - col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6333
SELECT + col0 + - col2 + - 38 / - col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT - ( + + col1 ) + - + col2 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT - ( - COUNT( - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - ( - COUNT ( - col2 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - col1 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6338
SELECT DISTINCT + - 70 AS col2, - col1 + + - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-6338
SELECT DISTINCT + - 70 AS col2, - col1 + + - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-70
NULL

query II rowsort
SELECT - col2, ( + col0 ) AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + col2 * + col2 * + col2 * + - 17 AS col1 FROM tab0 AS cor0 WHERE 6 >= col2
----

query I rowsort
SELECT ALL - + 58 * col2 - + col1 FROM tab0 AS cor0
----
-2807
-5743
-601

query III rowsort
SELECT * FROM tab0 WHERE - 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 * - 6 + + col0 col1 FROM tab2
----
-429
-440
-458

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT + 79 DIV + col1 AS col2 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-6344
SELECT + 79 / + col1 AS col2 FROM tab1
----
1
15
5

query III rowsort
SELECT ALL * FROM tab1 WHERE - 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 + 71 AS col2, + col0 FROM tab1
----
-14
85
-20
91
20
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT + 31 DIV - - col0 - - 89 AS col0 FROM tab2
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 31 / - - col0 - - 89 AS col0 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT MIN( DISTINCT + - 6 ) - + 50 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT MIN ( DISTINCT + - 6 ) - + 50 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - col1 + - - 10 - - col2 * - col1 + 72, + col2 FROM tab0
----
-149
10
-18
99
-3806
47

query I rowsort
SELECT - col1 - 54 FROM tab1
----
-101
-59
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - ( + + col2 ) * 38 col1 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT ALL - col0 DIV - col1 - 39 * + col2 * + 42 AS col0 FROM tab1 AS cor0
----
-111383
-157245
-96625

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - col0 / - col1 - 39 * + col2 * + 42 AS col0 FROM tab1 AS cor0
----
-111383
-157245
-96625

query I rowsort
SELECT DISTINCT 41 * - + 83 FROM tab1 AS cor0
----
-3403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6354
SELECT DISTINCT 53 DIV + 62 - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT 53 / + 62 - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT CAST( NULL AS SIGNED ) * - 62 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT CAST ( NULL AS INTEGER ) * - 62 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT DISTINCT - COUNT( * ) AS col0, 34 FROM tab2
----
-3
34

skipif mysql # not compatible
query II rowsort label-6356
SELECT DISTINCT - COUNT ( * ) AS col0, 34 FROM tab2
----
-3
34

query II rowsort
SELECT ALL + col1 AS col1, - 84 AS col1 FROM tab2 AS cor0
----
51
-84
67
-84
77
-84

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT ALL + col2 * - col1 * + + 28 FROM tab1 AS cor0
----
-37632
-8260
-89488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col1 FROM tab1 AS cor0 WHERE - 9 * col1 * 26 = col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL 51 * + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL 51 * + COUNT ( * ) FROM tab2
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col1 * - 28 col0 FROM tab2
----
137984
140700
65688

query I rowsort
SELECT - 50 * + col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 76 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 76 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT ALL - ( + 77 ) AS col1, - ( - COUNT( * ) ) FROM tab1 cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-6366
SELECT ALL - ( + 77 ) AS col1, - ( - COUNT ( * ) ) FROM tab1 cor0
----
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6367
SELECT CAST( - col0 AS SIGNED ) * col0 + - col2 * + col1 + col2, + col1 AS col0 FROM tab2
----
-3266
51
-7136
77
-9453
67

skipif mysql # not compatible
query II rowsort label-6367
SELECT CAST ( - col0 AS INTEGER ) * col0 + - col2 * + col1 + col2, + col1 AS col0 FROM tab2
----
-3266
51
-7136
77
-9453
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT - col0 DIV - 66 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - col0 / - 66 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - + ( col1 ) - + - col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + 46 * + + col1 FROM tab2 AS cor0
----
2346
3082
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + col2 + + 4 * col2 col2 FROM tab1 AS cor0
----
344
389
529

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT DISTINCT COUNT( * ) col2, 43 FROM tab1
----
3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6373
SELECT DISTINCT COUNT ( * ) col2, 43 FROM tab1
----
3
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + COUNT( * ) * - ( + - COUNT( + 14 ) ) + - 89 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-6374
SELECT + COUNT ( * ) * - ( + - COUNT ( + 14 ) ) + - 89 FROM tab1
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + 0 col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + col2 * + col1 * col1 + + - 77 FROM tab1
----
1398
150135
18739

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN NULL AND - ( - 8 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + + col0
----

query I rowsort
SELECT DISTINCT + col1 * + 48 + 95 FROM tab1
----
2351
335
767

query II rowsort
SELECT - col2 AS col0, + col0 * - 64 FROM tab0 AS cor0
----
-10
-5568
-47
-960
-99
-6208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL + CAST( - 13 AS SIGNED ) FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0
----
-13
-13
-13

query II rowsort
SELECT + - col0 AS col1, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - MAX( ALL + - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6383
SELECT - MAX ( ALL + - col0 ) AS col0 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6385
SELECT MIN ( + + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - - 61 * 29 + + col1 FROM tab1 AS cor0
----
1774
1783
1816

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 7, col2 * col2, + 56 + - 90 + 54 - - col2 / 48 )
----

query II rowsort
SELECT ALL - 42 * - 32 AS col1, + 6 FROM tab2 AS cor0
----
1344
6
1344
6
1344
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT DISTINCT - - col1 DIV - col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT - - col1 / - col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - + 48 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6391
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - 50 * + 11 + - 60 * - col2 FROM tab1
----
2990
3530
5210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab0 WHERE NOT - 73 + - - col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query III rowsort label-6394
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND 90 DIV - 73 * - - col0
----

skipif mysql # not compatible
query III rowsort label-6394
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND 90 / - 73 * - - col0
----

query II rowsort
SELECT col1, - 30 FROM tab0
----
1
-30
21
-30
81
-30

query I rowsort
SELECT DISTINCT + col2 * + 86 AS col0 FROM tab2 AS cor0
----
1978
3440
4988

query I rowsort
SELECT + col1 * 11 - - col1 * - col1 FROM tab0 AS cor0
----
-210
-5670
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT - 94 DIV 38 + + 75 AS col2 FROM tab1 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 94 / 38 + + 75 AS col2 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6400
SELECT + MAX( DISTINCT + + col1 ) + COUNT( * ) DIV SUM( ALL - + col2 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6400
SELECT + MAX ( DISTINCT + + col1 ) + COUNT ( * ) / SUM ( ALL - + col2 ) col1 FROM tab2
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6401
SELECT ALL + COUNT( ALL + CAST( - - 51 AS DECIMAL ) ) DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6401
SELECT ALL + COUNT ( ALL + CAST ( - - 51 AS REAL ) ) / + COUNT ( * ) col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - + col0 * - + ( - 14 ) AS col0 FROM tab0 AS cor0
----
-1218
-1358
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT DISTINCT - 37 - 85 DIV + 71 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - 37 - 85 / + 71 FROM tab0 AS cor0
----
-38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + + 66 * + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + - SUM( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6405
SELECT + - SUM ( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col0 <> 23 - + - 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - 96 AS col1 FROM tab1
----
-28
-37
0

query I rowsort
SELECT ALL + col0 + ( + - 96 ) AS col1 FROM tab0
----
-81
-9
1

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 68 * - - col2 AS col0 FROM tab1
----
4012
4624
6528

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT ALL 52 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL 52 / + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * 91 FROM tab2
----
-4641
-6097
-7007

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + col0 - - + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6414
SELECT + + 78 AS col2, + CAST( + 49 AS SIGNED ) AS col0 FROM tab2 cor0
----
78
49
78
49
78
49

skipif mysql # not compatible
query II rowsort label-6414
SELECT + + 78 AS col2, + CAST ( + 49 AS INTEGER ) AS col0 FROM tab2 cor0
----
78
49
78
49
78
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - 94 NOT BETWEEN - col0 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - MIN( 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-6416
SELECT - MIN ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT - 22 + SUM( ALL col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - 22 + SUM ( ALL col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT 49 + - + ( - col2 ) AS col0 FROM tab1
----
108
117
145

query I rowsort
SELECT 19 + col0 AS col0 FROM tab0 WHERE + col1 BETWEEN + 4 * - - col0 AND col2
----

query II rowsort
SELECT ALL - col1 + 20, + col2 FROM tab2
----
-31
23
-47
58
-57
40

query I rowsort
SELECT ALL + + col1 + - 4 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6423
SELECT 65 DIV + - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-7

skipif mysql # not compatible
query I rowsort label-6423
SELECT 65 / + - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-7

query I rowsort
SELECT 21 + col1 FROM tab0 WHERE - col0 IS NOT NULL
----
102
22
42

query I rowsort
SELECT ALL + + col2 * - col1 - col1 * + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-630
1081
130

query I rowsort
SELECT 42 + + 30 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT ALL col2 * + CAST( NULL AS SIGNED ) - + col2 - 1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) - + col2 - 1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT 40 DIV - 91 * ( + + col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT 40 / - 91 * ( + + col1 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6429
SELECT ALL - CAST( - 8 AS SIGNED ) DIV + + col2 * - - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - CAST ( - 8 AS INTEGER ) / + + col2 * - - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6431
SELECT * FROM tab2 WHERE NOT + - CAST( + 85 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6431
SELECT * FROM tab2 WHERE NOT + - CAST ( + 85 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT ALL 49 DIV + 91 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL 49 / + 91 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6433
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN + 88 + + - CAST( NULL AS SIGNED ) AND + - 4
----

skipif mysql # not compatible
query IIIIII rowsort label-6433
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN + 88 + + - CAST ( NULL AS INTEGER ) AND + - 4
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT DISTINCT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT col2 DIV 48 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6436
SELECT col2 / 48 AS col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL 48 + MIN( DISTINCT + col0 ) + - MIN( DISTINCT + 51 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL 48 + MIN ( DISTINCT + col0 ) + - MIN ( DISTINCT + 51 ) AS col2 FROM tab2
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + - 4 * - 85 + ( - 32 ) col0 FROM tab1
----
374

query I rowsort
SELECT - col0 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 * + col2 + col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT DISTINCT - 87 + col0 * + col0 FROM tab0
----
138
7482
9322

onlyif mysql # DIV for integer division: 
query II rowsort label-6442
SELECT ALL - col0 AS col0, - col0 DIV + col2 AS col0 FROM tab2
----
-46
-2
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-6442
SELECT ALL - col0 AS col0, - col0 / + col2 AS col0 FROM tab2
----
-46
-2
-64
-1
-75
-1

query I rowsort
SELECT - ( + ( 81 ) ) FROM tab1
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT ALL 40 + - CAST( NULL AS SIGNED ) * 84 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL 40 + - CAST ( NULL AS INTEGER ) * 84 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT SUM( ALL - 19 ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6445
SELECT SUM ( ALL - 19 ) AS col1 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 col1 FROM tab2 cor0 WHERE NOT 69 IS NULL
----
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 <= col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE 55 IN ( 48, + col0 + + + col0, - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL COUNT( * ) - + + 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL COUNT ( * ) - + + 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

query I rowsort
SELECT - 83 * + - 30 AS col2 FROM tab1 WHERE NULL IS NULL
----
2490
2490
2490

query I rowsort
SELECT DISTINCT - col1 + - 36 * col1 AS col0 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT DISTINCT ( + - col0 ) - - + col0 + + 31 FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col2 FROM tab2 AS cor0
----
47
47
47

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 I rowsort
SELECT + col1 + 51 col2 FROM tab1 AS cor0 WHERE NOT NULL > - 1
----

query I rowsort
SELECT DISTINCT col2 * - 38 * - 67 * ( + col2 ) AS col0 FROM tab0 cor0
----
24953346
254600
5624114

query I rowsort
SELECT ALL - - ( 54 ) * col2 AS col1 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT - 27 DIV col2 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT - 27 / col2 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL COUNT( * ) * 77 AS col2 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL COUNT ( * ) * 77 AS col2 FROM tab0
----
231

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 + col0 <> 95
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6462
SELECT - + col1 AS col1, CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6462
SELECT - + col1 AS col1, CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT - - col2 + CAST( - 45 AS SIGNED ) FROM tab2 WHERE NOT + 72 IS NULL
----
-22
-5
13

skipif mysql # not compatible
query I rowsort label-6463
SELECT - - col2 + CAST ( - 45 AS INTEGER ) FROM tab2 WHERE NOT + 72 IS NULL
----
-22
-5
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 34 ) col1 FROM tab1
----
-34
-34
-34

query I rowsort
SELECT + col2 * + + 3 FROM tab2
----
120
174
69

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - + 77 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6467
SELECT + COUNT( * ) DIV SUM( ALL - col0 ) AS col0, + COUNT( * ) FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-6467
SELECT + COUNT ( * ) / SUM ( ALL - col0 ) AS col0, + COUNT ( * ) FROM tab1
----
0
3

query I rowsort
SELECT ALL + 61 / + + 5 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + + COUNT( * ) * - SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-6469
SELECT + + COUNT ( * ) * - SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
597

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * - 94 BETWEEN - + col2 AND - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 BETWEEN - 91 AND CAST( NULL AS SIGNED ) * - col2
----
0

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 BETWEEN - 91 AND CAST ( NULL AS INTEGER ) * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL + SUM( ALL - col0 ) * + + COUNT( col2 ) col2 FROM tab0 cor0
----
-597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6472
SELECT ALL + SUM ( ALL - col0 ) * + + COUNT ( col2 ) col2 FROM tab0 cor0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT SUM( 81 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6473
SELECT SUM ( 81 ) FROM tab0
----
243

query I rowsort
SELECT - col0 * - col1 * + col0 AS col0 FROM tab1
----
36125
36414
389207

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT 27 DIV + ( - ( col1 ) ) AS col1 FROM tab1 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT 27 / + ( - ( col1 ) ) AS col1 FROM tab1 cor0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col1 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT ALL + + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - COUNT( * ) + - - 62 + + + 94 AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6479
SELECT - COUNT ( * ) + - - 62 + + + 94 AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT COUNT( DISTINCT + col0 ) + + 13 AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6480
SELECT COUNT ( DISTINCT + col0 ) + + 13 AS col0 FROM tab2 AS cor0
----
16

query I rowsort
SELECT col0 * + + 36 + + + col2 FROM tab1
----
1932
3119
3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT + col2 + ( + col0 ) * + + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT + col2 + ( + col0 ) * + + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - 26 + - + COUNT( * ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 26 + - + COUNT ( * ) FROM tab2
----
-29

query I rowsort
SELECT 48 + + - 92 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - 65 + + COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6485
SELECT - 65 + + COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT - col2 + + col2 + - 5 * col1 * + - col0 * - 41 FROM tab0
----
-19885
-249075
-374535

query I rowsort
SELECT DISTINCT - col1 * - + col1 - - ( col0 ) + 59 * col1 FROM tab1 cor0
----
1073
405
5073

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL + MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + COUNT( ALL + + 80 ) * - 63 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-6489
SELECT + COUNT ( ALL + + 80 ) * - 63 FROM tab2 AS cor0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab0 AS cor0 WHERE NOT col0 > + col1
----
-3807

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6491
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - + col1 * col1 * 22 + + CAST( + col0 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query III rowsort label-6491
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - + col1 * col1 * 22 + + CAST ( + col0 AS REAL ) + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2, col1 col2 FROM tab2 AS cor0
----
2
51
2
67
2
77

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query II rowsort
SELECT + col0 AS col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 NOT BETWEEN + col1 + - col0 + col1 * + col0 * + 44 / + 6 * - 95 AND - col1 * - col2 + + + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 34 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 + - col2 + + 59
----

query I rowsort
SELECT ALL 23 * - - 91 AS col0 FROM tab0
----
2093
2093
2093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 74 * - + col2 * + - col0 col0 FROM tab2
----
-1800716
-18670200
-7577600

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT COUNT( ALL - ( col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6499
SELECT COUNT ( ALL - ( col0 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL 22 * - 42 FROM tab2
----
-924
-924
-924

query II rowsort
SELECT - col2 * - col1 AS col2, col0 AS col1 FROM tab2
----
1173
46
3080
64
3886
75

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + 29 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 / col2 * + - col1 + 56 <> 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 53 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT DISTINCT - ( + col1 ) DIV - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - ( + col1 ) / - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6506
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col1, 19 FROM tab0 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-6506
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1, 19 FROM tab0 AS cor0
----
3
19

query I rowsort
SELECT DISTINCT - col0 + col0 * col2 + + - col1 - col2 FROM tab0 cor0
----
562
752
9406

query I rowsort
SELECT DISTINCT col2 * - col0 * + col1 + + col0 + col0 FROM tab0
----
-18096
-57075
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL - - 74 / - col1 * - 79 - + - col2 + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - - 74 / - col1 * - 79 - + - col2 + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 75 * + col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - 32 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 32 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT + + 99 AS col0 FROM tab1 AS cor0 WHERE ( + col2 ) IN ( - ( + col1 ), col0 * + - ( + + col0 ), + col0 )
----

query I rowsort
SELECT - 35 + + - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
11
29
40

query II rowsort
SELECT + col1 AS col2, col0 + + 91 FROM tab2 cor0
----
51
137
67
166
77
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6516
SELECT + - 94 * MAX( + 2 ) DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6516
SELECT + - 94 * MAX ( + 2 ) / + COUNT ( * ) AS col1 FROM tab1 cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL ( - ( CAST( NULL AS SIGNED ) ) ) + 61 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL ( - ( CAST ( NULL AS INTEGER ) ) ) + 61 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - - 99 * + - col1 FROM tab0 AS cor0
----
-43659
-649539
-99

query I rowsort
SELECT DISTINCT + - col0 * - + 32 + + col1 FROM tab2 AS cor0
----
1523
2125
2467

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL - col2 DIV - col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - col2 / - col0 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6521
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + col0 + + + 91 * - 31 FROM tab0
----
-2627
-2647
-2791

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6523
SELECT ALL CAST( + - col0 AS SIGNED ) DIV 55 - - 7 * 39 FROM tab2
----
272
272
273

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL CAST ( + - col0 AS INTEGER ) / 55 - - 7 * 39 FROM tab2
----
272
272
273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6524
SELECT DISTINCT col1 + ( - - col2 ) - - CAST( NULL AS SIGNED ), - 98 * - 79 col0 FROM tab2
----
NULL
7742

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6524
SELECT DISTINCT col1 + ( - - col2 ) - - CAST ( NULL AS INTEGER ), - 98 * - 79 col0 FROM tab2
----
NULL
7742

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT - COUNT( * ) - - 61 col1, - COUNT( * ) AS col1 FROM tab0
----
58
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6525
SELECT - COUNT ( * ) - - 61 col1, - COUNT ( * ) AS col1 FROM tab0
----
58
-3

query I rowsort
SELECT + col1 - + - 41 FROM tab0
----
122
42
62

query I rowsort
SELECT ALL + - 96 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT 55 + + - col0 * - + col0 FROM tab0
----
280
7624
9464

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NULL < + 85 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NULL < + 85 ) )
----
0

query I rowsort
SELECT 4 * + col1 * col2 * - 54 FROM tab1
----
-290304
-63720
-690336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 73
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + - 59 AND 2 OR NOT - col2 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) + + col0 IN ( - - col1, + col0, + - col2 )
----

query I rowsort
SELECT DISTINCT col2 * - col1 * 2 FROM tab0 AS cor0
----
-198
-420
-7614

query I rowsort
SELECT 32 * + col1 * + col1 FROM tab0
----
14112
209952
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + MAX( ALL + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6536
SELECT + MAX ( ALL + 1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT MAX( - - col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6537
SELECT MAX ( - - col2 ) col2 FROM tab2
----
58

query I rowsort
SELECT 80 * 62 AS col1 FROM tab2
----
4960
4960
4960

query II rowsort
SELECT DISTINCT - col1 * - 39, + col2 * - + col0 * + col1 AS col0 FROM tab1
----
1833
-290836
195
-25075
546
-68544

query I rowsort
SELECT col1 * 28 FROM tab1
----
1316
140
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62, + col0 col2 FROM tab2 AS cor0
----
-62
46
-62
64
-62
75

query I rowsort
SELECT ALL + + col2 * + - 65 * col0 AS col1 FROM tab2 cor0
----
-166400
-282750
-68770

query I rowsort
SELECT - col1 FROM tab0 WHERE - - col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + col2 + + + 68 * col2 AS col0 FROM tab1 AS cor0
----
4071
4692
6624

query II rowsort
SELECT - 9 + - col0, 31 AS col2 FROM tab2 AS cor0
----
-55
31
-73
31
-84
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 + + col2 - + col0 + col2 + - - col0 col1 FROM tab0 cor0
----
230
297
3901

onlyif mysql # DIV for integer division: 
query I rowsort label-6547
SELECT + 19 + col1 DIV + - col2 + + - 1 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 19 + col1 / + - col2 + + - 1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT + 23 + - CAST( NULL AS SIGNED ) + - 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT + 23 + - CAST ( NULL AS INTEGER ) + - 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 FROM tab0 WHERE - col2 <> + - col1
----
93
93
93

query I rowsort
SELECT - 38 + - ( - col0 ) AS col1 FROM tab0
----
-23
49
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT COUNT( * ) + + CAST( + 8 AS SIGNED ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6551
SELECT COUNT ( * ) + + CAST ( + 8 AS INTEGER ) FROM tab1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( 13 ) ) + + - ( col0 ) * + col0 col1 FROM tab1
----
-2588
-7212
-8268

query I rowsort
SELECT DISTINCT col1 - + 65 AS col1 FROM tab2
----
-14
12
2

query II rowsort
SELECT col1 AS col1, - 17 AS col1 FROM tab2
----
51
-17
67
-17
77
-17

query I rowsort
SELECT + + col1 FROM tab2 WHERE + - col2 IN ( - - 70, - 77, - - 84 * - - col1 / col0, - + col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE ( - col1 >= + + col2 * + + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + - 48 AS col0 FROM tab2 cor0
----
19
29
3

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 - + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT ALL + 77 AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
77
-3

skipif mysql # not compatible
query II rowsort label-6559
SELECT ALL + 77 AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
77
-3

query I rowsort
SELECT ALL 69 * 44 + - 1 * 12 FROM tab0
----
3024
3024
3024

query I rowsort
SELECT ALL col1 + - 19 FROM tab0
----
-18
2
62

query I rowsort
SELECT ALL - col2 * col2 + - col2 AS col1 FROM tab2
----
-1640
-3422
-552

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) <= ( 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE ( 80 + - col1 ) < - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6565
SELECT + 20 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT - 15 < ( col0 * 36 + + 78 )
----

skipif mysql # not compatible
query I rowsort label-6565
SELECT + 20 * CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT - 15 < ( col0 * 36 + + 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT CAST( 26 AS SIGNED ) FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6566
SELECT CAST ( 26 AS INTEGER ) FROM tab2
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab1
----
25

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 62 + 98 AND 55
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> ( + col2 + - ( 59 ) )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( NULL ) IN ( 91 * + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + 7 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT col2 FROM tab1 WHERE NOT 80 NOT IN ( 0 * + 60 + CAST( 31 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6573
SELECT col2 FROM tab1 WHERE NOT 80 NOT IN ( 0 * + 60 + CAST ( 31 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col1 + col1 )
----

query I rowsort
SELECT ALL col1 - + col2 AS col0 FROM tab2 WHERE col2 - 90 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col1 * 95 FROM tab2
----
4845
6365
7315

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT 11 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT 11 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 74 AS col0 FROM tab0 AS cor0
----
1554
5994
74

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT IN ( - ( col1 ) + 32 / 13 )
----

query I rowsort
SELECT 59 * 59 FROM tab0 AS cor0
----
3481
3481
3481

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + 86 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 WHERE NULL NOT IN ( + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT - col0 + + CAST( 99 AS SIGNED ) AS col2 FROM tab2 WHERE col1 / + CAST( NULL AS SIGNED ) <= ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-6585
SELECT - col0 + + CAST ( 99 AS INTEGER ) AS col2 FROM tab2 WHERE col1 / + CAST ( NULL AS INTEGER ) <= ( - col2 )
----

query I rowsort
SELECT DISTINCT col0 + + 9 FROM tab1
----
100
60
94

query I rowsort
SELECT - col2 * col1 + - 53 AS col2 FROM tab0
----
-152
-263
-3860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT + CAST( NULL AS SIGNED ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6588
SELECT + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6589
SELECT ALL - CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - CAST ( NULL AS REAL ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 7 ) FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 72 ) / - col2 + - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COUNT( * ) * 18 col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6593
SELECT - COUNT ( * ) * 18 col0 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + MIN( DISTINCT - 78 ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + MIN ( DISTINCT - 78 ) AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL + col2 * - + col2 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + col2 * - + col2 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT 20 * - col2 AS col0 FROM tab0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL COUNT( * ) * - + ( 50 ) col0 FROM tab2
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6597
SELECT ALL COUNT ( * ) * - + ( 50 ) col0 FROM tab2
----
-150

query I rowsort
SELECT ALL 53 FROM tab0 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT - 23 * - + COUNT( * ) * + 22 + 20 FROM tab0
----
1538

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 23 * - + COUNT ( * ) * + 22 + 20 FROM tab0
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + SUM( ALL + 42 ) + 82 FROM tab0
----
208

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + SUM ( ALL + 42 ) + 82 FROM tab0
----
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col2 * + 15
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT 78 FROM tab0 WHERE NOT ( NULL NOT IN ( col2 ) )
----

query I rowsort
SELECT + 73 * - 45 FROM tab0
----
-3285
-3285
-3285

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT ALL - 15 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - 15 / - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT - ( - MAX( DISTINCT col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - ( - MAX ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT + - COUNT( col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + - COUNT ( col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT + MIN( ALL - 33 ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + MIN ( ALL - 33 ) AS col0 FROM tab0 AS cor0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * - 2 * + col1 * col0 col2 FROM tab2 AS cor0
----
-445740
-936320
-954750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col0 FROM tab0 AS cor0 WHERE NOT ( col2 * - ( 90 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ( 35 ) * - 62 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 / 85 * col2 ) IS NULL
----
-2167

skipif mysql # not compatible
query I rowsort label-6613
SELECT ( 35 ) * - 62 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 / 85 * col2 ) IS NULL
----
-2167

query I rowsort
SELECT - 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 83
----

query I rowsort
SELECT 84 * 2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL - + ( + + 52 ) FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL 33 / - SUM( 81 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL 33 / - SUM ( 81 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT - COUNT( * ) * 65 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - COUNT ( * ) * 65 FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6619
SELECT + CAST( NULL AS DECIMAL ) * SUM( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT + CAST ( NULL AS REAL ) * SUM ( - col0 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 88 + 61 * - + col2 + - col1 AS col0 FROM tab2
----
-1542
-2605
-3693

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 51 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-77
-77
-77

query I rowsort
SELECT col0 + - + 82 AS col2 FROM tab0
----
-67
15
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT + CAST( NULL AS SIGNED ) * - col1 * 69 + - - col1 + + 84 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6624
SELECT + CAST ( NULL AS INTEGER ) * - col1 * 69 + - - col1 + + 84 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT - col0 * - col0 + - + col1 FROM tab0
----
144
7548
9408

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + ( - col0 ) + + 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( - 63 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-6628
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 63 IS NOT NULL )
----
-3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( + + 67 ) + + - 19 + - 15 / CAST( col1 AS SIGNED ) IS NULL AND NOT col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( + + 67 ) + + - 19 + - 15 / CAST ( col1 AS INTEGER ) IS NULL AND NOT col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - + ( col1 ) FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT 44 + - ( MAX( ALL - 75 ) ) FROM tab2 cor0
----
119

skipif mysql # not compatible
query I rowsort label-6634
SELECT 44 + - ( MAX ( ALL - 75 ) ) FROM tab2 cor0
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT - COUNT( * ), 34 AS col0 FROM tab1 AS cor0 WHERE NULL >= + col2
----
0
34

skipif mysql # not compatible
query II rowsort label-6635
SELECT - COUNT ( * ), 34 AS col0 FROM tab1 AS cor0 WHERE NULL >= + col2
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + + COUNT( * ) * - 47 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + + COUNT ( * ) * - 47 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT 78 + + 56 * col0 * - 64 AS col0 FROM tab2 AS cor0
----
-164786
-229298
-268722

query I rowsort
SELECT - + 23 + + col2 AS col0 FROM tab0 AS cor0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT COUNT( ALL + + 23 ) + - + 57 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-6639
SELECT COUNT ( ALL + + 23 ) + - + 57 FROM tab1
----
-54

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - 86, ( - col2 ) * col0 * 75 - 3 * 75 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT + 4 AS col1, + COUNT( * ) FROM tab1
----
4
3

skipif mysql # not compatible
query II rowsort label-6641
SELECT + 4 AS col1, + COUNT ( * ) FROM tab1
----
4
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT + MAX( DISTINCT + col0 ) * - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + MAX ( DISTINCT + col0 ) * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
291

query III rowsort
SELECT * FROM tab2 WHERE NOT 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL COUNT( * ) * - - COUNT( ALL col1 ) * ( + + 82 ) FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL COUNT ( * ) * - - COUNT ( ALL col1 ) * ( + + 82 ) FROM tab0 AS cor0
----
738

query I rowsort
SELECT + 76 FROM tab1 AS cor0 WHERE NOT ( - col0 * + col0 * - col1 + col2 ) < ( 14 * - col0 )
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + ( + - 14 ) col1 FROM tab2 AS cor0
----
46
-14
64
-14
75
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-6647
SELECT ALL + col2 DIV + col1 AS col0, 18 AS col0 FROM tab2
----
0
18
0
18
0
18

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL + col2 / + col1 AS col0, 18 AS col0 FROM tab2
----
0
18
0
18
0
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 - + col1 ) IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - + col2 + + - col0 + - col2 + - 17 + + col1 * + col0 * - 94 ) NOT IN ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 7 + - + col1 * + + col0 + col2 AS col1 FROM tab2 AS cor0
----
-2316
-4881
-4960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6652
SELECT ALL - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 65 + col0 * - col1 + + 9 * 54 AS col0 FROM tab1 cor0
----
-163
-3726
126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 72 * + - col2 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL MAX( + + 20 ) AS col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL MAX ( + + 20 ) AS col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col1 FROM tab0
----
-144
-7548
-9408

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE - col2 IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT + 47 + COUNT( * ) FROM tab2 WHERE col0 IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + 47 + COUNT ( * ) FROM tab2 WHERE col0 IS NULL
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT SUM( DISTINCT col1 ) * MIN( DISTINCT col2 - col1 ) AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) * col2 / - 59 + + col2 IS NULL
----
1386

skipif mysql # not compatible
query I rowsort label-6659
SELECT SUM ( DISTINCT col1 ) * MIN ( DISTINCT col2 - col1 ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col2 / - 59 + + col2 IS NULL
----
1386

query III rowsort
SELECT * FROM tab2 WHERE col2 + 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT col1 + - CAST( - + col2 AS SIGNED ) * - col2 * col2 * - col1 * + col2 FROM tab0
----
210021
395254242
96059602

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT col1 + - CAST ( - + col2 AS INTEGER ) * - col2 * col2 * - col1 * + col2 FROM tab0
----
210021
395254242
96059602

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col2 * - col2 AS col2 FROM tab1
----
-3422
-4556
-9120

query II rowsort
SELECT - col2, 1 AS col2 FROM tab2
----
-23
1
-40
1
-58
1

query II rowsort
SELECT - col1 * + col0 * - + 1, col1 * - + 87 AS col0 FROM tab2
----
2346
-4437
4928
-6699
5025
-5829

query I rowsort
SELECT DISTINCT 1 + 3 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - - 63 AS col1 FROM tab2 AS cor0 WHERE + 7 * + + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 60 * col0 * + 69 col0 FROM tab0 AS cor0
----
-31335660
-38953260
-931500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL CAST( + + col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL CAST ( + + col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 31 + - 77 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT + COUNT( * ) + - 1 AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + COUNT ( * ) + - 1 AS col2 FROM tab2
----
2

query I rowsort
SELECT col1 - - - col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL + - 47 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT + + CAST( - ( - col2 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + + CAST ( - ( - col2 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6675
SELECT * FROM tab1 WHERE NOT - CAST( - - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6675
SELECT * FROM tab1 WHERE NOT - CAST ( - - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT + 75 DIV - - col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 75 / - - col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * - 57 col0 FROM tab1
----
1596
1596
1596

query I rowsort
SELECT 59 / - AVG ( + col1 ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
NULL

query II rowsort
SELECT ALL + col2, col1 + + - col0 AS col0 FROM tab0
----
10
-66
47
66
99
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT col1 DIV 74 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6680
SELECT col1 / 74 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - + col2 ) * + + col0 = - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT + COUNT( * ) * + 76 AS col0 FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + COUNT ( * ) * + 76 AS col0 FROM tab1 cor0
----
228

query I rowsort
SELECT ALL - + col2 * + ( - ( col1 ) ) + + col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-3774
-8375
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT MIN( ALL - + col1 ) * + - 26 AS col0 FROM tab2
----
2002

skipif mysql # not compatible
query I rowsort label-6685
SELECT MIN ( ALL - + col1 ) * + - 26 AS col0 FROM tab2
----
2002

query I rowsort
SELECT ALL col0 + 52 AS col2 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - COUNT( * ) * + ( COUNT( * ) ) + 93 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - COUNT ( * ) * + ( COUNT ( * ) ) + 93 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT SUM( + - 52 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6688
SELECT SUM ( + - 52 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + + 42 FROM tab1 AS cor0 WHERE - col2 / col1 * - col1 <= col2
----
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 55 + - col2, + col2 )
----

query I rowsort
SELECT - col0 + 40 AS col2 FROM tab2
----
-24
-35
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6692
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab2, tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT COUNT( * ) DIV 37 + MIN( ALL - 39 ) col0 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6693
SELECT COUNT ( * ) / 37 + MIN ( ALL - 39 ) col0 FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 65 * 85 FROM tab1
----
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT - ( + COUNT( * ) ) + ( + - MIN( - col1 ) ) AS col2 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - ( + COUNT ( * ) ) + ( + - MIN ( - col1 ) ) AS col2 FROM tab1 cor0
----
44

query I rowsort
SELECT ALL 79 * + col0 + 19 + - + 44 AS col1 FROM tab0 AS cor0
----
1160
6848
7638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6698
SELECT * FROM tab0 AS cor0 WHERE - + col0 + + col0 + - CAST( + col2 AS SIGNED ) * 18 + + col0 - - ( col0 ) * + - col2 >= + col2 * + 65 OR NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6698
SELECT * FROM tab0 AS cor0 WHERE - + col0 + + col0 + - CAST ( + col2 AS INTEGER ) * 18 + + col0 - - ( col0 ) * + - col2 >= + col2 * + 65 OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + MIN( 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6699
SELECT + MIN ( 42 ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + + 94 AS col1 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT - CAST( + + col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6701
SELECT - CAST ( + + col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL ( + 24 ) + - 70 - + 55 - - + COUNT( * ) col2 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT ALL ( + 24 ) + - 70 - + 55 - - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT col2 FROM tab2 WHERE + 56 * + 98 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - col2 * - col2 * - - ( - - 36 ) + 52 AS col1 FROM tab0 WHERE + col1 = - 24
----

query I rowsort
SELECT ALL - 49 FROM tab1 AS cor0 WHERE ( ( ( NULL ) IS NULL ) )
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab0 cor0
----
-22

query II rowsort
SELECT DISTINCT col0 + - - col2 AS col2, + ( + + col1 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT + CAST( - 14 AS SIGNED ) AS col2 FROM tab0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-6709
SELECT + CAST ( - 14 AS INTEGER ) AS col2 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT + 19 * - col0 AS col2 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT - COUNT( ALL - - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - COUNT ( ALL - - col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6712
SELECT DISTINCT + 79 * - 22 col0, - col2 DIV col2 FROM tab2
----
-1738
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6712
SELECT DISTINCT + 79 * - 22 col0, - col2 / col2 FROM tab2
----
-1738
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT DISTINCT + - 32 - - COUNT( * ) DIV + 35 + + - 85 * 33 FROM tab0 WHERE NOT NULL IS NULL
----
-2837

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + - 32 - - COUNT ( * ) / + 35 + + - 85 * 33 FROM tab0 WHERE NOT NULL IS NULL
----
-2837

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + MIN( ALL - + 72 ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + MIN ( ALL - + 72 ) AS col2 FROM tab2 AS cor0
----
-72

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL < NULL
----

query I rowsort
SELECT - 10 + - 46 FROM tab2
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-6717
SELECT ALL + col0 AS col0, + col0 DIV + - col1 AS col2 FROM tab0 AS cor0
----
15
0
87
-4
97
-97

skipif mysql # not compatible
query II rowsort label-6717
SELECT ALL + col0 AS col0, + col0 / + - col1 AS col2 FROM tab0 AS cor0
----
15
0
87
-4
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ( - COUNT( * ) ) + - 58 AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6718
SELECT ( - COUNT ( * ) ) + - 58 AS col1 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT ALL - + col2 + + ( - col0 ) FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - ( + 57 ) FROM tab0 AS cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT ALL - COUNT( - + ( - 85 ) ) AS col2, - MAX( + 0 ) FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-6722
SELECT ALL - COUNT ( - + ( - 85 ) ) AS col2, - MAX ( + 0 ) FROM tab1 AS cor0
----
-3
0

query II rowsort
SELECT col0 AS col2, 40 + + col2 + - col1 FROM tab2 AS cor0
----
46
12
64
3
75
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 30 <= - - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 32 + + col2 col0 FROM tab2
----
101
136
165

query I rowsort
SELECT ALL + 85 + col0 FROM tab2
----
131
149
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT DISTINCT + CAST( - + 21 AS SIGNED ) + - - col0 FROM tab2
----
25
43
54

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + CAST ( - + 21 AS INTEGER ) + - - col0 FROM tab2
----
25
43
54

query III rowsort
SELECT ALL * FROM tab1 WHERE - 78 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col0 FROM tab1 WHERE NULL <= + 55 * + + col0 / + 67 * - col2 / 9 + - col2
----

query I rowsort
SELECT ALL + ( + 64 ) + - 50 AS col2 FROM tab0
----
14
14
14

query II rowsort
SELECT ALL - col1 - + col1 * - 74 * + 34 AS col2, + 15 FROM tab2 AS cor0
----
128265
15
168505
15
193655
15

query I rowsort
SELECT ALL + 90 * + - 85 * col1 FROM tab0 AS cor0
----
-160650
-619650
-7650

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - COUNT( * ) + - 50 col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6734
SELECT - COUNT ( * ) + - 50 col0 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 73 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT * FROM tab2 WHERE - 94 <> + col0 * 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6738
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6739
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 99 ) / - col2 NOT IN ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + col1, col1, + - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-6739
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 99 ) / - col2 NOT IN ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col1, col1, + - ( + col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT ALL - + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT + MIN( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT + MIN ( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL col0, + col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT DISTINCT + CAST( + + SUM( + 27 ) AS SIGNED ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + CAST ( + + SUM ( + 27 ) AS INTEGER ) AS col0 FROM tab2
----
81

query II rowsort
SELECT - 70 AS col1, col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND ( + - 91 / + + 11 )
----

query I rowsort
SELECT DISTINCT + 16 FROM tab1 cor0
----
16

query I rowsort
SELECT - col2 * - col1 + + col0 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT DISTINCT MIN( DISTINCT - - col0 ) AS col0, + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
55

skipif mysql # not compatible
query II rowsort label-6749
SELECT DISTINCT MIN ( DISTINCT - - col0 ) AS col0, + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
55

query I rowsort
SELECT - col1 * + - col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab2 cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-6751
SELECT COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
90

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT - 68 * - COUNT( * ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 68 * - COUNT ( * ) FROM tab2
----
204

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + - ( + 44 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col2 - + col2 * - + col0 FROM tab2 AS cor0
----
1086
2597
4359

query I rowsort
SELECT - col2 + - col0 + - 80 * + 36 + + - col0 FROM tab0 AS cor0
----
-2957
-3064
-3173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 56 + + + col1 col2, col1 AS col2 FROM tab1 AS cor0
----
103
47
61
5
70
14

query I rowsort
SELECT DISTINCT - col1 + + + 8 FROM tab1
----
-39
-6
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 25 + + - col2 col1 FROM tab0
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 49 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + ( - col2 ) + - col0 FROM tab0
----
-195
-76
19

query III rowsort
SELECT DISTINCT + col1 * - 12 AS col2, col0, + + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 56 + + col2 - 21 * - - col1 AND ( + 33 )
----

query I rowsort
SELECT col0 + - - 51 * - col0 FROM tab2
----
-2300
-3200
-3750

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 16 * - + col0 + + - col1 AND - col2
----

query I rowsort
SELECT DISTINCT + col0 + 9 * - col0 AS col2 FROM tab2
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT 13 + SUM( DISTINCT col0 ) FROM tab0
----
212

skipif mysql # not compatible
query I rowsort label-6766
SELECT 13 + SUM ( DISTINCT col0 ) FROM tab0
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT 56 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6767
SELECT 56 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL + - 50 - 95 * + COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
-335

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + - 50 - 95 * + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
-335

query I rowsort
SELECT - - 14 - col1 AS col0 FROM tab0 AS cor0
----
-67
-7
13

query I rowsort
SELECT + col0 - - - col2 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL - SUM( - 58 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - SUM ( - 58 ) FROM tab2
----
174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 86 / - col0 * - 70 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col1
----

query II rowsort
SELECT 94, col0 AS col0 FROM tab0 cor0
----
94
15
94
87
94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL + MIN( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + MIN ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 92 AS col2 FROM tab0
----
4324
9108
920

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( - 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT DISTINCT + 44 * col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
14
382
43

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT + 44 * col0 / + col2 AS col1 FROM tab0 AS cor0
----
14
382
43

query I rowsort
SELECT - col1 * - + col0 + + col1 + - 4 FROM tab1 AS cor0 WHERE NOT NULL = 17
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN + + 57 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col1 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - 54 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0acdcd4352c8a9e18141dfce86bfc800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 68 col2 FROM tab1
----
-17
-23
17

query II rowsort
SELECT - col2 + - + col1 + - - col1, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + 64 - + SUM( DISTINCT + + ( + - col0 ) ) FROM tab0 AS cor0
----
263

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + 64 - + SUM ( DISTINCT + + ( + - col0 ) ) FROM tab0 AS cor0
----
263

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 * col1 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT COUNT( - + col1 ) DIV - 49 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( - + col1 ) / - 49 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - - 38 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - - col0 AND - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT + SUM( + 68 ) + - + 31 FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + SUM ( + 68 ) + - + 31 FROM tab2
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT ALL - CAST( NULL AS SIGNED ) + + 98 - ( - 40 ) - - - 89 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - CAST ( NULL AS INTEGER ) + + 98 - ( - 40 ) - - - 89 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 27 ) AS col2 FROM tab1, tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT - col2 + col1 DIV - - 5 FROM tab2
----
-13
-25
-45

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - col2 + col1 / - - 5 FROM tab2
----
-13
-25
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + COUNT( * ) + + 39 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6798
SELECT + COUNT ( * ) + + 39 AS col0 FROM tab2
----
42

query II rowsort
SELECT ALL - col2 * col1 AS col1, ( + col0 ) FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 57 < - ( - ( - col1 ) )
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 BETWEEN + 3 / 24 AND + + col1 * 8
----

query I rowsort
SELECT + 75 AS col1 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT 69 * 15 AS col2 FROM tab1
----
1035
1035
1035

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT 84 * + - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT 84 * + - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 63 col2, 28 * + - col0 * - col2 FROM tab2 cor0
----
63
121800
63
29624
63
71680

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT DISTINCT - COUNT( * ) * - + SUM( + col0 ) AS col1, SUM( col2 ) AS col2 FROM tab1 AS cor0
----
681
223

skipif mysql # not compatible
query II rowsort label-6807
SELECT DISTINCT - COUNT ( * ) * - + SUM ( + col0 ) AS col1, SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
681
223

query I rowsort
SELECT DISTINCT - + ( 14 ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ( 9 ) * - col0 * col1 FROM tab0
----
-10935
-16443
-873

query I rowsort
SELECT DISTINCT col1 + - col0 - col0 FROM tab0
----
-153
-193
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6811
SELECT DISTINCT + col2 AS col1, 25 DIV + col2 + + col0 FROM tab1
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-6811
SELECT DISTINCT + col2 AS col1, 25 / + col2 + + col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT + - COUNT( * ) + - - 60 FROM tab0 AS cor0 WHERE NOT 29 >= - 19
----
60

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT + - COUNT ( * ) + - - 60 FROM tab0 AS cor0 WHERE NOT 29 >= - 19
----
60

query II rowsort
SELECT ALL + + col1, 80 + - ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
1
79
21
59
81
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL + CAST( + 90 AS SIGNED ) FROM tab0 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + CAST ( + 90 AS INTEGER ) FROM tab0 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6815
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - - col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 90 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 + - col2 <> ( NULL )
----

query II rowsort
SELECT - col2 + 39 AS col0, 58 + - col2 + - col2 * + 48 AS col2 FROM tab0 AS cor0
----
-60
-4793
-8
-2245
29
-432

query I rowsort
SELECT col2 / 62 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT - + 96 DIV - - col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - + 96 / - - col0 FROM tab2 cor0
----
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6821
SELECT + 15 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT + 15 + - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT - col1 + CAST( NULL AS SIGNED ) * + col0 / + 29 * - 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT - col1 + CAST ( NULL AS INTEGER ) * + col0 / + 29 * - 53 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 45 + 2 AS col2 FROM tab0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT - CAST( NULL AS SIGNED ) / + col0 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT - CAST ( NULL AS INTEGER ) / + col0 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + + col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT + 27 * - col1 AS col1 FROM tab0
----
-2187
-27
-567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6828
SELECT + 54 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( col1 AS DECIMAL ) AND 21 - + col0
----

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 54 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( col1 AS REAL ) AND 21 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT DISTINCT + 51 FROM tab0 AS cor0 WHERE NOT col2 > - CAST( - + 61 AS SIGNED ) / + 94
----

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 51 FROM tab0 AS cor0 WHERE NOT col2 > - CAST ( - + 61 AS INTEGER ) / + 94
----

query II rowsort
SELECT ALL 51 AS col0, col2 AS col0 FROM tab2 AS cor0
----
51
23
51
40
51
58

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 93 ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT 90 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 3 NOT BETWEEN - col0 AND + col0 / col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 68 * + 89 AS col2 FROM tab1
----
-6052

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6837
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV col2 * + col0 + + col2 + - + col2 + + - col1 * - + col0 * + col2 + + col1 * - ( - - col1 ) FROM tab2 AS cor0
----
191127
286886
51265

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / col2 * + col0 + + col2 + - + col2 + + - col1 * - + col0 * + col2 + + col1 * - ( - - col1 ) FROM tab2 AS cor0
----
191127
286886
51265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6838
SELECT DISTINCT + + COUNT( * ) DIV + 43, COUNT( * ) col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6838
SELECT DISTINCT + + COUNT ( * ) / + 43, COUNT ( * ) col0 FROM tab2 AS cor0
----
0
3

query II rowsort
SELECT DISTINCT - 50 * - - col1 AS col2, col2 + 91 FROM tab1 AS cor0
----
-2350
159
-250
150
-700
187

query I rowsort
SELECT ALL - + 62 * col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - COUNT( + 45 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6841
SELECT - COUNT ( + 45 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL MAX( ALL - 81 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL MAX ( ALL - 81 ) AS col1 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6843
SELECT - MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - ( + - col2 ) * - col1 + - + col1 FROM tab1 AS cor0
----
-1358
-300
-3243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 6 ) + col0 * + - 14 col1 FROM tab2 AS cor0
----
-1044
-638
-890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT + col2 + + col1 + - col0 * + 82 + - CAST( NULL AS SIGNED ) 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-6846
SELECT + col2 + + col1 + - col0 * + 82 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT ALL CAST( + col0 AS SIGNED ) + - ( - - col1 ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL CAST ( + col0 AS INTEGER ) + - ( - - col1 ) FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col1 ) + + ( - - 12 ) col2 FROM tab0
----
-69
-9
11

query II rowsort
SELECT + - col1 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT ALL col1 - 13 AS col0, col2 AS col2 FROM tab2 AS cor0
----
38
23
54
58
64
40

query II rowsort
SELECT col0 AS col1, col2 + 16 FROM tab1 AS cor0
----
51
112
85
75
91
84

query I rowsort
SELECT - 27 * ( + + 74 ) FROM tab2 AS cor0
----
-1998
-1998
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + SUM( ALL + 92 ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + SUM ( ALL + 92 ) FROM tab1 AS cor0
----
276

query II rowsort
SELECT col2 * col1 AS col0, - col0 * col1 FROM tab2 AS cor0
----
1173
-2346
3080
-4928
3886
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 * - - col1
----

query I rowsort
SELECT + - 37 - + col1 FROM tab1 AS cor0
----
-42
-51
-84

query I rowsort
SELECT + ( + col0 ) - + + col0 + + - col1 + col0 + col1 * - col1 + + + 68 * - col0 AS col1 FROM tab1
----
-3627
-5725
-8353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL CAST( - - 34 AS SIGNED ) * + COUNT( * ) + + 18 AS col2 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL CAST ( - - 34 AS INTEGER ) * + COUNT ( * ) + + 18 AS col2 FROM tab1
----
120

query III rowsort
SELECT * FROM tab0 WHERE NULL = - - ( + col0 ) / - 65
----

query I rowsort
SELECT DISTINCT - 86 * + 42 + + + col2 AS col2 FROM tab0
----
-3513
-3565
-3602

query I rowsort
SELECT + 9 * + col1 AS col2 FROM tab1
----
126
423
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT - COUNT( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab0 cor0
----
26

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT + MIN( DISTINCT - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + MIN ( DISTINCT - 3 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT 28 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6866
SELECT 28 / col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT DISTINCT 87, MAX( - + col0 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
87
-18

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT 87, MAX ( - + col0 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
87
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col1 ) + - col1 IN ( + - 55, col1 + 70 + 3, + col1 * + col0 - + 76 + - 18 * - 86, - col1 * col2 * - - ( col2 ), 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6869
SELECT + + CAST( NULL AS SIGNED ), - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-6869
SELECT + + CAST ( NULL AS INTEGER ), - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query II rowsort
SELECT - 15 + - col0 AS col2, col0 FROM tab0
----
-102
87
-112
97
-30
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT CAST( NULL AS SIGNED ) + col1 + + - col1 + + col2 / - ( - col2 ) * - col2 * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT CAST ( NULL AS INTEGER ) + col1 + + - col1 + + col2 / - ( - col2 ) * - col2 * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - COUNT( * ) * 24 + + COUNT( * ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - COUNT ( * ) * 24 + + COUNT ( * ) AS col0 FROM tab0
----
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6874
SELECT DISTINCT + col2 + 57 + - CAST( NULL AS SIGNED ) * - + 17, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT + col2 + 57 + - CAST ( NULL AS INTEGER ) * - + 17, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL 1 * COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 1 * COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT + + COUNT( ALL + 48 ) col2 FROM tab1 WHERE - 33 * + 23 >= col0 + - CAST( NULL AS SIGNED ) + 34
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6876
SELECT DISTINCT + + COUNT ( ALL + 48 ) col2 FROM tab1 WHERE - 33 * + 23 >= col0 + - CAST ( NULL AS INTEGER ) + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT - COUNT( * ) DIV 97 + + COUNT( * ) + + 39 AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6877
SELECT - COUNT ( * ) / 97 + + COUNT ( * ) + + 39 AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6878
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT col2 DIV + 9 AS col1 FROM tab1
----
10
6
7

skipif mysql # not compatible
query I rowsort label-6879
SELECT col2 / + 9 AS col1 FROM tab1
----
10
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * + col2 col2 FROM tab1
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL 21 - - COUNT( * ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL 21 - - COUNT ( * ) AS col2 FROM tab1
----
24

query I rowsort
SELECT DISTINCT col0 - - 62 AS col2 FROM tab2 cor0
----
108
126
137

query I rowsort
SELECT + 96 + - - 99 FROM tab0 AS cor0
----
195
195
195

query I rowsort
SELECT + 23 AS col1 FROM tab2 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT ALL col1 - + col1 * ( + CAST( NULL AS SIGNED ) ) * + 33 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL col1 - + col1 * ( + CAST ( NULL AS INTEGER ) ) * + 33 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 89 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ( - MIN( + + col2 ) ) + + 61 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6887
SELECT ( - MIN ( + + col2 ) ) + + 61 FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / col0 IS NULL
----

query I rowsort
SELECT col0 * col2 + col0 * - col1 + - + col0 FROM tab0 AS cor0
----
-1044
-525
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-6890
SELECT + col0 + - col1 DIV col0, + col0 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
51
-2587
85
-7220
91
-8234

skipif mysql # not compatible
query II rowsort label-6890
SELECT + col0 + - col1 / col0, + col0 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
51
-2587
85
-7220
91
-8234

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT 0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT 19 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6892
SELECT 19 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT 58 * - col1 AS col2 FROM tab1 AS cor0
----
-2726
-290
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + MAX( DISTINCT - ( col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + MAX ( DISTINCT - ( col1 ) ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT 87 * + - 87 FROM tab2
----
-7569
-7569
-7569

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab2 WHERE NOT 19 <= - + 38 + + col0 * - col2
----
-1058
-2560
-4350

query I rowsort
SELECT 28 * col2 * + col2 * + 43 AS col1 FROM tab2
----
1926400
4050256
636916

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + MAX( - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6898
SELECT + MAX ( - col2 ) FROM tab2 cor0
----
-23

query I rowsort
SELECT + 22 * - col1 AS col1 FROM tab0 cor0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT DISTINCT - 5 * COUNT( * ) - MAX( DISTINCT + 36 ) * - COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT - 5 * COUNT ( * ) - MAX ( DISTINCT + 36 ) * - COUNT ( * ) FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT - 93 * 23 + - col1 + col2 + + col0 - + CAST( NULL AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT - 93 * 23 + - col1 + col2 + + col0 - + CAST ( NULL AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query III rowsort label-6903
SELECT + - col1 DIV - + col1, col0 AS col1, col1 FROM tab2 AS cor0
----
9 values hashing to 6e98d08d7382c317e40c63f0760b3bfc

skipif mysql # not compatible
query III rowsort label-6903
SELECT + - col1 / - + col1, col0 AS col1, col1 FROM tab2 AS cor0
----
9 values hashing to 6e98d08d7382c317e40c63f0760b3bfc

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - - col0 * + 50 - - - col0 + + col1 FROM tab0 AS cor0
----
4284
4754
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT MIN( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT MIN ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL MAX( - - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL MAX ( - - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6908
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT + 58 * + ( 43 ) + - col1, col1 AS col2 FROM tab1 AS cor0
----
2447
47
2480
14
2489
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT + MAX( DISTINCT - col1 ) * 30 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-6910
SELECT + MAX ( DISTINCT - col1 ) * 30 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL + COUNT( * ) col0 FROM tab2 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-6911
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT DISTINCT - COUNT( * ) col0, + 2 FROM tab2, tab1 AS cor0
----
-9
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6912
SELECT DISTINCT - COUNT ( * ) col0, + 2 FROM tab2, tab1 AS cor0
----
-9
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT + MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 51 * - + col1 + col1 - - - col1 + col0 * - 59 AS col2 FROM tab2 AS cor0
----
-5315
-7703
-7842

query I rowsort
SELECT ALL - ( + - ( + + 77 ) ) AS col2 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ( 72 ) AS col0 FROM tab1 AS cor0
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 18 * 5 AS col2 FROM tab0
----
90

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - ( ( 93 ) ) col1 FROM tab0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT + ( 29 ) / - 75 - 55 / - CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - col2 ) - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT + ( 29 ) / - 75 - 55 / - CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - col2 ) - - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 13 * col2 AS col1 FROM tab1 cor0
----
1248
767
884

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - - MIN( col2 ) FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - - MIN ( col2 ) FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
23

query I rowsort
SELECT + col0 * col2 * + + col0 AS col1 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - COUNT( * ) * - + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - COUNT ( * ) * - + 42 FROM tab1
----
126

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query I rowsort
SELECT DISTINCT - col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + - 92 + - col2 + + - col1 * - col1 FROM tab2 cor0
----
2486
4339
5797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT col0 + - - col0 - - + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
115
168
208

skipif mysql # not compatible
query I rowsort label-6931
SELECT col0 + - - col0 - - + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
115
168
208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6932
SELECT COUNT( * ) + + - 19 - - ( 3 ) DIV 36 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-6932
SELECT COUNT ( * ) + + - 19 - - ( 3 ) / 36 FROM tab2
----
-16

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 48 + 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + COUNT( col0 ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6934
SELECT + COUNT ( col0 ) + + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT col2 + ( 42 ) - col0 + + col0 + - 93 AS col0 FROM tab0
----
-4
-41
48

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL ( + CAST( 20 AS SIGNED ) ) + + - 85 AS col2 FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL ( + CAST ( 20 AS INTEGER ) ) + + - 85 AS col2 FROM tab1
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT DISTINCT 56 AS col0, + COUNT( * ) FROM tab0, tab1 AS cor0
----
56
9

skipif mysql # not compatible
query II rowsort label-6938
SELECT DISTINCT 56 AS col0, + COUNT ( * ) FROM tab0, tab1 AS cor0
----
56
9

query II rowsort
SELECT ALL + col0 - + 78, col1 AS col0 FROM tab2
----
-14
77
-3
67
-32
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6940
SELECT DISTINCT - + col2 + + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - + col2 + + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6941
SELECT ALL - CAST( - 24 AS SIGNED ) + + 93, - COUNT( * ) AS col0 FROM tab2
----
117
-3

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL - CAST ( - 24 AS INTEGER ) + + 93, - COUNT ( * ) AS col0 FROM tab2
----
117
-3

query II rowsort
SELECT 18 * + col1 + + col2, + 77 AS col1 FROM tab2
----
1264
77
1426
77
941
77

query I rowsort
SELECT 84 + - col1 / - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 44 * 39 NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL - COUNT( * ) * + - COUNT( * ) * 86 FROM tab1 AS cor0
----
774

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * 86 FROM tab1 AS cor0
----
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 27 ) col0 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6946
SELECT ALL * FROM tab1 cor0 WHERE ( NOT col0 - CAST( + col1 AS SIGNED ) IN ( 90 * + col0 + + 33, + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6946
SELECT ALL * FROM tab1 cor0 WHERE ( NOT col0 - CAST ( + col1 AS INTEGER ) IN ( 90 * + col0 + + 33, + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 21 * - - 28 AS col0 FROM tab0 AS cor0
----
-588
-588
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT - 74 DIV - COUNT( ALL + col1 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - 74 / - COUNT ( ALL + col1 ) AS col2 FROM tab1
----
24

query I rowsort
SELECT DISTINCT ( - + 7 ) FROM tab0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - + col2 ) col0, - 43 col0 FROM tab2
----
-23
-43
-40
-43
-58
-43

query I rowsort
SELECT ALL - + ( + 95 ) * - 79 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
7505
7505
7505

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6952
SELECT SUM( - + 79 ) * - MIN( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT SUM ( - + 79 ) * - MIN ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 64 col1, - col1 + - col2 FROM tab1 AS cor0
----
3264
-110
5440
-64
5824
-115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 91 * - + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * col0 + + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL COUNT( * ) + + 98 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL COUNT ( * ) + + 98 FROM tab1
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-6957
SELECT - 56 + col0 DIV - col0 AS col0, - col2 + col0 FROM tab2 cor0
----
-57
17
-57
23
-57
24

skipif mysql # not compatible
query II rowsort label-6957
SELECT - 56 + col0 / - col0 AS col0, - col2 + col0 FROM tab2 cor0
----
-57
17
-57
23
-57
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL SUM( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT col1 * - 7 AS col2 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT ALL + 56 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL + 56 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT - 8 DIV - col1 - + - 56 col1 FROM tab1 AS cor0
----
56
56
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT - 8 / - col1 - + - 56 col1 FROM tab1 AS cor0
----
56
56
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT ALL - - ( + col0 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - - ( + col0 ) / + col1 AS col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0 + + + col0
----

query II rowsort
SELECT ALL 4, + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col0 <> ( + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT SUM( DISTINCT - 88 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-88

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT SUM ( DISTINCT - 88 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT DISTINCT - 41 + COUNT( DISTINCT - col1 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - 41 + COUNT ( DISTINCT - col1 ) FROM tab0
----
-38

query I rowsort
SELECT ALL - col1 + 27 + ( + 90 ) FROM tab2
----
40
50
66

query I rowsort
SELECT ALL + col2 + col0 + 97 AS col2 FROM tab2
----
166
201
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT DISTINCT col2 * - ( ( - CAST( NULL AS SIGNED ) ) ) + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT col2 * - ( ( - CAST ( NULL AS INTEGER ) ) ) + - col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT COUNT( * ) - - + MAX( ALL 73 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6970
SELECT COUNT ( * ) - - + MAX ( ALL 73 ) AS col0 FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT ALL col0 * - - col2 * - - 78 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL col0 * - - col2 * - - 78 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 IN ( col1, + 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE CAST( - + col0 AS SIGNED ) BETWEEN ( - col1 / - + 28 ) AND ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( - + col0 AS INTEGER ) BETWEEN ( - col1 / - + 28 ) AND ( - - col1 )
----

query I rowsort
SELECT + col2 + - - 24 AS col2 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + 60 * - 62 * MAX( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-174840

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + 60 * - 62 * MAX ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-174840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT - CAST( NULL AS SIGNED ) + + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6977
SELECT - CAST ( NULL AS INTEGER ) + + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 * + col0 AS col0, col2 * col2 AS col0 FROM tab2
----
-2346
529
-4928
1600
-5025
3364

query I rowsort
SELECT ALL - 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + 63 * + col1 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - 57 * - + COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-6983
SELECT - 57 * - + COUNT ( * ) FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT COUNT ( - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - ( - + COUNT( * ) ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6985
SELECT - ( - + COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT 5 + col2 FROM tab2
----
28
45
63

query I rowsort
SELECT DISTINCT - ( + 85 ) * 38 * col2 AS col1 FROM tab1 AS cor0
----
-190570
-219640
-310080

query I rowsort
SELECT - + 52 + 74 + + ( - col1 ) FROM tab0 AS cor0
----
-59
1
21

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT - 84 * 32 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6990
SELECT ALL - SUM( DISTINCT - col2 ) DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - SUM ( DISTINCT - col2 ) / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 34 + 26 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col1 FROM tab1 WHERE NOT - col2 * ( 1 ) - - 90 = ( col0 * ( col2 / + 47 ) )
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT - CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NULL <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 * col1 col2 FROM tab0
----
-2835
-35
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT SUM( ALL col1 ) FROM tab1 WHERE ( + 17 * col1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT SUM ( ALL col1 ) FROM tab1 WHERE ( + 17 * col1 ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT MIN( + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6997
SELECT MIN ( + col0 ) col2 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 47 ) IN ( - col1 / + col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 32 col1 FROM tab1
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL ( MIN( + col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL ( MIN ( + col2 ) ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7001
SELECT DISTINCT * FROM tab2 WHERE NOT - 32 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7001
SELECT DISTINCT * FROM tab2 WHERE NOT - 32 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT 80 DIV - COUNT( * ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-7002
SELECT 80 / - COUNT ( * ) FROM tab1
----
-26

query I rowsort
SELECT + 0 * 33 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT - COUNT( * ) + 1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - COUNT ( * ) + 1 FROM tab1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7005
SELECT ALL * FROM tab1 WHERE CAST( 28 AS DECIMAL ) + + col0 * - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7005
SELECT ALL * FROM tab1 WHERE CAST ( 28 AS REAL ) + + col0 * - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab1 WHERE ( 44 ) NOT IN ( - col1 * - 85 )
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + CAST( NULL AS SIGNED ) - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + CAST ( NULL AS INTEGER ) - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 51 + col1 FROM tab1 WHERE col1 NOT IN ( col2 )
----
-37
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT ALL + CAST( - col0 AS SIGNED ) + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + CAST ( - col0 AS INTEGER ) + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - 24 * - ( COUNT( col1 ) * COUNT( * ) ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 24 * - ( COUNT ( col1 ) * COUNT ( * ) ) AS col0 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + COUNT( * ) * 24 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7011
SELECT + COUNT ( * ) * 24 FROM tab1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7012
SELECT - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7012
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 - col2 * + col1 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 WHERE NOT NULL = ( + 26 )
----

query I rowsort
SELECT col1 + 36 AS col1 FROM tab2
----
103
113
87

query I rowsort
SELECT DISTINCT + col1 * 79 AS col1 FROM tab0
----
1659
6399
79

query III rowsort
SELECT * FROM tab2 WHERE col2 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 * 35 AS col2 FROM tab1
----
1785
2975
3185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab0 AS cor0 WHERE col2 / col0 <> ( col0 )
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 16 col1 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 WHERE NOT col0 / + col1 + + ( - col0 ) NOT IN ( col0 * - col2 + + 54 )
----

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
18

query I rowsort
SELECT DISTINCT + ( col2 ) * 7 AS col0 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) * 82 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
246

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) * 82 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT + 72 DIV 3 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7032
SELECT + 72 / 3 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7033
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT + col1 * - ( + col0 DIV col0 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7034
SELECT + col1 * - ( + col0 / col0 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - ( + col1 ) * + 11 FROM tab0
----
-11
-231
-891

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT + SUM( ALL - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + col0 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - 39 * - COUNT( * ) * SUM( col1 ) FROM tab1
----
7722

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 39 * - COUNT ( * ) * SUM ( col1 ) FROM tab1
----
7722

query I rowsort
SELECT + col0 * + col2 + + col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - - MAX( DISTINCT - col0 ) * CAST( 55 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-825

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - - MAX ( DISTINCT - col0 ) * CAST ( 55 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT + SUM( - + 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-7042
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7043
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7043
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 * CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL - COUNT( DISTINCT ( - 45 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - COUNT ( DISTINCT ( - 45 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + 16 ) >= ( + col2 )
----

query I rowsort
SELECT DISTINCT + 48 * 90 FROM tab0 WHERE ( NULL NOT IN ( col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > + + col0 + + col0 * - col0
----

query I rowsort
SELECT col0 + - 90 * col2 * col0 FROM tab2
----
-230336
-391425
-95174

query I rowsort
SELECT + col0 * + ( col1 ) FROM tab1 WHERE NULL IS NULL
----
425
4277
714

query II rowsort
SELECT + 72, col1 AS col0 FROM tab0 cor0
----
72
1
72
21
72
81

query I rowsort
SELECT + col2 * - - col2 * - ( - col2 ) AS col0 FROM tab2 cor0
----
12167
195112
64000

query I rowsort
SELECT ALL col2 + ( col1 ) * 65 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - 87 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 41 AND NULL OR NOT ( col1 ) <> ( + 27 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( 35 + + col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE col1 = NULL
----

query I rowsort
SELECT DISTINCT - 53 * + col2 AS col1 FROM tab1 AS cor0
----
-3127
-3604
-5088

query I rowsort
SELECT ALL col1 + - - 71 AS col1 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT ALL COUNT( * ) * 50, - COUNT( - + col0 ) AS col0 FROM tab2
----
150
-3

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL COUNT ( * ) * 50, - COUNT ( - + col0 ) AS col0 FROM tab2
----
150
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT IN ( + col0 ) AND NOT ( col1 * + ( col0 * 54 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT - + 45 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7061
SELECT - + 45 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - col1 + col0 col1 FROM tab2
----
37
45
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL - + SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - + SUM ( + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 >= 35 * - 25 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7067
SELECT - COUNT( * ), + COUNT( - - 40 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7067
SELECT - COUNT ( * ), + COUNT ( - - 40 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL + MAX( + - 75 ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + MAX ( + - 75 ) AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL col1 + + col1 * + 17 + + - 79 FROM tab2
----
1127
1307
839

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + 19 col2, - col0 FROM tab1
----
104
-85
110
-91
70
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT + MIN( DISTINCT - + col2 ) + + 12 DIV - COUNT( ALL + - 15 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7072
SELECT + MIN ( DISTINCT - + col2 ) + + 12 / - COUNT ( ALL + - 15 ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - ( + - col2 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 30 * col1 + - col2 FROM tab1
----
1342
324
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT ALL + col1 * ( - + col1 ) DIV 89 + 27 * - 7 col1 FROM tab0
----
-189
-193
-262

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7075
SELECT ALL + col1 * ( - + col1 ) / 89 + 27 * - 7 col1 FROM tab0
----
-189
-193
-262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7077
SELECT - CAST( col1 AS SIGNED ) AS col0, + 42 + + col0 FROM tab0 WHERE NULL IS NULL
----
-1
139
-21
129
-81
57

skipif mysql # not compatible
query II rowsort label-7077
SELECT - CAST ( col1 AS INTEGER ) AS col0, + 42 + + col0 FROM tab0 WHERE NULL IS NULL
----
-1
139
-21
129
-81
57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7078
SELECT CAST( NULL AS DECIMAL ) + col1 AS col0, + 19 FROM tab0
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
query II rowsort label-7078
SELECT CAST ( NULL AS REAL ) + col1 AS col0, + 19 FROM tab0
----
NULL
19
NULL
19
NULL
19

query I rowsort
SELECT - ( col1 ) + + col1 + - 96 * + - 68 AS col1 FROM tab2
----
6528
6528
6528

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + + col1 NOT IN ( + ( - col1 ) + - 45 * + col2 )
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( + - 80 - - + ( - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - MAX( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7082
SELECT - MAX ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 WHERE - col1 < - col2 + + + col0 + + col1
----
3

skipif mysql # not compatible
query I rowsort label-7083
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - col1 < - col2 + + + col0 + + col1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - + 31 - col0 - - - 45 BETWEEN ( + ( - col0 ) * ( 73 ) ) AND ( 83 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT ALL col1 DIV col2 - - col0 AS col2 FROM tab2 cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL col1 / col2 - - col0 AS col2 FROM tab2 cor0
----
48
65
76

query I rowsort
SELECT - ( - - col1 ) + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( ( NOT ( + - col2 ) <> ( 1 ) ) ) )
----

query I rowsort
SELECT ALL + col2 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL 51 * - col2 AS col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT + COUNT( * ) + - + 33 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-30
-3

skipif mysql # not compatible
query II rowsort label-7090
SELECT + COUNT ( * ) + - + 33 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-30
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT + ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 > - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 1 col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 22 * + 11 AS col2 FROM tab0
----
-242
-242
-242

query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) AS col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT + ( + col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT + ( + col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL + MAX( DISTINCT - 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + MAX ( DISTINCT - 22 ) FROM tab2
----
-22

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + + col2 - col0 - 53 * + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 57 IS NOT NULL
----

query II rowsort
SELECT ALL + col2, - col1 * - - col1 * - col2 AS col0 FROM tab0
----
10
4410
47
308367
99
99

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 24 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT SUM( ALL ( - col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7102
SELECT SUM ( ALL ( - col1 ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT MAX( DISTINCT - + 5 ) AS col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7103
SELECT MAX ( DISTINCT - + 5 ) AS col1 FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL + COUNT( * ) * + 48 AS col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + COUNT ( * ) * + 48 AS col1 FROM tab1 AS cor0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT DISTINCT COUNT( * ) DIV + 80 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT COUNT ( * ) / + 80 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col1 * 48 AS col0 FROM tab0 AS cor0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL MIN( DISTINCT + + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL MIN ( DISTINCT + + 62 ) FROM tab1
----
62

query I rowsort
SELECT + col0 * + col1 * 52 AS col1 FROM tab1
----
22100
222404
37128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7110
SELECT ALL - COUNT( * ) DIV 54 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - COUNT ( * ) / 54 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT DISTINCT + 47 AS col2, - COUNT( * ) FROM tab1, tab2 AS cor0
----
47
-9

skipif mysql # not compatible
query II rowsort label-7111
SELECT DISTINCT + 47 AS col2, - COUNT ( * ) FROM tab1, tab2 AS cor0
----
47
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - - SUM( - col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7112
SELECT ALL - - SUM ( - col1 ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - COUNT( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7113
SELECT - COUNT ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL - + col2 + + 8 - + - col1 - + 84, + col0 FROM tab1 AS cor0
----
-130
85
-158
51
-97
91

query I rowsort
SELECT ALL 47 * + - col0 AS col1 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT + 92 FROM tab2 AS cor0 WHERE NOT 49 <= ( - col2 * + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT + SUM( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + SUM ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 56 + + ( 48 ) AS col0 FROM tab2 WHERE - col2 * col1 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 - + - col2 / + ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 + col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL col1 * + - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT - + col1 * + 1 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT - + col1 * + 1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + ( + + 83 ) * + 8 + - + col0 - - 34 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
15260
26530
38471

query I rowsort
SELECT ALL - - col0 * 65 AS col2 FROM tab2 cor0
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + + MAX( DISTINCT - + ( 3 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7126
SELECT + + MAX ( DISTINCT - + ( 3 ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7127
SELECT ALL - + col1, CAST( NULL AS SIGNED ) + + - col2 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-7127
SELECT ALL - + col1, CAST ( NULL AS INTEGER ) + + - col2 col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT + + col1 - + - col2 + + col0 + + col1 AS col1 FROM tab0 AS cor0
----
139
198
224

query I rowsort
SELECT - col2 - - - 81 * + col2 * - col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-18256486
-2185322
-9979240

query II rowsort
SELECT col0 * - + col2 * + ( 79 ) AS col2, col0 AS col2 FROM tab2 AS cor0
----
-202240
64
-343650
75
-83582
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - ( + col1 ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 1 * 41 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT - COUNT( * ) - + 11 FROM tab0, tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - COUNT ( * ) - + 11 FROM tab0, tab2 AS cor0
----
-20

query I rowsort
SELECT 98 FROM tab0, tab0 AS cor0 WHERE NOT + 66 IS NULL
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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-7137
SELECT ALL - COUNT( 94 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - COUNT ( 94 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + 95
----

query I rowsort
SELECT DISTINCT - col2 * - - 56 FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT ALL + 4 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + 4 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 64 * - + 25 AS col0 FROM tab2 cor0
----
1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT ALL + COUNT( * ) DIV - - 94 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL + COUNT ( * ) / - - 94 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT - ( + COUNT( - 83 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7143
SELECT - ( + COUNT ( - 83 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 * + - 39 IS NULL
----
1
21
81

query I rowsort
SELECT - 38 * - 47 FROM tab2
----
1786
1786
1786

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col0 * - + col0 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 + + 35 * - - ( + + 77 ) AS col1 FROM tab0 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT ALL + - col0 DIV + - 60 col2 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7149
SELECT ALL + - col0 / + - 60 col2 FROM tab2 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + MAX( - - col0 ) + - 5 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7150
SELECT + MAX ( - - col0 ) + - 5 FROM tab2 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + ( - col1 ) col1 FROM tab1
----
37
44
80

query I rowsort
SELECT + col2 + - 60 - 77 FROM tab2
----
-114
-79
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-7153
SELECT - 3 DIV - + 95 + col2 DIV + - 46 AS col0, + 31 AS col1 FROM tab2
----
-1
31
0
31
0
31

skipif mysql # not compatible
query II rowsort label-7153
SELECT - 3 / - + 95 + col2 / + - 46 AS col0, + 31 AS col1 FROM tab2
----
-1
31
0
31
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT + - MAX( - col0 ) FROM tab0 WHERE + + col1 < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT + - MAX ( - col0 ) FROM tab0 WHERE + + col1 < - col2
----
NULL

query I rowsort
SELECT col2 + - 15 AS col1 FROM tab1
----
44
53
81

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL BETWEEN + col2 + - col2 AND - + 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT + AVG ( - + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 + + 27 FROM tab2
----
-13
-31
4

query I rowsort
SELECT ALL - ( - 6 ) * + - 17 FROM tab1
----
-102
-102
-102

query I rowsort
SELECT DISTINCT col0 + + 68 AS col1 FROM tab1
----
119
153
159

query I rowsort
SELECT DISTINCT - col1 * col0 - + - col2 FROM tab2 AS cor0 WHERE NOT + 38 NOT BETWEEN + - 56 AND + col2
----
-4888
-4967

query I rowsort
SELECT DISTINCT col2 - + 99 AS col2 FROM tab0 cor0
----
-52
-89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT CAST( NULL AS SIGNED ) / - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT CAST ( NULL AS INTEGER ) / - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 57 + + col0 FROM tab1
----
108
142
148

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col0 + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 > NULL
----

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT - 10 * - 10 * + + col1 FROM tab0 AS cor0
----
100
2100
8100

query I rowsort
SELECT - col1 * - ( col2 ) * + - col0 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL - col2 * - - 88 AS col0 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT - COUNT( * ) col0, 49 FROM tab2
----
-3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7172
SELECT - COUNT ( * ) col0, 49 FROM tab2
----
-3
49

onlyif mysql # DIV for integer division: 
query II rowsort label-7173
SELECT DISTINCT 58, + col1 DIV - col2 AS col2 FROM tab1
----
58
0

skipif mysql # not compatible
query II rowsort label-7173
SELECT DISTINCT 58, + col1 / - col2 AS col2 FROM tab1
----
58
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7174
SELECT ALL + 4 AS col1, COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * 87 FROM tab0
----
4
0

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL + 4 AS col1, COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * 87 FROM tab0
----
4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT COUNT( * ) * - ( COUNT( * ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( * ) * - ( COUNT ( * ) ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - MIN( + 82 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7176
SELECT - MIN ( + 82 ) FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - ( + - col2 ) + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT + SUM( + 47 ) AS col0 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + SUM ( + 47 ) AS col0 FROM tab0
----
141

query I rowsort
SELECT ALL 45 FROM tab2 AS cor0 WHERE NOT ( col1 = col1 * - col0 )
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7180
SELECT + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT SUM( + col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7181
SELECT SUM ( + col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + SUM( - + 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + SUM ( - + 2 ) FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7183
SELECT DISTINCT - col0, col0 DIV - ( + 62 ) AS col0 FROM tab2 AS cor0
----
-46
0
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-7183
SELECT DISTINCT - col0, col0 / - ( + 62 ) AS col0 FROM tab2 AS cor0
----
-46
0
-64
-1
-75
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - ( - + SUM( + + 96 ) ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - ( - + SUM ( + + 96 ) ) FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT + MAX( - col1 ) * - MIN( DISTINCT + + col2 ) FROM tab2 AS cor0
----
1173

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + MAX ( - col1 ) * - MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
1173

query I rowsort
SELECT - - 60 AS col2 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT - MIN( + 94 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT - MIN ( + 94 ) FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT - col0 DIV col0 + + ( - col0 ) col2 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7189
SELECT - col0 / col0 + + ( - col0 ) col2 FROM tab1 cor0
----
-52
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * - col1 + + col2, + 64 col0 FROM tab0 AS cor0
----
100
64
451
64
6608
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7191
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab2 WHERE - 74 + + + col0 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7191
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab2 WHERE - 74 + + + col0 < NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 + + - col0 FROM tab0
----
-528
-6576
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7194
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) + 94 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7194
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + 94 AND NULL
----

query I rowsort
SELECT ALL col0 * - 84 + - 33 * + 62 FROM tab2
----
-5910
-7422
-8346

query II rowsort
SELECT - 54 - - - 48 * + col2, col2 FROM tab0
----
-2310
47
-4806
99
-534
10

query I rowsort
SELECT ALL - col0 + - - 86 FROM tab2
----
11
22
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 + 37 + 99 * + col1 col2 FROM tab0 cor0
----
2072
8012
92

query I rowsort
SELECT + ( - - col2 ) + + + col1 * col0 FROM tab0 AS cor0
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 18 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - SUM( - 62 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - SUM ( - 62 ) FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + COUNT( col0 ) + - 99 + 4 FROM tab2 WHERE ( - - 38 ) = ( NULL )
----
-95

skipif mysql # not compatible
query I rowsort label-7203
SELECT + COUNT ( col0 ) + - 99 + 4 FROM tab2 WHERE ( - - 38 ) = ( NULL )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT DISTINCT + SUM( - + 59 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-531

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + SUM ( - + 59 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-531

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - ( 8 ) - 61 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + ( - 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT + - col2 DIV - 43 col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7207
SELECT + - col2 / - 43 col0 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT DISTINCT - MIN( col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT - MIN ( col2 ) AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE 52 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> - 46
----

query I rowsort
SELECT DISTINCT ( 98 ) FROM tab2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT DISTINCT + ( + col1 ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + ( + col1 ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT + col1, + col0 + col2 FROM tab1 WHERE NOT + + col0 + - - col1 >= NULL
----

query II rowsort
SELECT col2, + 91 AS col0 FROM tab0
----
10
91
47
91
99
91

query I rowsort
SELECT col0 * + 63 AS col2 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT ( + - col0 ) * col1 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * + - 31 AS col0 FROM tab0
----
-2697
-3007
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT + MIN( - - col1 ) DIV MAX( DISTINCT + - col0 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7218
SELECT + MIN ( - - col1 ) / MAX ( DISTINCT + - col0 ) AS col1 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 22 * - 44 + + 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 * - - col2 AS col2 FROM tab1
----
4248
4896
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + + 42 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - COUNT( * ) * + 15 + + 44 + + 51 FROM tab1 WHERE NULL NOT BETWEEN - + ( - col0 ) AND NULL
----
95

skipif mysql # not compatible
query I rowsort label-7223
SELECT - COUNT ( * ) * + 15 + + 44 + + 51 FROM tab1 WHERE NULL NOT BETWEEN - + ( - col0 ) AND NULL
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL + - COUNT( ALL - + col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + - COUNT ( ALL - + col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT col2 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT + 44 + - SUM( + 13 ) + ( - 65 ) * + 5 * - + 77 col1 FROM tab1 AS cor0
----
25030

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7226
SELECT DISTINCT + 44 + - SUM ( + 13 ) + ( - 65 ) * + 5 * - + 77 col1 FROM tab1 AS cor0
----
25030

query I rowsort
SELECT DISTINCT + col1 + - col0 + + + col1 + 10 + ( + + col1 ) - + col2 * + col2 + + + 97 AS col1 FROM tab2 AS cor0
----
-1326
-3131
-315

query I rowsort
SELECT ALL + + ( + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE 65 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7229
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE 65 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + 0 * + col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7231
SELECT - CAST( col1 AS SIGNED ) DIV - + col2 + + - col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-7231
SELECT - CAST ( col1 AS INTEGER ) / - + col2 + + - col2 FROM tab0 AS cor0
----
-46
-8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - - SUM( ALL + + col0 ) + + - COUNT( * ) + 56 FROM tab2 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-7232
SELECT - - SUM ( ALL + + col0 ) + + - COUNT ( * ) + 56 FROM tab2 AS cor0
----
238

query I rowsort
SELECT + col2 + + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT ALL + ( - col1 ) + + CAST( + + 68 AS SIGNED ) * + ( - 45 ) - - 34 - + + col0 FROM tab0
----
-3122
-3124
-3134

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + ( - col1 ) + + CAST ( + + 68 AS INTEGER ) * + ( - 45 ) - - 34 - + + col0 FROM tab0
----
-3122
-3124
-3134

query I rowsort
SELECT - col1 + + 74 FROM tab0
----
-7
53
73

query I rowsort
SELECT DISTINCT 34 FROM tab0 WHERE + col1 IS NOT NULL
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT + 14 DIV - col2 + + + 18 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-7237
SELECT + 14 / - col2 + + + 18 FROM tab1
----
18
18
18

query I rowsort
SELECT + 64 + + 84 AS col2 FROM tab0
----
148
148
148

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + 58 < NULL
----

query II rowsort
SELECT ALL col0 + 16, col0 AS col2 FROM tab2
----
62
46
80
64
91
75

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab2
----
17
23
24

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 - - + 87 >= NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT col2 DIV - 14 AS col0 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7245
SELECT col2 / - 14 AS col0 FROM tab2
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + + COUNT( DISTINCT - 49 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7246
SELECT + + COUNT ( DISTINCT - 49 ) col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - MIN( + + col1 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7247
SELECT - MIN ( + + col1 ) AS col0 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT + + 85 FROM tab2 AS cor0 WHERE + 1 IS NOT NULL
----
85

query II rowsort
SELECT ALL + ( - + col0 ) * - + col0 AS col2, 44 AS col0 FROM tab0 AS cor0
----
225
44
7569
44
9409
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 74 ) / - 46 + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col1 col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT col0 DIV ( - col0 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT col0 / ( - col0 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT + ( - - 85 ) * + col0 FROM tab0
----
1275
7395
8245

query I rowsort
SELECT ALL + 80 * col2 * + col2 AS col1 FROM tab0
----
176720
784080
8000

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT - 66 IS NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT + MAX( DISTINCT + - col1 ) DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7258
SELECT + MAX ( DISTINCT + - col1 ) / + COUNT ( * ) col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + - col2 + + - ( col2 ) FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL ( + ( + - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL ( + ( + - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7261
SELECT MIN( CAST( NULL AS DECIMAL ) ) * - AVG ( ALL - + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT MIN ( CAST ( NULL AS REAL ) ) * - AVG ( ALL - + col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7262
SELECT + COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 * - col0 FROM tab1 cor0 WHERE NULL > col2
----

query I rowsort
SELECT + ( + - col0 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) col1, col2 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab2 WHERE + 8 + + 0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND - 24 + col1 * + ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 38 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL - MIN( - col1 ) + MAX( DISTINCT - + 38 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - MIN ( - col1 ) + MAX ( DISTINCT - + 38 ) FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT - 99 DIV - + col1 + + + col1 AS col2 FROM tab1
----
21
24
49

skipif mysql # not compatible
query I rowsort label-7271
SELECT - 99 / - + col1 + + + col1 AS col2 FROM tab1
----
21
24
49

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + + col0 * + + 67 * - col1 + - 8 - - + col0 + col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * 89 + + col0 FROM tab0 cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col0 - - - col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT + COUNT( * ) DIV - + 42 + - 70 + - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7275
SELECT + COUNT ( * ) / - + 42 + - 70 + - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT ALL + + ( - 41 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 16 <> - + col1 * + col2 * - 29 + - col2 + - - col1
----

query I rowsort
SELECT DISTINCT + col0 * - - 34 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL MAX( ALL + 5 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL MAX ( ALL + 5 ) FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - CAST( - + col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - CAST ( - + col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 72 + col0 IS NOT NULL
----

query I rowsort
SELECT + 85 * + col0 AS col0 FROM tab0
----
1275
7395
8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 22 * - col0 - + col1 col1 FROM tab2
----
-23
961
-40
1331
-58
1583

query I rowsort
SELECT - + 90 FROM tab1 WHERE NULL < ( NULL ) AND 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT - col0 * CAST( + + col0 AS SIGNED ) + + - col1 - + col2 * - 87 * - col2 FROM tab2
----
-143373
-298360
-48190

skipif mysql # not compatible
query I rowsort label-7285
SELECT - col0 * CAST ( + + col0 AS INTEGER ) + + - col1 - + col2 * - 87 * - col2 FROM tab2
----
-143373
-298360
-48190

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT + col0 DIV col2 + - col1 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-7286
SELECT + col0 / col2 + - col1 FROM tab0
----
-1
-13
-81

query II rowsort
SELECT 29 + + ( - 8 ), - ( + col2 ) AS col1 FROM tab2
----
21
-23
21
-40
21
-58

query I rowsort
SELECT - 33 + + + col1 * - col1 FROM tab0
----
-34
-474
-6594

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT - COUNT( * ) * 31 + ( 87 ) + - + ( + 99 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2, col2, ( - col1 ) + + col1, 28 - col1 / + 84 * col2 * - 62 + col1 / + - col1, + 51 )
----
-12

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - COUNT ( * ) * 31 + ( 87 ) + - + ( + 99 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2, col2, ( - col1 ) + + col1, 28 - col1 / + 84 * col2 * - 62 + col1 / + - col1, + 51 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT CAST( - col0 AS SIGNED ) + 69 FROM tab2 AS cor0
----
-6
23
5

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + 69 FROM tab2 AS cor0
----
-6
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT 37 + - + SUM( 62 ) AS col2 FROM tab1
----
-149

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT 37 + - + SUM ( 62 ) AS col2 FROM tab1
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ( + MAX( DISTINCT - 13 ) ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7292
SELECT ( + MAX ( DISTINCT - 13 ) ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT 64 + - col1 AS col0 FROM tab0
----
-17
43
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * + col1 * - - 89 + - CAST( NULL AS SIGNED ) / - col0 * 1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * + col1 * - - 89 + - CAST ( NULL AS INTEGER ) / - col0 * 1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + - CAST( + col1 AS SIGNED ) * + + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + - CAST ( + col1 AS INTEGER ) * + + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT - + COUNT( * ) + - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT - + COUNT ( * ) + - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 * - + col1 + + - col0 + + col2 FROM tab2 cor0
----
-2369
-4952
-5042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT + - CAST( - col2 AS SIGNED ) + 59 - 90 * - 99 + - - col1 AS col1 FROM tab1 AS cor0
----
9033
9079
9084

skipif mysql # not compatible
query I rowsort label-7299
SELECT + - CAST ( - col2 AS INTEGER ) + 59 - 90 * - 99 + - - col1 AS col1 FROM tab1 AS cor0
----
9033
9079
9084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL - col0 * + CAST( 86 AS SIGNED ) FROM tab0
----
-1290
-7482
-8342

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL - col0 * + CAST ( 86 AS INTEGER ) FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT ALL - 98 + col1 + + 30 + - 17 * - 9 + ( col0 ) FROM tab2
----
182
226
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT 12 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT 12 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT + MAX( DISTINCT - + 1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + MAX ( DISTINCT - + 1 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7304
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) + + 49 AS col1 FROM tab2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7304
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) + + 49 AS col1 FROM tab2
----
NULL
46

onlyif mysql # DIV for integer division: 
query II rowsort label-7305
SELECT col2 AS col1, 25 DIV - col0 * + col2 AS col1 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-7305
SELECT col2 AS col1, 25 / - col0 * + col2 AS col1 FROM tab1
----
59
0
68
0
96
0

query I rowsort
SELECT DISTINCT + 30 + - 84 AS col0 FROM tab0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7307
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST( 91 AS SIGNED ) + 88
----

skipif mysql # not compatible
query III rowsort label-7307
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST ( 91 AS INTEGER ) + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7308
SELECT DISTINCT * FROM tab2 WHERE - CAST( - - CAST( - 32 AS SIGNED ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7308
SELECT DISTINCT * FROM tab2 WHERE - CAST ( - - CAST ( - 32 AS INTEGER ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - + col2 + ( - col2 ) * - - col1 FROM tab2 AS cor0
----
-1702
-4680
-7250

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 * - col1 NOT IN ( col0 * - 25 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 28 * - - ( - col1 ) col0 FROM tab0 AS cor0
----
1
28
21
588
81
2268

query II rowsort
SELECT DISTINCT + col0 AS col2, 96 * + - col2 + + 26 FROM tab0 AS cor0
----
15
-4486
87
-934
97
-9478

query I rowsort
SELECT ( + 82 ) AS col1 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - 1 + + + col2 * + 35 * 14 * - col1 AS col1 FROM tab0 cor0 WHERE NOT + col0 / - col2 IS NULL
----
-102901
-1865431
-48511

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT MAX ( - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 28 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col2 + 15 AS col2 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT ALL + 97 * - col0 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT - col2 + - + col2 AS col2 FROM tab0
----
-198
-20
-94

query II rowsort
SELECT DISTINCT - col1 * col0, col0 FROM tab2
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT ALL - 70 * - col2 AS col1 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col1 / - 5
----

query I rowsort
SELECT ALL ( + - 16 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + ( + 67 ) + + 18 + - 60 + - 55 AS col2 FROM tab0 AS cor0 WHERE + col2 * col2 * - 16 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + COUNT( * ) + COUNT( * ) * 52 AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7326
SELECT + COUNT ( * ) + COUNT ( * ) * 52 AS col1 FROM tab1 AS cor0
----
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col0 ) IS NOT NULL AND ( - col0 NOT BETWEEN - + col0 + + + 79 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + + ( + col1 ) * - 87 FROM tab2 AS cor0
----
-4483
-5904
-6763

query I rowsort
SELECT ALL 34 * col2 * - 99 - - col0 FROM tab1 AS cor0
----
-198509
-228797
-323085

query I rowsort
SELECT ALL - 25 + - col0 - + col2 AS col1 FROM tab0
----
-122
-221
-87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 16 + - 48 FROM tab2
----
-64
-64
-64

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + SUM( - col2 ) + - COUNT( col0 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + SUM ( - col2 ) + - COUNT ( col0 ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL - ( - col2 ) - - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7336
SELECT + COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL + + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 - + col1 * col2 * col2 FROM tab0 AS cor0
----
-178944
-2187
-9898

query I rowsort
SELECT DISTINCT 85 + + - col0 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-132566
-614040
-753486

query I rowsort
SELECT DISTINCT + AVG ( ALL - col2 ) AS col2 FROM tab0 WHERE NOT - col1 > + col0 AND NOT NULL > - 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT 74 DIV - + col2 AS col0 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT 74 / - + col2 AS col0 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT - SUM( DISTINCT - col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7342
SELECT DISTINCT - SUM ( DISTINCT - col1 ) col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT COUNT( * ) * 75 AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7343
SELECT COUNT ( * ) * 75 AS col1 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + - 55 + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-7344
SELECT + - 55 + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - 89 * - COUNT( ALL - - 98 ) AS col1 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7346
SELECT - 89 * - COUNT ( ALL - - 98 ) AS col1 FROM tab2 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7347
SELECT - - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + COUNT( * ) * 95 AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7348
SELECT + COUNT ( * ) * 95 AS col1 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - ( col0 ) * 36 * - col2, 11 + - 89, col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 < - col1
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7352
SELECT ALL - CAST( NULL AS DECIMAL ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - CAST ( NULL AS REAL ) + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT - COUNT( + CAST( - 5 AS SIGNED ) ) + + + 42 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7353
SELECT - COUNT ( + CAST ( - 5 AS INTEGER ) ) + + + 42 FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL <> - col1 )
----

query I rowsort
SELECT DISTINCT - 54 * + + 35 FROM tab0
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT 21 + COUNT( * ) * + + MAX( ALL - col0 ) * - + 19 AS col0 FROM tab2
----
2643

skipif mysql # not compatible
query I rowsort label-7356
SELECT 21 + COUNT ( * ) * + + MAX ( ALL - col0 ) * - + 19 AS col0 FROM tab2
----
2643

query I rowsort
SELECT ALL + 73 + col1 FROM tab0 WHERE NULL <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - + 88 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT 86 + - + COUNT( * ) DIV - - 15 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT 86 + - + COUNT ( * ) / - - 15 FROM tab0
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 52 NOT BETWEEN NULL AND - 40 / - 10 + + ( col2 ) * + ( col0 ) * + + col2 + - col2
----

query I rowsort
SELECT ( - - 81 ) AS col2 FROM tab1 AS cor0
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1 * + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT - ( - MAX( + - col1 ) ) + - - 49 AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - ( - MAX ( + - col1 ) ) + - - 49 AS col1 FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT - CAST( NULL AS SIGNED ) / + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT - CAST ( NULL AS INTEGER ) / + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL + COUNT( * ) + 4 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL + COUNT ( * ) + 4 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL - COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL - COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * 13 FROM tab0
----
1131
1261
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT DISTINCT - 3 DIV - COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - 3 / - COUNT ( * ) AS col2 FROM tab1
----
1

query I rowsort
SELECT - 58 * - 90 * 97 AS col2 FROM tab1
----
506340
506340
506340

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - 42 * - COUNT( * ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-7370
SELECT - 42 * - COUNT ( * ) FROM tab1
----
126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 24 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 2 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - - 65 FROM tab0 AS cor0 WHERE - 77 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 92 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col0, 39 * - col0 FROM tab1 AS cor0
----
-51
-1989
-85
-3315
-91
-3549

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 76 ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + + + 18 col0 FROM tab0
----
24
24
24

query I rowsort
SELECT + 58 + - - col1 AS col0 FROM tab0 AS cor0
----
139
59
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7380
SELECT + SUM( CAST( 79 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7380
SELECT + SUM ( CAST ( 79 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
237

query I rowsort
SELECT - col2 * 82 + + col1 FROM tab1 AS cor0
----
-4833
-5529
-7858

query I rowsort
SELECT - + 44 AS col2 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT DISTINCT COUNT( * ) + 29 + - + COUNT( - col0 ) * + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT COUNT ( * ) + 29 + - + COUNT ( - col0 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col0 * col1 AS col0, col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT 58 + - + SUM( - - col2 ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT 58 + - + SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT ALL + col2 * + 27 + 77 FROM tab0
----
1346
2750
347

query III rowsort
SELECT ALL * FROM tab0 WHERE - 93 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - col0 * - 20 AS col0 FROM tab0
----
-1827
-2037
-315

query III rowsort
SELECT * FROM tab2 WHERE 40 <= - col1 * + 85 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT - - SUM( DISTINCT - col2 ) FROM tab2 WHERE - 65 * + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT - - SUM ( DISTINCT - col2 ) FROM tab2 WHERE - 65 * + - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + SUM( ALL + - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + SUM ( ALL + - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 66 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 * + + 31 AS col0 FROM tab1
----
1677
2694
2889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT DISTINCT + ( - - CAST( 32 AS SIGNED ) ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT + ( - - CAST ( 32 AS INTEGER ) ) AS col1 FROM tab0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT MIN( DISTINCT + col1 ) * ( - SUM( + CAST( NULL AS SIGNED ) ) ) - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT MIN ( DISTINCT + col1 ) * ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + 70 + + + 43 FROM tab2
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT MIN( DISTINCT - - col2 ) + - - 81 * 97 FROM tab0 cor0 WHERE 22 IS NOT NULL
----
7867

skipif mysql # not compatible
query I rowsort label-7397
SELECT MIN ( DISTINCT - - col2 ) + - - 81 * 97 FROM tab0 cor0 WHERE 22 IS NOT NULL
----
7867

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col1 + - col2 AND + - 2 * + + col1 / ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT - 58 * COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT - 58 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query II rowsort
SELECT + 42 AS col2, col2 FROM tab2 AS cor0
----
42
23
42
40
42
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT DISTINCT - ( - + CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - ( - + CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + 64 * - 35 FROM tab0 AS cor0
----
-2240

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + - ( + col0 ), col2, + - 99 + 28, - 99, col1 + - col0 + + col2, - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7404
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, MIN( ALL + col2 ) + - 42 AS col1 FROM tab2 AS cor0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-7404
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, MIN ( ALL + col2 ) + - 42 AS col1 FROM tab2 AS cor0
----
NULL
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - col1 >= NULL
----

query II rowsort
SELECT col1 AS col0, - col0 AS col2 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT + col1 * - - 72 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
1008
-14
3384
-47
360
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - col2
----

query I rowsort
SELECT DISTINCT + 40 * + col2 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL - MAX( ALL - + 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - MAX ( ALL - + 77 ) FROM tab1
----
77

query I rowsort
SELECT + col2 * + 87 * ( col0 ) AS col0 FROM tab2
----
222720
378450
92046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7412
SELECT - CAST( + COUNT( DISTINCT 18 ) AS SIGNED ) AS col2, MIN( + + col2 ) col1 FROM tab2
----
-1
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7412
SELECT - CAST ( + COUNT ( DISTINCT 18 ) AS INTEGER ) AS col2, MIN ( + + col2 ) col1 FROM tab2
----
-1
23

query I rowsort
SELECT 53 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + 86 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 33 AND - + 51 + + - col1 * - col1
----
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7415
SELECT + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7416
SELECT col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - col1 * 0 AS col1, - col1 col2 FROM tab1
----
0
-14
0
-47
0
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 col0, 35 * - col0 FROM tab1
----
5
-1785
5
-2975
5
-3185

onlyif mysql # DIV for integer division: 
query II rowsort label-7419
SELECT DISTINCT - col0, col0 DIV col0 + + 49 AS col1 FROM tab0 AS cor0
----
-15
50
-87
50
-97
50

skipif mysql # not compatible
query II rowsort label-7419
SELECT DISTINCT - col0, col0 / col0 + + 49 AS col1 FROM tab0 AS cor0
----
-15
50
-87
50
-97
50

query I rowsort
SELECT DISTINCT + col1 + + 63 AS col2 FROM tab2 cor0 WHERE NOT 19 IS NULL
----
114
130
140

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 = + + 19 )
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 5 * - 78 * col1 + - col0 + - 0 * - + col0 col2 FROM tab0 AS cor0
----
-31605
-487
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab2 cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ( - col0 ) + 40 DIV + 88 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7425
SELECT ( - col0 ) + 40 / + 88 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col1 + 15 AS col0 FROM tab2
----
66
82
92

query I rowsort
SELECT 72 + 57 * + - col1 AS col2 FROM tab0
----
-1125
-4545
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) - - 72 col0 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7428
SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - - 72 col0 FROM tab2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7429
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) / + SUM( ALL + 66 ) AS col0, + COUNT( 22 ) col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7429
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + SUM ( ALL + 66 ) AS col0, + COUNT ( 22 ) col0 FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT + 91 + + col2 FROM tab0
----
101
138
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT - CAST( + ( + 21 ) AS SIGNED ) AS col1 FROM tab0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-7431
SELECT - CAST ( + ( + 21 ) AS INTEGER ) AS col1 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab1 AS cor0 WHERE col2 * - col0 NOT IN ( - + 29 * - + col1, - col1 - + - ( col1 ) )
----
-91

query I rowsort
SELECT ALL - col0 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / 36 + + 40 IN ( + col0, + 73, - col2 - - + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT MIN( col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7435
SELECT MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + col0 * - - 37 AS col0 FROM tab0 AS cor0
----
3219
3589
555

query I rowsort
SELECT - ( + - 85 ) FROM tab0 AS cor0
----
85
85
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7438
SELECT ALL + 32 DIV + col1 AS col1, col0 + - 64 AS col1 FROM tab1
----
0
27
2
-13
6
21

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL + 32 / + col1 AS col1, col0 + - 64 AS col1 FROM tab1
----
0
27
2
-13
6
21

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - - 13 * + 17 * + 27 IS NULL
----
-14
-47
-5

query I rowsort
SELECT col0 * - - col2 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT + 84 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 84 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 98 AS col1, - 15 FROM tab2
----
98
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * - 18 BETWEEN - col2 AND 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT DISTINCT + COUNT( * ) AS col1, 79 col1 FROM tab2
----
3
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7444
SELECT DISTINCT + COUNT ( * ) AS col1, 79 col1 FROM tab2
----
3
79

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 12 * col2 AS col1 FROM tab0 AS cor0
----
-1188
-120
-564

query II rowsort
SELECT ALL + 80 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
80
51
80
67
80
77

query I rowsort
SELECT ( + ( + - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col1 * - - col0 + - - 15 FROM tab1 AS cor0
----
4292
440
729

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 cor0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT ALL - - ( col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - - ( col1 ) / col2 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + col1 * + + 66 * + col2 * 63 AS col0 FROM tab0 AS cor0
----
15829506
411642
873180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7453
SELECT - col0 * CAST( NULL AS SIGNED ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT - col0 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - COUNT( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7454
SELECT - COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + col0 * - + col1 + + - col1 AS col0 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT + 7 AS col2 FROM tab0 cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT col1 + 51 FROM tab2
----
102
118
128

query I rowsort
SELECT DISTINCT col0 + - - 56 AS col2 FROM tab2
----
102
120
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL + MAX( ALL + 0 ) AS col1 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + MAX ( ALL + 0 ) AS col1 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 + + - col0 + - + col1 + 92 FROM tab1
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT DISTINCT COUNT( * ) + + - 67 col0 FROM tab0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7462
SELECT DISTINCT COUNT ( * ) + + - 67 col0 FROM tab0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT CAST( NULL AS SIGNED ) + - col2 * - col0 + ( 21 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT CAST ( NULL AS INTEGER ) + - col2 * - col0 + ( 21 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + - col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL + 50 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + 50 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-150

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - + col2 * 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT CAST( NULL AS SIGNED ) - - AVG ( - col0 + 54 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT CAST ( NULL AS INTEGER ) - - AVG ( - col0 + 54 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col2 * col0 col1 FROM tab1
----
4910
5020
6235

query III rowsort
SELECT * FROM tab1 WHERE NOT 17 >= col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + 95 NOT BETWEEN ( + 98 * - col1 ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - col0 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT MIN( + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7473
SELECT MIN ( + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT DISTINCT 75 DIV - col2 + col2 * - 96 AS col1 FROM tab2
----
-2211
-3841
-5569

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT 75 / - col2 + col2 * - 96 AS col1 FROM tab2
----
-2211
-3841
-5569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab2
----
86
86
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 31 - 0 AS col0 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
1457
155
434

query I rowsort
SELECT - ( + col0 ) * - col1 + 71 AS col0 FROM tab1
----
4348
496
785

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN - 54 AND ( ( col2 ) )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT DISTINCT CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 31 / - col0 + + col0 * 8 FROM tab1 WHERE NOT col2 / 39 NOT IN ( col2 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7484
SELECT * FROM tab2 WHERE NOT - ( ( col2 ) ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7484
SELECT * FROM tab2 WHERE NOT - ( ( col2 ) ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT MIN( - ( col0 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT MIN ( - ( col0 ) ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT MAX( + col0 ) FROM tab1 WHERE NOT ( col0 / col0 + + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT MAX ( + col0 ) FROM tab1 WHERE NOT ( col0 / col0 + + col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + ( - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL COUNT( ALL col0 ) col0 FROM tab0 WHERE - col2 - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT ALL COUNT ( ALL col0 ) col0 FROM tab0 WHERE - col2 - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 54 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT COUNT( * ) * + 97 col2 FROM tab2
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT COUNT ( * ) * + 97 col2 FROM tab2
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT + col2 + - col2 * 90 FROM tab2
----
-2047
-3560
-5162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 / + 83 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7494
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 71 * 19 + + ( + col0 + col0 ) ) AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7494
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 71 * 19 + + ( + col0 + col0 ) ) AND ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT 35 * MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
3465

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT 35 * MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) NOT BETWEEN ( 46 ) AND - ( + 6 )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7497
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) NOT BETWEEN ( 46 ) AND - ( + 6 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL - COUNT( * ) * 27 col2 FROM tab2 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7498
SELECT ALL - COUNT ( * ) * 27 col2 FROM tab2 cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 - col2 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( col1 ) + + col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT 9 * 17 FROM tab1 AS cor0 CROSS JOIN tab1
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 61 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + 24 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * - 23 AND + col1 * 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - COUNT( - col0 ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - COUNT ( - col0 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL - - COUNT( DISTINCT CAST( + 3 AS SIGNED ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - - COUNT ( DISTINCT CAST ( + 3 AS INTEGER ) ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE 38 / col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE 38 / col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( 6 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7508
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( 6 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 96 + + col2 NOT IN ( col1 )
----

query I rowsort
SELECT + ( - col0 ) * col0 + + col2 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT 23 + ( 3 - col2 ) FROM tab0 WHERE - col2 IS NOT NULL
----
-21
-73
16

query I rowsort
SELECT DISTINCT col1 + 96 AS col0 FROM tab0
----
117
177
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + MIN( + col2 ) * + 46 + 87 AS col0 FROM tab0
----
547

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + MIN ( + col2 ) * + 46 + 87 AS col0 FROM tab0
----
547

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7514
SELECT * FROM tab2 WHERE CAST( col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7514
SELECT * FROM tab2 WHERE CAST ( col2 AS INTEGER ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - - 55 + col1 col1 FROM tab1
----
55
60
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT ALL + ( + 77 ) DIV - col0 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-7516
SELECT ALL + ( + 77 ) / - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT DISTINCT - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( ( 22 ) ) - - 90 IS NULL
----

query I rowsort
SELECT - - 74 * 51 AS col1 FROM tab2 AS cor0
----
3774
3774
3774

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 >= ( NULL )
----

query I rowsort
SELECT - 38 * col1 FROM tab0
----
-3078
-38
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT - col0 * 12 - col0 AS col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IN ( CAST( NULL AS SIGNED ) * ( + 72 ) )
----

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - col0 * 12 - col0 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IN ( CAST ( NULL AS INTEGER ) * ( + 72 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT + MIN( + + col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT + MIN ( + + col2 ) AS col1 FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7525
SELECT * FROM tab1 cor0 WHERE NOT CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7525
SELECT * FROM tab1 cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT + COUNT( * ) * - ( 16 ) * CAST( ( - 55 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2640

skipif mysql # not compatible
query I rowsort label-7526
SELECT + COUNT ( * ) * - ( 16 ) * CAST ( ( - 55 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2640

query II rowsort
SELECT + - 37, col0 FROM tab0 AS cor0
----
-37
15
-37
87
-37
97

query I rowsort
SELECT DISTINCT + + 68 AS col2 FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT - + 87 AS col2 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT DISTINCT + + COUNT( * ) AS col0, - 45 AS col2 FROM tab1 AS cor0
----
3
-45

skipif mysql # not compatible
query II rowsort label-7531
SELECT DISTINCT + + COUNT ( * ) AS col0, - 45 AS col2 FROM tab1 AS cor0
----
3
-45

query I rowsort
SELECT + 23 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + col2 - + col2 >= ( 66 * + col1 )
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( col0 + col2 * + col0 ) <> ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( col0 + col2 * + col0 ) <> ( col2 )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 74 + + 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col1 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7535
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col1 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 31 + 7 + - ( - col1 ) * col0 FROM tab1
----
4315
463
752

query I rowsort
SELECT DISTINCT - - col2 + - col0 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 58 * col0 AS col1 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - - COUNT( * ) * SUM( DISTINCT - ( - col2 ) ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - - COUNT ( * ) * SUM ( DISTINCT - ( - col2 ) ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + - 13 * - + MAX( + col2 ) + - 20 AS col1 FROM tab1 AS cor0
----
1228

skipif mysql # not compatible
query I rowsort label-7540
SELECT + - 13 * - + MAX ( + col2 ) + - 20 AS col1 FROM tab1 AS cor0
----
1228

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 50 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT SUM( DISTINCT col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT - 43 + - col2 + 33 FROM tab1
----
-106
-69
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL 62 + 61 + + - col2 DIV + + 34 FROM tab0
----
121
122
123

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL 62 + 61 + + - col2 / + + 34 FROM tab0
----
121
122
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT ALL - col0 * - col2 + + col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
1109
NULL
2637
NULL
4417
NULL

skipif mysql # not compatible
query II rowsort label-7545
SELECT ALL - col0 * - col2 + + col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
1109
NULL
2637
NULL
4417
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * 56 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0, - 28 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-28

skipif mysql # not compatible
query II rowsort label-7547
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0, - 28 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT COUNT( * ) * - - ( MAX( ALL + col1 ) ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7548
SELECT COUNT ( * ) * - - ( MAX ( ALL + col1 ) ) FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - COUNT( - - col2 ) * - MAX( DISTINCT + col2 ) - + 17 AS col0 FROM tab2 cor0
----
157

skipif mysql # not compatible
query I rowsort label-7549
SELECT - COUNT ( - - col2 ) * - MAX ( DISTINCT + col2 ) - + 17 AS col0 FROM tab2 cor0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7550
SELECT DISTINCT - 11 + col2 * + CAST( NULL AS SIGNED ), col0 AS col1 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7550
SELECT DISTINCT - 11 + col2 * + CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT 62 + + - col0 AS col1 FROM tab2
----
-13
-2
16

query I rowsort
SELECT - col0 - col2 AS col1 FROM tab0 WHERE NULL >= - 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT ALL + col2 DIV + 88 AS col0 FROM tab1 WHERE 2 >= ( - + col1 ) + col1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + col2 / + 88 AS col0 FROM tab1 WHERE 2 >= ( - + col1 ) + col1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - COUNT( * ) + - + SUM( ALL + 22 ) AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-7554
SELECT - COUNT ( * ) + - + SUM ( ALL + 22 ) AS col1 FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col1 * + - col1 col0 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL + col1 + 95 * col2 AS col1 FROM tab1
----
5610
6507
9134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT - COUNT( * ) DIV 34 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT - COUNT ( * ) / 34 AS col2 FROM tab2
----
0

query I rowsort
SELECT col1 - - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 66 / + 76 NOT BETWEEN 51 AND col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 54 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT + col2 DIV + col2 col2 FROM tab0 AS cor0 WHERE NOT 79 IS NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7561
SELECT + col2 / + col2 col2 FROM tab0 AS cor0 WHERE NOT 79 IS NULL
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 91 BETWEEN + col1 * - 56 AND NULL
----

query II rowsort
SELECT - + 71, - 42 AS col0 FROM tab0 AS cor0
----
-71
-42
-71
-42
-71
-42

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL > col2 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - COUNT( * ) * + - 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-7565
SELECT - COUNT ( * ) * + - 97 FROM tab0
----
291

query I rowsort
SELECT ALL - ( 34 ) * - 44 FROM tab0
----
1496
1496
1496

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( ( + col0 ) ) IN ( - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 21 * + ( + col1 ) AS col0 FROM tab2
----
-1071
-1407
-1617

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT + 53 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7571
SELECT 58 DIV MIN( ALL + col0 ) AS col1, 82 col0 FROM tab2 AS cor0
----
1
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7571
SELECT 58 / MIN ( ALL + col0 ) AS col1, 82 col0 FROM tab2 AS cor0
----
1
82

query I rowsort
SELECT ALL - - col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT COUNT( DISTINCT + + ( + + col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT COUNT ( DISTINCT + + ( + + col2 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - ( - 21 ) AS col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL col0 + + col0 * + col1 * - 10 AS col0 FROM tab2
----
-23414
-49216
-50175

query I rowsort
SELECT + col0 + - 75 AS col0 FROM tab1
----
-24
10
16

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( - ( ( + col1 ) ) + - - col2 + + 75 * col0 * + col1 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT ALL - 11 DIV - col0 + + col0 col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7578
SELECT ALL - 11 / - col0 + + col0 col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 55 / + col1 = NULL
----

query I rowsort
SELECT + 55 * + 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bbd60e1344891bae0c73e2dfd39187d1

query I rowsort
SELECT - 59 - - col2 AS col0 FROM tab2
----
-1
-19
-36

query I rowsort
SELECT ALL ( ( 86 ) ) + col2 FROM tab0
----
133
185
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7583
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( + CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7583
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( + CAST ( + col2 AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 63 / + col2 * - - 8 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - 84 * COUNT( * ) col1 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7586
SELECT ALL - 84 * COUNT ( * ) col1 FROM tab1 AS cor0
----
-252

query I rowsort
SELECT - 22 * - 92 AS col0 FROM tab0 AS cor0
----
2024
2024
2024

query I rowsort
SELECT ALL + - col1 * - 19 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
1539
19
399

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7589
SELECT ALL CAST( NULL AS DECIMAL ) * col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7589
SELECT ALL CAST ( NULL AS REAL ) * col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL + col2 DIV - 9 AS col0 FROM tab0
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + col2 / - 9 AS col0 FROM tab0
----
-1
-11
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT MIN( col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7591
SELECT MIN ( col0 ) col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT - col0 FROM tab1 WHERE NOT NULL IN ( 4 + - + 45, 29 * - - col1 * col1 * CAST( + - 86 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7592
SELECT - col0 FROM tab1 WHERE NOT NULL IN ( 4 + - + 45, 29 * - - col1 * col1 * CAST ( + - 86 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT ALL - col0 DIV - - col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - col0 / - - col2 AS col1 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT - 42 AS col2, MAX( ALL col0 ) AS col0 FROM tab1
----
-42
91

skipif mysql # not compatible
query II rowsort label-7594
SELECT - 42 AS col2, MAX ( ALL col0 ) AS col0 FROM tab1
----
-42
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + SUM( + 36 ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-7595
SELECT + SUM ( + 36 ) FROM tab2
----
108

query III rowsort
SELECT * FROM tab2 WHERE NOT - 48 + + col1 * + col2 * + ( + 74 ) * + - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + ( + COUNT( * ) ) * - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + ( + COUNT ( * ) ) * - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-681

query II rowsort
SELECT DISTINCT + + col2 * + col2 - + - col0, + col2 * - ( - col2 ) + 92 AS col0 FROM tab1 AS cor0
----
3566
3573
4715
4716
9267
9308

query III rowsort
SELECT * FROM tab0 WHERE NOT 27 IS NOT NULL
----

query II rowsort
SELECT - 98 AS col0, 91 AS col2 FROM tab1
----
-98
91
-98
91
-98
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7601
SELECT ALL + + MIN( ALL + + ( - 8 ) ) DIV - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT ALL + + MIN ( ALL + + ( - 8 ) ) / - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL + MIN( + + 88 ) col0 FROM tab1
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7602
SELECT ALL + MIN ( + + 88 ) col0 FROM tab1
----
88

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 60 ) + + + 91 * col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - ( - ( - + COUNT( DISTINCT + ( + col2 ) ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7605
SELECT - ( - ( - + COUNT ( DISTINCT + ( + col2 ) ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 69 * - col1 * + ( + col0 ) col1 FROM tab2 AS cor0
----
-13601280
-20110050
-3723102

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < col2 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT + COUNT( - + 34 ) col0, 23 AS col1 FROM tab0 AS cor0
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7608
SELECT + COUNT ( - + 34 ) col0, 23 AS col1 FROM tab0 AS cor0
----
3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * - col1 * + col1 col0 FROM tab1 AS cor0
----
-1480
-150259
-18830

query II rowsort
SELECT - col2, + col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT 66 AS col1 FROM tab0 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT MIN( ALL - + 38 ) AS col0, - COUNT( * ) AS col1 FROM tab1
----
-38
-3

skipif mysql # not compatible
query II rowsort label-7612
SELECT MIN ( ALL - + 38 ) AS col0, - COUNT ( * ) AS col1 FROM tab1
----
-38
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + COUNT( * ) * 53 - - 11 FROM tab2 WHERE + 45 * + col2 * + col0 IS NOT NULL
----
170

skipif mysql # not compatible
query I rowsort label-7613
SELECT + COUNT ( * ) * 53 - - 11 FROM tab2 WHERE + 45 * + col2 * + col0 IS NOT NULL
----
170

query I rowsort
SELECT DISTINCT col2 + - 31 AS col2 FROM tab1
----
28
37
65

query I rowsort
SELECT - col1 + - + col1 + - ( - col0 ) FROM tab2
----
-56
-59
-90

query I rowsort
SELECT DISTINCT 51 + - 76 AS col0 FROM tab0
----
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * ( - ( - 34 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7618
SELECT * FROM tab0 WHERE ( 29 ) * + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7618
SELECT * FROM tab0 WHERE ( 29 ) * + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT - - AVG ( DISTINCT + col2 ) * + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT - - AVG ( DISTINCT + col2 ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 74 = NULL
----

query II rowsort
SELECT col0 AS col2, 26 FROM tab2
----
46
26
64
26
75
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT + col0 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + col0 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - 18 + - ( + + col0 ) * + col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT - col1 - - col1 - 5 * CAST( NULL AS SIGNED ) * - - col0 * - 79 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT - col1 - - col1 - 5 * CAST ( NULL AS INTEGER ) * - - col0 * - 79 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - - col1 * 97 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7628
SELECT ALL + col1 DIV col0 AS col1, col2 FROM tab2
----
0
58
1
23
1
40

skipif mysql # not compatible
query II rowsort label-7628
SELECT ALL + col1 / col0 AS col1, col2 FROM tab2
----
0
58
1
23
1
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + - ( - 22 ) NOT BETWEEN + - 56 AND - col2 * col1 * + col2
----

query I rowsort
SELECT + ( 12 ) AS col1 FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT - MAX( + + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - MAX ( + + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT + col1 * + + col1 * - + col2 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + COUNT( - 6 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + COUNT ( - 6 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + ( MAX( ALL ( + 20 ) ) ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7634
SELECT + ( MAX ( ALL ( + 20 ) ) ) AS col2 FROM tab2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7635
SELECT + + ( - col2 ) + - + 95 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * CAST( NULL AS DECIMAL ) * 23 BETWEEN + col1 * - col2 + + col2 AND col2
----

skipif mysql # not compatible
query I rowsort label-7635
SELECT + + ( - col2 ) + - + 95 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * CAST ( NULL AS REAL ) * 23 BETWEEN + col1 * - col2 + + col2 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - - ( col0 ) * 25 * col0 * col2 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT 6 * + ( + col2 ) + col0 AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( - 99 * + CAST( NULL AS SIGNED ) + + col2 - - + col0 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7637
SELECT 6 * + ( + col2 ) + col0 AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( - 99 * + CAST ( NULL AS INTEGER ) + + col2 - - + col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + COUNT( + 55 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7638
SELECT + COUNT ( + 55 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 * + - 9 * + + col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT DISTINCT + col1 * + - CAST( - 66 AS SIGNED ) AS col2 FROM tab2
----
3366
4422
5082

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + col1 * + - CAST ( - 66 AS INTEGER ) AS col2 FROM tab2
----
3366
4422
5082

query I rowsort
SELECT ( + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT + col0 FROM tab1 AS cor0 WHERE NULL = col1 + - + CAST( + - ( 77 ) AS SIGNED ) * - 22 / - col1 * col1
----

skipif mysql # not compatible
query I rowsort label-7643
SELECT + col0 FROM tab1 AS cor0 WHERE NULL = col1 + - + CAST ( + - ( 77 ) AS INTEGER ) * - 22 / - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT ALL col1 + + col2 * - - col1 - col1 * + - 76 - - + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
5151
9086
9112

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL col1 + + col2 * - - col1 - col1 * + - 76 - - + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
5151
9086
9112

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 34 + + col2 AND col1 + 70
----

query I rowsort
SELECT + + 98 + - col1 FROM tab1 AS cor0
----
51
84
93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7647
SELECT ALL - + col0 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0 WHERE + 93 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - + col0 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0 WHERE + 93 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * - 46 + + col2 col0 FROM tab1
----
225312
230749
284716

query I rowsort
SELECT ( - col1 ) + - col1 AS col2 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab0 WHERE 34 >= 86
----

query I rowsort
SELECT ALL 48 + 85 * + + col2 FROM tab2
----
2003
3448
4978

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 11 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col0 - + 27 FROM tab1
----
-112
-118
-78

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NOT + 55 IS NULL )
----

query I rowsort
SELECT ALL - - 77 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
77
77
77

query I rowsort
SELECT col0 - - ( - col2 ) AS col2 FROM tab0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 79
----

skipif mysql # not compatible
query I rowsort label-7658
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 79
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 56 * + col0, col0, ( 44 ), + 7 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + + 33 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - MIN( 2 ) * - 8 * + + COUNT( + - col0 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - MIN ( 2 ) * - 8 * + + COUNT ( + - col0 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT - + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL + + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col1 / + - col0 * - col1
----

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + + col1 col0 FROM tab1
----
-100
-280
-940

query III rowsort
SELECT + 87 * col1 * col1 AS col0, 24, col1 FROM tab2
----
9 values hashing to 527a964bd25b501119b5ca695fedc1ae

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + ( + col1 ) col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - col2 + - - 75 FROM tab2
----
17
35
52

query I rowsort
SELECT + + 4 * 37 + - col0 AS col1 FROM tab2 cor0
----
102
73
84

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT + col0 IS NULL )
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT - col0 + + col0 DIV - 11 AS col2 FROM tab0
----
-105
-16
-94

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - col0 + + col0 / - 11 AS col2 FROM tab0
----
-105
-16
-94

query I rowsort
SELECT 47 + - 16 + - - col2 + ( - col1 ) * - col1 * - col0 * - + ( + col1 ) * 31 AS col0 FROM tab1
----
292884782
329465
4338391

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + + COUNT( * ) - - 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + + COUNT ( * ) - - 72 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + 39 + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 39 + COUNT ( * ) FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 + - - col2 + + - col1 * - col2 col1 FROM tab1 AS cor0
----
1465
3289
379

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + col2 ) * - col0 <> - + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT ALL COUNT( * ) AS col1, + 58 * + 31 + - 55 AS col2 FROM tab1 AS cor0
----
3
1743

skipif mysql # not compatible
query II rowsort label-7680
SELECT ALL COUNT ( * ) AS col1, + 58 * + 31 + - 55 AS col2 FROM tab1 AS cor0
----
3
1743

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE - 40 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 5 BETWEEN - + col0 AND 70 * col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT + MIN( ALL + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 27 + - 51 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - 52 FROM tab1 AS cor0 WHERE NOT col1 * + 87 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + - col0 * + col2 * 86 AND + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 45 NOT BETWEEN NULL AND - ( + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT COUNT( * ) * - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT COUNT ( * ) * - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + ( - - col2 ) * + col0 * col2 FROM tab1
----
295885
420784
470016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 69 * + - 3 AS col2 FROM tab0
----
-207
-207
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7692
SELECT DISTINCT - col0 * + - col0 + - col1 * - 36 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - col0 * + - col0 + - col1 * - 36 / + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT + CAST( - 57 AS SIGNED ) + 80 - + col1 AS col1 FROM tab1 AS cor0
----
-24
18
9

skipif mysql # not compatible
query I rowsort label-7694
SELECT + CAST ( - 57 AS INTEGER ) + 80 - + col1 AS col1 FROM tab1 AS cor0
----
-24
18
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT + ( - CAST( 93 AS SIGNED ) ) * COUNT( ALL - - col2 ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + ( - CAST ( 93 AS INTEGER ) ) * COUNT ( ALL - - col2 ) FROM tab0
----
-279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT ( + SUM( + ( col2 ) ) ) DIV - 65 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT ( + SUM ( + ( col2 ) ) ) / - 65 AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
138
65
90

query I rowsort
SELECT + 2 * + 52 * + col1 FROM tab1
----
1456
4888
520

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT 71 DIV col2 DIV 88 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT 71 / col2 / 88 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - - 98 AS col0 FROM tab1
----
103
112
145

query II rowsort
SELECT DISTINCT 8 + - col1, col2 FROM tab1
----
-39
68
-6
96
3
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) - + - COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7704
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + COUNT( * ) - ( 79 ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) - ( 79 ) FROM tab0 AS cor0
----
-85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 49 + - + ( 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + + SUM( ALL 52 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7706
SELECT + + SUM ( ALL 52 ) FROM tab1 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 3 * - col1 * - + ( col1 ) AND NULL
----

query II rowsort
SELECT - - col2, - col2 + - 81 AS col1 FROM tab2 AS cor0
----
23
-104
40
-121
58
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7709
SELECT MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( col2 )
----

query I rowsort
SELECT col2 * col1 * - 84 AS col1 FROM tab2
----
-258720
-326424
-98532

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT COUNT( * ) AS col2, - MAX( - 71 ) FROM tab0
----
3
71

skipif mysql # not compatible
query II rowsort label-7712
SELECT COUNT ( * ) AS col2, - MAX ( - 71 ) FROM tab0
----
3
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT ALL 99 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 99 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT + - SUM( + col1 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7714
SELECT DISTINCT + - SUM ( + col1 ) col2 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + 48 = - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT DISTINCT + 33 + + col1 DIV - ( - col0 ) FROM tab2
----
33
34

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + 33 + + col1 / - ( - col0 ) FROM tab2
----
33
34

query I rowsort
SELECT - col0 * + + col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-383670
-4625505
-9603

query I rowsort
SELECT ALL - + col0 * + - col0 - + col1 AS col0 FROM tab1 AS cor0
----
2587
7220
8234

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7720
SELECT - col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - - col2 BETWEEN NULL AND + - col0 / + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7722
SELECT COUNT( * ) - + + MAX( DISTINCT - col1 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT COUNT ( * ) - + + MAX ( DISTINCT - col1 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 73 col0 FROM tab1 WHERE - col0 + - ( - col2 ) NOT IN ( + 8, - 78 + - col2 + col1 )
----
-4307
-4964
-7008

query I rowsort
SELECT DISTINCT col1 * + 57 AS col0 FROM tab1
----
2679
285
798

query II rowsort
SELECT + col2 * col1 + + - col1 * col2 AS col0, + 93 AS col1 FROM tab0 WHERE NULL IS NULL
----
0
93
0
93
0
93

query I rowsort
SELECT 22 + - - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 + + col1 + + + ( + + col0 ), col1 AS col1 FROM tab2
----
120
51
181
77
200
67

query I rowsort
SELECT + col2 + + 14 FROM tab1
----
110
73
82

query I rowsort
SELECT + ( 90 ) + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 66 * 41 FROM tab1 AS cor0
----
2706
2706
2706

query I rowsort
SELECT + AVG ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT - 6 + + 99 + + 57 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
150
150
150

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7734
SELECT ALL + ( - - 59 ), col0 col2 FROM tab2 AS cor0 WHERE col1 >= + col2 + - col2 * CAST( NULL AS SIGNED ) - + - 88 * + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7734
SELECT ALL + ( - - 59 ), col0 col2 FROM tab2 AS cor0 WHERE col1 >= + col2 + - col2 * CAST ( NULL AS INTEGER ) - + - 88 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - COUNT( * ) + - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7735
SELECT - COUNT ( * ) + - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND + - col0 * + 18
----
3

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND + - col0 * + 18
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 27 * COUNT( - col0 ) + - COUNT( * ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 27 * COUNT ( - col0 ) + - COUNT ( * ) FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT ALL 31 * + + ( - col0 ) + + col1 + - 6 DIV - col2 FROM tab1
----
-1567
-2630
-2774

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL 31 * + + ( - col0 ) + + col1 + - 6 / - col2 FROM tab1
----
-1567
-2630
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT 33 * + col1 + col0 DIV - col0 FROM tab0
----
2672
32
692

skipif mysql # not compatible
query I rowsort label-7740
SELECT 33 * + col1 + col0 / - col0 FROM tab0
----
2672
32
692

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + 85 * + COUNT( * ) + + COUNT( DISTINCT + 91 ) FROM tab2
----
256

skipif mysql # not compatible
query I rowsort label-7741
SELECT + 85 * + COUNT ( * ) + + COUNT ( DISTINCT + 91 ) FROM tab2
----
256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 col0, - ( - 70 ) * + 48 FROM tab2 AS cor0
----
-98
3360
-98
3360
-98
3360

query I rowsort
SELECT ALL + 78 FROM tab1 cor0
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 95 * - 43
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL 38 + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 38 + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT - - 36 * 55 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1983

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - - 36 * 55 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1983

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + + 83 - - + 85 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + - COUNT( - - 42 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7752
SELECT DISTINCT + - COUNT ( - - 42 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - + 92 AS col2 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT + MIN( DISTINCT - + 26 ) AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-7754
SELECT + MIN ( DISTINCT - + 26 ) AS col0 FROM tab1
----
-26

query III rowsort
SELECT * FROM tab2 WHERE - + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + COUNT( * ) * + 32 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7756
SELECT + COUNT ( * ) * + 32 FROM tab0
----
96

query I rowsort
SELECT ALL ( col0 ) * - 89 AS col1 FROM tab0 AS cor0
----
-1335
-7743
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - COUNT( * ) * 13 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( * ) * 13 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT SUM( - - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT SUM ( - - col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 55 * - - col0 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL - MAX( 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - MAX ( 36 ) FROM tab1
----
-36

query I rowsort
SELECT col0 * + col2 - + col1 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT ALL - + 92 * + 94 AS col2 FROM tab1 AS cor0
----
-8648
-8648
-8648

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT + col1 DIV + + col0 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7764
SELECT + col1 / + + col0 AS col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7765
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT CAST ( NULL AS REAL ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL > - col1 + + + col0 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 87 / 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ( 88 ) AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT 84 + + + 70 AS col0 FROM tab2 AS cor0
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT ( + MAX( + + col0 ) ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7771
SELECT ( + MAX ( + + col0 ) ) / + - COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7772
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL + - col0 DIV - 15 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + - col0 / - 15 FROM tab2 AS cor0
----
3
4
5

query II rowsort
SELECT - col1, ( - + col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL 66 * + - col2 FROM tab1
----
-3894
-4488
-6336

query II rowsort
SELECT ALL + col0 + + 58 AS col0, 3 FROM tab0
----
145
3
155
3
73
3

query I rowsort
SELECT ALL - 28 + - col0 + col1 * + 0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 34 + - - col1 AS col1 FROM tab2
----
101
111
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 29 * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 29 * + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 11 <= NULL
----

query I rowsort
SELECT + ( - + col0 ) + + - 43 AS col2 FROM tab0 AS cor0
----
-130
-140
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 51
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col2 / - 29 * col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 8 * - - 7 BETWEEN NULL AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT 64 + - 61 + - SUM( col0 ) + + 83 FROM tab0 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-7785
SELECT 64 + - 61 + - SUM ( col0 ) + + 83 FROM tab0 AS cor0
----
-113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + - ( - 56 ) col0 FROM tab0 AS cor0
----
127
127
127

query II rowsort
SELECT col0 + 86 AS col0, col2 * col0 AS col1 FROM tab1 AS cor0
----
137
4896
171
5015
177
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 62 = - col2 * + 41 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT - - COUNT( * ) * - 84 - + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - - COUNT ( * ) * - 84 - + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 - - - ( 44 ) col1, col0 FROM tab0 AS cor0
----
47
15
47
87
47
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 44 + - 52 BETWEEN - col2 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - + 98 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-121
-138
-156

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 * - col0 AS col1 FROM tab2
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT DISTINCT - + 14 FROM tab1 WHERE - CAST( 42 AS SIGNED ) IS NOT NULL
----
-14

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT - + 14 FROM tab1 WHERE - CAST ( 42 AS INTEGER ) IS NOT NULL
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL - 18 * COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - 18 * COUNT ( * ) FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT MIN( DISTINCT - - 23 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7796
SELECT MIN ( DISTINCT - - 23 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * 71 AND - 86
----

query I rowsort
SELECT ALL - + col0 * - 49 + 69 * + col0 FROM tab1 AS cor0
----
10030
10738
6018

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 78 * - col1 * - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT DISTINCT + 17 * - col0 DIV - col0 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + 17 * - col0 / - col0 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + ( + col0 ) * - - 59 * - ( 54 ) * 91 FROM tab1 AS cor0
----
-14786226
-24643710
-26383266

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 + - - col2 AS col0 FROM tab0 cor0
----
110
2256
9900

query I rowsort
SELECT ( - 51 ) + - col0 * col1 AS col2 FROM tab0
----
-1266
-148
-1878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE 68 * 24 > + col2 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE 68 * 24 > + col2 * - col1
----
NULL

query I rowsort
SELECT - 50 + + 41 AS col1 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT ALL col0 + - - col1 AS col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + COUNT( * ) + - 43 + - 45 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + COUNT ( * ) + - 43 + - 45 FROM tab1
----
-85

query I rowsort
SELECT + col2 + + + col1 - 57 + col0 * col2 AS col0 FROM tab0
----
776
844
9646

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 NOT BETWEEN NULL AND ( - - col1 )
----

query I rowsort
SELECT + + 99 AS col1 FROM tab2 WHERE 25 <> - col0
----
99
99
99

query I rowsort
SELECT + ( col2 ) * - col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT DISTINCT - col2 DIV col0 * + - 2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT - col2 / col0 * + - 2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT COUNT( DISTINCT + - 33 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( DISTINCT + - 33 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL - - MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - - MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - ( - 87 ) * - 48 * - - 26 FROM tab1 AS cor0
----
-108576
-108576
-108576

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - COUNT( * ) - + - 12 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7818
SELECT - COUNT ( * ) - + - 12 AS col1 FROM tab0
----
9

query I rowsort
SELECT - col1 * + 95 + 90 FROM tab1
----
-1240
-385
-4375

query I rowsort
SELECT 11 / + + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( col1 ) - - 62 AS col0 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT ALL col2 - + col0 * - + col2 * 94 FROM tab2 AS cor0 WHERE 3 * ( - col0 ) - - + col1 = - 74
----

query I rowsort
SELECT ALL ( - 88 ) FROM tab1 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7824
SELECT ALL + ( COUNT( * ) ), 16 AS col0 FROM tab1 AS cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-7824
SELECT ALL + ( COUNT ( * ) ), 16 AS col0 FROM tab1 AS cor0
----
3
16

query I rowsort
SELECT ALL - col0 * 78 AS col1 FROM tab0 AS cor0
----
-1170
-6786
-7566

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - + col2 IS NOT NULL
----

query II rowsort
SELECT - ( col0 ) AS col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 23 NOT IN ( col1 + 66, - 96 / - col2 )
----

query I rowsort
SELECT 60 * col2 * + 22 FROM tab0
----
130680
13200
62040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT ALL COUNT( * ) DIV + 55 * - 6 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT ALL COUNT ( * ) / + 55 * - 6 col0 FROM tab2
----
0

query II rowsort
SELECT ALL - col2 AS col1, col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + - MIN( - ( 2 ) ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7833
SELECT + - MIN ( - ( 2 ) ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7834
SELECT DISTINCT + ( COUNT( * ) ) * COUNT( * ) DIV - 45 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + ( COUNT ( * ) ) * COUNT ( * ) / - 45 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - col1, col0 * + col0 + 28 - col2 AS col0 FROM tab0 AS cor0
----
1
9338
21
7587
81
206

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
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-7837
SELECT ALL + - SUM ( + col1 ) col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + - 41 * SUM( 26 ) - + COUNT( * ) FROM tab2 AS cor0
----
-3201

skipif mysql # not compatible
query I rowsort label-7838
SELECT + - 41 * SUM ( 26 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-3201

query II rowsort
SELECT + - 25 AS col1, + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-25
-51
-25
-85
-25
-91

query II rowsort
SELECT col2 AS col1, - 66 + + ( col2 ) * 3 AS col0 FROM tab2 AS cor0
----
23
3
40
54
58
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 42 col2 FROM tab2 AS cor0
----
-100
-65
-82

query I rowsort
SELECT DISTINCT + col2 + + - 44 AS col2 FROM tab1 AS cor0
----
15
24
52

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 43 / - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + SUM( DISTINCT + - 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7844
SELECT + SUM ( DISTINCT + - 30 ) FROM tab2 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7, + 47 - - + col2 col0 FROM tab1 cor0
----
7
106
7
115
7
143

query I rowsort
SELECT ALL + 51 + + 90 + - + col0 AS col0 FROM tab0
----
126
44
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7847
SELECT ALL + ( col0 ) DIV col2 DIV - col2 * + col0 + - col0 col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7847
SELECT ALL + ( col0 ) / col2 / - col2 * + col0 + - col0 col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + 5 + - col2 FROM tab0 AS cor0
----
-42
-5
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - 88 + 76 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + + COUNT( * ) * - - AVG ( DISTINCT + 93 ) FROM tab1 AS cor0 WHERE 36 + 84 * 6 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT + + COUNT ( * ) * - - AVG ( DISTINCT + 93 ) FROM tab1 AS cor0 WHERE 36 + 84 * 6 IS NULL
----
NULL

query I rowsort
SELECT - col1 * + 70 + - col2 AS col0 FROM tab1 AS cor0
----
-1076
-3358
-409

query I rowsort
SELECT + - col1 + - + col2 - 47 + - 2 * 90 FROM tab2 AS cor0
----
-301
-344
-352

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * + + 23 <= NULL
----

query I rowsort
SELECT + 61 + + 91 AS col2 FROM tab1 cor0
----
152
152
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * 48 AS col2, - col0 col0 FROM tab0 AS cor0
----
-4176
-87
-4656
-97
-720
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - ( COUNT( * ) ) * - 61 col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT - ( COUNT ( * ) ) * - 61 col2 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + 78 * SUM( 96 ) FROM tab0 AS cor0
----
22464

skipif mysql # not compatible
query I rowsort label-7857
SELECT + 78 * SUM ( 96 ) FROM tab0 AS cor0
----
22464

query I rowsort
SELECT ALL 33 + + + col0 FROM tab2
----
108
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7859
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 + - + col1 AS col1 FROM tab0 cor0 WHERE + col0 + - + col1 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - MAX( + + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7861
SELECT - MAX ( + + col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT + + col0 AS col0, + col1 * - 46 AS col1 FROM tab0 AS cor0
----
15
-3726
87
-966
97
-46

query II rowsort
SELECT ALL + - col1, - 13 AS col0 FROM tab0 AS cor0
----
-1
-13
-21
-13
-81
-13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 * - + col0 col1 FROM tab0 AS cor0
----
-5307
-5917
-915

query II rowsort
SELECT + col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + + ( - col2 ) * - col1 + + col2 + + col2 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 18 NOT BETWEEN - 66 + + 29 / - col1 AND 89
----
209
296
3820

query I rowsort
SELECT ALL + ( 24 ) AS col2 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT COUNT( * ) FROM tab1 WHERE NOT - + 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT COUNT ( * ) FROM tab1 WHERE NOT - + 18 IS NOT NULL
----
0

query I rowsort
SELECT col0 * - - 93 FROM tab0
----
1395
8091
9021

query I rowsort
SELECT + + ( - 18 ) FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT col0 * 34 FROM tab1 AS cor0
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + - ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7873
SELECT ALL + - ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 73 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query I rowsort
SELECT ( - 58 ) * + - 97 + + 8 - + - col0 FROM tab1
----
5685
5719
5725

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT - COUNT( * ) * - 19 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT - COUNT ( * ) * - 19 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7880
SELECT DISTINCT COUNT( * ), ( + COUNT( * ) ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) ) * 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL 37 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
1887
2479
2849

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 37 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
1887
2479
2849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 59 + + + 10 col1 FROM tab1
----
3491
4022
5674

query II rowsort
SELECT 22 AS col2, + 63 FROM tab1
----
22
63
22
63
22
63

query I rowsort
SELECT + + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query II rowsort
SELECT - + col2 AS col0, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + - ( - - CAST( 9 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + - ( - - CAST ( 9 AS INTEGER ) ) IS NULL )
----

query I rowsort
SELECT - + col0 - - - col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + 42 - - col2 AS col2 FROM tab2 AS cor0
----
100
65
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, col0 col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT col1 * col2, col2 - + + col0 AS col1 FROM tab0
----
210
-77
3807
32
99
2

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ALL - COUNT( - - ( - - col1 ) ) AS col2, ( + + COUNT( * ) ) * MAX( + col1 ) col2 FROM tab1
----
-3
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7894
SELECT ALL - COUNT ( - - ( - - col1 ) ) AS col2, ( + + COUNT ( * ) ) * MAX ( + col1 ) col2 FROM tab1
----
-3
141

query I rowsort
SELECT DISTINCT + - 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = - + col1 / + col1 * col1 + + - col0 - - - col1 * + 91
----

query I rowsort
SELECT ALL - + col2 * - + col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT ALL + - 90 * - 5 + + - CAST( NULL AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + - 90 * - 5 + + - CAST ( NULL AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 col0, + col1 FROM tab0
----
52
1
52
21
52
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + 89 * - - COUNT( * ) AS col1 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + 89 * - - COUNT ( * ) AS col1 FROM tab0
----
267

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT ALL - 1 * MIN( ALL - col2 ) DIV MAX( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - 1 * MIN ( ALL - col2 ) / MAX ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + ( - ( - + col2 ) ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / - 41 NOT BETWEEN 8 AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7906
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - 92 * ( - SUM( + 44 ) ) FROM tab1
----
12144

skipif mysql # not compatible
query I rowsort label-7907
SELECT - 92 * ( - SUM ( + 44 ) ) FROM tab1
----
12144

query I rowsort
SELECT 24 - col0 AS col0 FROM tab2
----
-22
-40
-51

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col2 / col1 AS col0 FROM tab2 WHERE ( col2 + - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 48 IS NULL
----

query I rowsort
SELECT col1 - 48 FROM tab0
----
-27
-47
33

query I rowsort
SELECT + 81 * - 13 AS col1 FROM tab1
----
-1053
-1053
-1053

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NULL = ( 87 )
----

query I rowsort
SELECT DISTINCT col0 - + 8 * col2 FROM tab0
----
-361
-695
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 11 ) * 25 AS col1 FROM tab1
----
-275
-275
-275

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN + col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 64 * + 94 - col2 FROM tab0
----
5917
5969
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7920
SELECT CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - MAX( col2 ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7921
SELECT - MAX ( col2 ) col1 FROM tab1
----
-96

query I rowsort
SELECT + 3 FROM tab1 WHERE NOT - col0 * - col1 IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - MAX( DISTINCT 19 ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - MAX ( DISTINCT 19 ) AS col0 FROM tab1
----
-19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 0 FROM tab0 WHERE NOT 41 BETWEEN col1 + + col2 * + 33 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT COUNT( * ) * 6 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( * ) * 6 FROM tab1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7928
SELECT SUM( + col2 ) DIV - 7 AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-7928
SELECT SUM ( + col2 ) / - 7 AS col1 FROM tab1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT + 88 DIV + 36 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7929
SELECT + 88 / + 36 AS col0 FROM tab2
----
2
2
2

query I rowsort
SELECT + col0 * - ( - 94 * 63 ) FROM tab0
----
515214
574434
88830

query I rowsort
SELECT - 44 * - col1 FROM tab0
----
3564
44
924

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 NOT BETWEEN col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - MAX( - col1 ) * - MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
2601

skipif mysql # not compatible
query I rowsort label-7933
SELECT - MAX ( - col1 ) * - MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
2601

query I rowsort
SELECT DISTINCT - col2 * + 51 AS col0 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + SUM( ALL - 86 ) + 12 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + SUM ( ALL - 86 ) + 12 FROM tab0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT ALL 22 + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL 22 + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + col2 * + col0 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT COUNT( * ) * 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-7938
SELECT COUNT ( * ) * 85 FROM tab1
----
255

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 51 ) < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7940
SELECT CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 3 < ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 46 ) BETWEEN NULL AND + 84 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 81 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + 41 FROM tab2 AS cor0 WHERE NOT 98 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) <= ( + 60 )
----
51
14
96

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT 98 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 / + 99 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL < 10 - + 7
----

query I rowsort
SELECT DISTINCT + col1 * + - 61 * - 34 FROM tab0
----
167994
2074
43554

query I rowsort
SELECT ALL col1 - + col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT 3 + 17 - - COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7959
SELECT 3 + 17 - - COUNT ( * ) FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * + col1 col0 FROM tab2
----
1887
2479
2849

query I rowsort
SELECT col1 * + col0 + 22 FROM tab0
----
119
1237
1849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT 95 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT ALL ( - - 75 ) * + 9 AS col1 FROM tab2 AS cor0
----
675
675
675

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 * - 16 * + col1 FROM tab1 AS cor0
----
-21504
-4720
-51136

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT col2 - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL - col1 DIV - - 55 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - col1 / - - 55 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT 31 / CAST( NULL AS SIGNED ) + 21 AS col0 FROM tab2 WHERE + col0 / - 2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7969
SELECT 31 / CAST ( NULL AS INTEGER ) + 21 AS col0 FROM tab2 WHERE + col0 / - 2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE ( - + 54 ) > + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7971
SELECT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
-9

query I rowsort
SELECT + - 4 - - 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col2 + - 95 FROM tab0
----
-105
-142
-194

query I rowsort
SELECT - - 89 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col2 + + col1 + - 71 col1 FROM tab0
----
-22
-72
27

query I rowsort
SELECT 52 + 91 * col1 * - col0 FROM tab0 AS cor0
----
-110513
-166205
-8775

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( 37 ) - - ( + 11 + + col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - - - 98 AS col1 FROM tab1 cor0
----
-2
-30
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE 69 IN ( - 24 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7979
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE 69 IN ( - 24 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT DISTINCT CAST( 95 AS SIGNED ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT CAST ( 95 AS INTEGER ) FROM tab0 AS cor0
----
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL + COUNT( * ) + - 50 AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + COUNT ( * ) + - 50 AS col2 FROM tab1
----
-47

query I rowsort
SELECT + 64 * col0 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT DISTINCT + col1 + - 4 FROM tab2
----
47
63
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - MIN( ALL col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7985
SELECT - MIN ( ALL col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + ( col0 ) + - + 57 AS col2 FROM tab0
----
-42
30
40

query III rowsort
SELECT * FROM tab2 WHERE - + 21 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 8 BETWEEN + - col0 - col0 / + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL + 35 + SUM( ALL - - 78 ) * + + 79 FROM tab2
----
18521

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + 35 + SUM ( ALL - - 78 ) * + + 79 FROM tab2
----
18521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT CAST( + 50 AS SIGNED ) FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7990
SELECT CAST ( + 50 AS INTEGER ) FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT + COUNT( * ) + - + 94 AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + COUNT ( * ) + - + 94 AS col2 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 WHERE NOT + 29 BETWEEN - + 44 AND 87 + ( 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7993
SELECT * FROM tab2 AS cor0 WHERE NOT + 77 BETWEEN + CAST( col0 AS SIGNED ) - - col2 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7993
SELECT * FROM tab2 AS cor0 WHERE NOT + 77 BETWEEN + CAST ( col0 AS INTEGER ) - - col2 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab2 WHERE NOT ( - 0 ) >= NULL
----

query I rowsort
SELECT + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( 44 )
----

query I rowsort
SELECT DISTINCT - - 59 FROM tab0 WHERE NOT 99 >= + + col2
----

query I rowsort
SELECT DISTINCT + + col0 * - 83 FROM tab1 cor0
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 81 IN ( - col0 * - 32 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 19, 84 AS col2 FROM tab1 AS cor0
----
19
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT ( + - 94 ) - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-145
-179
-185

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT ( + - 94 ) - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-145
-179
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT MAX( + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT MAX ( + + col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT ALL col1 AS col0, + col0 + - + 62 * - col0 AS col2 FROM tab0
----
1
6111
21
5481
81
945

query I rowsort
SELECT ALL + ( - 8 ) FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT col1 + 99 FROM tab0
----
100
120
180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + + 26 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL CAST( NULL AS SIGNED ) + + + ( - - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL CAST ( NULL AS INTEGER ) + + + ( - - col1 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 51 + - 21 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) = ( - col2 + - + col1 * - col0 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8013
SELECT DISTINCT - CAST( - 66 AS DECIMAL ) * col0 FROM tab0 WHERE NOT - col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT - CAST ( - 66 AS REAL ) * col0 FROM tab0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + + + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT DISTINCT col2 + + col1 DIV - col1 FROM tab2 WHERE NOT ( - col2 + + + col0 ) IS NULL
----
22
39
57

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT col2 + + col1 / - col1 FROM tab2 WHERE NOT ( - col2 + + + col0 ) IS NULL
----
22
39
57

query I rowsort
SELECT DISTINCT + + 77 * + col0 FROM tab2 AS cor0
----
3542
4928
5775

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT - CAST( NULL AS SIGNED ) + 41 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT - CAST ( NULL AS INTEGER ) + 41 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT + 45 * + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 45 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT - ( 45 ) + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - ( 45 ) + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2
----
-54

query I rowsort
SELECT DISTINCT - ( + 82 ) - + - col1 * + 80 FROM tab1
----
1038
318
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - + 6 * - 48 + ( + SUM( DISTINCT + col2 ) ) FROM tab2 cor0
----
409

skipif mysql # not compatible
query I rowsort label-8022
SELECT - + 6 * - 48 + ( + SUM ( DISTINCT + col2 ) ) FROM tab2 cor0
----
409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + - col1 / - col2 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT MIN( + 41 ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8024
SELECT MIN ( + 41 ) AS col1 FROM tab2 AS cor0
----
41

query I rowsort
SELECT + + ( - col1 ) * 88 FROM tab2 AS cor0
----
-4488
-5896
-6776

query I rowsort
SELECT DISTINCT + + 36 AS col0 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT + COUNT( * ) - 5 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + COUNT ( * ) - 5 FROM tab2 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT - col1 * col2 DIV + - col0 - - + col0 + + col2 FROM tab2 cor0
----
152
184
94

skipif mysql # not compatible
query I rowsort label-8028
SELECT - col1 * col2 / + - col0 - - + col0 + + col2 FROM tab2 cor0
----
152
184
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT + col1 DIV 10 DIV - col1 + 77 + + col2 FROM tab2 AS cor0
----
100
117
135

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + col1 / 10 / - col1 + 77 + + col2 FROM tab2 AS cor0
----
100
117
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT col0 * - + ( CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) ) + + + col0 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT col0 * - + ( CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) ) + + + col0 * - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( - col1 ) = ( - col1 + col2 - ( + 97 ) + - - col2 / col2 * - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( - col1 ) = ( - col1 + col2 - ( + 97 ) + - - col2 / col2 * - col0 )
----
-3

query I rowsort
SELECT col1 + + 14 AS col1 FROM tab0
----
15
35
95

query II rowsort
SELECT DISTINCT + 30, - col0 AS col2 FROM tab1
----
30
-51
30
-85
30
-91

query I rowsort
SELECT 15 FROM tab1 WHERE NOT + col2 + col1 * - + 89 / - - 69 NOT IN ( + col2 )
----

query II rowsort
SELECT - col2, - 76 AS col1 FROM tab1
----
-59
-76
-68
-76
-96
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT col2 DIV col1 * 76 DIV - + 43 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT col2 / col1 * 76 / - + 43 AS col2 FROM tab2
----
0

query II rowsort
SELECT col2 AS col0, col0 * - col0 FROM tab2
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8039
SELECT + - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT 63 DIV - - 36 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT 63 / - - 36 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND + + col1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col0 * - + 49 + + col0 * + col0 * + 12 * + - col1 AS col0 FROM tab2 AS cor0
----
-1297246
-3787840
-4526175

query I rowsort
SELECT ALL + + 94 AS col0 FROM tab2 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1 AS col0, + 63 * + col1 col1, ( + col1 ) * 39 * - col2 FROM tab2
----
9 values hashing to 3965569c941b6f89c518f1f905d643a4

query I rowsort
SELECT 47 + - col1 * + + 63 FROM tab0
----
-1276
-16
-5056

query I rowsort
SELECT DISTINCT 78 + - 1 AS col0 FROM tab1
----
77

query I rowsort
SELECT DISTINCT col1 * - 6 AS col1 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT col0 + - 44 AS col0 FROM tab1
----
41
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT ( + CAST( NULL AS SIGNED ) ) + - 78 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT ( + CAST ( NULL AS INTEGER ) ) + - 78 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 96 + + col1 AS col1 FROM tab1
----
101
110
143

query I rowsort
SELECT - col1 + col0 + - col2 AS col2 FROM tab1
----
-24
-59
21

query I rowsort
SELECT 3 * + 60 FROM tab0
----
180
180
180

query I rowsort
SELECT 21 * - 82 FROM tab1
----
-1722
-1722
-1722

query III rowsort
SELECT * FROM tab1 WHERE - 28 IN ( ( + col2 ) + + col1 / + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT + + CAST( - 25 AS SIGNED ) * - col2 - + col2 + 16 FROM tab1 cor0 WHERE ( NOT ( col2 ) IS NULL )
----
1432
1648
2320

skipif mysql # not compatible
query I rowsort label-8058
SELECT + + CAST ( - 25 AS INTEGER ) * - col2 - + col2 + 16 FROM tab1 cor0 WHERE ( NOT ( col2 ) IS NULL )
----
1432
1648
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + COUNT( * ) * - 75 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8059
SELECT + COUNT ( * ) * - 75 FROM tab1 AS cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT CAST( + + ( - - col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + col1 / + col2 + - + CAST( col2 AS SIGNED ) * + 91 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT CAST ( + + ( - - col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - + col1 / + col2 + - + CAST ( col2 AS INTEGER ) * + 91 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT + - col0 DIV + 39 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT + - col0 / + 39 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - 18 + + 46 + COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 18 + + 46 + COUNT ( * ) FROM tab0
----
31

query I rowsort
SELECT + col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - + col1 - col2 * - col2 FROM tab1 cor0
----
3476
4577
9202

query I rowsort
SELECT ALL + 64 - 97 * + + 15 AS col2 FROM tab1 cor0
----
-1391
-1391
-1391

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + SUM( DISTINCT col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab0 cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - col2 * + col0 NOT BETWEEN - + 8 * 49 + + col1 AND ( - ( - - 45 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT DISTINCT + + 76 - - CAST( 62 AS SIGNED ) AS col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT + + 76 - - CAST ( 62 AS INTEGER ) AS col2 FROM tab2 cor0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT ALL + 56 + + - 63 DIV - 80 * + + ( - 74 ) * - - COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + 56 + + - 63 / - 80 * + + ( - 74 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
56

query I rowsort
SELECT ALL + col2 + - - col2 AS col1 FROM tab0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT - col2 * - ( + 44 ) FROM tab2
----
1012
1760
2552

query I rowsort
SELECT col2 * + - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT + + AVG ( ALL + 61 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - SUM( ALL + 38 ) * + + 92 FROM tab1 AS cor0
----
-10488

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - SUM ( ALL + 38 ) * + + 92 FROM tab1 AS cor0
----
-10488

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 34 * col2 AS col2 FROM tab0 AS cor0
----
1598
3366
340

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * 98 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 40 ) * + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
1817
2520
2942

query II rowsort
SELECT - - col2 AS col2, col2 * + col0 AS col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT COUNT( * ) AS col0, - 93 FROM tab2 AS cor0
----
3
-93

skipif mysql # not compatible
query II rowsort label-8081
SELECT COUNT ( * ) AS col0, - 93 FROM tab2 AS cor0
----
3
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT - col0 * + 85 + - + ( 63 ) + - - col0 + + - col1 * + 4 <> ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT - col0 * + 85 + - + ( 63 ) + - - col0 + + - col1 * + 4 <> ( + - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT col1 + - 83 DIV - 98 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT col1 + - 83 / - 98 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + + COUNT( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col1 IN ( + col0 + + 17 + col0 - col2, col0 )
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT MIN( ALL - + col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT MIN ( ALL - + col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 72 + + + col1 AS col2 FROM tab0
----
153
73
93

query I rowsort
SELECT - + col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT - + 30 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - + 30 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-33

query II rowsort
SELECT + + col2 + + 74 AS col1, - col2 FROM tab1 AS cor0
----
133
-59
142
-68
170
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab2 WHERE - + CAST( + col2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab2 WHERE - + CAST ( + col2 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT COUNT( 55 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT COUNT ( 55 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + 47 - 89 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + 96 - + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
801
966
9699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS SIGNED ) * + 43 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + 43 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL - - SUM( DISTINCT + 93 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - - SUM ( DISTINCT + 93 ) AS col0 FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 67 * col1 * + + col2, - col1, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 9 = NULL
----

query I rowsort
SELECT - col0 * - 26 + 85 + col1 AS col2 FROM tab2 AS cor0
----
1332
1826
2102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * - 51 col2 FROM tab0 AS cor0
----
-10710
-194157
-5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT - COUNT( * ) + - + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + CAST( - col0 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT - COUNT ( * ) + - + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT 98 + + 11, - col2 AS col0 FROM tab1 WHERE NOT ( + + ( - 61 ) ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1, - ( col1 ) * - + 88 - 97 + + - 97 * + col2 + - ( + col2 ) + - col1 FROM tab0
----
1
-9712
21
750
81
2344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 col2, - 9 + + + col2 FROM tab2
----
50
14
50
31
50
49

query I rowsort
SELECT - ( + + 37 ) FROM tab2
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col1 col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) / - 94 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - 94 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT - col0 DIV - - col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - col0 / - - col2 FROM tab2 AS cor0
----
-1
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - col0 / - - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT - + col2 * 57 DIV + 29 AS col2 FROM tab1 AS cor0
----
-115
-133
-188

skipif mysql # not compatible
query I rowsort label-8112
SELECT - + col2 * 57 / + 29 AS col2 FROM tab1 AS cor0
----
-115
-133
-188

query I rowsort
SELECT - col2 - + 84 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - + 96 * + - 55 * + 49 - 20 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + + SUM( DISTINCT 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + + SUM ( DISTINCT 80 ) FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8115
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - CAST( - - col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8115
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - CAST ( - - col2 AS INTEGER ) < NULL
----

query I rowsort
SELECT - 53 * - ( + 80 ) FROM tab0
----
4240
4240
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 48 ) * + 34 col1 FROM tab2 WHERE NOT - - 62 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT CAST( - + ( - COUNT( * ) ) AS SIGNED ) FROM tab1 cor0 WHERE 65 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8119
SELECT CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0 WHERE 65 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ( ( + 66 ) ) + + CAST( + col1 AS SIGNED ) FROM tab2
----
117
133
143

skipif mysql # not compatible
query I rowsort label-8120
SELECT ( ( + 66 ) ) + + CAST ( + col1 AS INTEGER ) FROM tab2
----
117
133
143

query I rowsort
SELECT DISTINCT col0 + + + 87 AS col0 FROM tab0
----
102
174
184

query I rowsort
SELECT - 33 + + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-10
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT + 85 + ( COUNT( * ) ) col2 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT DISTINCT + 85 + ( COUNT ( * ) ) col2 FROM tab2
----
88

query III rowsort
SELECT ALL * FROM tab1 WHERE 42 NOT BETWEEN NULL AND 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT MIN( - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-8125
SELECT MIN ( - 92 ) FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL COUNT( * ) + ( 45 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL COUNT ( * ) + ( 45 ) AS col0 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + 15 FROM tab1
----
-44
-53
-81

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + 15 FROM tab1
----
-44
-53
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - COUNT( - 42 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8128
SELECT - COUNT ( - 42 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - 53 * - - COUNT( * ) AS col2 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 53 * - - COUNT ( * ) AS col2 FROM tab0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - SUM( ALL - 93 ) FROM tab2 cor0
----
279

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - SUM ( ALL - 93 ) FROM tab2 cor0
----
279

query I rowsort
SELECT - 9 - - - ( - + 95 ) FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8132
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT DISTINCT 10 * col0 * - - col2 / - - col0 * CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 10 * col0 * - - col2 / - - col0 * CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8135
SELECT ALL + CAST( 6 AS SIGNED ) AS col1, 39 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6
-351

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL + CAST ( 6 AS INTEGER ) AS col1, 39 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6
-351

query I rowsort
SELECT + col2 + + col0 - - col1 AS col2 FROM tab0
----
118
143
197

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 + - col2 + 24 * + col0 AND col2
----

query I rowsort
SELECT DISTINCT + 21 * 87 AS col0 FROM tab2 AS cor0
----
1827

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 45 * - 41 AND NULL
----

query I rowsort
SELECT ALL - 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col0, 18 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 3 + - + col0 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 BETWEEN NULL AND col2
----

query II rowsort
SELECT DISTINCT + 10, col0 - + col0 AS col2 FROM tab1
----
10
0

query I rowsort
SELECT DISTINCT - 97 * + - col1 + - col1 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT DISTINCT - 36 * + 21 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-756

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <> ( - 87 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8147
SELECT ALL + + 69 * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT ALL + + 69 * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL + COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT DISTINCT + 97 DIV - + 50 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + 97 / - + 50 AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) col1, col1 AS col2 FROM tab0 cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL MIN( - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL MIN ( - - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + col1 * + 44 + - col1 FROM tab1 AS cor0
----
2021
215
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT ALL - + CAST( - col0 AS SIGNED ) + - 9 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL - + CAST ( - col0 AS INTEGER ) + - 9 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT - ( ( + + col2 ) ) DIV 47 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT - ( ( + + col2 ) ) / 47 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT DISTINCT col1 DIV - + col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT col1 / - + col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL CAST( + MIN( ALL - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL CAST ( + MIN ( ALL - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - 57 DIV 48 - + col1 AS col2 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 57 / 48 - + col1 AS col2 FROM tab0
----
-2
-22
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT DISTINCT - 42 DIV ( - COUNT( * ) ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT - 42 / ( - COUNT ( * ) ) FROM tab0 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + col2 / col2 IN ( - col0 - + 45, + 54 * + col2, - col0, + col1 + - 99, 85, + col2 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8160
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col0 FROM tab0 AS cor0 WHERE 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT DISTINCT SUM( ALL + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab0 WHERE NULL <= + + col2
----

query II rowsort
SELECT ALL - col0, - col2 AS col1 FROM tab0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT - 49, col1 AS col0 FROM tab0 AS cor0
----
-49
1
-49
21
-49
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8166
SELECT 92 DIV 62 - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8166
SELECT 92 / 62 - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
52
68
78

query II rowsort
SELECT + ( - - ( - col1 ) ), - col0 - col2 AS col2 FROM tab0 AS cor0
----
-1
-196
-21
-97
-81
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + COUNT( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8168
SELECT + COUNT ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT ALL - + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + COUNT( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8171
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 38 * - CAST( - ( + col1 ) AS SIGNED ), - ( + + 95 ) )
----

skipif mysql # not compatible
query III rowsort label-8171
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 38 * - CAST ( - ( + col1 ) AS INTEGER ), - ( + + 95 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8172
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col1 > 40
----
87
21
10
97
1
99

query I rowsort
SELECT col2 + col1 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT 63 * - - col2 AS col0 FROM tab2
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT SUM( - col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8177
SELECT SUM ( - col0 ) col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8178
SELECT ALL - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - CAST ( + CAST ( NULL AS REAL ) AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT 55 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT 55 / + 93 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT - col0 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8180
SELECT - col0 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL COUNT( * ) DIV 82 * - COUNT( * ) DIV 48 FROM tab2 cor0 WHERE NOT 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL COUNT ( * ) / 82 * - COUNT ( * ) / 48 FROM tab2 cor0 WHERE NOT 38 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT + COUNT( - col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + COUNT ( - col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL + COUNT( DISTINCT + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + COUNT ( DISTINCT + + col1 ) FROM tab2
----
3

query I rowsort
SELECT + ( + 24 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT DISTINCT + SUM( col1 ) DIV - - 23 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + SUM ( col1 ) / - - 23 FROM tab1
----
2

query I rowsort
SELECT ALL + ( col2 ) * col2 AS col2 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + + col1 + - 33 + + 15 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 44 + + col0 / 11 + + 56 / + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT DISTINCT + CAST( + 45 AS SIGNED ) FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + CAST ( + 45 AS INTEGER ) FROM tab2 cor0
----
45

query I rowsort
SELECT 68 / col1 * + col2 * + col0 * - col0 AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - 18 + + col2 FROM tab2 AS cor0
----
22
40
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col0 ), col1 col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT 77 * col2 * 88 * + - col1 * - 9 + - col1 + col2 - col1 FROM tab2
----
187830606
236983748
71534153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT + 98 DIV + + COUNT( ALL - - col2 ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 98 / + + COUNT ( ALL - - col2 ) AS col2 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL COUNT( DISTINCT - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT ALL COUNT ( DISTINCT - col0 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 + + - col1 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - ( - + 32 ), - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - col1 * + 11 / - col0 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - col1 * + 11 / - col0 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( 10 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8202
SELECT ALL COUNT( * ) DIV 49 AS col0, COUNT( * ) * - + 71 * + COUNT( * ) AS col2 FROM tab2
----
0
-639

skipif mysql # not compatible
query II rowsort label-8202
SELECT ALL COUNT ( * ) / 49 AS col0, COUNT ( * ) * - + 71 * + COUNT ( * ) AS col2 FROM tab2
----
0
-639

query II rowsort
SELECT - col1, - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + - col0 * + - 97 AS col1 FROM tab2 AS cor0 WHERE + col0 * - - 45 * - 63 IS NULL
----

query I rowsort
SELECT - 87 AS col2 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT - col0 * 45 AS col2 FROM tab0 AS cor0
----
-3915
-4365
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - COUNT( * ) * + 21 AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8207
SELECT - COUNT ( * ) * + 21 AS col2 FROM tab2
----
-63

query I rowsort
SELECT - 58 + 6 - + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 12 AS col0, col2 + - + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT col2 DIV col1 + + col2 AS col0 FROM tab0 cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-8210
SELECT col2 / col1 + + col2 AS col0 FROM tab0 cor0
----
10
198
47

query I rowsort
SELECT - col0 + 68 AS col2 FROM tab0 AS cor0
----
-19
-29
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT - col0 + + ( - col0 ) DIV 71 AS col1 FROM tab2 AS cor0
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-8212
SELECT - col0 + + ( - col0 ) / 71 AS col1 FROM tab2 AS cor0
----
-46
-64
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8213
SELECT DISTINCT COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT COUNT( * ) + MIN( - - col2 ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT COUNT ( * ) + MIN ( - - col2 ) AS col2 FROM tab1
----
62

query I rowsort
SELECT ALL ( + 18 ) + - col2 AS col1 FROM tab1
----
-41
-50
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8217
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - - MIN( ALL + 42 ) col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8218
SELECT - - MIN ( ALL + 42 ) col2 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL - + 95 FROM tab1 cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - 56 FROM tab0 cor0 WHERE NOT col2 BETWEEN + - ( - col0 ) AND col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - + COUNT( * ) * - + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8221
SELECT - + COUNT ( * ) * - + COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8222
SELECT DISTINCT - ( + 49 ) * + + CAST( NULL AS SIGNED ) + - col2, CAST( NULL AS SIGNED ) + - + col1 col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8222
SELECT DISTINCT - ( + 49 ) * + + CAST ( NULL AS INTEGER ) + - col2, CAST ( NULL AS INTEGER ) + - + col1 col1 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT + col0 * col2 * + 88 - col2 FROM tab1 AS cor0
----
430752
441261
544476

query I rowsort
SELECT + 81 - - col2 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT + 90 - + col2 * col1 AS col2 FROM tab1 cor0
----
-1254
-205
-3106

query I rowsort
SELECT ALL + + ( - col2 ) * col2 + col1 + 13 + + col2 * + col1 FROM tab1 AS cor0
----
-1368
-3168
-7845

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 + + + col2 > ( col1 ) + col2 + + 45 * col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND 45 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8229
SELECT COUNT( * ) + + 19 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT COUNT ( * ) + + 19 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8230
SELECT ALL CAST( + col2 AS SIGNED ) + - 89 - col0 * + col0 AS col1, - col2 FROM tab2
----
-2182
-23
-4145
-40
-5656
-58

skipif mysql # not compatible
query II rowsort label-8230
SELECT ALL CAST ( + col2 AS INTEGER ) + - 89 - col0 * + col0 AS col1, - col2 FROM tab2
----
-2182
-23
-4145
-40
-5656
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8231
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) * - - col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-8231
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS REAL ) * - - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT + + 82 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8232
SELECT + + 82 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL ( ( col2 ) ) - + 46 FROM tab0
----
-36
1
53

query I rowsort
SELECT col1 + + 60 AS col0 FROM tab1
----
107
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT ALL ( col1 ) * + 88 AS col0 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT DISTINCT - 17 - - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
42
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT COUNT( - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8238
SELECT COUNT ( - col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8239
SELECT - + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8242
SELECT - ( COUNT( * ) ) AS col0, - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-18

skipif mysql # not compatible
query II rowsort label-8242
SELECT - ( COUNT ( * ) ) AS col0, - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8243
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > CAST( NULL AS SIGNED ) + - col1 * - col2 * - col1 / + col2
----

skipif mysql # not compatible
query III rowsort label-8243
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > CAST ( NULL AS INTEGER ) + - col1 * - col2 * - col1 / + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( - 12 )
----

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( - 12 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 * - + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2 * + col1 * 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT ALL - MIN( + col1 ) col2, COUNT( * ) + - COUNT( DISTINCT + 63 ) FROM tab1 AS cor0
----
-5
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8248
SELECT ALL - MIN ( + col1 ) col2, COUNT ( * ) + - COUNT ( DISTINCT + 63 ) FROM tab1 AS cor0
----
-5
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL - MAX( - 46 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - MAX ( - 46 ) FROM tab0 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 29 * 35 + + + 76 - + col1 * + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 26 * + col2 + - col2 FROM tab2
----
1000
1450
575

query I rowsort
SELECT + 13 * + - col0 + - ( + 73 ) FROM tab1
----
-1178
-1256
-736

query I rowsort
SELECT 58 * + 72 + - col0 FROM tab1
----
4085
4091
4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT - col1 + - 68 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT - col1 + - 68 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 * + 5 * - col0 * + 47 * + 61 FROM tab2
----
-18463480
-25688320
-30103500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8256
SELECT ALL COUNT( col1 ) col0, - CAST( 19 AS SIGNED ) * + + 59 FROM tab2
----
3
-1121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8256
SELECT ALL COUNT ( col1 ) col0, - CAST ( 19 AS INTEGER ) * + + 59 FROM tab2
----
3
-1121

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + COUNT( * ) * - - MIN( + col1 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + COUNT ( * ) * - - MIN ( + col1 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL 96 AS col2 FROM tab2 AS cor0 WHERE + ( + col0 ) * - 34 - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - COUNT( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT - COUNT ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 - + + 97 AS col0 FROM tab1 cor0
----
-12
-46
-6

query I rowsort
SELECT ALL + col0 * 81 AS col1 FROM tab0 AS cor0
----
1215
7047
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 56 * - col1 col1 FROM tab1
----
-23800
-239512
-39984

query I rowsort
SELECT + 0 * + + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT 85 * - 47 AS col2, ( - - col1 ) FROM tab1
----
-3995
14
-3995
47
-3995
5

query I rowsort
SELECT ALL - col2 * + col2 AS col2 FROM tab1 WHERE + + col1 <= NULL
----

query I rowsort
SELECT ALL ( ( - col0 ) ) * col0 - + + col1 + + 80 * + - 81 FROM tab1 AS cor0
----
-13710
-14808
-9095

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - ( + 87 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL <= + - CAST( 97 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL <= + - CAST ( 97 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( - - col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8269
SELECT COUNT ( - - col1 ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col0 + + ( + 7 ) AS col0, ( + col0 ) AS col0 FROM tab1 AS cor0
----
-44
51
-78
85
-84
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 58 * + 81 AS col1 FROM tab0
----
4698
4698
4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT - CAST( NULL AS SIGNED ) * 82 / + col2 AS col2 FROM tab0 WHERE + col2 + + - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT - CAST ( NULL AS INTEGER ) * 82 / + col2 AS col2 FROM tab0 WHERE + col2 + + - col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT - 59, - COUNT( * ) AS col2 FROM tab1
----
-59
-3

skipif mysql # not compatible
query II rowsort label-8274
SELECT - 59, - COUNT ( * ) AS col2 FROM tab1
----
-59
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT ALL ( col1 ) * + col1 + + col1 DIV + + 43 FROM tab2
----
2602
4490
5930

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL ( col1 ) * + col1 + + col1 / + + 43 FROM tab2
----
2602
4490
5930

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT + 66 - + 14 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT + 66 - + 14 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT 67 * - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 BETWEEN + - 27 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT 67 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 BETWEEN + - 27 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT + - CAST( NULL AS SIGNED ) + 58 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT + - CAST ( NULL AS INTEGER ) + 58 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < - col1 * + col0 * - + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col0 <> + 71 + col1
----
3

skipif mysql # not compatible
query I rowsort label-8281
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 <> + 71 + col1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 79 * 97 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + 53 - + COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + 53 - + COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL col0 DIV col0 - + col2 * 78 + + col0 + - 11 FROM tab0 AS cor0
----
-3661
-703
-7635

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL col0 / col0 - + col2 * 78 + + col0 + - 11 FROM tab0 AS cor0
----
-3661
-703
-7635

query I rowsort
SELECT - ( 61 ) - + col0 AS col1 FROM tab0 AS cor0
----
-148
-158
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 - - col1 - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT + CAST( + 74 AS SIGNED ) - + 7 - - col0 FROM tab1 AS cor0
----
118
152
158

skipif mysql # not compatible
query I rowsort label-8287
SELECT + CAST ( + 74 AS INTEGER ) - + 7 - - col0 FROM tab1 AS cor0
----
118
152
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - COUNT( * ) - + ( + - 27 ) AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COUNT ( * ) - + ( + - 27 ) AS col2 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL COUNT( DISTINCT + + 15 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL COUNT ( DISTINCT + + 15 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col0 * + ( - 5 )
----

query I rowsort
SELECT + col2 * + 87 AS col1 FROM tab2
----
2001
3480
5046

query II rowsort
SELECT ALL col2 AS col2, 55 FROM tab2
----
23
55
40
55
58
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 12 ) + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 27 ) AS col0 FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT col2 / col0 + CAST( NULL AS SIGNED ) + + col2 - - col0 * - 48 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-8297
SELECT col2 / col0 + CAST ( NULL AS INTEGER ) + + col2 - - col0 * - 48 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT col2 DIV + + col1 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT col2 / + + col1 * col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT - col2 DIV col0 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8300
SELECT - col2 / col0 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT - 63 DIV 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - 63 / 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT COUNT( ALL 50 ) col2 FROM tab0 AS cor0 WHERE 48 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8304
SELECT COUNT ( ALL 50 ) col2 FROM tab0 AS cor0 WHERE 48 IS NULL
----
0

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + - 39 <= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - 48 + - 24 * + col1 > 81
----

query I rowsort
SELECT col0 + + ( - - col2 ) AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + col2 + + col2 * + + col2 AS col0 FROM tab1 WHERE + 85 IS NULL
----

query I rowsort
SELECT ALL col0 + - col0 FROM tab1 WHERE + + ( + col2 ) > + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8311
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST( NULL AS SIGNED ) - 5 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8311
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST ( NULL AS INTEGER ) - 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL - COUNT( * ) * COUNT( DISTINCT + col1 ) + COUNT( - + col1 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT + col1 ) + COUNT ( - + col1 ) AS col0 FROM tab0
----
-6

query I rowsort
SELECT ALL - col2 * 51 AS col2 FROM tab2
----
-1173
-2040
-2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 15 col0 FROM tab2
----
345
600
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + 82 col1 FROM tab2
----
58
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT ALL - - COUNT( * ) DIV ( + COUNT( * ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - - COUNT ( * ) / ( + COUNT ( * ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ( - COUNT( * ) ) + - - SUM( - col2 ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-8317
SELECT ( - COUNT ( * ) ) + - - SUM ( - col2 ) FROM tab0
----
-159

query I rowsort
SELECT - col0 + - - col0 * + col1 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT - 1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ( - 56 ) + + col0 AS col1 FROM tab1
----
-5
29
35

query I rowsort
SELECT - + col0 FROM tab1 WHERE 3 <= + col1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT - - col1 - - col2 + + col0 - col2 DIV - + col2 AS col2 FROM tab0 WHERE - 40 IS NOT NULL
----
119
144
198

skipif mysql # not compatible
query I rowsort label-8322
SELECT - - col1 - - col2 + + col0 - col2 / - + col2 AS col2 FROM tab0 WHERE - 40 IS NOT NULL
----
119
144
198

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT ALL + MAX( col2 ) - + 67 + - COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-8323
SELECT ALL + MAX ( col2 ) - + 67 + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-12
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 27 - - - col2 + + col1 * col0 ) NOT BETWEEN col2 * - - col0 AND + col0 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT + COUNT( * ) - - 23 DIV + 56 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + COUNT ( * ) - - 23 / + 56 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 73 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-73
-73
-73

query III rowsort
SELECT - - 43 AS col0, col0 * 4 + col1 AS col0, - col2 FROM tab0 AS cor0
----
9 values hashing to 7a0523b95c9c867a4dd8e11ea5632df8

query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT - - CAST( NULL AS SIGNED ) * - 7 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT - - CAST ( NULL AS INTEGER ) * - 7 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8330
SELECT COUNT( * ) FROM tab1 WHERE NOT ( ( NULL ) >= + CAST( + + col0 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( ( NULL ) >= + CAST ( + + col0 AS REAL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT - 59 * - col0 / - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8331
SELECT - 59 * - col0 / - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT + COUNT( ALL - - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + COUNT ( ALL - - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT 14 * + - COUNT( * ) col1 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8333
SELECT DISTINCT 14 * + - COUNT ( * ) col1 FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT + CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8334
SELECT + CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT COUNT( 79 ) + + + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT COUNT ( 79 ) + + + COUNT ( * ) col0 FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT col1 + - col1 + + + CAST( 4 AS SIGNED ) * - col0 FROM tab1
----
-204
-340
-364

skipif mysql # not compatible
query I rowsort label-8337
SELECT col1 + - col1 + + + CAST ( 4 AS INTEGER ) * - col0 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - - 73 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT - - 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT MAX( ALL 81 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT MAX ( ALL 81 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT - CAST( NULL AS SIGNED ) * - 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT - CAST ( NULL AS INTEGER ) * - 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 * + - col2 FROM tab0 AS cor0
----
-282
-594
-60

query II rowsort
SELECT + col2 AS col0, - 64 AS col1 FROM tab0 AS cor0
----
10
-64
47
-64
99
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT COUNT( DISTINCT - - 78 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8343
SELECT COUNT ( DISTINCT - - 78 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT COUNT( * ) - + + 69 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT COUNT ( * ) - + + 69 FROM tab0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col1 FROM tab1 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - MAX( ALL - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8348
SELECT - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - + MIN( 37 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - + MIN ( 37 ) FROM tab0 AS cor0
----
-37

query II rowsort
SELECT + + col2, col0 + - col0 * col2 + + + 85 FROM tab0 AS cor0
----
10
-698
47
-605
99
-9421

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + + ( - MIN( + col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8351
SELECT + + ( - MIN ( + col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL + + COUNT( + - 56 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL + + COUNT ( + - 56 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + col0 + - ( col0 ) * col2 AS col1, + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL + col2 - - + col2 AS col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
116
46
80

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + col2 - - + col2 AS col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
116
46
80

query I rowsort
SELECT + 66 / col2 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8356
SELECT + CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT + CAST ( NULL AS REAL ) / + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL 23 DIV - 30 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL 23 / - 30 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8358
SELECT + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT ALL ( + + 60 ) DIV - + 76 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL ( + + 60 ) / - + 76 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL + MIN( + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + MIN ( + col2 ) AS col0 FROM tab2
----
23

query II rowsort
SELECT + 1 AS col0, - col2 FROM tab1
----
1
-59
1
-68
1
-96

query II rowsort
SELECT - col2, - 12 AS col2 FROM tab0
----
-10
-12
-47
-12
-99
-12

query II rowsort
SELECT ALL 79 AS col1, + col0 FROM tab2
----
79
46
79
64
79
75

query II rowsort
SELECT + col1 AS col0, 10 AS col2 FROM tab0
----
1
10
21
10
81
10

query II rowsort
SELECT ALL + + col2, 32 FROM tab2 AS cor0
----
23
32
40
32
58
32

query II rowsort
SELECT DISTINCT col2 AS col2, + 63 * 53 * - col0 AS col0 FROM tab2 cor0
----
23
-153594
40
-213696
58
-250425

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NOT + col2 / + ( + col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + + 38 * + COUNT( * ) + + 12 AS col2 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8369
SELECT + + 38 * + COUNT ( * ) + + 12 AS col2 FROM tab2 AS cor0
----
126

query I rowsort
SELECT DISTINCT - + col2 + 47 * ( - col2 ) - + col2 * 5 FROM tab2 cor0
----
-1219
-2120
-3074

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + - 26 IS NULL
----

query I rowsort
SELECT col1 + + + col0 AS col2 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 AS col0, + ( - - col2 ) + + - col0 * + col2 col2 FROM tab1
----
39
-4800
39
-4956
39
-6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL - 92 DIV - MIN( - col1 ) - 95 + - 9 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - 92 / - MIN ( - col1 ) - 95 + - 9 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT MAX( + - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8375
SELECT MAX ( + - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - MIN( ALL + + 37 ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-8376
SELECT - MIN ( ALL + + 37 ) FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + SUM( DISTINCT col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8377
SELECT + SUM ( DISTINCT col2 ) AS col2 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT - 15 * 44 DIV - col2 FROM tab1
----
11
6
9

skipif mysql # not compatible
query I rowsort label-8378
SELECT - 15 * 44 / - col2 FROM tab1
----
11
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL 47 + + COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL 47 + + COUNT ( * ) FROM tab2
----
50

query I rowsort
SELECT + col1 * + + col2 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col2 + - 45 AS col1 FROM tab1
----
-104
-113
-141

query I rowsort
SELECT DISTINCT col0 - - - 75 * - col0 + + col0 FROM tab0 AS cor0
----
1155
6699
7469

query I rowsort
SELECT - 0 * + 98 - - - ( + ( - 34 ) ) + - 52 * + + 72 AS col0 FROM tab2 AS cor0
----
-3710
-3710
-3710

query I rowsort
SELECT + col0 - + 81 FROM tab1 AS cor0
----
-30
10
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + 86 col2 FROM tab1 cor0
----
137
171
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT ( - COUNT( col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT ( - COUNT ( col1 ) ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) NOT BETWEEN NULL AND col1 * 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - COUNT( * ) + 9 AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8388
SELECT - COUNT ( * ) + 9 AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ( + COUNT( * ) ) - 22 col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8389
SELECT ( + COUNT ( * ) ) - 22 col1 FROM tab0
----
-19

query I rowsort
SELECT ( + 25 ) + + col0 FROM tab2
----
100
71
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT CAST( - MAX( ALL col2 ) AS SIGNED ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8391
SELECT CAST ( - MAX ( ALL col2 ) AS INTEGER ) FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 78 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8394
SELECT DISTINCT * FROM tab2 WHERE NOT - 80 > + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-8394
SELECT DISTINCT * FROM tab2 WHERE NOT - 80 > + CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - COUNT( col1 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT ALL - COUNT ( col1 ) col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT 25 * 23 + + MAX( - ( - 85 ) ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
660

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT 25 * 23 + + MAX ( - ( - 85 ) ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab2
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 * col2 BETWEEN - 66 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL MAX( ALL 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL MAX ( ALL 50 ) FROM tab0
----
50

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 13 AND ( + col0 - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - 24 ) AND + 24
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 47 * col0 + + col1 AS col1 FROM tab0
----
-4068
-4558
-624

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT MIN( col0 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8407
SELECT MIN ( col0 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 13 AS col0 FROM tab0 WHERE ( 36 ) IS NOT NULL
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8409
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) >= CAST( 37 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-8409
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) >= CAST ( 37 AS INTEGER )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT COUNT( * ) * + COUNT( col2 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT COUNT ( * ) * + COUNT ( col2 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 19 * - 24 FROM tab1 AS cor0
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT ALL ( col0 ) DIV + 92 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL ( col0 ) / + 92 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( 10 / col1 + - col2 )
----

query I rowsort
SELECT + 91 + col0 AS col1 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT DISTINCT - 80 * - col1 + + col0 FROM tab2 AS cor0
----
4126
5435
6224

query I rowsort
SELECT ALL 53 + col1 FROM tab1 AS cor0
----
100
58
67

query I rowsort
SELECT ALL - col2 + 74 * 88 AS col0 FROM tab1
----
6416
6444
6453

query III rowsort
SELECT * FROM tab1 WHERE ( - 59 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + COUNT( * ) * + ( COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8419
SELECT + COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8420
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 30 + col2 ) = ( NULL )
----

query I rowsort
SELECT - col2 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + 22 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col1 - 85 + col1 AS col2 FROM tab2
----
17
49
69

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) + col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + SUM( ALL - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + SUM ( ALL - col1 ) FROM tab2
----
-195

query I rowsort
SELECT ALL 44 + - col2 FROM tab1
----
-15
-24
-52

query I rowsort
SELECT col2 + - 80 - + col1 FROM tab1
----
-26
-59
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT COUNT( DISTINCT - 76 ) + 4 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8429
SELECT COUNT ( DISTINCT - 76 ) + 4 FROM tab0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT DISTINCT - col0 - - + 30 + 58 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT - col0 - - + 30 + 58 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 = + 93
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) * 37 AS col0 FROM tab2 AS cor0
----
1480
2146
851

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) * 37 AS col0 FROM tab2 AS cor0
----
1480
2146
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT DISTINCT col1 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT col1 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 82 * - col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8436
SELECT ALL CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 34 * 7 AS col2 FROM tab2 WHERE NOT ( - col0 + ( - 33 ) * col1 ) NOT BETWEEN col2 AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT DISTINCT col1, col1 DIV - col0 + - col0 DIV - 67 FROM tab1
----
14
0
47
1
5
1

skipif mysql # not compatible
query II rowsort label-8438
SELECT DISTINCT col1, col1 / - col0 + - col0 / - 67 FROM tab1
----
14
0
47
1
5
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 / - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + + col2 < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT ALL 28, - COUNT( * ) * 45 col1 FROM tab0
----
28
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8441
SELECT ALL 28, - COUNT ( * ) * 45 col1 FROM tab0
----
28
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 28 * COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8442
SELECT 28 * COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
252

query I rowsort
SELECT ALL 10 * + 12 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT + 9 * + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT + 9 * + COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL 63 * + col0 AS col0 FROM tab2 AS cor0
----
2898
4032
4725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8446
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - - - 74 < CAST( 24 AS SIGNED ) + + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8446
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - - - 74 < CAST ( 24 AS INTEGER ) + + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 + - col2 + col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 + 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8449
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8449
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + 52, - col2 AS col1 FROM tab2 cor0
----
52
-23
52
-40
52
-58

query I rowsort
SELECT 72 + - col2 AS col0 FROM tab2
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + ( COUNT( * ) ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT + ( COUNT ( * ) ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8454
SELECT col1 + - + col1 AS col1, col0 + - - 96 DIV col0 AS col1 FROM tab0
----
0
21
0
88
0
97

skipif mysql # not compatible
query II rowsort label-8454
SELECT col1 + - + col1 AS col1, col0 + - - 96 / col0 AS col1 FROM tab0
----
0
21
0
88
0
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col1 * - col0 col2 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ( - MIN( col2 ) ) + 94 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8456
SELECT ( - MIN ( col2 ) ) + 94 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL + COUNT( * ) + + 92 * + - COUNT( * ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + COUNT ( * ) + + 92 * + - COUNT ( * ) FROM tab2
----
-273

query I rowsort
SELECT - col0 * - 77 * col2 FROM tab2
----
197120
334950
81466

query I rowsort
SELECT DISTINCT col1 * + col0 * ( + col1 ) * 46 FROM tab2 AS cor0
----
15487050
17454976
5503716

query II rowsort
SELECT ALL 85 * 85 AS col2, + col1 FROM tab0 cor0
----
7225
1
7225
21
7225
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( + - 83 ) ) IS NULL
----

query I rowsort
SELECT ALL col0 * + - 40 + 77 FROM tab1
----
-1963
-3323
-3563

query III rowsort
SELECT * FROM tab0 WHERE - 75 + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8465
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) + + + col0 + - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8465
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) + + + col0 + - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) - - - ( - 5 ) col1 FROM tab1 AS cor0
----
-42
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8467
SELECT * FROM tab2 AS cor0 WHERE col0 + - - 69 IN ( - col1 * + - 6 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8467
SELECT * FROM tab2 AS cor0 WHERE col0 + - - 69 IN ( - col1 * + - 6 * - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - - 40 AS col2, 30 FROM tab2 AS cor0
----
40
30

query I rowsort
SELECT col2 + + - 33 FROM tab1 AS cor0
----
26
35
63

query I rowsort
SELECT 16 * - col1 AS col2 FROM tab0 AS cor0
----
-1296
-16
-336

query II rowsort
SELECT - col1 AS col1, col0 * col1 FROM tab1
----
-14
714
-47
4277
-5
425

onlyif mysql # DIV for integer division: 
query II rowsort label-8472
SELECT - col2 DIV + + col1 AS col0, - 67 FROM tab0
----
-99
-67
0
-67
0
-67

skipif mysql # not compatible
query II rowsort label-8472
SELECT - col2 / + + col1 AS col0, - 67 FROM tab0
----
-99
-67
0
-67
0
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT 12 * + - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8473
SELECT 12 * + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
36

query I rowsort
SELECT ALL ( - - col1 ) + - ( - 42 ) FROM tab2
----
109
119
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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 + col2 * + ( - col1 ) AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8478
SELECT DISTINCT ( col2 ) AS col1, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8478
SELECT DISTINCT ( col2 ) AS col1, - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + ( MAX( ALL + 37 ) ) FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-8479
SELECT + ( MAX ( ALL + 37 ) ) FROM tab1 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8480
SELECT + SUM ( - col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + - 10 AS col2 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - + col2 * - 72 + - + col1 + + 40 * + col1 + col0 FROM tab0 AS cor0
----
1626
6558
7264

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL MIN( ALL + - 97 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL MIN ( ALL + - 97 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + SUM( DISTINCT + - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + - col0 NOT IN ( + ( - ( 34 ) ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT COUNT( - - 71 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT COUNT ( - - 71 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8487
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND NOT col0 * + + col0 * - col2 + - - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8487
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND NOT col0 * + + col0 * - col2 + - - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - col1 * - - col0 + col2 + 95 * - - 56 AS col0 FROM tab0 AS cor0
----
5516
6582
7157

query II rowsort
SELECT DISTINCT + - 70 AS col2, col1 FROM tab2 AS cor0
----
-70
51
-70
67
-70
77

query III rowsort
SELECT * FROM tab1 WHERE col1 >= + - col2 + + + ( + col0 )
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + + 69 col2 FROM tab0
----
124
124
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT - 33 / + col0 FROM tab1 cor0 WHERE 50 NOT BETWEEN ( + col1 * - + col1 - - CAST( NULL AS SIGNED ) + col2 * + 24 ) AND ( 91 )
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 33 / + col0 FROM tab1 cor0 WHERE 50 NOT BETWEEN ( + col1 * - + col1 - - CAST ( NULL AS INTEGER ) + col2 * + 24 ) AND ( 91 )
----

query I rowsort
SELECT - 26 * - + 1 AS col0 FROM tab0 AS cor0
----
26
26
26

query II rowsort
SELECT + col0 * - - ( + 38 ) - col2 AS col0, col2 - col2 * 42 * - - ( 8 ) AS col1 FROM tab0 AS cor0
----
3296
-3350
3587
-33165
523
-15745

query I rowsort
SELECT ALL 36 - + 11 + - 55 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT col1 * col0 - - col2 FROM tab0 cor0
----
1262
1837
196

query I rowsort
SELECT - - col0 * - + col1 * + 91 * + + col0 + + - col2 - col1 + 63 AS col2 FROM tab1 AS cor0
----
-3287376
-3313721
-35417889

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8498
SELECT - CAST( NULL AS DECIMAL ) + + col2 * - ( - 48 ) / - - ( + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - CAST ( NULL AS REAL ) + + col2 * - ( - 48 ) / - - ( + - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + - col1 + - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT ALL col0 + + col0 + - 84 DIV col1 AS col0 FROM tab1
----
154
181
96

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL col0 + + col0 + - 84 / col1 AS col0 FROM tab1
----
154
181
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT MAX( + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8501
SELECT MAX ( + + col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col2 FROM tab2 WHERE col0 / - col0 + + col0 * col0 + + 28 IN ( 53, 99 / - ( 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE col0 / - col0 + + col0 * col0 + + 28 IN ( 53, 99 / - ( 67 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT - ( - 73 ) DIV - col1 AS col0 FROM tab0
----
-3
-73
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT - ( - 73 ) / - col1 AS col0 FROM tab0
----
-3
-73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT MAX( DISTINCT + ( + col1 ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8504
SELECT MAX ( DISTINCT + ( + col1 ) ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + MAX( ALL - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8506
SELECT + MAX ( ALL - - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT 0 - + MAX( - + col1 ) + - ( - + COUNT( * ) ) * 12 + - ( - - ( - 40 ) ) + 43 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT 0 - + MAX ( - + col1 ) + - ( - + COUNT ( * ) ) * 12 + - ( - - ( - 40 ) ) + 43 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + - ( col2 ) FROM tab0 AS cor0 WHERE + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT MAX( DISTINCT - 26 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-8509
SELECT MAX ( DISTINCT - 26 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

query I rowsort
SELECT + 89 * col1 FROM tab1
----
1246
4183
445

query II rowsort
SELECT ALL + + col2, + col1 - - - ( + col2 ) FROM tab2 AS cor0
----
23
28
40
37
58
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT - - MAX( ALL - + col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT DISTINCT - - MAX ( ALL - + col1 ) col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + + col1, - col2 AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT + - COUNT( ALL - 62 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + - COUNT ( ALL - 62 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 30 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT COUNT( * ) DIV + 51 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( * ) / + 51 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - - col2 + col1 + + - col1 AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE - 19 NOT BETWEEN NULL AND + col1 + - col0
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 42 AND + + col1
----

query II rowsort
SELECT DISTINCT - col1 + - 1 AS col2, - 31 FROM tab2 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL COUNT( * ) * - + COUNT( DISTINCT + col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL COUNT ( * ) * - + COUNT ( DISTINCT + col2 ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 80 * col1 / + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 80 * col1 / + col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT - col2 + - - ( ( col0 ) ) + + CAST( + 43 AS SIGNED ) FROM tab1 WHERE + + col2 * - col0 - col0 IN ( col1 + + col2, + 4 * + ( + + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8523
SELECT - col2 + - - ( ( col0 ) ) + + CAST ( + 43 AS INTEGER ) FROM tab1 WHERE + + col2 * - col0 - col0 IN ( col1 + + col2, + 4 * + ( + + col1 ) )
----

query I rowsort
SELECT 7 - - col2 FROM tab1
----
103
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL + MIN( ALL + 51 ) + + 31 + 12 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + MIN ( ALL + 51 ) + + 31 + 12 FROM tab1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT ALL col1 DIV col1 + + ( - 87 ) FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL col1 / col1 + + ( - 87 ) FROM tab1
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8527
SELECT DISTINCT + CAST( - 87 AS SIGNED ) + - col1 * col2 + - + col0 DIV - col1 DIV + 1 FROM tab1
----
-1428
-3282
-365

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) + - col1 * col2 + - + col0 / - col1 / + 1 FROM tab1
----
-1428
-3282
-365

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * 74 = NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( - col1 + + col1 )
----

query I rowsort
SELECT ALL col1 - - + col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT - - COUNT( * ) * + 53 AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - - COUNT ( * ) * + 53 AS col1 FROM tab1 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - 85 * + MAX( DISTINCT - - 99 ) AS col2 FROM tab2 AS cor0
----
-8415

skipif mysql # not compatible
query I rowsort label-8534
SELECT - 85 * + MAX ( DISTINCT - - 99 ) AS col2 FROM tab2 AS cor0
----
-8415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * col2 * + col2 + - 51 + col1 col2 FROM tab1 AS cor0
----
212295
282060
562139

query I rowsort
SELECT ALL + ( - col2 ) * + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 97 / 39 + - AVG ( col0 ) * - + 72 FROM tab1 WHERE NOT ( ( + col2 ) * - col2 ) <= col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 83 col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT ALL 61 DIV - ( - - col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 61 / - ( - - col0 ) FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - COUNT( ALL col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - COUNT ( ALL col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - + MAX( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - + MAX ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 19 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT + ( + + COUNT( * ) ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + ( + + COUNT ( * ) ) / COUNT ( * ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 col0 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT DISTINCT 96 * 23 DIV - col0 + + col2 FROM tab1 AS cor0
----
34
44
53

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT 96 * 23 / - col0 + + col2 FROM tab1 AS cor0
----
34
44
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT + + 10 DIV - 17 * - 2 * + MAX( - - col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT + + 10 / - 17 * - 2 * + MAX ( - - col1 ) FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 54 col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 52 + + 89 + - 24 FROM tab0
----
117

query II rowsort
SELECT ALL - col2, 75 AS col0 FROM tab0 AS cor0
----
-10
75
-47
75
-99
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 23 + + col0 * - 69 BETWEEN NULL AND ( - 30 + + 99 / col0 * - col0 )
----

query I rowsort
SELECT DISTINCT - 19 - + - col0 + + col2 FROM tab1 AS cor0
----
125
128
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + + col2 + + + col0 col0 FROM tab1 AS cor0
----
200
203
215

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8555
SELECT - 39 DIV - col0 AS col0, col2 * - col2 FROM tab0 AS cor0
----
0
-100
0
-9801
2
-2209

skipif mysql # not compatible
query II rowsort label-8555
SELECT - 39 / - col0 AS col0, col2 * - col2 FROM tab0 AS cor0
----
0
-100
0
-9801
2
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT MAX( DISTINCT - - 99 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8556
SELECT MAX ( DISTINCT - - 99 ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT 25 - + - col0 AS col1 FROM tab0
----
112
122
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + - COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT + - COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( + - 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL - MAX( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - MAX ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT + 67 * + 2 + - 1, - col2 * + 56 AS col0 FROM tab1 cor0
----
133
-3304
133
-3808
133
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 90 col2 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - - COUNT( * ) * - 52 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8564
SELECT - - COUNT ( * ) * - 52 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - + 59 * + MIN( + ( - 8 ) ) FROM tab0 AS cor0
----
472

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - + 59 * + MIN ( + ( - 8 ) ) FROM tab0 AS cor0
----
472

onlyif mysql # aggregate syntax: 
query II rowsort label-8566
SELECT + MIN( + col1 ), - 2 AS col0 FROM tab2 cor0
----
51
-2

skipif mysql # not compatible
query II rowsort label-8566
SELECT + MIN ( + col1 ), - 2 AS col0 FROM tab2 cor0
----
51
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL + MIN( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL + MIN ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - + 78
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8569
SELECT ALL - CAST( - col1 AS SIGNED ) * col2 DIV 79 FROM tab1
----
17
3
40

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - CAST ( - col1 AS INTEGER ) * col2 / 79 FROM tab1
----
17
3
40

query I rowsort
SELECT DISTINCT - col1 * + 28 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT DISTINCT - 29 FROM tab2 WHERE NOT + 55 - + 80 IS NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + 45 * - - col1 FROM tab1
----
2115
225
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - 99 * COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - 99 * COUNT ( * ) FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT + CAST( - 91 AS SIGNED ) AS col1 FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-8575
SELECT + CAST ( - 91 AS INTEGER ) AS col1 FROM tab2
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-8576
SELECT + col2 AS col1, 92 DIV + col2 AS col1 FROM tab2 AS cor0
----
23
4
40
2
58
1

skipif mysql # not compatible
query II rowsort label-8576
SELECT + col2 AS col1, 92 / + col2 AS col1 FROM tab2 AS cor0
----
23
4
40
2
58
1

query I rowsort
SELECT ALL - 26 * col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 84 ) col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + COUNT( * ) + 28 + + - COUNT( * ) * + + 39 AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + COUNT ( * ) + 28 + + - COUNT ( * ) * + + 39 AS col2 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( - + col1 ) * + - 23 AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( - + col1 ) * + - 23 AS col1 FROM tab0
----
-69

query I rowsort
SELECT + - col0 + + + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + COUNT( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8582
SELECT + COUNT ( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-7

query II rowsort
SELECT - col2 + + 35 + + col1 * + col0, col1 FROM tab1 AS cor0
----
401
5
4244
47
653
14

query I rowsort
SELECT DISTINCT - ( 95 ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT MAX( + 41 ) col1 FROM tab0 cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8585
SELECT DISTINCT MAX ( + 41 ) col1 FROM tab0 cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL ( - col0 ) * 32 * - col1 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0 WHERE 50 BETWEEN - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL ( - col0 ) * 32 * - col1 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 WHERE 50 BETWEEN - - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT - col1 * 37 FROM tab0 AS cor0 WHERE ( - col2 ) - - col1 NOT BETWEEN - + 59 * - CAST( NULL AS SIGNED ) AND - - 74 + + col0
----

skipif mysql # not compatible
query I rowsort label-8587
SELECT - col1 * 37 FROM tab0 AS cor0 WHERE ( - col2 ) - - col1 NOT BETWEEN - + 59 * - CAST ( NULL AS INTEGER ) AND - - 74 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT DISTINCT - + col2 + + 89 DIV - + 80 FROM tab1 cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - + col2 + + 89 / - + 80 FROM tab1 cor0
----
-60
-69
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col2 * - col2 NOT BETWEEN ( NULL ) AND - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8590
SELECT DISTINCT 58 + - 9 + CAST( NULL AS SIGNED ) / - 83 AS col2, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT 58 + - 9 + CAST ( NULL AS INTEGER ) / - 83 AS col2, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT ( - 23 ) AS col0, col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - COUNT( * ) + COUNT( * ) * + 56 AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-8592
SELECT - COUNT ( * ) + COUNT ( * ) * + 56 AS col0 FROM tab1
----
165

query I rowsort
SELECT 2 FROM tab2 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT DISTINCT 16 + + 22 FROM tab2
----
38

query I rowsort
SELECT ALL - col2 * col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL - COUNT( * ) * - MAX( ALL - 91 ) AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - COUNT ( * ) * - MAX ( ALL - 91 ) AS col1 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT + 19 AS col2, + 42 + - COUNT( * ) FROM tab2
----
19
39

skipif mysql # not compatible
query II rowsort label-8597
SELECT + 19 AS col2, + 42 + - COUNT ( * ) FROM tab2
----
19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL COUNT( * ) + + 98 * 96 AS col0 FROM tab1 AS cor0
----
9411

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL COUNT ( * ) + + 98 * 96 AS col0 FROM tab1 AS cor0
----
9411

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8599
SELECT - CAST( NULL AS DECIMAL ) + + + col0 + - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT - CAST ( NULL AS REAL ) + + + col0 + - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ( + + MIN( DISTINCT 83 ) ) + 90 AS col0 FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-8600
SELECT ( + + MIN ( DISTINCT 83 ) ) + 90 AS col0 FROM tab2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT 58 DIV + col0 + - col1 FROM tab2
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-8601
SELECT 58 / + col0 + - col1 FROM tab2
----
-50
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT + - CAST( 48 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + - CAST ( 48 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT + 82 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8603
SELECT + 82 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL COUNT( 52 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL COUNT ( 52 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT - ( + + col1 ) * col2 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL + MIN( DISTINCT col2 ) * - 95 FROM tab0 AS cor0
----
-950

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL + MIN ( DISTINCT col2 ) * - 95 FROM tab0 AS cor0
----
-950

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8608
SELECT col1 AS col0, + CAST( NULL AS DECIMAL ) + - 92 * + col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8608
SELECT col1 AS col0, + CAST ( NULL AS REAL ) + - 92 * + col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT 38 * - col0 AS col2 FROM tab2 AS cor0
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT - MAX( col0 ) AS col0, MAX( ALL - 92 ) AS col2 FROM tab1
----
-91
-92

skipif mysql # not compatible
query II rowsort label-8610
SELECT - MAX ( col0 ) AS col0, MAX ( ALL - 92 ) AS col2 FROM tab1
----
-91
-92

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - 8 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT 35 * - + COUNT( + - col0 ) AS col2 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT 35 * - + COUNT ( + - col0 ) AS col2 FROM tab0
----
-105

query I rowsort
SELECT DISTINCT + 12 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 32 col0 FROM tab2 WHERE NOT - - col1 * + 31 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 2 BETWEEN + - 66 * + col2 AND - - col2
----

query I rowsort
SELECT DISTINCT 8 * - col2 FROM tab0
----
-376
-792
-80

query I rowsort
SELECT DISTINCT col1 * + col0 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT ALL - COUNT( - col2 ) DIV - MIN( col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - COUNT ( - col2 ) / - MIN ( col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT ALL - - col0 DIV col0 + col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - - col0 / col0 + col2 FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT ALL - 15 + - col0 AS col0 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8624
SELECT - 14 col0, - CAST( - + col2 AS DECIMAL ) + - col2 - - - 83 + - 56 / + col1 FROM tab2 AS cor0 WHERE 52 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8624
SELECT - 14 col0, - CAST ( - + col2 AS REAL ) + - col2 - - - 83 + - 56 / + col1 FROM tab2 AS cor0 WHERE 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT - CAST( - col1 AS SIGNED ) / - + col2 * CAST( NULL AS SIGNED ) * - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT - CAST ( - col1 AS INTEGER ) / - + col2 * CAST ( NULL AS INTEGER ) * - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 + 87 + 15 AS col0 FROM tab1 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT COUNT( * ) + + - ( - COUNT( * ) ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8627
SELECT DISTINCT COUNT ( * ) + + - ( - COUNT ( * ) ) col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - 87 + col0 FROM tab1
----
-2
-36
4

query I rowsort
SELECT - + col1 * - 78 * + + 7 + - + col2 FROM tab0 AS cor0
----
11456
44179
447

query I rowsort
SELECT + ( 91 ) * col1 * + col0 FROM tab0 AS cor0
----
110565
166257
8827

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8631
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + ( + col1 ) FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + ( + col1 ) FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - - + col2 <> NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col1 / - - 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 36 col1, 38 FROM tab0 AS cor0
----
36
38
36
38
36
38

query I rowsort
SELECT DISTINCT + ( 30 ) AS col2 FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT - - col2 * + - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT CAST( NULL AS SIGNED ) * col2 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT CAST ( NULL AS INTEGER ) * col2 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 AS col0 FROM tab2 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NOT NULL
----
-61
-61
-61

query II rowsort
SELECT DISTINCT 60, - col1 AS col2 FROM tab2
----
60
-51
60
-67
60
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL ( ( + + ( COUNT( * ) ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL ( ( + + ( COUNT ( * ) ) ) ) FROM tab0
----
3

query II rowsort
SELECT col1, 9 AS col2 FROM tab1
----
14
9
47
9
5
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT - col1 * + CAST( NULL AS SIGNED ) * + 93 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT - col1 * + CAST ( NULL AS INTEGER ) * + 93 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * + + col0 AS col1, col1 AS col0 FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL + 52 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + 52 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 30 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 54 * + col0 + 49 AND - + col2
----

query I rowsort
SELECT + 50 * - col2 * + col2 AS col2 FROM tab2 WHERE - 6 > + ( + ( - col2 ) )
----
-168200
-26450
-80000

query I rowsort
SELECT ALL 18 + + col2 AS col2 FROM tab1
----
114
77
86

query I rowsort
SELECT ( - col0 ) + - + ( - col1 ) AS col0 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col1 col1 FROM tab1 AS cor0
----
-23
10
19

query I rowsort
SELECT DISTINCT + + col0 * + 20 + + 42 * col2 * - col1 * + col0 AS col0 FROM tab0 cor0
----
-2398110
-401386
-765600

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT - - MAX( + 52 ) AS col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - - MAX ( + 52 ) AS col1 FROM tab1 AS cor0
----
52

query I rowsort
SELECT ( col2 ) FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 56 = + - col1 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 56 = + - col1 / - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT DISTINCT 38 DIV - + col1 + - col0 FROM tab1
----
-53
-91
-92

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT 38 / - + col1 + - col0 FROM tab1
----
-53
-91
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + 3 * - 92 * MIN( col1 ) AS col2 FROM tab2
----
-14076

skipif mysql # not compatible
query I rowsort label-8657
SELECT + 3 * - 92 * MIN ( col1 ) AS col2 FROM tab2
----
-14076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT - 90 + col2 + - col0 AS col1 FROM tab0 WHERE + col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8658
SELECT - 90 + col2 + - col0 AS col1 FROM tab0 WHERE + col2 > - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL - ( 21 ) DIV - ( col2 ) + - col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - ( 21 ) / - ( col2 ) + - col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT 2 DIV + - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT 2 / + - 80 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT SUM( + 65 ) col1 FROM tab1
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8661
SELECT SUM ( + 65 ) col1 FROM tab1
----
195

query I rowsort
SELECT - col1 - - 50 + col0 * col1 AS col1 FROM tab2
----
2345
4901
5008

query I rowsort
SELECT ALL + col1 + - + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT ALL + col1 - + CAST( + col2 AS SIGNED ) col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT ALL + col1 - + CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + 98 + + 69 * - + AVG ( + col2 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - COUNT( * ) * - 78 AS col0 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8667
SELECT - COUNT ( * ) * - 78 AS col0 FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL - - COUNT( * ) + 93 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
102

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - - COUNT ( * ) + 93 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT DISTINCT 9 DIV ( - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT 9 / ( - col2 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + + ( + MAX( ALL - col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8670
SELECT + + ( + MAX ( ALL - col2 ) ) FROM tab0 cor0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 86 ) + - col2 / - ( col0 ) <> + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT - 47 * + col2 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col1 + + - ( col1 ) AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8676
SELECT DISTINCT * FROM tab2 WHERE + 1 BETWEEN 19 AND + col0 + + + CAST( NULL AS SIGNED ) + - - 22
----

skipif mysql # not compatible
query III rowsort label-8676
SELECT DISTINCT * FROM tab2 WHERE + 1 BETWEEN 19 AND + col0 + + + CAST ( NULL AS INTEGER ) + - - 22
----

query I rowsort
SELECT ALL - 47 + - 56 FROM tab1
----
-103
-103
-103

query I rowsort
SELECT ALL - + 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL + 27 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT + CAST( - + MAX( + + 2 ) AS SIGNED ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8680
SELECT + CAST ( - + MAX ( + + 2 ) AS INTEGER ) FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8681
SELECT DISTINCT + col0 DIV + ( - CAST( + - col2 AS SIGNED ) ) + - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT + col0 / + ( - CAST ( + - col2 AS INTEGER ) ) + - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + COUNT( * ) - - 67 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COUNT ( * ) - - 67 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - MIN( - + 15 ) - + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - MIN ( - + 15 ) - + COUNT ( * ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL - + col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT - 87 - - CAST( NULL AS SIGNED ) + col2 * 7 / + 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 87 - - CAST ( NULL AS INTEGER ) + col2 * 7 / + 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT ALL 66 AS col0, ( + COUNT( * ) ) + 61 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
66
61

skipif mysql # not compatible
query II rowsort label-8688
SELECT ALL 66 AS col0, ( + COUNT ( * ) ) + 61 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
66
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 30 col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 + 77 * + col1 FROM tab2 AS cor0
----
3904
5101
5889

query I rowsort
SELECT + ( col1 ) + + - col0 AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL COUNT( * ) - - + 11 * - COUNT( * ) AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL COUNT ( * ) - - + 11 * - COUNT ( * ) AS col2 FROM tab1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8694
SELECT - col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT - col1 + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT COUNT( - 73 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT COUNT ( - 73 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT DISTINCT + COUNT( * ) DIV ( - + MIN( - - 20 ) ) * COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + COUNT ( * ) / ( - + MIN ( - - 20 ) ) * COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - 62 / + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - col1 * - - col2 * - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT - col0 * - - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT - col0 * - - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1 * - - ( + col2 ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT - 51, SUM( - ( - 33 ) ) AS col0 FROM tab0 AS cor0
----
-51
99

skipif mysql # not compatible
query II rowsort label-8705
SELECT - 51, SUM ( - ( - 33 ) ) AS col0 FROM tab0 AS cor0
----
-51
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT MIN( 58 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8706
SELECT MIN ( 58 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 2 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + ( - - SUM( col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + ( - - SUM ( col0 ) ) FROM tab1
----
227

query I rowsort
SELECT 62 + + + col2 AS col2 FROM tab2
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT + COUNT( 94 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8711
SELECT + COUNT ( 94 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * ( 83 ) col1 FROM tab2 WHERE NOT - 52 >= + + col1
----
4233
5561
6391

query I rowsort
SELECT col0 * + 19 FROM tab1 WHERE NULL IS NULL
----
1615
1729
969

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8716
SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 46 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN 15 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8719
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN 15 AND NULL )
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT 39 + + + COUNT( * ) col0 FROM tab0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8721
SELECT 39 + + + COUNT ( * ) col0 FROM tab0
----
42

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 53 - + 94 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col0 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - 10 - - 18 AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8727
SELECT + - COUNT( + + CAST( NULL AS SIGNED ) ) DIV + 1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT + - COUNT ( + + CAST ( NULL AS INTEGER ) ) / + 1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 70 * + 95 AS col2 FROM tab2 AS cor0
----
-6650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT - SUM( DISTINCT col2 ) + - - 90 - 82 DIV + - 58 AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - SUM ( DISTINCT col2 ) + - - 90 - 82 / + - 58 AS col2 FROM tab1
----
-132

query I rowsort
SELECT 28 * - 50 FROM tab2
----
-1400
-1400
-1400

query I rowsort
SELECT DISTINCT + col1 * - + 45 FROM tab0
----
-3645
-45
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - col0 - 37 col1 FROM tab2
----
-23
-83
-40
-101
-58
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + COUNT( - col0 ) * + + 28 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8733
SELECT + COUNT ( - col0 ) * + + 28 AS col0 FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT - col1 * + - col0 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 + + 80 + - col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-8734
SELECT - col1 * + - col0 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 + + 80 + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT COUNT( * ) * ( + 57 ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT COUNT ( * ) * ( + 57 ) FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - COUNT( * ) * - - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-675

skipif mysql # not compatible
query I rowsort label-8736
SELECT - COUNT ( * ) * - - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-675

query I rowsort
SELECT DISTINCT + - 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL 36 * + + COUNT( * ) + + - MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 36 * + + COUNT ( * ) + + - MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + - 83 * 72 FROM tab0 AS cor0
----
-5976

query I rowsort
SELECT ALL ( - 83 ) * - + col1 * - 75 + + - col2 FROM tab0 AS cor0
----
-130735
-504272
-6324

query I rowsort
SELECT DISTINCT - col1 * - col0 * 34 FROM tab2 AS cor0
----
167552
170850
79764

query I rowsort
SELECT 89 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + + col1 AS col2 FROM tab1 cor0 WHERE ( NULL NOT BETWEEN NULL AND + ( - col0 ) )
----

query I rowsort
SELECT 84 AS col0 FROM tab0 cor0 WHERE + 66 * + col1 IS NOT NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT COUNT( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8746
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 17 + col1 AS col1 FROM tab2
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8748
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8748
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT ALL + ( 35 ) AS col1 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT col0 + - 4 * - 92 * - col1 FROM tab2 AS cor0
----
-18722
-24581
-28272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8751
SELECT + - ( + col2 ) + + 1 DIV CAST( + 62 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8751
SELECT + - ( + col2 ) + + 1 / CAST ( + 62 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT DISTINCT col1 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT col1 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 56 * + + 4 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 54caaee3b90247a188f8306021229f10

query I rowsort
SELECT ALL 46 * 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3106eeb7b1251f3b86a249ce7c2dee84

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < 90
----

query I rowsort
SELECT DISTINCT + - 53 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-53

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - + col2 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT ALL + - 39 + + - 62 DIV - 74 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + - 39 + + - 62 / - 74 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= 24 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + COUNT( * ) * - - 91 AS col2 FROM tab1 cor0
----
273

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + COUNT ( * ) * - - 91 AS col2 FROM tab1 cor0
----
273

query I rowsort
SELECT DISTINCT ( + - 76 ) FROM tab0
----
-76

query II rowsort
SELECT + col1, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT 63 * + - col0 FROM tab2
----
-2898
-4032
-4725

query II rowsort
SELECT + 60, + 29 AS col0 FROM tab0
----
60
29
60
29
60
29

onlyif mysql # DIV for integer division: 
query II rowsort label-8766
SELECT - col0, col0 DIV 45 + - 26 AS col1 FROM tab2
----
-46
-25
-64
-25
-75
-25

skipif mysql # not compatible
query II rowsort label-8766
SELECT - col0, col0 / 45 + - 26 AS col1 FROM tab2
----
-46
-25
-64
-25
-75
-25

query I rowsort
SELECT - + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT DISTINCT - col2 * col1 DIV 91 DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - col2 * col1 / 91 / col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT + col1 + + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8769
SELECT + col1 + + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + COUNT( DISTINCT - 76 ) + - 49 AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8771
SELECT + COUNT ( DISTINCT - 76 ) + - 49 AS col0 FROM tab2
----
-48

query I rowsort
SELECT 29 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + + col2 - + 60 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + - col1 FROM tab0 WHERE ( col0 IS NOT NULL )
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT + col1 / - col2 * - col2 FROM tab2 WHERE NULL < + col0 * col2 + - 51 * 12 + - - CAST( NULL AS SIGNED ) + 24
----

skipif mysql # not compatible
query I rowsort label-8775
SELECT + col1 / - col2 * - col2 FROM tab2 WHERE NULL < + col0 * col2 + - 51 * 12 + - - CAST ( NULL AS INTEGER ) + 24
----

query II rowsort
SELECT DISTINCT 74 + - col2, + col1 AS col0 FROM tab1 AS cor0
----
-22
14
15
5
6
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0 WHERE 64 + 56 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + - col1 * col1 + + - 3 - - col1 - + + 76 * ( + col0 ) + - 90 AS col1 FROM tab0 AS cor0
----
-11094
-309519
-7563

query I rowsort
SELECT ALL ( + 2 ) FROM tab0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE ( 19 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( + + 13 ) FROM tab1 cor0
----
13
13
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col0 AS col1, 64 FROM tab0 AS cor0
----
15
64
87
64
97
64

query I rowsort
SELECT ( + col1 ) * + col0 AS col1 FROM tab1 cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab1
----
10

query I rowsort
SELECT ALL ( - col2 ) * + 0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT + + ( - MAX( 39 ) ) FROM tab0 WHERE NOT NULL <> 19 * col2 / + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + + ( - MAX ( 39 ) ) FROM tab0 WHERE NOT NULL <> 19 * col2 / + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - MAX( DISTINCT - + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - MAX ( DISTINCT - + col0 ) FROM tab2
----
46

query I rowsort
SELECT - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28
-28
-28

query II rowsort
SELECT DISTINCT - 68 AS col0, + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 1 * - col2 + + 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - 48 FROM tab2, tab0 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NOT + 33 >= + 87
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT COUNT( * ) + + 20 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT COUNT ( * ) + + 20 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 94 AS col2 FROM tab0
----
-47
-84
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 <> NULL
----

query I rowsort
SELECT + 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - + SUM( ALL - - ( + col2 ) ) * - 22 FROM tab1 cor0
----
4906

skipif mysql # not compatible
query I rowsort label-8801
SELECT - + SUM ( ALL - - ( + col2 ) ) * - 22 FROM tab1 cor0
----
4906

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + col1 + 64 * - col2 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + 80 * COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 80 * COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-720

onlyif mysql # DIV for integer division: 
query II rowsort label-8804
SELECT DISTINCT + col1 AS col2, + col1 DIV - - col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
51
2
67
1
77
1

skipif mysql # not compatible
query II rowsort label-8804
SELECT DISTINCT + col1 AS col2, + col1 / - - col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
51
2
67
1
77
1

query I rowsort
SELECT + + col0 * 40 * + col1 + + 93 AS col0 FROM tab2 AS cor0
----
197213
201093
93933

query I rowsort
SELECT + col1 * col1 * + - col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT - + ( + + 25 ) FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8808
SELECT + col1 col2, + col1 - - CAST( NULL AS SIGNED ) + + col0 + - + 72 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8808
SELECT + col1 col2, + col1 - - CAST ( NULL AS INTEGER ) + + col0 + - + 72 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - 84 col1 FROM tab2
----
26
44
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT CAST( NULL AS SIGNED ) + - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT CAST ( NULL AS INTEGER ) + - - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8811
SELECT ALL col0 DIV - CAST( + + 79 AS SIGNED ) + - col0 AS col2 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL col0 / - CAST ( + + 79 AS INTEGER ) + - col0 AS col2 FROM tab1
----
-51
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT - COUNT( * ) + + - 24 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - COUNT ( * ) + + - 24 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT col1 - - + 13 DIV - ( - + 55 ) * - + col0 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT col1 - - + 13 / - ( - + 55 ) * - + col0 AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - + - col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - + col0 * + - col0 + - col0 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT DISTINCT col2 + col2 * 51 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT DISTINCT - - col0 * - - col2 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT - 80 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL 89 * + col2 + - + 95 FROM tab2
----
1952
3465
5067

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT DISTINCT 33 DIV - + 39 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 33 / - + 39 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 93 col0 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT + ( 57 ) FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT - MIN( DISTINCT + 25 ) AS col1 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - MIN ( DISTINCT + 25 ) AS col1 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab2 AS cor0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( + - col2 ) FROM tab1 WHERE NOT 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( + - col2 ) FROM tab1 WHERE NOT 70 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT ( - ( - MIN( - + col1 ) ) ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8830
SELECT DISTINCT ( - ( - MIN ( - + col1 ) ) ) col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - MAX( 69 ) AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8831
SELECT - MAX ( 69 ) AS col0 FROM tab2
----
-69

query II rowsort
SELECT + col2, + ( col0 ) FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL ( + ( - SUM( - col1 ) ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL ( + ( - SUM ( - col1 ) ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT 10 * ( - col2 ) FROM tab2
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL - COUNT( * ) + COUNT( * ) * + 82 FROM tab2 WHERE NOT ( col0 ) NOT IN ( 14 )
----
0

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - COUNT ( * ) + COUNT ( * ) * + 82 FROM tab2 WHERE NOT ( col0 ) NOT IN ( 14 )
----
0

query I rowsort
SELECT col1 * + col0 - 7 AS col0 FROM tab0
----
1208
1820
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) <> - col0
----

query I rowsort
SELECT 33 - + 93 AS col0 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT ALL + ( - col1 ) * 54 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT ALL 0 * + 91 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT - col1 * + CAST( + col1 AS SIGNED ) + - col2 FROM tab2 WHERE NOT - ( 18 ) IS NULL
----
-2624
-4547
-5969

skipif mysql # not compatible
query I rowsort label-8841
SELECT - col1 * + CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 WHERE NOT - ( 18 ) IS NULL
----
-2624
-4547
-5969

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - COUNT( * ) FROM tab2 WHERE 7 IN ( col2 * - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-8842
SELECT - COUNT ( * ) FROM tab2 WHERE 7 IN ( col2 * - 3 )
----
0

query I rowsort
SELECT ALL + ( + 88 ) * - col0 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT col0 + + col0 DIV + ( + col0 ) FROM tab0 WHERE NOT col1 - - 33 IS NULL
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8844
SELECT col0 + + col0 / + ( + col0 ) FROM tab0 WHERE NOT col1 - - 33 IS NULL
----
16
88
98

query I rowsort
SELECT ALL + col2 - + 67 AS col1 FROM tab2
----
-27
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + COUNT( * ) * 34 AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-8846
SELECT + COUNT ( * ) * 34 AS col2 FROM tab2
----
102

query I rowsort
SELECT + col1 * 9 AS col1 FROM tab0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT - MIN( ALL + 14 ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - MIN ( ALL + 14 ) AS col2 FROM tab1
----
-14

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 + 1 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT MAX( ALL - 18 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT MAX ( ALL - 18 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 42 * col0 AS col0 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL + col0 / col2 FROM tab0 WHERE NOT ( NULL ) IN ( col0 - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8855
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8855
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT - AVG ( col0 ) FROM tab2 WHERE NOT NULL < col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT SUM( + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8858
SELECT SUM ( + col1 ) AS col0 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT ALL col1 DIV + 35 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL col1 / + 35 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + col0 <> ( - ( 78 ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + COUNT( * ) - 10 AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + COUNT ( * ) - 10 AS col1 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - COUNT( * ) * 33 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - COUNT ( * ) * 33 FROM tab0 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + col1 + col2 NOT BETWEEN NULL AND - 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT + col1 DIV 39 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8864
SELECT + col1 / 39 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT - CAST( NULL AS SIGNED ) / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT - CAST ( NULL AS INTEGER ) / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( + col0 ) FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8867
SELECT - ( 80 ) + - col2 FROM tab2 WHERE NOT col0 * CAST( col2 AS DECIMAL ) + col2 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-8867
SELECT - ( 80 ) + - col2 FROM tab2 WHERE NOT col0 * CAST ( col2 AS REAL ) + col2 NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + - 60 ) NOT BETWEEN NULL AND 71 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 + 44 * 52 col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to f8658f4e9e141996fae1008dc144fe9f

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + COUNT( ALL 82 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + COUNT ( ALL 82 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 62 * col2 FROM tab0 cor0
----
2914
6138
620

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( ( 46 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * 48 FROM tab2 cor0
----
2208
3072
3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT - + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8874
SELECT - + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > 99
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT ALL - + 79 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
3
79

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - + 79 / - col1 AS col0 FROM tab0 AS cor0
----
0
3
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 48 AND NULL
----

query I rowsort
SELECT DISTINCT - - 82 * + 77 FROM tab1 AS cor0
----
6314

query I rowsort
SELECT col1 - - col1 AS col2 FROM tab1 WHERE NOT NULL <> ( + col1 / + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT + 75 DIV + col1 AS col1 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-8881
SELECT + 75 / + col1 AS col1 FROM tab0
----
0
3
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT ALL + COUNT( * ) DIV - MAX( + 89 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + COUNT ( * ) / - MAX ( + 89 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 89 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 89 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT SUM( ALL 40 ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-8884
SELECT SUM ( ALL 40 ) FROM tab1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT DISTINCT CAST( ( COUNT( 13 ) ) AS SIGNED ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8885
SELECT DISTINCT CAST ( ( COUNT ( 13 ) ) AS INTEGER ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col1 FROM tab0
----
25
25
25

query I rowsort
SELECT - col1 * + ( + col0 ) + + col0 * - col2 FROM tab1 WHERE NOT + col1 IN ( + col1 * + col2 + - ( col0 - + col0 ) )
----
-10465
-5440
-5610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT CAST( NULL AS SIGNED ) * 77 FROM tab0 WHERE NOT - col2 / - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT CAST ( NULL AS INTEGER ) * 77 FROM tab0 WHERE NOT - col2 / - col1 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col0 FROM tab2 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL - SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL - SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 13 * - 92 AS col0 FROM tab2 AS cor0
----
1196
1196
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 13 + + + SUM( DISTINCT + col1 ) FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8892
SELECT 13 + + + SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col2 FROM tab0 AS cor0 WHERE + ( + 34 ) NOT BETWEEN ( + col2 ) AND ( col0 )
----
96
98

query I rowsort
SELECT ALL - col2 / 74 FROM tab2 AS cor0 WHERE col0 / col1 - - col2 IS NULL
----

query I rowsort
SELECT 85 + col0 - + col1 * + col0 FROM tab0 AS cor0
----
-1115
-1655
85

query I rowsort
SELECT col1 + + 7 AS col0 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT DISTINCT 43 + ( + - 50 ) FROM tab0
----
-7

query I rowsort
SELECT - ( + 26 ) - col0 AS col0 FROM tab0 AS cor0 WHERE ( + ( - - col0 ) ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 * - 85 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + - COUNT( * ) * + - SUM( DISTINCT - col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-8901
SELECT + - COUNT ( * ) * + - SUM ( DISTINCT - col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1404

query I rowsort
SELECT + 52 - + col1 * 27 FROM tab2 AS cor0
----
-1325
-1757
-2027

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 - - col2 AND - 68
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 41 ) IS NOT NULL OR NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab0 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 28 + COUNT( * ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 28 + COUNT ( * ) FROM tab2 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 97 * - + col0 - 97 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + col2 col0 FROM tab2 WHERE NULL IS NULL AND ( - col1 ) >= col0
----

query I rowsort
SELECT DISTINCT col1 + 83 * 80 * + col2 * + 40 AS col1 FROM tab0
----
12483281
26294401
2656021

query III rowsort
SELECT * FROM tab0 WHERE - 40 IS NULL
----

query I rowsort
SELECT ALL 3 + + - 27 * - col0 AS col1 FROM tab1
----
1380
2298
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT COUNT( * ) * + 29 AS col2 FROM tab0 WHERE ( - 1 * + 48 * - col0 + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT COUNT ( * ) * + 29 AS col2 FROM tab0 WHERE ( - 1 * + 48 * - col0 + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT DISTINCT - COUNT( * ) + - + 0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - COUNT ( * ) + - + 0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL col2 DIV + col1 - - - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL col2 / + col1 - - - col0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + col2 + - + 1 * - ( - col2 ) * 46 AS col0 FROM tab0
----
-2115
-4455
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 - + col1 col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 = col0 + col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 93 NOT IN ( + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 93 NOT IN ( + - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT ( - col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 23 + - col1 BETWEEN ( col1 ) AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 23 + - col1 BETWEEN ( col1 ) AND NULL
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL CAST( - CAST( + + 32 AS SIGNED ) AS SIGNED ) * + col1 AS col1 FROM tab0
----
-2592
-32
-672

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL CAST ( - CAST ( + + 32 AS INTEGER ) AS INTEGER ) * + col1 AS col1 FROM tab0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT 67 * - SUM( DISTINCT - 4 ) AS col0 FROM tab2
----
268

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 67 * - SUM ( DISTINCT - 4 ) AS col0 FROM tab2
----
268

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT + ( + + 59 ) DIV - 64 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT + ( + + 59 ) / - 64 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col1, + col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col0 - 43 AS col0 FROM tab1 cor0 WHERE + 7 - + ( 43 ) * + + col1 NOT IN ( ( col0 ) + + 27 )
----
42
48
8

query II rowsort
SELECT ALL + + col2, ( col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
23
69
40
104
58
133

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 94 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - MAX( 43 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8928
SELECT - MAX ( 43 ) FROM tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( - 13 ) + - col1 col1 FROM tab2 AS cor0
----
547
755
908

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8930
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 - - col0 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT ALL - - 8 DIV + 40 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - - 8 / + 40 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 25 * - col2 * 21 + col2 + + col2 AS col0 FROM tab1
----
-30857
-35564
-50208

query I rowsort
SELECT + col2 + - col1 FROM tab1 WHERE NOT ( 44 + 83 / 53 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT - COUNT( * ) * + 11 FROM tab0, tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - COUNT ( * ) * + 11 FROM tab0, tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT ALL 56 AS col0, + COUNT( * ) FROM tab1
----
56
3

skipif mysql # not compatible
query II rowsort label-8935
SELECT ALL 56 AS col0, + COUNT ( * ) FROM tab1
----
56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + ( ( + COUNT( ALL + - col1 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + ( ( + COUNT ( ALL + - col1 ) ) ) FROM tab1
----
3

query I rowsort
SELECT - col2 * - col1 * 69 AS col2 FROM tab1 AS cor0
----
20355
220524
92736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8938
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-8938
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ( + 41 ) + + col0 AS col2 FROM tab0
----
128
138
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8940
SELECT ALL - ( + CAST( + - col0 AS SIGNED ) ) + - col2 + + 55 AS col1, col1 FROM tab0
----
132
21
23
81
53
1

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL - ( + CAST ( + - col0 AS INTEGER ) ) + - col2 + + 55 AS col1, col1 FROM tab0
----
132
21
23
81
53
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT DISTINCT + + 45 DIV - col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + + 45 / - col0 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT - - 44 + + 11 * 65 * 32 + - col2 AS col0 FROM tab0 AS cor0
----
22825
22877
22914

query I rowsort
SELECT ALL - - 48 - 89 AS col2 FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE ( ( NULL ) > ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT DISTINCT 35 DIV + + col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT 35 / + + col1 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + ( - COUNT( * ) ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8947
SELECT ALL + ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + - MAX( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8948
SELECT + - MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col0 * - + 49 AS col1 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT 18 DIV - 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT 18 / - 81 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + 0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 4 col2 FROM tab2
----
51
4
67
4
77
4

query I rowsort
SELECT ALL + 54 - - col0 FROM tab1
----
105
139
145

query I rowsort
SELECT - col1 - + 25 AS col2 FROM tab0
----
-106
-26
-46

query I rowsort
SELECT ALL 73 * - col0 + - 26 FROM tab0 WHERE - col2 IS NOT NULL
----
-1121
-6377
-7107

query II rowsort
SELECT ALL + col0 AS col1, col2 FROM tab2 WHERE - - 19 IS NOT NULL
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8957
SELECT ALL + + COUNT( * ) AS col0, COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8957
SELECT ALL + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 cor0
----
3
3

query I rowsort
SELECT 6 FROM tab0 AS cor0 WHERE NOT ( - 84 ) IS NULL
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab2, tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8962
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - MIN( ALL - 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8963
SELECT - MIN ( ALL - 6 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL - + COUNT( + + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - + COUNT ( + + col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL <> col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8966
SELECT + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL - CAST( - + 5 AS SIGNED ) * + col0 FROM tab0
----
435
485
75

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - CAST ( - + 5 AS INTEGER ) * + col0 FROM tab0
----
435
485
75

query I rowsort
SELECT ALL - 27 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 32 FROM tab1
----
-1632
-2720
-2912

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NOT 8 / + - 34 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT ALL + + col0 DIV + 45 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + + col0 / + 45 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col2 * + col0 - - 2 + - + col2 AS col0 FROM tab1 AS cor0
----
4802
4958
6122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - - 42 * + + col2 - + col0 + + col2 AS col2 FROM tab2 AS cor0
----
1656
2419
943

query II rowsort
SELECT DISTINCT - 49 AS col2, - 56 AS col1 FROM tab1 cor0
----
-49
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + + 67 - 22 - COUNT( * ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8979
SELECT + + 67 - 22 - COUNT ( * ) FROM tab1 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT ( NOT NULL <> - - col0 )
----

query I rowsort
SELECT - col1 - + 55 FROM tab2 AS cor0
----
-106
-122
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - 47 * COUNT( * ) + ( + 39 ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - 47 * COUNT ( * ) + ( + 39 ) AS col0 FROM tab2 AS cor0
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 col1, col2 AS col1 FROM tab2 AS cor0
----
80
23
80
40
80
58

query I rowsort
SELECT ALL - col0 * ( col2 ) AS col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT CAST( + - COUNT( DISTINCT + col2 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT CAST ( + - COUNT ( DISTINCT + col2 ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT + - 54 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-8987
SELECT + - 54 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-54
3

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 74 + - - col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL 47 * col0 * - + col2 FROM tab2
----
-120320
-204450
-49726

query III rowsort
SELECT * FROM tab2 WHERE - col1 + ( + ( - 52 ) ) <= - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * 9 AS col1 FROM tab0
----
-189
-729
-9

query I rowsort
SELECT DISTINCT 31 * - 12 FROM tab1
----
-372

query I rowsort
SELECT ALL ( + 20 ) AS col1 FROM tab2
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT SUM( - CAST( - + 1 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8995
SELECT SUM ( - CAST ( - + 1 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT col1 * - + col2 * + col0 * + - 4 FROM tab0
----
228420
38412
73080

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT DISTINCT - COUNT( DISTINCT - + 91 ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT - COUNT ( DISTINCT - + 91 ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1
3

query I rowsort
SELECT 32 + col1 FROM tab2
----
109
83
99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL <> ( + 96 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + 85 < + - col0
----

query I rowsort
SELECT + col2 + - 20 AS col0 FROM tab2
----
20
3
38

query I rowsort
SELECT ALL + col2 + 87 AS col2 FROM tab0
----
134
186
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT - 65 + 28 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE - + 6 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL 19 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE + col2 / + 52 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + MAX( - 9 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + MAX ( - 9 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - + col0 * - 71 - col2 + + col0 - col2 * - + 4 FROM tab2 cor0
----
3381
4728
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT + MAX( + + 4 ) FROM tab2 AS cor0 WHERE + ( 47 ) - col1 + - 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + MAX ( + + 4 ) FROM tab2 AS cor0 WHERE + ( 47 ) - col1 + - 50 IS NULL
----
NULL

query I rowsort
SELECT + 62 * + col0 * + - col1 AS col1 FROM tab0 AS cor0
----
-113274
-6014
-75330

query I rowsort
SELECT 11 * - 91 * - 91 AS col1 FROM tab1
----
91091
91091
91091

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 13 + col0 NOT BETWEEN - ( - col2 ) AND + 32 * - 20
----

query I rowsort
SELECT - 38 * - + col1 AS col1 FROM tab0
----
3078
38
798

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9015
SELECT DISTINCT col1 * col0 AS col1, + CAST( + CAST( - + 17 AS SIGNED ) AS SIGNED ) + col2 col1 FROM tab2
----
2346
6
4928
23
5025
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9015
SELECT DISTINCT col1 * col0 AS col1, + CAST ( + CAST ( - + 17 AS INTEGER ) AS INTEGER ) + col2 col1 FROM tab2
----
2346
6
4928
23
5025
41

query I rowsort
SELECT col1 * + - col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT + col1 / CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( + - col1 )
----

skipif mysql # not compatible
query I rowsort label-9017
SELECT + col1 / CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( + - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 89
----

query I rowsort
SELECT ALL + 94 AS col0 FROM tab1 AS cor0 WHERE ( - - ( + - ( + col1 ) ) ) BETWEEN - 35 AND - col1 * + col0 * - col1 + col2 * + col1 + - + col1
----
94
94

query II rowsort
SELECT + 4 * + - 40 AS col1, + 23 + col1 AS col1 FROM tab2
----
-160
100
-160
74
-160
90

query I rowsort
SELECT ALL + 44 FROM tab0 WHERE NOT NULL >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - COUNT( DISTINCT + col2 ) FROM tab1 cor0 WHERE - col0 + + col2 + + + col1 + - - col1 * - - col1 * - 44 = - - 70 + + - col2
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( DISTINCT + col2 ) FROM tab1 cor0 WHERE - col0 + + col2 + + + col1 + - - col1 * - - col1 * - 44 = - - 70 + + - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE - 33 / + col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9025
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE - 33 / + col0 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9026
SELECT - 61 DIV + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 61 / + COUNT ( * ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT col0 + - + col2 AS col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 70 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 70 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + col0 * + col2 * - col1 + + - 73 > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9030
SELECT + + 74 DIV + col0 + - + col0 + col0, col2 + - - 44 AS col0 FROM tab0 AS cor0
----
0
143
0
54
4
91

skipif mysql # not compatible
query II rowsort label-9030
SELECT + + 74 / + col0 + - + col0 + col0, col2 + - - 44 AS col0 FROM tab0 AS cor0
----
0
143
0
54
4
91

query I rowsort
SELECT - 98 * - + 95 FROM tab2 AS cor0
----
9310
9310
9310

query I rowsort
SELECT DISTINCT - col0 * - col2 + + + col0 FROM tab1 AS cor0 WHERE NOT + 82 IS NULL
----
4947
5100
6279

query I rowsort
SELECT 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT + col1 - + + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT COUNT( * ) - COUNT( * ) * + 34 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * + 34 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT - COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL + MAX( ALL + 86 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + MAX ( ALL + 86 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
258

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT COUNT( + + ( + - 97 ) ) * + 73 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9040
SELECT COUNT ( + + ( + - 97 ) ) * + 73 FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 72 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 72 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT + SUM( - col0 ) + - ( - ( + + COUNT( * ) ) ) AS col2 FROM tab0 WHERE NOT + + 6 * + + 74 IS NULL
----
-196

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT + SUM ( - col0 ) + - ( - ( + + COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NOT + + 6 * + + 74 IS NULL
----
-196

query I rowsort
SELECT DISTINCT + col0 * + ( + ( - col0 ) ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT + 17, col1 FROM tab0
----
17
1
17
21
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT SUM( DISTINCT col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9046
SELECT SUM ( DISTINCT col2 ) col0 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-9047
SELECT - + col1, col2 DIV - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

skipif mysql # not compatible
query II rowsort label-9047
SELECT - + col1, col2 / - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL MAX( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL MAX ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + ( - col0 ) * - col2 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + col1 / col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col1 + - 82 AS col0 FROM tab0 AS cor0
----
-103
-163
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT COUNT( * ) * - - 64 col2 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT DISTINCT COUNT ( * ) * - - 64 col2 FROM tab0 AS cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL - COUNT( * ) - - - 18 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
-18

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - COUNT ( * ) - - - 18 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
-18

query I rowsort
SELECT ALL + 66 + - col1 AS col1 FROM tab0 AS cor0
----
-15
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL - MIN( - 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - MIN ( - 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT 79 DIV + col2 AS col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-9058
SELECT 79 / + col2 AS col0 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT SUM( ALL + - 7 ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT SUM ( ALL + - 7 ) AS col2 FROM tab0
----
-21

query II rowsort
SELECT ALL + 80 + col2 * col0 AS col0, 1 + - + 27 AS col0 FROM tab2
----
1138
-26
2640
-26
4430
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + COUNT( - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9061
SELECT + COUNT ( - - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + COUNT( DISTINCT - col0 ) AS col2 FROM tab2 WHERE NULL NOT IN ( col1 * + 19 + - 91 * + - col1, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 WHERE NULL NOT IN ( col1 * + 19 + - 91 * + - col1, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT DISTINCT - + col0 * + col0 DIV + col1 col1 FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND col1
----
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9064
SELECT DISTINCT - + col0 * + col0 / + col1 col1 FROM tab0 WHERE col2 NOT BETWEEN ( NULL ) AND col1
----
-9409

query I rowsort
SELECT DISTINCT - 5 - 85 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT + + 10 ) - - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT + + 10 ) - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9067
SELECT - CAST( NULL AS SIGNED ) + 76, 31 AS col0 FROM tab1 AS cor0
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
query II rowsort label-9067
SELECT - CAST ( NULL AS INTEGER ) + 76, 31 AS col0 FROM tab1 AS cor0
----
NULL
31
NULL
31
NULL
31

query III rowsort
SELECT * FROM tab0 WHERE - - col2 IN ( - + col1 * - + 21 + + ( + 5 ) )
----

query I rowsort
SELECT ALL - col2 + + + col0 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT DISTINCT - 4 DIV + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - 4 / + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT COUNT( DISTINCT ( - - 90 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9071
SELECT COUNT ( DISTINCT ( - - 90 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT - - col2 * - 20 FROM tab1 AS cor0 WHERE NULL <= - col2
----

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
62

query I rowsort
SELECT DISTINCT 17 * col0 * - - col0 FROM tab0 AS cor0
----
128673
159953
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * 9 col2 FROM tab0 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ( MIN( DISTINCT - + col2 ) ) * COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-9076
SELECT ( MIN ( DISTINCT - + col2 ) ) * COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
891

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT 92 DIV col0 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9077
SELECT 92 / col0 AS col1 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT 8 * + COUNT( * ) DIV - MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT 8 * + COUNT ( * ) / - MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + ( + 13 ) FROM tab2
----
13
13
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9080
SELECT ALL - + ( col2 ), - col2 * - ( col2 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + 19 AND + + 54 * - 38
----

skipif mysql # not compatible
query II rowsort label-9080
SELECT ALL - + ( col2 ), - col2 * - ( col2 ) * CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + 19 AND + + 54 * - 38
----

query II rowsort
SELECT - 85, - col0 AS col2 FROM tab0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT DISTINCT - - 6 * - + col1 + 24 AS col0 FROM tab0 cor0
----
-102
-462
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT SUM( ALL + 30 ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9083
SELECT SUM ( ALL + 30 ) AS col1 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + 67 + col2 FROM tab2 AS cor0
----
107
125
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT + 3 * 83 + - 37 col2, - COUNT( * ) FROM tab0
----
212
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9085
SELECT + 3 * 83 + - 37 col2, - COUNT ( * ) FROM tab0
----
212
-3

query I rowsort
SELECT DISTINCT - + col1 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9087
SELECT DISTINCT - 47 DIV + ( + COUNT( * ) ) + CAST( 25 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - 47 / + ( + COUNT ( * ) ) + CAST ( 25 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + col2 * + + 1 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT - + col1 DIV - - 18 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT - + col1 / - - 18 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT DISTINCT - 78 DIV + col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - 78 / + col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9091
SELECT + ( + 84 ) * - ( + - MIN( + + 18 ) ) DIV - + 18 + - 28 FROM tab1 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-9091
SELECT + ( + 84 ) * - ( + - MIN ( + + 18 ) ) / - + 18 + - 28 FROM tab1 AS cor0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT COUNT( * ) * 73 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-9092
SELECT COUNT ( * ) * 73 FROM tab2 cor0
----
219

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - 94 >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9095
SELECT - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE col1 * + + 67 * - col2 + + ( col0 ) / + col1 IS NULL
----

query I rowsort
SELECT col2 * + + col2 + - - col0 AS col1 FROM tab0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 71 * + 26 + - - col1 AS col2 FROM tab2
----
1897
1913
1923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * - 23 + col0 col1 FROM tab2
----
-1765
-1776
-1794

query I rowsort
SELECT - 3 + col1 FROM tab0
----
-2
18
78

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 1 = NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL BETWEEN - - col0 AND - - 72 + + col1
----

query I rowsort
SELECT + 69 + + ( - col2 ) - - - 31 AS col0 FROM tab0
----
-61
-9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT + - ( + + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + - ( + + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + col1 * + col0 + col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9107
SELECT DISTINCT - col2 - + CAST( NULL AS SIGNED ) col2, 97 + + 97 AS col1 FROM tab1 AS cor0
----
NULL
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9107
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) col2, 97 + + 97 AS col1 FROM tab1 AS cor0
----
NULL
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT ALL - 99 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - + col1 > + + CAST( + 10 AS SIGNED ) * - + 84 * - 27
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - 99 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - + col1 > + + CAST ( + 10 AS INTEGER ) * - + 84 * - 27
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL + MAX( - col0 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + MAX ( - col0 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT MAX( ALL + 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9110
SELECT MAX ( ALL + 32 ) FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT - CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9111
SELECT - CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
19
19
19

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) < - col1
----

query I rowsort
SELECT DISTINCT + - 89 FROM tab1 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 ) >= NULL
----

query I rowsort
SELECT col0 + + 33 FROM tab1 AS cor0 WHERE NOT ( ( + 44 ) * - - 96 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT SUM( ALL + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT SUM ( ALL + - col0 ) FROM tab0
----
-199

query III rowsort
SELECT * FROM tab2 WHERE NOT 52 * 17 + + ( col1 ) + + 98 * 22 + - col0 - col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT + col2 * col0 DIV col2 * - col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9118
SELECT + col2 * col0 / col2 * - col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9119
SELECT DISTINCT col0 col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9119
SELECT DISTINCT col0 col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 87 * - - col0 FROM tab0
----
1305
7569
8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT ALL col1 * + + col2 * + col2 * - CAST( + col0 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-1479510
-19776939
-6580275

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL col1 * + + col2 * + col2 * - CAST ( + col0 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-1479510
-19776939
-6580275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + - ( ( 93 ) ) col2 FROM tab2
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT ALL - ( ( 84 ) ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - ( ( 84 ) ) / + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 5 IS NOT NULL
----

query I rowsort
SELECT ALL ( col0 ) - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * + 8 + - - col0 * col1 FROM tab1 AS cor0
----
-47
-54
3733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 - - col2 * + col1 col0 FROM tab0 cor0
----
197
318
3903

query I rowsort
SELECT + + ( - ( ( - col1 ) ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL 66 + - - ( - - 3 ) FROM tab1 cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT MIN( 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9132
SELECT MIN ( 78 ) AS col0 FROM tab0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9133
SELECT ALL col1 + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL col1 + + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 + col0 + + col2 AS col2 FROM tab0
----
132
231
97

query I rowsort
SELECT DISTINCT + 34 * 97 - + col0 + + col2 FROM tab2
----
3274
3275
3281

query I rowsort
SELECT DISTINCT + 84 FROM tab2 WHERE NULL IS NULL
----
84

query II rowsort
SELECT 1 - + 53 * - 15, + 73 + ( - 13 ) AS col0 FROM tab2
----
796
60
796
60
796
60

query II rowsort
SELECT - + col1 AS col2, + col1 AS col1 FROM tab2 WHERE + 15 * col1 < - + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL + COUNT( ALL col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + COUNT ( ALL col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 * - + col1 * - 26 FROM tab0 cor0
----
11466
170586
26

query I rowsort
SELECT + 8 * - col1 * - col0 * + 5 FROM tab0 AS cor0
----
3880
48600
73080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9142
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col1 FROM tab0 AS cor0
----
-17
-17
-17

query II rowsort
SELECT DISTINCT col0, - col2 + - 31 FROM tab0
----
15
-78
87
-41
97
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT + 13 DIV - MAX( - + 79 ) * MAX( 98 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT + 13 / - MAX ( - + 79 ) * MAX ( 98 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 50 * col0 + + col0 * 15 * - col2 = NULL
----

query I rowsort
SELECT col1 * - 71 * ( - - 93 ) * + col2 - + - 46 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - + 22 + - - col0 IS NULL
----
-1947839
-21103142
-8874386

query II rowsort
SELECT - 84, col2 AS col1 FROM tab1 AS cor0
----
-84
59
-84
68
-84
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT + + ( SUM( - CAST( + 71 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9150
SELECT + + ( SUM ( - CAST ( + 71 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9152
SELECT ALL col2, 71 DIV - col2 AS col1 FROM tab2 AS cor0
----
23
-3
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-9152
SELECT ALL col2, 71 / - col2 AS col1 FROM tab2 AS cor0
----
23
-3
40
-1
58
-1

query II rowsort
SELECT DISTINCT col0, ( + col0 ) + - col2 FROM tab2 cor0
----
46
23
64
24
75
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT + + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT ALL - + 61 AS col0, COUNT( * ) + - + 14 FROM tab1 AS cor0
----
-61
-11

skipif mysql # not compatible
query II rowsort label-9155
SELECT ALL - + 61 AS col0, COUNT ( * ) + - + 14 FROM tab1 AS cor0
----
-61
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9156
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - 95 ) + - CAST( NULL AS SIGNED ) * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9156
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - 95 ) + - CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT - 28 + + - COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - 28 + + - COUNT ( * ) FROM tab1
----
-31

query I rowsort
SELECT ALL - col2 * + 56 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT + col1 + - 94 AS col1 FROM tab2 AS cor0
----
-17
-27
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT 37 DIV + - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-134
-15
-88

skipif mysql # not compatible
query I rowsort label-9160
SELECT 37 / + - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-134
-15
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 14 * - + col0 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT + 43 - col2 FROM tab1 AS cor0
----
-16
-25
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + + 73 DIV + 32 + - col0 + - 35 * - 78 FROM tab2 AS cor0
----
2657
2668
2686

skipif mysql # not compatible
query I rowsort label-9164
SELECT + + 73 / + 32 + - col0 + - 35 * - 78 FROM tab2 AS cor0
----
2657
2668
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL + MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL + MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT - 0 + - COUNT( * ) + - SUM( ALL - - 34 ) FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - 0 + - COUNT ( * ) + - SUM ( ALL - - 34 ) FROM tab0 cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 * - - col1 - col1 BETWEEN + 58 * - col1 + 43 AND + col2
----
2

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 * - - col1 - col1 BETWEEN + 58 * - col1 + 43 AND + col2
----
2

query I rowsort
SELECT ALL 10 + - col2 AS col1 FROM tab2
----
-13
-30
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9169
SELECT * FROM tab1 WHERE - col1 = - CAST( 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9169
SELECT * FROM tab1 WHERE - col1 = - CAST ( 15 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 > - 96 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT ALL 43 DIV col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL 43 / col1 FROM tab1
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT 56 * COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT 56 * COUNT ( * ) FROM tab1
----
168

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 0 * - col2 * + - col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT + 60 * col2 + - + 91 - + - 31 / - + CAST( + 1 AS SIGNED ) FROM tab2 WHERE NOT NULL NOT IN ( - - col1, col1, col1 / + col2 * + - 40 )
----

skipif mysql # not compatible
query I rowsort label-9175
SELECT + 60 * col2 + - + 91 - + - 31 / - + CAST ( + 1 AS INTEGER ) FROM tab2 WHERE NOT NULL NOT IN ( - - col1, col1, col1 / + col2 * + - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - SUM( ALL + 17 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9176
SELECT - SUM ( ALL + 17 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - - SUM( ALL - col1 ) * - - COUNT( * ) + + + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - - SUM ( ALL - col1 ) * - - COUNT ( * ) + + + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-110

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9178
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NULL >= CAST( - + CAST( - - col2 AS SIGNED ) AS DECIMAL ) + + col1
----

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NULL >= CAST ( - + CAST ( - - col2 AS INTEGER ) AS REAL ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + SUM( DISTINCT - 82 ) * - 76 FROM tab0
----
6232

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + SUM ( DISTINCT - 82 ) * - 76 FROM tab0
----
6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL + 18 * - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + 18 * - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - 26 AS col0, - 98 AS col1 FROM tab2
----
-26
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab1
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT CAST( + 52 AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif mysql # not compatible
query I rowsort label-9183
SELECT CAST ( + 52 AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT col1 * - - col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab0 WHERE 82 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT col1 * 90 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT col1 * 90 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT + MAX( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT + MAX ( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - ( - + 89 ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - ( - + 89 ) AS INTEGER ) >= NULL
----

query I rowsort
SELECT 13 + - col2 AS col1 FROM tab1
----
-46
-55
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col2 FROM tab2 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 + - - 49 + - col0 * - ( - 22 ) FROM tab1
----
-1762
-1885
-977

query I rowsort
SELECT DISTINCT col0 + 49 - col1 FROM tab1
----
129
86
93

query II rowsort
SELECT DISTINCT 95 AS col2, + 81 FROM tab2
----
95
81

query II rowsort
SELECT + col0 AS col0, col1 * + + col1 FROM tab2
----
46
2601
64
5929
75
4489

query I rowsort
SELECT - + 96 AS col0 FROM tab1 cor0
----
-96
-96
-96

query II rowsort
SELECT DISTINCT + col0 AS col2, - 40 FROM tab2 AS cor0
----
46
-40
64
-40
75
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT + - CAST( NULL AS SIGNED ) + - + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - 56 + - col0 FROM tab0
----
-143
-153
-71

query I rowsort
SELECT + 69 + - - 35 * + 79 FROM tab0
----
2834
2834
2834

query I rowsort
SELECT DISTINCT 47 + - 44 AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT COUNT( * ) + 57 + 4 - SUM( - CAST( + col0 AS SIGNED ) ) + - 44 - - - MAX( DISTINCT + col1 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-9203
SELECT COUNT ( * ) + 57 + 4 - SUM ( - CAST ( + col0 AS INTEGER ) ) + - 44 - - - MAX ( DISTINCT + col1 ) FROM tab0
----
138

query I rowsort
SELECT ALL + 82 * - 21 * col1 * col1 - + col1 + + col0 * + + 56 FROM tab2 AS cor0
----
-10206231
-4476397
-7725925

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT + COUNT( * ) * - - 49 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT + COUNT ( * ) * - - 49 FROM tab1
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT 53 DIV - col2 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT 53 / - col2 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT + 73 FROM tab1 WHERE NOT + 9 IS NULL
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT - 79, + 3 - + col0 AS col2 FROM tab0
----
-79
-12
-79
-84
-79
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT DISTINCT col0 DIV - ( + col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT col0 / - ( + col1 ) FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9211
SELECT + CAST( ( - CAST( - 59 AS DECIMAL ) ) AS SIGNED ) * 33 + + + ( + 37 ) AS col2 FROM tab2 cor0
----
1984
1984
1984

skipif mysql # not compatible
query I rowsort label-9211
SELECT + CAST ( ( - CAST ( - 59 AS REAL ) ) AS INTEGER ) * 33 + + + ( + 37 ) AS col2 FROM tab2 cor0
----
1984
1984
1984

query II rowsort
SELECT + col2, col1 AS col0 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - ( + 50 ) * + col1 FROM tab0 AS cor0
----
-1050
-4050
-50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 8 + - 34 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + 93 ) FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - + 92 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 97 * + col1 FROM tab0 cor0
----
2037
7857
97

query I rowsort
SELECT ALL + col0 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query II rowsort
SELECT DISTINCT col1 * + + col2 + col2 + + col1, - col0 AS col0 FROM tab0 AS cor0
----
199
-97
241
-87
3935
-15

query I rowsort
SELECT + col0 * - + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab0 WHERE col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) + + + col1 + - 96 col0 FROM tab2
----
-104
-83
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9223
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) + + + col1 + - 96 col0 FROM tab2
----
-104
-83
-91

query I rowsort
SELECT DISTINCT + 17 * col1 AS col1 FROM tab1
----
238
799
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9225
SELECT ALL col0 / CAST( NULL AS DECIMAL ) + - 2 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL col0 / CAST ( NULL AS REAL ) + - 2 + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 AS col0 FROM tab1 WHERE 49 + + - col2 + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT ALL + 50 AS col1, COUNT( * ) col0 FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9227
SELECT ALL + 50 AS col1, COUNT ( * ) col0 FROM tab1 AS cor0
----
50
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT - col2 + 31 * col2 DIV col0 - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-21
-35
-8

skipif mysql # not compatible
query I rowsort label-9228
SELECT - col2 + 31 * col2 / col0 - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-21
-35
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT ALL - col1 DIV col0 * col1 * + + 99 * col2 AS col1 FROM tab0 AS cor0
----
-1884465
0
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - col1 / col0 * col1 * + + 99 * col2 AS col1 FROM tab0 AS cor0
----
-1884465
0
0

query I rowsort
SELECT - + 64 + col2 AS col1 FROM tab1 AS cor0
----
-5
32
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( - 59 BETWEEN NULL AND 36 * + col0 + + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT + + col0 * + + col2 - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT + + col0 * + + col2 - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - col2 ) + + col1 + 47 + 2 FROM tab2
----
58
77
86

query I rowsort
SELECT ALL 32 - + 16 AS col0 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT CAST( NULL AS SIGNED ) - + 62 * col1 * - - 86 + - col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9235
SELECT CAST ( NULL AS INTEGER ) - + 62 * col1 * - - 86 + - col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT DISTINCT - 73 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - 73 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT - 33 - - - col2 AS col1 FROM tab0 AS cor0
----
-132
-43
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL COUNT( * ) - 16 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL COUNT ( * ) - 16 FROM tab2 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-9239
SELECT - ( + col2 ) DIV - - col0 - col0 AS col1, + 84 AS col2 FROM tab0 AS cor0
----
-18
84
-87
84
-98
84

skipif mysql # not compatible
query II rowsort label-9239
SELECT - ( + col2 ) / - - col0 - col0 AS col1, + 84 AS col2 FROM tab0 AS cor0
----
-18
84
-87
84
-98
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 * - 11 + + col2 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 <> 64
----
3

skipif mysql # not compatible
query I rowsort label-9241
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 <> 64
----
3

query II rowsort
SELECT + col1, 54 AS col2 FROM tab2 AS cor0
----
51
54
67
54
77
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT - + COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - + COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE - 90 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT ALL + SUM( ALL col0 ) AS col0, + COUNT( * ) FROM tab1
----
227
3

skipif mysql # not compatible
query II rowsort label-9245
SELECT ALL + SUM ( ALL col0 ) AS col0, + COUNT ( * ) FROM tab1
----
227
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 < 53
----

query II rowsort
SELECT ALL col0 * + col2 AS col0, col0 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT col1 * - - 45 AS col0 FROM tab2
----
2295
3015
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT ALL + + ( + - 64 ) DIV + - 40 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + + ( + - 64 ) / + - 40 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT + ( - ( - - CAST( NULL AS SIGNED ) ) ) + + CAST( NULL AS SIGNED ) / + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT + ( - ( - - CAST ( NULL AS INTEGER ) ) ) + + CAST ( NULL AS INTEGER ) / + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT + + 83 DIV - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + + 83 / - col0 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT - + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 13 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 19 * col0 FROM tab0 AS cor0 WHERE - col1 * + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 98
----

query II rowsort
SELECT - ( - 17 ) AS col2, 46 AS col1 FROM tab2
----
17
46
17
46
17
46

query I rowsort
SELECT DISTINCT 36 + + 2 AS col1 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL MAX( ALL + - col2 ) + + - 93 col1 FROM tab1
----
-152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9260
SELECT ALL MAX ( ALL + - col2 ) + + - 93 col1 FROM tab1
----
-152

query I rowsort
SELECT ( + 27 ) FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT COUNT( + + col2 ) + - MIN( DISTINCT col2 ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9262
SELECT COUNT ( + + col2 ) + - MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col0, + 41 FROM tab2
----
4
41
4
41
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL - + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL - + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 * - + col1 * - + 31 - - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + COUNT( ALL - - col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9267
SELECT + COUNT ( ALL - - col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 93 + - ( + 5 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 * 85 AS col0, - col0 + + 24 col1 FROM tab1
----
6375
-27
6375
-61
6375
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT ALL - CAST( + 77 AS SIGNED ) AS col0 FROM tab0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - CAST ( + 77 AS INTEGER ) AS col0 FROM tab0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT SUM( DISTINCT - 44 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT SUM ( DISTINCT - 44 ) FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT SUM( - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT SUM ( - col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT - COUNT( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT - COUNT ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT + - 29 DIV + - col0 + - ( - col2 ) + col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-9274
SELECT + - 29 / + - col0 + - ( - col2 ) + col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 88 < NULL
----

query I rowsort
SELECT 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT 79 * + + 78 AS col2 FROM tab0
----
6162

onlyif mysql # DIV for integer division: 
query II rowsort label-9278
SELECT ALL - - ( + col0 ) DIV + col1, + 11 * + col0 AS col1 FROM tab2 AS cor0
----
0
506
0
704
1
825

skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL - - ( + col0 ) / + col1, + 11 * + col0 AS col1 FROM tab2 AS cor0
----
0
506
0
704
1
825

query I rowsort
SELECT + col0 * + col0 + + col0 AS col1 FROM tab2 cor0
----
2162
4160
5700

query I rowsort
SELECT DISTINCT + 69 + - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
-1146
-1758
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL - - CAST( 81 AS SIGNED ) FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - - CAST ( 81 AS INTEGER ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT - 58 * + - col2 + col0 AS col1 FROM tab2 AS cor0
----
1380
2384
3439

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT DISTINCT col1 DIV - col1 + - 20 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT col1 / - col1 + - 20 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT + 98 + 8 + col0 * + col1 * - col2 AS col1 FROM tab0
----
-18164
-56999
-9497

query III rowsort
SELECT * FROM tab0 WHERE + - col2 / - ( - + 64 ) > col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT ALL + 70 * 98 + COUNT( * ) AS col1, - COUNT( + 5 ) AS col1 FROM tab2
----
6863
-3

skipif mysql # not compatible
query II rowsort label-9286
SELECT ALL + 70 * 98 + COUNT ( * ) AS col1, - COUNT ( + 5 ) AS col1 FROM tab2
----
6863
-3

query I rowsort
SELECT ALL - ( + 56 ) + + 73 AS col1 FROM tab0
----
17
17
17

query I rowsort
SELECT col0 * ( + col1 ) + + 39 + - 94 - + col0 * + col1 FROM tab0 WHERE NULL NOT BETWEEN 72 AND - - col1
----

query I rowsort
SELECT DISTINCT + 28 - - col0 AS col1 FROM tab2
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT - COUNT( DISTINCT + - ( col2 ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9290
SELECT - COUNT ( DISTINCT + - ( col2 ) ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) - - col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 4 + 18 <> - col1
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + 22 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9294
SELECT CAST( NULL AS DECIMAL ) * 7 + - col1 * CAST( 10 * 29 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT CAST ( NULL AS REAL ) * 7 + - col1 * CAST ( 10 * 29 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT DISTINCT + 74 DIV - ( 68 ) + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + 74 / - ( 68 ) + + COUNT ( * ) FROM tab1
----
2

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) < NULL
----

query I rowsort
SELECT + ( + 3 ) - - col1 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT COUNT( ALL 6 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9298
SELECT COUNT ( ALL 6 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT - CAST( NULL AS SIGNED ) - - col0 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT - CAST ( NULL AS INTEGER ) - - col0 * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * ( - col0 * + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * ( - col0 * + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 79 + col2 AS col1 FROM tab0 WHERE NOT col1 * col1 NOT IN ( col1 + 60 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * 81 + 11 * col2 <> - 82
----

query I rowsort
SELECT 90 * - 24 FROM tab0 WHERE NOT - col1 / col1 + + col0 / - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col2 - col2 AS col2 FROM tab1 WHERE + ( 50 ) IS NOT NULL
----
-118
-136
-192

query I rowsort
SELECT 27 + 29 * + col0 FROM tab1
----
1506
2492
2666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab1
----
99
99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col1 <= NULL
----

query I rowsort
SELECT + col0 * + 36 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT MAX( - 21 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-21

skipif mysql # not compatible
query I rowsort label-9311
SELECT MAX ( - 21 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL COUNT( ALL col2 ) + 30 AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL COUNT ( ALL col2 ) + 30 AS col1 FROM tab1
----
33

query I rowsort
SELECT ( + col2 ) + col2 * ( 59 ) AS col2 FROM tab0
----
2820
5940
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - CAST( NULL AS SIGNED ) * + col2 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9314
SELECT - CAST ( NULL AS INTEGER ) * + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + ( + col0 ) col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT DISTINCT + + 16 * col1 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT col0 * col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT + 56 FROM tab2 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ALL + 54 FROM tab1 AS cor0 WHERE + 6 * col0 IS NULL
----

query I rowsort
SELECT + 27 * + col0 AS col2 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT ALL 17 FROM tab1 AS cor0 WHERE NOT + 5 NOT BETWEEN NULL AND - 57 + - 53
----

query I rowsort
SELECT ALL 65 + col0 * col2 FROM tab1 AS cor0
----
4961
5080
6253

query I rowsort
SELECT - + col2 * + col1 AS col0 FROM tab0 cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE ( - ( + 9 ) ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9325
SELECT DISTINCT ( + + COUNT( + 0 ) ) DIV COUNT( * ) + COUNT( DISTINCT col0 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT ( + + COUNT ( + 0 ) ) / COUNT ( * ) + COUNT ( DISTINCT col0 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + COUNT( * ) + + 46 FROM tab0 WHERE ( 97 ) <> - col1
----
49

skipif mysql # not compatible
query I rowsort label-9326
SELECT + COUNT ( * ) + + 46 FROM tab0 WHERE ( 97 ) <> - col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT - 67 * - COUNT( DISTINCT col1 ) * - COUNT( * ) + ( 79 ) FROM tab0
----
-524

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - 67 * - COUNT ( DISTINCT col1 ) * - COUNT ( * ) + ( 79 ) FROM tab0
----
-524

query I rowsort
SELECT ALL col0 * col2 + 96 AS col1 FROM tab2
----
1154
2656
4446

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) * - 46 - - 3 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT col0 DIV 6 * - 96 FROM tab0
----
-1344
-1536
-192

skipif mysql # not compatible
query I rowsort label-9330
SELECT col0 / 6 * - 96 FROM tab0
----
-1344
-1536
-192

query I rowsort
SELECT - ( 24 ) AS col2 FROM tab2
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 - 63 col2 FROM tab1
----
-127
-173
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT 74 - - ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) * 2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT 74 - - ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * 2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 WHERE - 42 NOT BETWEEN + 85 + - col2 AND ( CAST( - col2 AS SIGNED ) + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 WHERE - 42 NOT BETWEEN + 85 + - col2 AND ( CAST ( - col2 AS INTEGER ) + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - - + col0 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( - col0 ) > NULL
----

query I rowsort
SELECT ALL - + col2 - + - col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT DISTINCT 96 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 96 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 * - 25 FROM tab2 AS cor0
----
1150
1600
1875

query I rowsort
SELECT 67 * - + col0 + col1 AS col0 FROM tab1 AS cor0
----
-3403
-5690
-6050

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + 82 * - + COUNT( * ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 82 * - + COUNT ( * ) FROM tab2 AS cor0
----
-246

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + 17 / col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT - 10 AS col1, - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-10
-23
-10
-40
-10
-58

skipif mysql # not compatible
query II rowsort label-9344
SELECT - 10 AS col1, - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-10
-23
-10
-40
-10
-58

query II rowsort
SELECT col0, 67 FROM tab1 AS cor0
----
51
67
85
67
91
67

query I rowsort
SELECT ALL + 39 * + 92 AS col0 FROM tab1 AS cor0
----
3588
3588
3588

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND + - 68
----

query I rowsort
SELECT DISTINCT col1 - - 11 FROM tab0 AS cor0 WHERE - 82 - + - col1 IS NULL
----

query II rowsort
SELECT col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - 47 * - 77 FROM tab1
----
3619
3619
3619

query I rowsort
SELECT 66 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT MAX( DISTINCT ( 82 ) ) * + COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-9353
SELECT MAX ( DISTINCT ( 82 ) ) * + COUNT ( * ) FROM tab1
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 * - + ( col0 ) col1 FROM tab0
----
158949
18225
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT 19 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT 19 / col0 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT - 15 DIV col1 + + 45 AS col0 FROM tab0 WHERE NOT + 63 > - 37 * - col1
----
45

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - 15 / col1 + + 45 AS col0 FROM tab0 WHERE NOT + 63 > - 37 * - col1
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 46 * - 58 * + 69 < - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - 69 + + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 69 + + - COUNT ( * ) FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + 73 + COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 73 + COUNT ( * ) FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9360
SELECT * FROM tab1 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) / + 47 + ( + col0 ) * + col1 ) <= 61
----

skipif mysql # not compatible
query III rowsort label-9360
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) / + 47 + ( + col0 ) * + col1 ) <= 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT - MIN( 47 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - MIN ( 47 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9362
SELECT 97 + + 66 DIV + MIN( ALL CAST( + col2 AS SIGNED ) ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9362
SELECT 97 + + 66 / + MIN ( ALL CAST ( + col2 AS INTEGER ) ) FROM tab2 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT COUNT( * ) + - 87 + - 38 AS col0 FROM tab2
----
-122

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT COUNT ( * ) + - 87 + - 38 AS col0 FROM tab2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL SUM( + + 89 ) + + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
807

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL SUM ( + + 89 ) + + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
807

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + 34 * - 22 + + - COUNT( * ) + AVG ( + 55 + - ( - col1 + + col0 ) ) FROM tab2 AS cor0 WHERE NOT col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + 34 * - 22 + + - COUNT ( * ) + AVG ( + 55 + - ( - col1 + + col0 ) ) FROM tab2 AS cor0 WHERE NOT col1 < NULL
----
NULL

query I rowsort
SELECT + + col2 - + col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT + COUNT( * ) - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT + COUNT ( * ) - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT col0 - 7 + - col0, - 39 AS col0 FROM tab1 AS cor0
----
-7
-39
-7
-39
-7
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, + 57 col1 FROM tab0 AS cor0
----
10
57
47
57
99
57

query I rowsort
SELECT 51 - - col2 - + 91 + 62 FROM tab0 AS cor0
----
121
32
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + - + 62 * 81 * + col1 = NULL AND NOT col1 + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + COUNT( * ) + MIN( - col1 ) + + + MAX( 9 ) AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + COUNT ( * ) + MIN ( - col1 ) + + + MAX ( 9 ) AS col1 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT - 72 - col2 * col2 FROM tab2 AS cor0 WHERE col2 = 13 AND col0 IS NOT NULL
----

query I rowsort
SELECT 66 + - 21 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT - CAST( col1 AS SIGNED ) + + col2 FROM tab0 WHERE + 8 * - col0 IS NOT NULL
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CAST ( col1 AS INTEGER ) + + col2 FROM tab0 WHERE + 8 * - col0 IS NOT NULL
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT 95 * - col1 DIV col1 AS col0 FROM tab0 WHERE - + ( - 74 ) IS NOT NULL
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-9376
SELECT 95 * - col1 / col1 AS col0 FROM tab0 WHERE - + ( - 74 ) IS NOT NULL
----
-95
-95
-95

query I rowsort
SELECT + 50 * + 61 + + 26 FROM tab1
----
3076
3076
3076

query I rowsort
SELECT DISTINCT + col0 * + + 47 * - col1 AS col2 FROM tab1 cor0 WHERE NOT ( - 42 * 53 ) NOT BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL + 88 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - col0 AND - col2 / - col2 - + 91
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL CAST( + + MAX( - - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL CAST ( + + MAX ( - - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - col0 + + ( col2 ) * + col0 FROM tab0 AS cor0 WHERE ( NOT - - 41 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 * col0 + + 54 AS col0 FROM tab0 AS cor0
----
759
924
9657

query I rowsort
SELECT DISTINCT + - 65 * - col2 AS col1 FROM tab2 AS cor0
----
1495
2600
3770

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT ALL + + 66 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + + 66 / col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT DISTINCT + CAST( ( + col1 ) AS SIGNED ) * 38 * - col2, col1 FROM tab2 AS cor0
----
-117040
77
-147668
67
-44574
51

skipif mysql # not compatible
query II rowsort label-9388
SELECT DISTINCT + CAST ( ( + col1 ) AS INTEGER ) * 38 * - col2, col1 FROM tab2 AS cor0
----
-117040
77
-147668
67
-44574
51

query I rowsort
SELECT + col0 - col1 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 <> + col0 * - + col2 + col2
----

query I rowsort
SELECT ALL - - 43 + col2 AS col0 FROM tab1 AS cor0 WHERE + 33 <> - col2
----
102
111
139

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - - 6 ) + col0 FROM tab0
----
103
21
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9394
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - 24 AND - col0 * - 61 * CAST( NULL AS SIGNED ) / - 50 * - col1 / 87 - - col1
----

skipif mysql # not compatible
query III rowsort label-9394
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - 24 AND - col0 * - 61 * CAST ( NULL AS INTEGER ) / - 50 * - col1 / 87 - - col1
----

query I rowsort
SELECT col2 * + 90 AS col1 FROM tab1
----
5310
6120
8640

query I rowsort
SELECT DISTINCT - col0 + col0 + - + 13 * - 32 AS col2 FROM tab1 WHERE NOT - col2 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9397
SELECT DISTINCT * FROM tab2 WHERE + + 73 NOT IN ( - - col1, + col1, + + 21 + - 33 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9397
SELECT DISTINCT * FROM tab2 WHERE + + 73 NOT IN ( - - col1, + col1, + + 21 + - 33 * - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 * - + col1 * + col0 AS col2 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT 52 * - col1 AS col2 FROM tab1
----
-2444
-260
-728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT ALL 77 + - 33 + 13 * + 28 * + SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL 77 + - 33 + 13 * + 28 * + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9401
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT col0 * - CAST( - + col1 AS SIGNED ) * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-24990
-290745
-68493

skipif mysql # not compatible
query I rowsort label-9402
SELECT col0 * - CAST ( - + col1 AS INTEGER ) * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-24990
-290745
-68493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL + 78 + - col1 AS col0 FROM tab1 WHERE - 20 BETWEEN CAST( col2 AS SIGNED ) + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + 78 + - col1 AS col0 FROM tab1 WHERE - 20 BETWEEN CAST ( col2 AS INTEGER ) + - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + col0 * + col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-132455
-614100
-751362

query I rowsort
SELECT ALL - 52 AS col2 FROM tab0 cor0
----
-52
-52
-52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 89, col1 + + col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9408
SELECT DISTINCT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, + 41 + - COUNT( * ) + 41 col0 FROM tab2 cor0
----
NULL
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9408
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 41 + - COUNT ( * ) + 41 col0 FROM tab2 cor0
----
NULL
79

query I rowsort
SELECT + 17 * + 84 + 92 + - - col0 + - - ( - col2 ) * col2 FROM tab2 AS cor0
----
-16
-1769
1037

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE + 36 * - col2 NOT BETWEEN ( + col1 ) AND ( + 18 )
----
1
21
81

query I rowsort
SELECT - 76 AS col1 FROM tab0 cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9412
SELECT ALL - CAST( + + col0 AS SIGNED ) DIV + + col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - CAST ( + + col0 AS INTEGER ) / + + col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT + + MAX( - col0 ) / - - 60 col0 FROM tab2 AS cor0 WHERE NULL >= + col1 / col2 * - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9413
SELECT DISTINCT + + MAX ( - col0 ) / - - 60 col0 FROM tab2 AS cor0 WHERE NULL >= + col1 / col2 * - col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 13 + - + ( + - 90 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 * + - 93 FROM tab2
----
-1674
-1674
-1674

query I rowsort
SELECT ALL + col0 + - - ( 42 ) FROM tab2
----
106
117
88

query I rowsort
SELECT + ( 76 ) FROM tab2
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 WHERE 52 + + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT - col1 DIV - + ( + 64 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9419
SELECT - col1 / - + ( + 64 ) FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9420
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND - 51
----

skipif mysql # not compatible
query III rowsort label-9420
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - 51
----

query II rowsort
SELECT ALL col2 AS col2, - col2 * + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 93 - - + 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL - - COUNT( - - col0 ) * + CAST( NULL AS SIGNED ) * - COUNT( ALL col2 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9423
SELECT ALL - - COUNT ( - - col0 ) * + CAST ( NULL AS INTEGER ) * - COUNT ( ALL col2 ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 16 NOT IN ( + ( - - 11 ), + 95 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT 12 * COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-9425
SELECT 12 * COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9426
SELECT DISTINCT col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9426
SELECT DISTINCT col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) * col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab0 cor0
----
-77
-77
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 34 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT ALL - col0 DIV + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - col0 / + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + MAX( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9432
SELECT + MAX ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + col1 * - + col2 + 16 FROM tab1 AS cor0
----
-1328
-279
-3180

query I rowsort
SELECT ALL - col1 + - - 13 * - - col2 FROM tab2 AS cor0
----
248
443
687

query II rowsort
SELECT + - col1 AS col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9436
SELECT ALL * FROM tab1 WHERE ( 30 * ( + col2 ) * + col2 + - CAST( - - 56 AS DECIMAL ) + col1 + - col1 ) <= col0
----

skipif mysql # not compatible
query III rowsort label-9436
SELECT ALL * FROM tab1 WHERE ( 30 * ( + col2 ) * + col2 + - CAST ( - - 56 AS REAL ) + col1 + - col1 ) <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT - ( COUNT( * ) ) * - 41 AS col0 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - ( COUNT ( * ) ) * - 41 AS col0 FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9439
SELECT * FROM tab1 WHERE + + col2 + 29 + - 65 < + 66 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9439
SELECT * FROM tab1 WHERE + + col2 + 29 + - 65 < + 66 + + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) DIV + col0 - - 51 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) / + col0 - - 51 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + COUNT( * ) + + + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9441
SELECT + COUNT ( * ) + + + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT + col0 - col0 FROM tab1 AS cor0 WHERE col1 * + col1 + col0 IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9443
SELECT + col1 + col1 / - col1 + CAST( NULL AS DECIMAL ) + + 13 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT + col1 + col1 / - col1 + CAST ( NULL AS REAL ) + + 13 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT + + 61 + + 55 * col0 + - + 29 + 11 + + 27 * + col2 * - + col2, 25 AS col2 FROM tab2 AS cor0
----
-11710
25
-39637
25
-86660
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT COUNT( * ) * + - 91 * MIN( + col2 ) + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6288

skipif mysql # not compatible
query I rowsort label-9446
SELECT COUNT ( * ) * + - 91 * MIN ( + col2 ) + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6288

query III rowsort
SELECT * FROM tab1 WHERE NOT - 57 IN ( + + col0, 49, + 84 * + 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9448
SELECT - ( - - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT - ( - - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + MIN( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab1, tab0 AS cor0
----
-3

query I rowsort
SELECT col1 * + - col1 * + 90 FROM tab2
----
-234090
-404010
-533610

query I rowsort
SELECT 29 * - 6 FROM tab2
----
-174
-174
-174

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, 41 * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT - 23 col1, COUNT( * ) AS col2 FROM tab1 cor0
----
-23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9454
SELECT - 23 col1, COUNT ( * ) AS col2 FROM tab1 cor0
----
-23
3

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - ( - col0 ) * 69 AS col1 FROM tab0 AS cor0
----
1035
6003
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 42 col2 FROM tab1 AS cor0
----
17
26
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9458
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( col1 * - 4 + - col1, - col0 / CAST( NULL AS SIGNED ), - - col0 + col1, + 46 )
----

skipif mysql # not compatible
query III rowsort label-9458
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( col1 * - 4 + - col1, - col0 / CAST ( NULL AS INTEGER ), - - col0 + col1, + 46 )
----

query I rowsort
SELECT DISTINCT ( + 95 ) + + col1 FROM tab2
----
146
162
172

query I rowsort
SELECT DISTINCT 23 + + col0 + + col2 AS col0 FROM tab1
----
167
170
182

query I rowsort
SELECT col1 * + 52 * - col2 AS col0 FROM tab2
----
-160160
-202072
-60996

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE ( - col0 + + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 10 AS col2 FROM tab2
----
510
670
770

query I rowsort
SELECT ALL + ( col0 ) * - 50 + 76 FROM tab0
----
-4274
-4774
-674

query III rowsort
SELECT ALL - - col0 AS col0, col2 * - col2 * - - col0, 52 AS col1 FROM tab0 AS cor0
----
9 values hashing to 762d3528763b624677e8f4ff1ad19f7d

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( - - 86 ) )
----

query I rowsort
SELECT ALL - col0 + + col0 + + ( - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 * col0 + - - col0 * + 43 AS col2 FROM tab2
----
4094
6848
8850

query I rowsort
SELECT + 22 + - + col2 AS col1 FROM tab1
----
-37
-46
-74

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
75

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab2 cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT 33 DIV col1 AS col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-9472
SELECT 33 / col1 AS col1 FROM tab1 AS cor0
----
0
2
6

query I rowsort
SELECT 17 AS col1 FROM tab1 WHERE NOT + + col2 > col2
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT ALL 23 AS col0, + COUNT( * ) FROM tab0
----
23
3

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL 23 AS col0, + COUNT ( * ) FROM tab0
----
23
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9475
SELECT CAST( - col2 AS DECIMAL ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT CAST ( - col2 AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 AS col0, - 23 FROM tab0
----
-15
-23
-87
-23
-97
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT DISTINCT SUM( DISTINCT - col2 ) DIV - 84 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9477
SELECT DISTINCT SUM ( DISTINCT - col2 ) / - 84 col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) col1 FROM tab2
----
51
67
77

query II rowsort
SELECT - + col1, col1 + + + col2 AS col2 FROM tab0 AS cor0
----
-1
100
-21
31
-81
128

query I rowsort
SELECT - 66 * + 28 FROM tab2 AS cor0 WHERE col1 + ( + col0 ) + col1 * + col1 * - - col2 - col0 IS NOT NULL
----
-1848
-1848
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT - MAX( DISTINCT 88 ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - MAX ( DISTINCT 88 ) FROM tab2 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT + + col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT + + col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 92 / + col0 - 23 AS col1 FROM tab2 AS cor0 WHERE + 2 BETWEEN - - col2 + col0 AND + + col2
----

query I rowsort
SELECT ALL + 36 + col0 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT + 14 + + col1 + - + col1 FROM tab1
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - col0 col1 FROM tab0
----
-9
1
73

query II rowsort
SELECT ALL col2, - col2 * - 45 AS col1 FROM tab2 cor0
----
23
1035
40
1800
58
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT 29 + + COUNT( ALL - 74 ), MIN( - 20 ) AS col1 FROM tab1 AS cor0
----
32
-20

skipif mysql # not compatible
query II rowsort label-9489
SELECT 29 + + COUNT ( ALL - 74 ), MIN ( - 20 ) AS col1 FROM tab1 AS cor0
----
32
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - ( + - MIN( + - 3 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9491
SELECT - ( + - MIN ( + - 3 ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9492
SELECT DISTINCT col0 AS col0, 75 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
51
75
85
75
91
75

skipif mysql # not compatible
query II rowsort label-9492
SELECT DISTINCT col0 AS col0, 75 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
75
85
75
91
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL - SUM( - - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL - SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT DISTINCT - 51 * - - 30 * + 88 + + col1 DIV col2 DIV + ( ( col1 ) ) - 66 col1 FROM tab2 AS cor0
----
-134706

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT DISTINCT - 51 * - - 30 * + 88 + + col1 / col2 / + ( ( col1 ) ) - 66 col1 FROM tab2 AS cor0
----
-134706

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL COUNT( * ) + - 99 AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL COUNT ( * ) + - 99 AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT - col0 DIV + 94 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT - col0 / + 94 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + + 91 + - ( - COUNT( * ) ) + + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
102

skipif mysql # not compatible
query I rowsort label-9498
SELECT + + 91 + - ( - COUNT ( * ) ) + + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
102

query II rowsort
SELECT - + 85, + col2 FROM tab1 cor0
----
-85
59
-85
68
-85
96

query II rowsort
SELECT - - 20, col0 FROM tab0 AS cor0
----
20
15
20
87
20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + ( + COUNT( ALL - 34 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + ( + COUNT ( ALL - 34 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - MAX( + ( 21 ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9502
SELECT - MAX ( + ( 21 ) ) FROM tab1 AS cor0
----
-21

query II rowsort
SELECT ALL + - col0 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT - 44 * col0 DIV + 55 FROM tab0 AS cor0
----
-12
-69
-77

skipif mysql # not compatible
query I rowsort label-9504
SELECT - 44 * col0 / + 55 FROM tab0 AS cor0
----
-12
-69
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL + MIN( - 83 ) AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + MIN ( - 83 ) AS col1 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + 82 * - - col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT ALL - 2 DIV + - col2 - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL - 2 / + - col2 - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + + ( COUNT( * ) ) * + ( + 42 ) AS col2 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9508
SELECT + + ( COUNT ( * ) ) * + ( + 42 ) AS col2 FROM tab0 AS cor0
----
126

query I rowsort
SELECT DISTINCT ( 34 ) * col2 FROM tab0 cor0
----
1598
3366
340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT DISTINCT + CAST( - 23 AS SIGNED ) * - col0 * - col1 + + + col2 FROM tab0
----
-2132
-27898
-42011

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * - col0 * - col1 + + + col2 FROM tab0
----
-2132
-27898
-42011

query I rowsort
SELECT ALL - col1 * + + 71 AS col2 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT 4 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT 4 / col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * col0 col2 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + - COUNT( * ) + + COUNT( * ) col2 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9514
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) col2 FROM tab2 WHERE NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + col2 * + col2, + col1 * col1 + - - col0 + - - 73 col1 FROM tab2 AS cor0
----
1664
6066
3439
4637
575
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) - - + col1 >= - 89
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) - - + col1 >= - 89
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <= - + col1
----

query I rowsort
SELECT ALL col2 * - - ( + 79 ) FROM tab2 AS cor0
----
1817
3160
4582

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 + + col2 IS NULL
----

query I rowsort
SELECT - col1 + 80 AS col1 FROM tab1 AS cor0
----
33
66
75

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9522
SELECT + ( - COUNT( * ) ) DIV SUM( DISTINCT - col1 ) + + 6 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9522
SELECT + ( - COUNT ( * ) ) / SUM ( DISTINCT - col1 ) + + 6 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9524
SELECT DISTINCT - + MIN( - ( 76 ) ), 95 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
76
98

skipif mysql # not compatible
query II rowsort label-9524
SELECT DISTINCT - + MIN ( - ( 76 ) ), 95 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 + - 35 col1 FROM tab1, tab1 AS cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + COUNT( DISTINCT + - ( col1 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9527
SELECT + COUNT ( DISTINCT + - ( col1 ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT + col1 * + 39 * + col0 - - CAST( - 99 AS SIGNED ) - + col1 FROM tab0
----
3683
47205
71133

skipif mysql # not compatible
query I rowsort label-9528
SELECT + col1 * + 39 * + col0 - - CAST ( - 99 AS INTEGER ) - + col1 FROM tab0
----
3683
47205
71133

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + 14 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 + col1 * + - 29 col1 FROM tab2 AS cor0
----
-1553
-2017
-2307

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + MIN( - 44 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-9531
SELECT + MIN ( - 44 ) FROM tab2
----
-44

query I rowsort
SELECT + 97 * - - 89 AS col1 FROM tab0
----
8633
8633
8633

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 85 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL + col0 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab2 cor0 WHERE NOT + col2 >= + + col2 * - col0
----

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN ( - 85 ) AND ( NULL )
----

query II rowsort
SELECT ALL 57 AS col2, + 39 AS col1 FROM tab1 AS cor0
----
57
39
57
39
57
39

query I rowsort
SELECT DISTINCT + col1 * - - ( - + 95 ) FROM tab0 AS cor0
----
-1995
-7695
-95

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + col1 IS NOT NULL
----

query II rowsort
SELECT + col2, + 27 * + col1 FROM tab0
----
10
567
47
2187
99
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT - - col0 + - 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - - col0 + - 36 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT COUNT( * ) * - + ( + 39 ) col0 FROM tab0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9543
SELECT COUNT ( * ) * - + ( + 39 ) col0 FROM tab0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + MIN( DISTINCT 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9544
SELECT + MIN ( DISTINCT 42 ) FROM tab1
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( 98 ) BETWEEN - 95 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 37 * + + col2 FROM tab0
----
1739
3663
370

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + col0 + - col0 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - + 0 + - 77 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT COUNT( * ) DIV - 41 + + COUNT( * ) + 90 + + ( + 94 ) AS col2 FROM tab0 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT COUNT ( * ) / - 41 + + COUNT ( * ) + 90 + + ( + 94 ) AS col2 FROM tab0 AS cor0
----
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col0 col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT + + 46 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + 48 * - 92 + + 16 FROM tab2 AS cor0
----
-4400
-4400
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT + COUNT( * ) + - + 21 AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + COUNT ( * ) + - + 21 AS col1 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MIN( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MIN ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT ALL 89 DIV + + col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 89 / + + col2 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT col0 + + - col0 * - - col1 - col0 DIV + 71 FROM tab1 AS cor0
----
-341
-4187
-663

skipif mysql # not compatible
query I rowsort label-9558
SELECT col0 + + - col0 * - - col1 - col0 / + 71 FROM tab1 AS cor0
----
-341
-4187
-663

query II rowsort
SELECT + col0 + - col1, + col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + + col0 * - + 68 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT COUNT( * ) + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9561
SELECT COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - col0 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - col1 AS col2, 36 FROM tab2 AS cor0
----
-51
36
-67
36
-77
36

query I rowsort
SELECT DISTINCT + ( - col0 ) / - 67 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT 74 DIV 55 * COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9565
SELECT 74 / 55 * COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT + 79 * 28 DIV + COUNT( * ) AS col1 FROM tab1
----
737

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 79 * 28 / + COUNT ( * ) AS col1 FROM tab1
----
737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT - 46 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT - 46 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 * + col2 col0 FROM tab2 cor0
----
-1449
-2520
-3654

query I rowsort
SELECT + - 67 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT col2 + - col0 * 31 FROM tab1 AS cor0
----
-1485
-2576
-2753

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 + col0 + + col1 * - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT col0 DIV - - col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT col0 / - - col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + COUNT( * ) * - - MIN( + ( + col1 ) ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9575
SELECT + COUNT ( * ) * - - MIN ( + ( + col1 ) ) AS col0 FROM tab2
----
153

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL IS NULL ) OR col1 + 68 + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - 4 AS col1 FROM tab0
----
-25
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL COUNT( * ) + - + 53 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL COUNT ( * ) + - + 53 FROM tab2
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 - + + ( 80 ) col1 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - MAX( 64 ) FROM tab1 WHERE - - 87 NOT BETWEEN NULL AND + 39
----
-64

skipif mysql # not compatible
query I rowsort label-9580
SELECT - MAX ( 64 ) FROM tab1 WHERE - - 87 NOT BETWEEN NULL AND + 39
----
-64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 < + 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 / col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT - col1 / col2 * - CAST( NULL AS SIGNED ) / + col2 * + + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9583
SELECT DISTINCT - col1 / col2 * - CAST ( NULL AS INTEGER ) / + col2 * + + col0 col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 43 * - col1 / + - 44 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 + - col1 + - col2 * + 13 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT col1 * 80 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9587
SELECT col1 * 80 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 71 * col2 - + - col1 + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1707
2957
4243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( - 17 ) ) IS NOT NULL
----

query II rowsort
SELECT + + col0, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT DISTINCT - col0, + col2 * - + col1 AS col2 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT + - COUNT( * ) * ( + COUNT( * ) ), SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-9
227

skipif mysql # not compatible
query II rowsort label-9592
SELECT + - COUNT ( * ) * ( + COUNT ( * ) ), SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-9
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col0 * col1 * - col1 col1 FROM tab2 AS cor0
----
46
-119646
64
-379456
75
-336675

query I rowsort
SELECT ALL - 36 + + - col0 + + + col0 + - - col1 * + + col1 FROM tab0 AS cor0
----
-35
405
6525

query I rowsort
SELECT ALL + 64 * + + 57 * + col1 + col1 + + 22 / col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 66 * - col1 AND NULL
----

query II rowsort
SELECT ALL 57, col2 AS col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

query I rowsort
SELECT ( - 32 ) FROM tab1
----
-32
-32
-32

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + - 53
----
51
14
96

query I rowsort
SELECT - ( + col1 ) * - col2 * col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT ( + 63 ) BETWEEN col0 AND NULL
----
59
68

query I rowsort
SELECT 58 AS col2 FROM tab1 WHERE + - 25 IS NOT NULL
----
58
58
58

query I rowsort
SELECT ALL - col2 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 / + - col0 + - - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + SUM( ALL col1 ) AS col0 FROM tab0 WHERE 34 IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-9604
SELECT + SUM ( ALL col1 ) AS col0 FROM tab0 WHERE 34 IS NOT NULL
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9605
SELECT ALL CAST( - ( + 8 ) AS SIGNED ), - 18 AS col2 FROM tab0 AS cor0
----
-8
-18
-8
-18
-8
-18

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL CAST ( - ( + 8 ) AS INTEGER ), - 18 AS col2 FROM tab0 AS cor0
----
-8
-18
-8
-18
-8
-18

query I rowsort
SELECT - - 13 + + col1 FROM tab0 cor0
----
14
34
94

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col0 ) + + col1 + + 68 + col0 + - + col0 - + col0 AS col1 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT 38 / + col0 + - 3 * - 51 / - 80 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT 38 / + col0 + - 3 * - 51 / - 80 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT - COUNT( * ) + - COUNT( ALL - - col0 ) * - 22 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL - - col0 ) * - 22 AS col0 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT + col2 col2 FROM tab0 WHERE ( - 33 + - col2 + 1 * + 18 >= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT + col2 col2 FROM tab0 WHERE ( - 33 + - col2 + 1 * + 18 >= + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL col2 AS col0, col1 * + col2 FROM tab2
----
23
1173
40
3080
58
3886

query II rowsort
SELECT DISTINCT + col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL + MAX( + ( col2 ) ) * CAST( 91 AS SIGNED ) AS col1 FROM tab0
----
9009

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + MAX ( + ( col2 ) ) * CAST ( 91 AS INTEGER ) AS col1 FROM tab0
----
9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col2 col0, 5 FROM tab0
----
210
5
3807
5
99
5

query I rowsort
SELECT 34 FROM tab0 WHERE NOT - col0 IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT DISTINCT - 25 DIV + COUNT( * ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT - 25 / + COUNT ( * ) AS col1 FROM tab0
----
-8

query II rowsort
SELECT DISTINCT + col1, + col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT - - 80 AS col2, 10 - + 71 AS col1 FROM tab0 AS cor0
----
80
-61
80
-61
80
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * - col1 * - + 48 col2 FROM tab0 AS cor0
----
14112
54432
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + MIN( ALL + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9622
SELECT + MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
51

query II rowsort
SELECT DISTINCT - - col2 * - col1 * + col2 AS col0, - col1 * + col0 / + - col1 FROM tab1 AS cor0 WHERE NULL <> 61 * + + 6 / + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 <= NULL
----

query I rowsort
SELECT ALL + + col2 + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT - CAST( CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9626
SELECT - CAST ( CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9627
SELECT 17 DIV + MIN( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9627
SELECT 17 / + MIN ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col1 * col1 + - - 17 FROM tab2 AS cor0
----
2618
4506
5946

query I rowsort
SELECT + col1 * + + col0 + + 73 AS col1 FROM tab2 AS cor0
----
2419
5001
5098

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT + + MIN( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 >= + + col2 + - 36
----
-85

skipif mysql # not compatible
query I rowsort label-9630
SELECT + + MIN ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 >= + + col2 + - 36
----
-85

query I rowsort
SELECT DISTINCT + col1 * + col2 * + + col1 + + - col2 FROM tab1 cor0
----
1416
150144
18720

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - ( - - 36 ) * - 91 + COUNT( * ) + - MAX( DISTINCT - col1 ) - COUNT( * ) FROM tab1 WHERE ( col1 ) NOT BETWEEN NULL AND + col0 + + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT - ( - - 36 ) * - 91 + COUNT ( * ) + - MAX ( DISTINCT - col1 ) - COUNT ( * ) FROM tab1 WHERE ( col1 ) NOT BETWEEN NULL AND + col0 + + + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 81 col1 FROM tab1
----
132
166
172

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 36, - col2, + 19 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9635
SELECT * FROM tab2 WHERE + CAST( NULL AS DECIMAL ) - - 97 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9635
SELECT * FROM tab2 WHERE + CAST ( NULL AS REAL ) - - 97 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + col0 * - 67 FROM tab1
----
-174267
-484075
-554827

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - - col2 * - col2 - - - col1 NOT BETWEEN + col0 + - col2 + - 4 AND - col0 / - col2 AND col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - + 40 col0 FROM tab0
----
127
137
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL col0 + + + 0 * ( - 67 ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL col0 + + + 0 * ( - 67 ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT DISTINCT + col1 FROM tab2 WHERE col2 * - + 36 <= - col1 * + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + col1 FROM tab2 WHERE col2 * - + 36 <= - col1 * + CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 53 + - col1 + - 5 AS col2 FROM tab2 AS cor0
----
-109
-125
-135

query I rowsort
SELECT DISTINCT 41 - - - col1 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT + CAST( 2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT - col1 NOT IN ( + - col1 )
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9648
SELECT + CAST ( 2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col1 NOT IN ( + - col1 )
----
2
2
2

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col0 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT 12 * + COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT 12 * + COUNT ( * ) FROM tab0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT + SUM( DISTINCT col2 ) DIV - ( + ( MAX( DISTINCT + + col2 ) ) ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9651
SELECT + SUM ( DISTINCT col2 ) / - ( + ( MAX ( DISTINCT + + col2 ) ) ) FROM tab1
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT - SUM( DISTINCT 65 ) * COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - SUM ( DISTINCT 65 ) * COUNT ( * ) FROM tab0
----
-195

query I rowsort
SELECT - col0 * - 28 AS col1 FROM tab2
----
1288
1792
2100

query I rowsort
SELECT ALL - col1 * - col0 * + col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT 41 * - - COUNT( * ) col1 FROM tab0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9656
SELECT 41 * - - COUNT ( * ) col1 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT - MIN( DISTINCT + 81 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT - MIN ( DISTINCT + 81 ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 WHERE - col2 + + 35 < + 92 + - 67
----
2

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 WHERE - col2 + + 35 < + 92 + - 67
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT 44 DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9659
SELECT DISTINCT 44 / + COUNT ( * ) col0 FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 * 61 IN ( - 54, - col0, + col2, 37, + - 92 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT - 45 DIV + col1 FROM tab1
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT - 45 / + col1 FROM tab1
----
-3
-9
0

query II rowsort
SELECT col1, - 86 AS col1 FROM tab0
----
1
-86
21
-86
81
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9663
SELECT ALL + ( - COUNT( * ) ) + - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, 18 * - 9 + COUNT( DISTINCT - 72 ) - - + 73 FROM tab0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-9663
SELECT ALL + ( - COUNT ( * ) ) + - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, 18 * - 9 + COUNT ( DISTINCT - 72 ) - - + 73 FROM tab0
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - COUNT( DISTINCT + ( col2 ) ) * 84 + + MIN( - 89 ) col0 FROM tab0 AS cor0
----
-341

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT - COUNT ( DISTINCT + ( col2 ) ) * 84 + + MIN ( - 89 ) col0 FROM tab0 AS cor0
----
-341

query II rowsort
SELECT col0, - col0 AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE 17 * col0 * 98 - - - col2 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT + MAX( ALL - + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9667
SELECT + MAX ( ALL - + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + SUM( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE - col1 * - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT + SUM ( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE - col1 * - + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL CAST( + 81 AS SIGNED ) + - MAX( + col0 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL CAST ( + 81 AS INTEGER ) + - MAX ( + col0 ) AS col1 FROM tab2
----
6

query II rowsort
SELECT DISTINCT - 75 + + col1 - - 25 AS col2, col0 FROM tab1
----
-3
91
-36
51
-45
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT DISTINCT - COUNT( * ) + 58 DIV + + 61 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - COUNT ( * ) + 58 / + + 61 AS col1 FROM tab1
----
-3

query II rowsort
SELECT ALL - col2 + col2 AS col1, + col2 * + - ( + 94 ) AS col1 FROM tab0
----
0
-4418
0
-9306
0
-940

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9673
SELECT DISTINCT * FROM tab0 WHERE NOT 87 * - 68 * + CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9673
SELECT DISTINCT * FROM tab0 WHERE NOT 87 * - 68 * + CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT DISTINCT CAST( + col0 AS SIGNED ) * ( + 21 ) FROM tab0 cor0
----
1827
2037
315

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * ( + 21 ) FROM tab0 cor0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9675
SELECT + CAST( - col2 AS SIGNED ), 94 AS col0 FROM tab1 cor0
----
-59
94
-68
94
-96
94

skipif mysql # not compatible
query II rowsort label-9675
SELECT + CAST ( - col2 AS INTEGER ), 94 AS col0 FROM tab1 cor0
----
-59
94
-68
94
-96
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - COUNT( * ) + - 94 + - 76 - + - COUNT( * ) * + - 65 col2 FROM tab1 AS cor0
----
-368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9676
SELECT ALL - COUNT ( * ) + - 94 + - 76 - + - COUNT ( * ) * + - 65 col2 FROM tab1 AS cor0
----
-368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - - 93 * + AVG ( DISTINCT + 91 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 + - + col0
----
NULL

query I rowsort
SELECT ALL - + 10 AS col2 FROM tab1 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NOT + 31 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NOT + 31 IS NULL )
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, 75 AS col2 FROM tab1 AS cor0
----
-14
75
-47
75
-5
75

query I rowsort
SELECT DISTINCT col1 * - + 57 FROM tab2
----
-2907
-3819
-4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab0
----
44

query I rowsort
SELECT DISTINCT 42 * + + 14 FROM tab1
----
588

query I rowsort
SELECT - ( + ( 36 ) ) AS col1 FROM tab0 WHERE NOT NULL <> - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - MIN( DISTINCT col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9688
SELECT - MIN ( DISTINCT col1 ) col0 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - - col2 NOT BETWEEN - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT - CAST( NULL AS SIGNED ) - col2 col1 FROM tab2 cor0 WHERE NOT - col2 + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9690
SELECT - CAST ( NULL AS INTEGER ) - col2 col1 FROM tab2 cor0 WHERE NOT - col2 + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT DISTINCT + - 50 * - 32 col1, + COUNT( DISTINCT + 97 ) + + + COUNT( DISTINCT - - col2 ) col1 FROM tab1 AS cor0
----
1600
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9691
SELECT DISTINCT + - 50 * - 32 col1, + COUNT ( DISTINCT + 97 ) + + + COUNT ( DISTINCT - - col2 ) col1 FROM tab1 AS cor0
----
1600
4

query I rowsort
SELECT DISTINCT - - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT + ( ( + - col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT 23 + - + col1 FROM tab1
----
-24
18
9

query I rowsort
SELECT + + 22 + 69 AS col0 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + col1 * 52 * - col1 AS col2 FROM tab2 AS cor0
----
-135252
-233428
-308308

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 8 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - + ( 45 ) AS col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < col2
----

query I rowsort
SELECT DISTINCT + 49 + + 81 AS col2 FROM tab1 AS cor0
----
130

query I rowsort
SELECT DISTINCT - + col0 * 37 * + - 60 AS col2 FROM tab2 AS cor0
----
102120
142080
166500

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL COUNT( * ) + - + ( - - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL COUNT ( * ) + - + ( - - COUNT ( * ) ) FROM tab0
----
0

query II rowsort
SELECT + col2 AS col1, + 24 FROM tab0
----
10
24
47
24
99
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ALL col0 DIV - col0 + col2 * + 13 col1 FROM tab0
----
1286
129
610

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT ALL col0 / - col0 + col2 * + 13 col1 FROM tab0
----
1286
129
610

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL - ( 87 ) + - + col2 DIV col0 FROM tab2
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - ( 87 ) + - + col2 / col0 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT ( + ( - 19 ) ) AS col2 FROM tab0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col1 * col1 col0 FROM tab1
----
59
25
68
2209
96
196

query I rowsort
SELECT ALL - 47 * - col2 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT COUNT( * ) - 28 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9709
SELECT COUNT ( * ) - 28 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT 17 * 39 + + 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 877e1d9cbf9684db55cc65af021215b2

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT DISTINCT + MAX( ALL - col1 ), COUNT( * ) col1 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9711
SELECT DISTINCT + MAX ( ALL - col1 ), COUNT ( * ) col1 FROM tab1 AS cor0
----
-5
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + - 0 ) col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + ( + col2 ) NOT BETWEEN NULL AND + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT + MIN( - 46 ) col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT DISTINCT + MIN ( - 46 ) col1 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + COUNT( * ) * SUM( - col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-9715
SELECT + COUNT ( * ) * SUM ( - col2 ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT ALL COUNT( * ) AS col1, 19 AS col0 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-9716
SELECT ALL COUNT ( * ) AS col1, 19 AS col0 FROM tab0
----
3
19

query I rowsort
SELECT - + ( + col2 ) * - + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + MAX( DISTINCT + col1 ) + 67 AS col1 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9718
SELECT + MAX ( DISTINCT + col1 ) + 67 AS col1 FROM tab2 AS cor0
----
144

query III rowsort
SELECT * FROM tab2 WHERE NOT - 12 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT MAX( - 75 ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT MAX ( - 75 ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 66 AS col1 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT 63 * + col1 AS col2 FROM tab2
----
3213
4221
4851

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 84 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - col1 * - col0 FROM tab0
----
1134
1806
96

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) * 13 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT COUNT( * ) * + 29 FROM tab0 WHERE NOT NULL IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-9726
SELECT COUNT ( * ) * + 29 FROM tab0 WHERE NOT NULL IS NOT NULL
----
87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + 92 FROM tab2
----
17
28
46

query I rowsort
SELECT - col2 * + 37 AS col1 FROM tab0
----
-1739
-3663
-370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + col2 col1 FROM tab1
----
29
38
66

query I rowsort
SELECT - col1 * - 58 AS col2 FROM tab0
----
1218
4698
58

query I rowsort
SELECT - col0 * - 7 FROM tab0 WHERE NOT - 44 IN ( + col2 )
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9733
SELECT ALL * FROM tab0 WHERE ( + col1 ) * 83 IN ( + col1 * + ( - 89 * CAST( NULL AS SIGNED ) ) + ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9733
SELECT ALL * FROM tab0 WHERE ( + col1 ) * 83 IN ( + col1 * + ( - 89 * CAST ( NULL AS INTEGER ) ) + ( - col1 ) )
----

query I rowsort
SELECT ALL ( + col2 ) * col0 + 35 FROM tab0
----
740
905
9638

query I rowsort
SELECT + col0 - 27 * col2 FROM tab2 WHERE 29 = + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT ALL 70 DIV - ( - col0 ) AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL 70 / - ( - col0 ) AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 17 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 93 IS NULL
----
1377
17
357

query I rowsort
SELECT - col1 * 88 AS col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

query I rowsort
SELECT ALL - col0 * - col0 - col0 AS col0 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT - col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9742
SELECT - MAX( CAST( NULL AS DECIMAL ) ) * - MIN( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT - MAX ( CAST ( NULL AS REAL ) ) * - MIN ( + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) * 74 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) * 74 FROM tab0
----
NULL

query I rowsort
SELECT ( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + - 45 FROM tab1 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT + - SUM( ALL CAST( NULL AS SIGNED ) ) * - 80 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - 80 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 96 col1 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN + 46 AND NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 7 > NULL
----

query I rowsort
SELECT ALL 1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + 62 AS col1 FROM tab0
----
1302
5022
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 2 IN ( col0 * - 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL + COUNT( ALL + + 40 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + COUNT ( ALL + + 40 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT AVG ( + col2 ) + - COUNT( * ) FROM tab2 WHERE NOT col1 NOT IN ( + col1 - + col0 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT AVG ( + col2 ) + - COUNT ( * ) FROM tab2 WHERE NOT col1 NOT IN ( + col1 - + col0 / col0 )
----
NULL

query I rowsort
SELECT - 33 * col2 AS col2 FROM tab0
----
-1551
-3267
-330

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 8 * + 29 + + col0 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab0 WHERE NOT 60 - 23 IN ( 22 + 27 )
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9762
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9763
SELECT DISTINCT - CAST( - + CAST( - col0 AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - CAST ( - + CAST ( - col0 AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL - + MIN( ALL + col1 ) + 53 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - + MIN ( ALL + col1 ) + 53 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT col1 + col2 + col0 - + 56 * + 60 AS col1 FROM tab1
----
-3154
-3199
-3211

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT + 95 DIV - col0 AS col0 FROM tab1 WHERE + col1 DIV - ( 75 ) + 14 NOT IN ( col0 DIV - col1 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT + 95 / - col0 AS col0 FROM tab1 WHERE + col1 / - ( 75 ) + 14 NOT IN ( col0 / - col1 )
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT ALL 67 + - + col0 DIV + 84 FROM tab2
----
67
67
67

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL 67 + - + col0 / + 84 FROM tab2
----
67
67
67

query I rowsort
SELECT - col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + 45 * - col1 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT ALL + col2 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NULL < 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + SUM( DISTINCT - - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + SUM ( DISTINCT - - col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT 65 * - col2 + 27 AS col1 FROM tab0 WHERE - 42 = + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 * col2 ) AND ( ( + col0 ) )
----

query I rowsort
SELECT ALL - 54 * 92 + - col0 + + 13 AS col0 FROM tab2
----
-5001
-5019
-5030

query III rowsort
SELECT * FROM tab1 WHERE NULL = col0 / col1 * - col1 AND NOT ( - 8 * 33 ) BETWEEN ( - 96 ) AND NULL
----

query I rowsort
SELECT ( ( col2 ) ) - - 20 FROM tab0
----
119
30
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 78 ) - + + 0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - 53 - + + COUNT( col0 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-9782
SELECT - 53 - + + COUNT ( col0 ) AS col2 FROM tab2
----
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT - - col2 + + CAST( NULL AS SIGNED ) * + - col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT - - col2 + + CAST ( NULL AS INTEGER ) * + - col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 58 FROM tab1 cor0
----
-3422
-3944
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + 82 col1 FROM tab1
----
1148
3854
410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL COUNT( * ) * 4 * - CAST( + 41 AS SIGNED ) AS col2 FROM tab0
----
-492

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL COUNT ( * ) * 4 * - CAST ( + 41 AS INTEGER ) AS col2 FROM tab0
----
-492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col0 * col1 col1 FROM tab1
----
12325
124033
20706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 WHERE NOT 92 * + - col0 + 40 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 93 FROM tab0
----
1953
7533
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 col1 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL AND + - 77 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL - + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 20 * - col2 FROM tab2 AS cor0
----
1160
460
800

query I rowsort
SELECT + 84 FROM tab1 cor0 WHERE NOT + col1 >= + + col2 / - 78
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT - 57 * - 70 * - col1 AS col0 FROM tab1
----
-187530
-19950
-55860

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT - COUNT( * ) * + 8 AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - COUNT ( * ) * + 8 AS col2 FROM tab1
----
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 16 * - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + 64 AS col0, - col0 FROM tab2
----
64
-46
64
-64
64
-75

query I rowsort
SELECT + col1 * - col1 * + - ( - col0 ) AS col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ( - + SUM( DISTINCT ( ( + 14 ) ) ) ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-14

skipif mysql # not compatible
query I rowsort label-9804
SELECT ( - + SUM ( DISTINCT ( ( + 14 ) ) ) ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 94 * - col1 IS NULL
----

query II rowsort
SELECT DISTINCT 29 - col2 AS col0, ( - 65 ) + - - 50 FROM tab0
----
-18
-15
-70
-15
19
-15

query I rowsort
SELECT + - col0 + - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT + 96 + col1 FROM tab1
----
101
110
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL - MIN( + - CAST( NULL AS SIGNED ) ) + - MAX( DISTINCT col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL - MIN ( + - CAST ( NULL AS INTEGER ) ) + - MAX ( DISTINCT col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 + + ( - ( col2 ) ) FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9813
SELECT 95 AS col1, - CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NULL
----
95
-46
95
-64
95
-75

skipif mysql # not compatible
query II rowsort label-9813
SELECT 95 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
95
-46
95
-64
95
-75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT + 49 * - COUNT( * ) * - COUNT( * ) * COUNT( * ) - + AVG ( ALL + ( + + CAST( NULL AS SIGNED ) ) ) + SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT + 49 * - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) - + AVG ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ) + SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 0 IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL col2 * + 62 * - 3 FROM tab1
----
-10974
-12648
-17856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + - 30 AS col0 FROM tab1 AS cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 * - col0 * - - ( + + col0 ) AS col0, - col0 FROM tab0 AS cor0
----
-3375
-15
-658503
-87
-912673
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9822
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + CAST( NULL AS DECIMAL ) = + - col1
----

skipif mysql # not compatible
query III rowsort label-9822
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + CAST ( NULL AS REAL ) = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT COUNT( + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9823
SELECT COUNT ( + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 / - + col2 + + col1 * + 25 + + + 50 + col0 IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT - + 78 * - CAST( NULL AS SIGNED ) + - col1 * 46 + col1 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-9825
SELECT - + 78 * - CAST ( NULL AS INTEGER ) + - col1 * 46 + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT DISTINCT 91 * + ( + 41 ) * + + col2 * ( - col0 ) / - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT 91 * + ( + 41 ) * + + col2 * ( - col0 ) / - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ( + COUNT( * ) ) * + - 64 AS col2 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-9828
SELECT ( + COUNT ( * ) ) * + - 64 AS col2 FROM tab2
----
-192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT BETWEEN + - 56 AND col1
----

query I rowsort
SELECT ALL 69 + + - col1 * col0 AS col2 FROM tab1
----
-356
-4208
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT 44 * COUNT( * ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-9831
SELECT 44 * COUNT ( * ) AS col2 FROM tab0
----
132

query I rowsort
SELECT - - col0 FROM tab1 WHERE - - col0 * col0 * - ( col0 ) < col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT COUNT( - - col0 ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9833
SELECT COUNT ( - - col0 ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT + col1 * + + 76 AS col2 FROM tab2
----
3876
5092
5852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 20 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 20 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 45 * col1 + + 8 * - col2 * 43 AS col1 FROM tab0
----
-19813
-34101
-4385

query I rowsort
SELECT DISTINCT 27 - + col1 AS col1 FROM tab2
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + 8 + MIN( - col0 ) AS col0 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 8 + MIN ( - col0 ) AS col0 FROM tab2
----
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col2 / - col1 * - 93
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9840
SELECT * FROM tab2 AS cor0 WHERE + CAST( - 93 AS SIGNED ) * CAST( NULL AS DECIMAL ) - + + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9840
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - 93 AS INTEGER ) * CAST ( NULL AS REAL ) - + + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 95 + - CAST( - ( - col2 ) AS SIGNED ) - col0 IN ( + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 95 + - CAST ( - ( - col2 ) AS INTEGER ) - col0 IN ( + - col0 )
----
0

query I rowsort
SELECT + 77 * - + col0 * - col1 FROM tab1 AS cor0
----
32725
329329
54978

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / col0 + - ( 31 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + + MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + + MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9845
SELECT 96 * - + COUNT( * ) - COUNT( * ) DIV - SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9845
SELECT 96 * - + COUNT ( * ) - COUNT ( * ) / - SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - - 66 ) ) * - AVG ( ALL + col1 ) col2 FROM tab2 WHERE NOT - - col0 NOT BETWEEN NULL AND - 68
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab1, tab0 cor0
----
19

query I rowsort
SELECT col1 - + 75 AS col2 FROM tab2
----
-24
-8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL SUM( - + col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL SUM ( - + col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT - 67 + + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( + 86 AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( + 86 AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 33 * + ( - 0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT - COUNT( * ) col1, COUNT( 76 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9854
SELECT - COUNT ( * ) col1, COUNT ( 76 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-9

query I rowsort
SELECT ALL - col2 * + + 78 AS col0 FROM tab1 AS cor0
----
-4602
-5304
-7488

query I rowsort
SELECT DISTINCT - col1 * - 27 FROM tab1 AS cor0
----
1269
135
378

query II rowsort
SELECT - 48 AS col0, - 62 AS col1 FROM tab2 AS cor0
----
-48
-62
-48
-62
-48
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL COUNT( * ) * + 75 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL COUNT ( * ) * + 75 FROM tab0 AS cor0
----
225

query I rowsort
SELECT + ( + - 72 ) FROM tab0 cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT - MAX( + + col2 ) + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - MAX ( + + col2 ) + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-90

query II rowsort
SELECT - col2 AS col0, ( - col0 ) + - - col0 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT + 95 DIV - MAX( - + col2 ) col2 FROM tab0 AS cor0 WHERE - 73 IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9862
SELECT + 95 / - MAX ( - + col2 ) col2 FROM tab0 AS cor0 WHERE - 73 IS NOT NULL
----
9

query II rowsort
SELECT DISTINCT + 44 AS col1, - col2 FROM tab2 AS cor0
----
44
-23
44
-40
44
-58

query I rowsort
SELECT ALL - col1 + + - col1 AS col2 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - + 72 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - + 72 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 72 * - - col2 AS col2 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT DISTINCT 51 + 37 + + col2 FROM tab0
----
135
187
98

query II rowsort
SELECT ALL - 50 * + + 33 AS col1, 31 AS col0 FROM tab2
----
-1650
31
-1650
31
-1650
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT DISTINCT - col2 DIV - col1 + - ( - ( + col1 ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - col2 / - col1 + - ( - ( + col1 ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9870
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( ( + CAST( - + col0 AS DECIMAL ) ) * + ( + - col1 ) - + col2 + - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9870
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( ( + CAST ( - + col0 AS REAL ) ) * + ( + - col1 ) - + col2 + - ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9871
SELECT + + 82 DIV 20 AS col1, + col2 FROM tab1 AS cor0
----
4
59
4
68
4
96

skipif mysql # not compatible
query II rowsort label-9871
SELECT + + 82 / 20 AS col1, + col2 FROM tab1 AS cor0
----
4
59
4
68
4
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9875
SELECT DISTINCT + 38 / - ( - + col2 ) * col1 AS col0, + col1 FROM tab2 AS cor0 WHERE 33 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-9875
SELECT DISTINCT + 38 / - ( - + col2 ) * col1 AS col0, + col1 FROM tab2 AS cor0 WHERE 33 <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT + ( col2 ) DIV + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT + ( col2 ) / + col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE - col2 >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT - MAX( ALL - + ( - + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - MAX ( ALL - + ( - + col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 65 - + col2 FROM tab1 AS cor0
----
-3
-31
6

query I rowsort
SELECT + col0 + 63 - - col2 + col0 * + - 0 * + col0 AS col0 FROM tab0 cor0
----
125
160
259

query II rowsort
SELECT ALL + 5, col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT 17 + - + col0 AS col2 FROM tab2 cor0
----
-29
-47
-58

query II rowsort
SELECT ALL + - col1 - - col1 - - col0 + + + col2 * + col1 * + 98 - - col2 * + col0 + 95 + - col1, - 71 * + + 93 - + - col2 + - + col2 AS col2 FROM tab0 AS cor0
----
19496
-6603
21611
-6603
373820
-6603

query I rowsort
SELECT ( + + col2 ) + + + col2 AS col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL + 5 * col0 AS col0 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + 5 * col0 AS col0 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + - 50 + + col1 * - col2 * + 78 col1, 36 + 32 FROM tab1 AS cor0
----
-104868
68
-23055
68
-249291
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL - COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + - col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL + ( - MIN( + col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + ( - MIN ( + col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT ALL 70 AS col2, COUNT( * ) FROM tab0
----
70
3

skipif mysql # not compatible
query II rowsort label-9893
SELECT ALL 70 AS col2, COUNT ( * ) FROM tab0
----
70
3

query III rowsort
SELECT col1 AS col2, col2 * - col0 * 31 AS col0, - 68 AS col0 FROM tab2
----
9 values hashing to 2ea1a7f2cbad584be80a2aefd0458019

query II rowsort
SELECT DISTINCT col1, ( - - col1 ) * - col0 AS col0 FROM tab0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + ( - MAX( + + 60 ) ) col1 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9896
SELECT ALL + ( - MAX ( + + 60 ) ) col1 FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT COUNT( 30 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9897
SELECT COUNT ( 30 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, col2 + 78 * - col0 col2 FROM tab2 AS cor0
----
46
-3565
64
-4952
75
-5792

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT + SUM( DISTINCT - ( 64 ) ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + SUM ( DISTINCT - ( 64 ) ) FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT + COUNT( - - 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + COUNT ( - - 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - - - col0 - - - col1 <= NULL
----

query II rowsort
SELECT col0 + 60 AS col1, col0 AS col1 FROM tab0 AS cor0
----
147
87
157
97
75
15

query II rowsort
SELECT + 67 + + - 80, - 55 + + col2 AS col2 FROM tab0 AS cor0
----
-13
-45
-13
-8
-13
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9905
SELECT - COUNT( * ) + - - MIN( ALL - - col2 ) * - - 0 DIV CAST( - 85 AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9905
SELECT - COUNT ( * ) + - - MIN ( ALL - - col2 ) * - - 0 / CAST ( - 85 AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + SUM( ALL - col2 ) col1 FROM tab0 AS cor0 WHERE + col1 / col0 IS NOT NULL
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9906
SELECT + SUM ( ALL - col2 ) col1 FROM tab0 AS cor0 WHERE + col1 / col0 IS NOT NULL
----
-156

query II rowsort
SELECT ALL + col0, - col1 * 23 AS col2 FROM tab0
----
15
-1863
87
-483
97
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT MIN( - 8 ) FROM tab2, tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT MIN ( - 8 ) FROM tab2, tab2 AS cor0
----
-8

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE - col1 <> + col2
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL <= + - 11
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL <= + - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL 49 * - COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL 49 * - COUNT ( * ) FROM tab2
----
-147

query I rowsort
SELECT + 28 * - col2 AS col2 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT DISTINCT + ( - 29 ) + + 30 AS col1 FROM tab2
----
1

query I rowsort
SELECT ALL 15 * - col0 AS col1 FROM tab2
----
-1125
-690
-960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 - col1 + - 12 FROM tab0
----
-78
54
84

query II rowsort
SELECT ( - 57 ), 42 * - + col2 + col0 AS col1 FROM tab1
----
-57
-2393
-57
-2765
-57
-3981

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) IN ( 93 * - col0, - 36 - 52, col2 + col0 - + col2 + col1 + - col1 / - + col1 * + - 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT ( 50 - - - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 - + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT - CAST( + + 97 AS SIGNED ) * - COUNT( DISTINCT + col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - CAST ( + + 97 AS INTEGER ) * - COUNT ( DISTINCT + col0 ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT ( - - ( - COUNT( * ) ) ) FROM tab0 WHERE NOT - col0 + - + col2 IN ( + col0, - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT ( - - ( - COUNT ( * ) ) ) FROM tab0 WHERE NOT - col0 + - + col2 IN ( + col0, - col0 )
----
-3

query II rowsort
SELECT ALL col1 * + + ( - - col0 ), + col0 * col2 AS col1 FROM tab0
----
1215
705
1827
870
97
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9924
SELECT ALL COUNT( * ) DIV 99 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL COUNT ( * ) / 99 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT SUM( + 68 ) AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT SUM ( + 68 ) AS col2 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + 5 * - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9927
SELECT + 5 * - COUNT ( * ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col0 col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + 11 * + 80 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT + CAST( - MIN( DISTINCT col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9930
SELECT + CAST ( - MIN ( DISTINCT col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL col0, + 27 FROM tab2 AS cor0
----
46
27
64
27
75
27

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > - col0 + - + col2
----

query I rowsort
SELECT - col2 * 28 + + col0 AS col1 FROM tab0 AS cor0
----
-1301
-193
-2675

query I rowsort
SELECT - 96 + + + col1 + - 30 + + + 9 * - col1 AS col0 FROM tab2 AS cor0
----
-534
-662
-742

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + 1 + col1 + + 10 DIV 13 FROM tab1 cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 1 + col1 + + 10 / 13 FROM tab1 cor0
----
15
48
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + + 70 col0 FROM tab0
----
151
151
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 6 * - + 72 * - - COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9937
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 6 * - + 72 * - - COUNT ( * ) col0 FROM tab2
----
NULL

query I rowsort
SELECT + 4 + + - col1 - + col2 * + 67 FROM tab1
----
-3954
-4599
-6442

query I rowsort
SELECT ALL - 55 + - - col2 FROM tab1
----
13
4
41

query I rowsort
SELECT ALL 70 * - + col0 + 42 AS col2 FROM tab1
----
-3528
-5908
-6328

query I rowsort
SELECT DISTINCT col2 * + col1 + + ( - col1 ) AS col0 FROM tab0
----
189
3726
98

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col0 FROM tab0
----
-66
-96
66

query II rowsort
SELECT - + 65, col2 AS col2 FROM tab1 AS cor0
----
-65
59
-65
68
-65
96

query I rowsort
SELECT + + col1 * + 80 AS col0 FROM tab2 AS cor0
----
4080
5360
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL CAST( NULL AS SIGNED ) * col0 / col1 + - 24 * + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT ALL CAST ( NULL AS INTEGER ) * col0 / col1 + - 24 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT ALL COUNT( * ) DIV - ( - 53 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL COUNT ( * ) / - ( - 53 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT SUM( ALL + 14 ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9947
SELECT SUM ( ALL + 14 ) AS col2 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT + ( + + ( - CAST( NULL AS SIGNED ) ) ) * + + ( 71 ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT + ( + + ( - CAST ( NULL AS INTEGER ) ) ) * + + ( 71 ) + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - ( - ( - 0 ) ) * - ( + col0 ) + - col1 + - 47 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2248
4804
4911

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9950
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST( NULL AS SIGNED ) + + - ( 86 ), - col1, + 60 )
----

skipif mysql # not compatible
query III rowsort label-9950
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST ( NULL AS INTEGER ) + + - ( 86 ), - col1, + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - 2 + - + COUNT( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9951
SELECT - 2 + - + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT + - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9952
SELECT + - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT COUNT( + + ( - CAST( + - 49 AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT COUNT ( + + ( - CAST ( + - 49 AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT - - COUNT( * ) DIV + 40 col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT - - COUNT ( * ) / + 40 col1 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9955
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9955
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab0 WHERE col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col0 * + - 38 + - 8 + + col1 FROM tab1
----
-1932
-3233
-3419

query I rowsort
SELECT DISTINCT - 45 FROM tab2 WHERE + + col1 - - - col0 <= - col0
----

query II rowsort
SELECT col1, - col2 FROM tab0 WHERE + col0 * + ( + col2 ) * - + col0 * 22 + - col2 * 98 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT + col1 + col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + col1 + col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - MIN( col2 ) - 58 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9961
SELECT - MIN ( col2 ) - 58 FROM tab2
----
-81

query I rowsort
SELECT col0 * + 25 - + col2 FROM tab0
----
2165
2326
328

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL + SUM( col0 ) + 46 AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL + SUM ( col0 ) + 46 AS col1 FROM tab2
----
231

query II rowsort
SELECT ALL + 62 AS col0, + 77 + col1 + + 75 - - col2 * - 7 + - + 18 FROM tab2 AS cor0
----
62
-205
62
-69
62
24

query I rowsort
SELECT ALL 40 * + + col2 AS col0 FROM tab0
----
1880
3960
400

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9966
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) NOT IN ( - col0 * + - col1, ( CAST( - col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9966
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) NOT IN ( - col0 * + - col1, ( CAST ( - col2 AS INTEGER ) ) )
----

query I rowsort
SELECT + ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 89 * + col2 AS col2 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT + + 53 * COUNT( * ) AS col2, 29 col1 FROM tab1 cor0
----
159
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9969
SELECT + + 53 * COUNT ( * ) AS col2, 29 col1 FROM tab1 cor0
----
159
29

query I rowsort
SELECT col1 * - ( + + 63 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT COUNT( ALL 45 ) * - + MAX( + col1 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9972
SELECT COUNT ( ALL 45 ) * - + MAX ( + col1 ) AS col0 FROM tab0
----
-243

query II rowsort
SELECT col1, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT SUM( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT SUM ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col0, 49 * + 82 AS col1 FROM tab0
----
15
4018
87
4018
97
4018

query II rowsort
SELECT + col2, - 9 FROM tab1
----
59
-9
68
-9
96
-9

query I rowsort
SELECT - col2 * + col0 FROM tab0 AS cor0 WHERE NOT - 54 / col0 >= - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col1 * 26 * col1 * 9 NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ALL + + 98 * col2 + + - col2 FROM tab2 AS cor0
----
2231
3880
5626

query I rowsort
SELECT DISTINCT 45 + - 55 AS col0 FROM tab1
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9981
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 - 39 AS col0 FROM tab2 AS cor0
----
-110
-110
-110

query I rowsort
SELECT - - ( + + col2 ) - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT - 80 + - SUM( - 70 ) FROM tab1 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-9984
SELECT - 80 + - SUM ( - 70 ) FROM tab1 AS cor0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + - COUNT( * ) + - - 65 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-9985
SELECT + - COUNT ( * ) + - - 65 FROM tab0 cor0
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + 41 / + - 91 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + ( - - 82 ) FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT + col0 + - ( + col1 ) * + + col1 FROM tab1 AS cor0
----
-145
-2118
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT ALL - + col1 DIV col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9989
SELECT ALL - + col1 / col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab1 AS cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col1 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 23 * col2 + - col1 AS col1 FROM tab2
----
-1401
-580
-997

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT ALL + col2 + 82 + + col2 + - + CAST( + 61 AS SIGNED ) FROM tab2
----
101
137
67

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + col2 + 82 + + col2 + - + CAST ( + 61 AS INTEGER ) FROM tab2
----
101
137
67

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - ( - col2 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col1 * + col1 + - 27 FROM tab2 cor0
----
2574
4462
5902

query II rowsort
SELECT + 82 AS col0, - 10 FROM tab0 AS cor0
----
82
-10
82
-10
82
-10

query II rowsort
SELECT + col2, col0 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
144
68
159
96
147

