sqllogictest
Artifact Content
Not logged in

Artifact 276b12d77af954758ed62f722587c546c4fb03da:


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 re