sqllogictest
Artifact Content
Not logged in

Artifact f2dfce8d1f4ecac4e6be9c843d17c3ade7f6f5fd:


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 83 * ( + 62 ) AS col2 FROM tab2
----
5146
5146
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL 76 * ( - COUNT( * ) ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL 76 * ( - COUNT ( * ) ) FROM tab2
----
-228

query II rowsort
SELECT col2 AS col2, - col1 - + 43 FROM tab1 WHERE NOT NULL = - col2
----

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

query I rowsort
SELECT DISTINCT - 31 * - + col2 AS col2 FROM tab0
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query II rowsort label-5
SELECT + 21 DIV + 21 AS col1, 1 FROM tab2 AS cor0
----
1
1
1
1
1
1

skipif mysql # not compatible
query II rowsort label-5
SELECT + 21 / + 21 AS col1, 1 FROM tab2 AS cor0
----
1
1
1
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - - col0 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 3 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT 9 + - COUNT( * ) * + - 1 AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT 9 + - COUNT ( * ) * + - 1 AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab0 cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL MAX( ALL + - 64 ) * CAST( + + SUM( ALL - 96 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18432

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL MAX ( ALL + - 64 ) * CAST ( + + SUM ( ALL - 96 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18432

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

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT ALL COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
3
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT 82 DIV - 29 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-16
SELECT 82 / - 29 AS col2 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT - 30 * + - 66 DIV + COUNT( * ) AS col2 FROM tab2
----
660

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - 30 * + - 66 / + COUNT ( * ) AS col2 FROM tab2
----
660

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

query I rowsort
SELECT ALL - ( + 93 ) * 31 AS col1 FROM tab1
----
-2883
-2883
-2883

query I rowsort
SELECT 22 - ( - + col1 ) + + - col2 FROM tab1
----
-32
-60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT 84 + 42 + - 55 AS col0, - MAX( DISTINCT + 88 ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
71
-88

skipif mysql # not compatible
query II rowsort label-21
SELECT 84 + 42 + - 55 AS col0, - MAX ( DISTINCT + 88 ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
71
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT + 3 DIV + - CAST( 4 AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + 3 / + - CAST ( 4 AS INTEGER ) AS col2 FROM tab0
----
0

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

query I rowsort
SELECT + col0 * + - col0 * - - col0 + + col2 FROM tab2 cor0
----
-262104
-421817
-97313

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + + SUM( DISTINCT - - col0 ) + + 35 col0 FROM tab2 AS cor0
----
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT + + SUM ( DISTINCT - - col0 ) + + 35 col0 FROM tab2 AS cor0
----
220

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

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

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

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab0 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-29
SELECT + + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
51

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

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

query I rowsort
SELECT ALL - 68 FROM tab0 cor0 WHERE NULL IS NULL
----
-68
-68
-68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NOT + ( 1 ) = NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col0, 31 FROM tab1 AS cor0
----
14
31
47
31
5
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-39
SELECT + - col0 + CAST( + + col1 AS SIGNED ), + 19 AS col0 FROM tab2 AS cor0
----
-8
19
13
19
5
19

skipif mysql # not compatible
query II rowsort label-39
SELECT + - col0 + CAST ( + + col1 AS INTEGER ), + 19 AS col0 FROM tab2 AS cor0
----
-8
19
13
19
5
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-40
SELECT DISTINCT + - 7 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT + - 7 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - + COUNT( * ) + + + 36 AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-41
SELECT - + COUNT ( * ) + + + 36 AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL ( + COUNT( * ) ) + 22 col2 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-42
SELECT ALL ( + COUNT ( * ) ) + 22 col2 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT ALL + col0 + 1 DIV col0 col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT ALL + col0 + 1 / col0 col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 35 AS col1 FROM tab0 WHERE ( - 2 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) * 1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 1 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN + col1 * 32 - + 15 * col1 AND - col1 - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT ALL - 60 DIV 83 + col0 * + 32 AS col0 FROM tab1
----
1632
2720
2912

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - 60 / 83 + col0 * + 32 AS col0 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT DISTINCT + col1 * - 63 AS col1 FROM tab1
----
-2961
-315
-882

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

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab0 WHERE NULL NOT IN ( - 91 * - 75 )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( 4 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col0 * 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) <= col0
----

query I rowsort
SELECT 90 * 11 + 47 * + col1 AS col0 FROM tab0
----
1037
1977
4797

query I rowsort
SELECT - col2 + + col2 * + 8 AS col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL COUNT( * ) * MAX( DISTINCT - 88 * + col1 ) AS col0 FROM tab2
----
-13464

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL COUNT ( * ) * MAX ( DISTINCT - 88 * + col1 ) AS col0 FROM tab2
----
-13464

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT MIN( ALL - 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-57
SELECT MIN ( ALL - 46 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL - MIN( DISTINCT col2 ) * + 40 AS col0 FROM tab2
----
-920

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - MIN ( DISTINCT col2 ) * + 40 AS col0 FROM tab2
----
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col2 FROM tab1
----
425
4277
714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT 35 * COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-61
SELECT 35 * COUNT ( * ) FROM tab1
----
105

query I rowsort
SELECT DISTINCT + 20 - col0 FROM tab2
----
-26
-44
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT col2 + + ( + col1 ) DIV col1 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-63
SELECT col2 + + ( + col1 ) / col1 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-59
-68
-96

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT + 61 * + SUM( DISTINCT - 35 * col0 ) AS col0 FROM tab2
----
-394975

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + 61 * + SUM ( DISTINCT - 35 * col0 ) AS col0 FROM tab2
----
-394975

query I rowsort
SELECT col1 + 15 AS col2 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL CAST( 4 AS SIGNED ) AS col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL CAST ( 4 AS INTEGER ) AS col0 FROM tab2
----
4
4
4

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

query I rowsort
SELECT + col1 * + 36 FROM tab2
----
1836
2412
2772

query I rowsort
SELECT ALL - 2 * + col0 FROM tab1
----
-102
-170
-182

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 <= + col2
----
59
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-75
SELECT ALL + CAST( NULL AS DECIMAL ) * - col0 + + col0 * - col0 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + CAST ( NULL AS REAL ) * - col0 + + col0 * - col0 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT + 92 * ( + MIN( - 88 ) ) AS col2 FROM tab0 AS cor0
----
-8096

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + 92 * ( + MIN ( - 88 ) ) AS col2 FROM tab0 AS cor0
----
-8096

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT MAX( - 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-79
SELECT MAX ( - 22 ) AS col2 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT ( col2 ) DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-80
SELECT ( col2 ) / col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 76 col0 FROM tab0 cor0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT + - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT + - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 19 AND NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 - 83 AS col2 FROM tab1 WHERE 13 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT COUNT( * ) + - 8 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT COUNT ( * ) + - 8 FROM tab0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( 47 ) IN ( - col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( 47 ) IN ( - col1 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL MIN( ALL + col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL MIN ( ALL + col0 ) AS col1 FROM tab0 cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-92
SELECT 28 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-92
SELECT 28 / - col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT col0 * - + 30 + - CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab2
----
-1380
-1920
-2250

skipif mysql # not compatible
query I rowsort label-94
SELECT col0 * - + 30 + - CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT - CAST( + 97 AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif mysql # not compatible
query I rowsort label-95
SELECT - CAST ( + 97 AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 < ( + - col0 * + col2 + col2 )
----

query I rowsort
SELECT ALL col1 + - 74 + + col1 AS col0 FROM tab2 AS cor0
----
28
60
80

query I rowsort
SELECT DISTINCT + col2 - + col0 * + col0 * + col2 FROM tab1 cor0
----
-249600
-426216
-563040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT + 99 * 59 AS col2 FROM tab2 AS cor0 WHERE 60 / col2 * + 34 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-100
SELECT + 99 * 59 AS col2 FROM tab2 AS cor0 WHERE 60 / col2 * + 34 >= + CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - - 96 * col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
4416
6144
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * ( - - col2 ) col1 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT DISTINCT + 67 * + + 93 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT + SUM( col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-105
SELECT DISTINCT + SUM ( col0 ) col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT 32 - - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
113
33
53

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

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

query I rowsort
SELECT col2 * - 99 FROM tab0
----
-4653
-9801
-990

query I rowsort
SELECT + col2 FROM tab2 WHERE + 64 * + + 91 - + 2 / col1 IS NULL
----

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

query I rowsort
SELECT - col1 - - - col0 - col2 FROM tab0
----
-118
-143
-197

query I rowsort
SELECT - col0 - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-113
SELECT + 67 - col1 - CAST( + col0 AS SIGNED ) DIV 50 col0 FROM tab0
----
-14
45
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-113
SELECT + 67 - col1 - CAST ( + col0 AS INTEGER ) / 50 col0 FROM tab0
----
-14
45
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT - COUNT( * ) * 8 FROM tab0 AS cor0 WHERE ( + col2 * - col1 + 28 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT - COUNT ( * ) * 8 FROM tab0 AS cor0 WHERE ( + col2 * - col1 + 28 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - col0 * - - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT DISTINCT + 31 / - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) = - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-122
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( col1 AS SIGNED ) ) < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-122
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( col1 AS INTEGER ) ) < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 80 * - col0 + - col1 - 11 / - 99 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( col2 ) * + 10 FROM tab0 AS cor0
----
-100
-470
-990

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

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

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

query I rowsort
SELECT + ( + col2 ) * + col1 + + 62 FROM tab0 AS cor0
----
161
272
3869

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

query II rowsort
SELECT DISTINCT col0, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT 13 DIV - 78 + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-132
SELECT 13 / - 78 + col1 AS col0 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 55 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + - 22 col0 FROM tab0 cor0
----
-21
419
6539

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

skipif mysql # not compatible
query I rowsort label-136
SELECT - COUNT ( * ) + + + CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
-28

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

onlyif mysql # DIV for integer division: 
query II rowsort label-138
SELECT ALL + col2 AS col1, - col1 DIV - 45 FROM tab1 cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + col2 AS col1, - col1 / - 45 FROM tab1 cor0
----
59
0
68
1
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT - 88 DIV col0 FROM tab1 WHERE NOT col0 > + col1 * col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - 88 / col0 FROM tab1 WHERE NOT col0 > + col1 * col1
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT ALL + COUNT( * ) + + + CAST( 61 AS SIGNED ) - - + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + COUNT ( * ) + + + CAST ( 61 AS INTEGER ) - - + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
155

query I rowsort
SELECT - 82 * 41 + + + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-3220
-3221
-3265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT 85 - - + col1 + - + col1 + - CAST( col0 AS SIGNED ) DIV + 75 AS col1 FROM tab0 AS cor0
----
84
85

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT 85 - - + col1 + - + col1 + - CAST ( col0 AS INTEGER ) / + 75 AS col1 FROM tab0 AS cor0
----
84
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 NOT IN ( col2, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT COUNT( * ) + 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67

skipif mysql # not compatible
query I rowsort label-145
SELECT COUNT ( * ) + 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67

query I rowsort
SELECT + - col1 + + 43 * + - col0 AS col1 FROM tab0 AS cor0
----
-3762
-4172
-726

query I rowsort
SELECT - - col0 + - 75 * - ( + - col2 ) + + 43 FROM tab2 cor0
----
-1636
-2893
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT + 93 - 10 * - - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + 93 - 10 * - - COUNT ( * ) AS col1 FROM tab1
----
63

query I rowsort
SELECT + col0 / + + col1 FROM tab1 WHERE NULL < ( - 44 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col1, col1 FROM tab2
----
32
51
32
67
32
77

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

skipif mysql # not compatible
query I rowsort label-151
SELECT 17 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL + SUM( 86 ) * + 67 * + 86 AS col0 FROM tab1
----
1486596

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + SUM ( 86 ) * + 67 * + 86 AS col0 FROM tab1
----
1486596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-153
SELECT - 83 DIV - + COUNT( + col2 ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-153
SELECT - 83 / - + COUNT ( + col2 ) AS col1 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT col2 DIV ( + col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-154
SELECT col2 / ( + col1 ) AS col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT 32 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
32

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

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

query I rowsort
SELECT ALL 81 * 20 * + 62 - 81 AS col1 FROM tab2 AS cor0 WHERE NOT ( 48 * + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL + COUNT( * ) * - 92 + + 53 FROM tab2 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + COUNT ( * ) * - 92 + + 53 FROM tab2 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-160
SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) + - + col2 + - 15 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - + col2 + - 15 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT COUNT( * ) * + + 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-161
SELECT COUNT ( * ) * + + 99 AS col2 FROM tab1
----
297

query I rowsort
SELECT - - 0 + + - 51 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-163
SELECT ALL * FROM tab2 WHERE + 35 + - CAST( + + col0 AS SIGNED ) * + col0 + - col0 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-163
SELECT ALL * FROM tab2 WHERE + 35 + - CAST ( + + col0 AS INTEGER ) * + col0 + - col0 * col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL COUNT ( * ) + - 84 FROM tab2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT ALL 76 DIV + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 76 / + COUNT ( * ) FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT ALL - - COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-166
SELECT ALL - - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

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

query I rowsort
SELECT ALL 15 + col1 AS col1 FROM tab0 AS cor0
----
16
36
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - ( col0 ) ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 5 * - col2 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-171
SELECT + COUNT( DISTINCT + - 53 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ( + + 34 ) AS col0 FROM tab2
----
34
34
34

query I rowsort
SELECT DISTINCT col0 + - + 79 FROM tab0
----
-64
18
8

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

onlyif mysql # DIV for integer division: 
query II rowsort label-175
SELECT - - col2 AS col0, + col1 DIV - - col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-175
SELECT - - col2 AS col0, + col1 / - - col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

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

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + + AVG ( CAST ( NULL AS INTEGER ) ) - - SUM ( + col1 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + 7 * col2 col1 FROM tab1 AS cor0
----
408
429
658

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

skipif mysql # not compatible
query I rowsort label-178
SELECT - COUNT ( - + ( 14 ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - + col2 - + ( - 44 ) FROM tab0 AS cor0
----
-3
-55
34

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

query I rowsort
SELECT col2 - + - col2 * + - 96 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - 84 * COUNT( col1 ) - - COUNT( * ) col2 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT ALL - 84 * COUNT ( col1 ) - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT 7 DIV + 96 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-183
SELECT 7 / + 96 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT DISTINCT COUNT( * ) * + CAST( + COUNT( ALL + ( col1 ) ) AS SIGNED ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT COUNT ( * ) * + CAST ( + COUNT ( ALL + ( col1 ) ) AS INTEGER ) AS col1 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col2 + + + col1 * + - col2 + - + col0 * + col0 + col1 FROM tab0 WHERE NOT + col0 + + 91 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - + 16 + - + 93 * + col2 / - col2 + - 78 <> + 19
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 * - - 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL ( - ( - MIN( CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + - ( - + 18 ) AS col0 FROM tab0 AS cor0
----
18

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

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

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

query I rowsort
SELECT + col2 * - 94 AS col0 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 95 + 23 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 87 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT + 47 * + col0 * - 42 AS col0, col0 FROM tab0 AS cor0
----
-171738
87
-191478
97
-29610
15

query I rowsort
SELECT DISTINCT - + col1 * 93 * col2 * 40 FROM tab1 cor0
----
-1097400
-11889120
-4999680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT ALL - COUNT( * ) * - - 30 DIV - COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL - COUNT ( * ) * - - 30 / - COUNT ( * ) AS col1 FROM tab0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL + SUM( - 30 ) + CAST( NULL AS SIGNED ) * - 29 / - ( + 47 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + SUM ( - 30 ) + CAST ( NULL AS INTEGER ) * - 29 / - ( + 47 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - ( - col0 ) + - 72 FROM tab1
----
-21
13
19

query I rowsort
SELECT col2 * 3 + col0 + + col1 + + col2 - - col1 * + - col2 * - - 57 FROM tab0
----
-11822
-216715
-5149

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * col2 + - - col0 col1 FROM tab0 AS cor0
----
1002
2176
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 93 - + 92 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE - 40 > NULL
----

query I rowsort
SELECT - 5 * - - col2 FROM tab1
----
-295
-340
-480

query I rowsort
SELECT DISTINCT + 20 + + col1 AS col2 FROM tab1
----
25
34
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT 92 DIV + 5 - COUNT( + col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-208
SELECT 92 / + 5 - COUNT ( + col1 ) FROM tab1
----
15

query I rowsort
SELECT + col2 + - col1 * - + col1 * - 27 * - 18 AS col2 FROM tab2 AS cor0
----
1264109
2181712
2881534

query I rowsort
SELECT ALL 55 AS col2 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE - col2 * + 50 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE - col2 * + 50 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT ( - - MAX( - - 15 ) ) FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT ( - - MAX ( - - 15 ) ) FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19, 66 col2 FROM tab1 AS cor0
----
19
66

query II rowsort
SELECT DISTINCT + col2 AS col2, + ( - ( - + 43 ) ) + + col0 * + - col2 * + col1 + col1 AS col0 FROM tab1 cor0
----
59
-25027
68
-290746
96
-68487

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + col2 FROM tab1 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT 23 AS col2, ( + 93 ) + col1 AS col2, + 22 FROM tab1
----
9 values hashing to 01ca8b47e5dfdc54a4d76d243adb94b0

query II rowsort
SELECT - col1, - col2 + - 11 + 0 AS col1 FROM tab0
----
-1
-110
-21
-21
-81
-58

query II rowsort
SELECT ALL - col2, + 86 * + 37 + - col0 * - 60 AS col2 FROM tab1
----
-59
8282
-68
8642
-96
6242

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT COUNT( * ) - + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * col2 NOT IN ( - 4 + + col2 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-224
SELECT COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * col2 NOT IN ( - 4 + + col2 ) ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - MIN( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-225
SELECT - MIN ( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT + - col1 * col1 + - 25 FROM tab1 AS cor0
----
-221
-2234
-50

query I rowsort
SELECT ALL + col2 + - 7 FROM tab0 AS cor0 WHERE NOT col0 * - 4 IS NULL
----
3
40
92

query II rowsort
SELECT DISTINCT col1 * col2, + col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

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

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

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

query II rowsort
SELECT - 18, ( col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT - 21 * + + 28 - - + col0 + - - 24 - + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-540
-541
-547

skipif mysql # not compatible
query I rowsort label-233
SELECT - 21 * + + 28 - - + col0 + - - 24 - + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-540
-541
-547

query I rowsort
SELECT ALL + 22 + - col2 + - col2 + col2 AS col2 FROM tab1
----
-37
-46
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) - col2 * - col1 col0 FROM tab2 AS cor0
----
1219
3144
3961

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

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

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

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

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

query I rowsort
SELECT ALL ( + - col1 ) * + - 56 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT + 91 + 38 AS col0 FROM tab1 AS cor0
----
129
129
129

query I rowsort
SELECT ALL + 39 + - + col0 * + col2 + + col1 AS col2 FROM tab1
----
-4843
-4971
-6102

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT 0 DIV 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT 0 / 61 FROM tab2
----
0

query I rowsort
SELECT + 49 + + - col2 FROM tab1
----
-10
-19
-47

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

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + SUM ( - + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT ALL - - 72 * col2 * 92 FROM tab2 AS cor0
----
152352
264960
384192

query I rowsort
SELECT ( + - 96 ) AS col2 FROM tab2
----
-96
-96
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - - COUNT( ALL - 13 ) - - + 68 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-251
SELECT - - COUNT ( ALL - 13 ) - - + 68 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71

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

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

query I rowsort
SELECT - + 61 + + + col1 FROM tab2 AS cor0
----
-10
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - - COUNT( * ) * + 72 + - 14 * 68 AS col2 FROM tab2 AS cor0
----
-736

skipif mysql # not compatible
query I rowsort label-254
SELECT - - COUNT ( * ) * + 72 + - 14 * 68 AS col2 FROM tab2 AS cor0
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + + 22 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-255
SELECT + + 22 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
19

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT COUNT( * ) * - + 30 FROM tab1, tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-259
SELECT COUNT ( * ) * - + 30 FROM tab1, tab1 AS cor0
----
-270

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT - + COUNT( * ) DIV - 5 FROM tab0 AS cor0 WHERE NOT - col1 + + CAST( NULL AS DECIMAL ) + - - col0 + - - col1 NOT BETWEEN - + col2 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - + COUNT ( * ) / - 5 FROM tab0 AS cor0 WHERE NOT - col1 + + CAST ( NULL AS REAL ) + - - col0 + - - col1 NOT BETWEEN - + col2 AND col1
----
0

query I rowsort
SELECT ALL + col1 + - + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col2, 62 AS col2 FROM tab1 AS cor0
----
35
62
35
62
35
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT + + CAST( col0 AS SIGNED ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-265
SELECT + + CAST ( col0 AS INTEGER ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT DISTINCT + - MAX( - col2 ) * - 85 AS col1 FROM tab1 AS cor0
----
-5015

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + - MAX ( - col2 ) * - 85 AS col1 FROM tab1 AS cor0
----
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( - col1 ) col2, + 56 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * + col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 25 + col0 AS col0 FROM tab1
----
110
116
76

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NULL NOT IN ( col2, + col2, 55 )
----

query I rowsort
SELECT DISTINCT ( + + 19 ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT + 56 + + + 41 FROM tab2
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL COUNT( * ) * COUNT( * ) + - 82 AS col0 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 82 AS col0 FROM tab2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + col2 DIV + - ( 97 ) col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-276
SELECT + col2 / + - ( 97 ) col1 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + col2 - col0 + - col1 FROM tab0 AS cor0
----
-49
-98
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 78 + - col0 + - - col1 * - col0 col2 FROM tab1 AS cor0
----
2730
3213
6120

query I rowsort
SELECT DISTINCT + col0 + + col2 + - col0 * 91 * + 19 AS col1 FROM tab0 AS cor0
----
-150326
-167517
-25873

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + 10 + + + col0 IS NULL
----

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 4 / + + 0 > NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-285
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - + 46 ), 71 * - 3 * - col1 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to 9a7cdde86b9ff8824e15ce3d5ee023df

skipif mysql # not compatible
query III rowsort label-285
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - + 46 ), 71 * - 3 * - col1 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to 9a7cdde86b9ff8824e15ce3d5ee023df

query I rowsort
SELECT DISTINCT - ( + 25 ) * - col0 FROM tab0
----
2175
2425
375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 34 ) = - ( + + 61 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 17
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-289
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 85 * 22 IS NULL
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 76 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - SUM( ALL 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-293
SELECT - SUM ( ALL 79 ) FROM tab1
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE - col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-296
SELECT * FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) * + 64 + - 88 = + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-296
SELECT * FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) * + 64 + - 88 = + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + + col0 col2 FROM tab2 cor0
----
2714
3776
4425

query I rowsort
SELECT ALL + + col2 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-205379
-314432
-884736

query I rowsort
SELECT DISTINCT - - 37 AS col2 FROM tab0 cor0
----
37

query I rowsort
SELECT 55 * + col0 AS col1 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT COUNT( - 93 ) + + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-302
SELECT COUNT ( - 93 ) + + 27 FROM tab2
----
30

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT DISTINCT + + col0 * + + col1 / + + 66 FROM tab0 WHERE NULL = + col0 + - 85 / 0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-305
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 78 = - col2 * - - ( - col0 ) + - col0 - + CAST( col1 AS SIGNED ) * + 16 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-305
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 78 = - col2 * - - ( - col0 ) + - col0 - + CAST ( col1 AS INTEGER ) * + 16 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-307
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ( - 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + - col0 * 24 AS col2 FROM tab2 AS cor0
----
-1104
-1536
-1800

query II rowsort
SELECT DISTINCT + + 81, + col2 FROM tab1 AS cor0
----
81
59
81
68
81
96

query I rowsort
SELECT + col2 * + ( col0 ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT DISTINCT + col2 + + col2 DIV col1 * - ( - col1 ) FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT + col2 + + col2 / col1 * - ( - col1 ) FROM tab0
----
10
198
47

query I rowsort
SELECT ALL col1 + + 47 - + col1 * 66 + + col1 FROM tab2
----
-3217
-4241
-4881

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

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

query I rowsort
SELECT ALL - col0 + 36 FROM tab1
----
-15
-49
-55

query I rowsort
SELECT ALL - + col1 + - col1 FROM tab0 WHERE col1 + + col2 / - col1 IS NULL
----

query I rowsort
SELECT 26 * + - 94 + col1 AS col1 FROM tab0 cor0
----
-2363
-2423
-2443

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

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

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT 8 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT + - col1 * ( + - col2 ) + 75 FROM tab1 cor0
----
1419
3271
370

query I rowsort
SELECT DISTINCT col0 * - + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT COUNT( DISTINCT 50 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT COUNT ( DISTINCT 50 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT + col0 DIV col0 AS col2, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-327
SELECT + col0 / col0 AS col2, col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

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

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

query I rowsort
SELECT DISTINCT 27 + + col1 FROM tab1
----
32
41
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT 93 * - - COUNT( * ) * + ( 7 ) AS col0 FROM tab1
----
1953

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT 93 * - - COUNT ( * ) * + ( 7 ) AS col0 FROM tab1
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + 46 + 69 + - MAX( + + col1 ) + - COUNT( * ) + + - COUNT( * ) + + - ( + ( COUNT( * ) ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-332
SELECT + 46 + 69 + - MAX ( + + col1 ) + - COUNT ( * ) + + - COUNT ( * ) + + - ( + ( COUNT ( * ) ) ) AS col0 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT ALL + 94 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 94 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT SUM( DISTINCT - - 44 ) + - + 42 * + + COUNT( * ) AS col0 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-335
SELECT SUM ( DISTINCT - - 44 ) + - + 42 * + + COUNT ( * ) AS col0 FROM tab2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT 71 * 94 + + col2 DIV 34 - col0 * + col2 * col1 AS col0 FROM tab2 cor0
----
-190445
-284775
-47284

skipif mysql # not compatible
query I rowsort label-336
SELECT 71 * 94 + + col2 / 34 - col0 * + col2 * col1 AS col0 FROM tab2 cor0
----
-190445
-284775
-47284

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

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

query I rowsort
SELECT DISTINCT + col1 + col1 - 81 * - ( 0 ) FROM tab0
----
162
2
42

query I rowsort
SELECT - 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + col0 - - - 11 + + col1 FROM tab0 AS cor0
----
85
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT + - ( + 71 ) * col2 + - col0 * - col2 + - + col2 DIV + - col1 - + 1 FROM tab1 AS cor0
----
-1915
1360
836

skipif mysql # not compatible
query I rowsort label-342
SELECT + - ( + 71 ) * col2 + - col0 * - col2 + - + col2 / + - col1 - + 1 FROM tab1 AS cor0
----
-1915
1360
836

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + 24 * 88 + - 85 + + col2 * + - 22 + + col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-150
1808
994

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + 24 * 88 + - 85 + + col2 * + - 22 + + col1 / - - col1 AS col0 FROM tab0 AS cor0
----
-150
1808
994

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT - SUM( ALL col0 ) - + 57 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT - SUM ( ALL col0 ) - + 57 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-56

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - - CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 32 * - col1 FROM tab1
----
13600
136864
22848

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * - - 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 * col0 * col0 AS col2, + 28 AS col1 FROM tab1
----
249696
28
426275
28
563108
28

query I rowsort
SELECT ( + ( + - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL COUNT( * ) * + 56 AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL COUNT ( * ) * + 56 AS col1 FROM tab2
----
168

query I rowsort
SELECT + col2 * - - 55 FROM tab2
----
1265
2200
3190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT CAST( - COUNT( 89 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-356
SELECT CAST ( - COUNT ( 89 ) AS INTEGER ) FROM tab0
----
-3

query I rowsort
SELECT - - col1 * col1 * - + 64 + ( + + col0 ) + - + 29 + - ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-166401
-287175
-379357

query I rowsort
SELECT + + 84 * + col0 * - - col2 FROM tab0 AS cor0
----
59220
73080
806652

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-360
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 27 * - col0 + - - col2 FROM tab0 AS cor0
----
NULL
-2339
NULL
-2520
NULL
-358

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 27 * - col0 + - - col2 FROM tab0 AS cor0
----
NULL
-2339
NULL
-2520
NULL
-358

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT ALL 63 AS col1, COUNT( * ) FROM tab2 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-361
SELECT ALL 63 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
63
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-362
SELECT 86 AS col0, + 43 + + 89 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
86
135

skipif mysql # not compatible
query II rowsort label-362
SELECT 86 AS col0, + 43 + + 89 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
86
135

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT MIN( ALL - 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-364
SELECT MIN ( ALL - 7 ) FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT ALL + 33 * - + 21 AS col2, SUM( + 15 ) FROM tab2
----
-693
45

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL + 33 * - + 21 AS col2, SUM ( + 15 ) FROM tab2
----
-693
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 83 + - - ( - - 3 ) col2, + col0 AS col2 FROM tab1
----
86
51
86
85
86
91

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 84 / + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + + COUNT( ALL 93 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-371
SELECT + + COUNT ( ALL 93 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL + ( 26 ) * COUNT( * ) + COUNT( * ) + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
254

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + ( 26 ) * COUNT ( * ) + COUNT ( * ) + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
254

query I rowsort
SELECT ALL col0 + + 95 + 20 AS col1 FROM tab2
----
161
179
190

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + 21 - COUNT( * ) col0 FROM tab2 AS cor0
----
18

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 68 + - - 54 + - + col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL COUNT( * ) / - + 29 * - MAX( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL COUNT ( * ) / - + 29 * - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - 46 )
----
NULL

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

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

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

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

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

query I rowsort
SELECT - - 77 * + - col0 AS col2 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT - CAST( - AVG ( DISTINCT + 53 ) AS SIGNED ) * CAST( 7 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
371

skipif mysql # not compatible
query I rowsort label-384
SELECT - CAST ( - AVG ( DISTINCT + 53 ) AS INTEGER ) * CAST ( 7 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
371

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT 30 DIV - + col2 * - col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-385
SELECT 30 / - + col2 * - col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + - 56 * + - 39 FROM tab1
----
128856
148512
209664

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

query I rowsort
SELECT + col1 + + 4 AS col2 FROM tab2 AS cor0
----
55
71
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-390
SELECT + + CAST( - 88 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

skipif mysql # not compatible
query I rowsort label-390
SELECT + + CAST ( - 88 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT - + 94 * - col0 * 79 AS col2 FROM tab2 AS cor0
----
341596
475264
556950

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

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

query II rowsort
SELECT ALL col2 + - 53, + col0 FROM tab2 AS cor0
----
-13
64
-30
46
5
75

query I rowsort
SELECT 8 * + 45 + 10 FROM tab0 AS cor0
----
370
370
370

query I rowsort
SELECT - 15 + 58 AS col1 FROM tab1 cor0
----
43
43
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + col0 + - 46 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col2 * - 26 IS NULL
----

query I rowsort
SELECT 14 + - + col2 * + ( + ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
1187
3094
3900

query II rowsort
SELECT ALL col0 + + 73 AS col1, + col0 * + - 71 FROM tab1 AS cor0
----
124
-3621
158
-6035
164
-6461

query II rowsort
SELECT DISTINCT - 59 - + + col0, col0 AS col1 FROM tab0 AS cor0
----
-146
87
-156
97
-74
15

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

skipif mysql # not compatible
query III rowsort label-401
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-402
SELECT 59 * - COUNT ( * ) AS col0 FROM tab0
----
-177

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT MAX( DISTINCT 84 ) col0 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT DISTINCT MAX ( DISTINCT 84 ) col0 FROM tab2
----
84

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-409
SELECT SUM( DISTINCT + 51 ) * - + COUNT( * ) AS col1, COUNT( ALL ( - col1 ) ), + COUNT( * ) FROM tab2
----
-153
3
3

skipif mysql # not compatible
query III rowsort label-409
SELECT SUM ( DISTINCT + 51 ) * - + COUNT ( * ) AS col1, COUNT ( ALL ( - col1 ) ), + COUNT ( * ) FROM tab2
----
-153
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83, - col1 col1 FROM tab1 AS cor0
----
83
-14
83
-47
83
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT - + col1 DIV + - 5 AS col1 FROM tab1 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-411
SELECT - + col1 / + - 5 AS col1 FROM tab1 AS cor0
----
1
2
9

query I rowsort
SELECT + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT + col1 + - col1 DIV col1 * col2 * - + 84 FROM tab1
----
4961
5759
8078

skipif mysql # not compatible
query I rowsort label-414
SELECT + col1 + - col1 / col1 * col2 * - + 84 FROM tab1
----
4961
5759
8078

query I rowsort
SELECT ALL + - ( - 25 ) + 49 * + col0 * - col0 FROM tab1 AS cor0
----
-127424
-354000
-405744

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL + + SUM( DISTINCT + 53 ) AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + + SUM ( DISTINCT + 53 ) AS col0 FROM tab0 AS cor0
----
53

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT + 44 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-420
SELECT + 44 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT MIN( - + col1 ) * MAX( ALL - 10 ) + - COUNT( * ) AS col1 FROM tab2
----
767

skipif mysql # not compatible
query I rowsort label-421
SELECT MIN ( - + col1 ) * MAX ( ALL - 10 ) + - COUNT ( * ) AS col1 FROM tab2
----
767

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT DISTINCT - CAST( - 47 AS SIGNED ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - CAST ( - 47 AS INTEGER ) AS col0 FROM tab2
----
47

query I rowsort
SELECT - 42 * 39 FROM tab1
----
-1638
-1638
-1638

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 < + 26
----

query I rowsort
SELECT - - col0 FROM tab1 WHERE + + 53 * 49 * ( - - col1 ) * - 4 BETWEEN ( - col1 * col1 * col1 * - - 51 * - col0 ) AND 30
----

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

skipif mysql # not compatible
query I rowsort label-429
SELECT + COUNT ( DISTINCT - col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 88 + - + col0 * + 45 FROM tab0
----
-3827
-4277
-587

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

query II rowsort
SELECT + col0 AS col2, col1 + - 65 FROM tab2
----
46
-14
64
12
75
2

query I rowsort
SELECT DISTINCT - col2 * - - 93 + - 92 AS col1 FROM tab0 AS cor0
----
-1022
-4463
-9299

query II rowsort
SELECT DISTINCT - 82 * + - 66 AS col1, col2 AS col2 FROM tab1 cor0
----
5412
59
5412
68
5412
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT ALL - CAST( NULL AS SIGNED ) * 78 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - CAST ( NULL AS INTEGER ) * 78 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + 62
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL 6 * - + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL 6 * - + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT + 50 * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL < col2 - - col2 * + ( + CAST( NULL AS SIGNED ) ) / + - col1 * + col0 + + 94 + + col2
----

skipif mysql # not compatible
query I rowsort label-439
SELECT + 50 * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL < col2 - - col2 * + ( + CAST ( NULL AS INTEGER ) ) / + - col1 * + col0 + + 94 + + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * + + col1 col0 FROM tab0
----
1428
5508
68

query I rowsort
SELECT - 15 * - 33 AS col1 FROM tab0
----
495
495
495

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT + 49 * + - MAX( DISTINCT col0 ) * + COUNT( * ) AS col2 FROM tab1
----
-13377

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + 49 * + - MAX ( DISTINCT col0 ) * + COUNT ( * ) AS col2 FROM tab1
----
-13377

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 25 + + col0
----

query I rowsort
SELECT DISTINCT - - 47 FROM tab1 AS cor0
----
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT + + MAX( - - 0 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-447
SELECT + + MAX ( - - 0 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL - 64 + COUNT( * ) + - - 76 FROM tab1 WHERE col2 * + col0 * col0 * col0 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - 64 + COUNT ( * ) + - - 76 FROM tab1 WHERE col2 * + col0 * col0 * col0 IS NOT NULL
----
15

query I rowsort
SELECT col0 * - + 41 * - col1 AS col1 FROM tab2 AS cor0 WHERE + col0 <> ( - col1 )
----
202048
206025
96186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-450
SELECT * FROM tab1 AS cor0 WHERE CAST( - + col2 AS SIGNED ) BETWEEN + 23 + - + col2 - - col1 AND + 74 + + - 4
----

skipif mysql # not compatible
query III rowsort label-450
SELECT * FROM tab1 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) BETWEEN + 23 + - + col2 - - col1 AND + 74 + + - 4
----

query I rowsort
SELECT DISTINCT + - col1 * + + 66 + col1 + - - col2 FROM tab2 AS cor0
----
-3292
-4297
-4965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, + 47 * - col2 * - + 86 col2 FROM tab0 AS cor0
----
-15
189974
-87
40420
-97
400158

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT - - MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

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

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

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

query I rowsort
SELECT ALL - + ( + col1 ) / + 35 + + col2 + + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT + col1 + + + CAST( - col0 AS SIGNED ) FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-458
SELECT + col1 + + + CAST ( - col0 AS INTEGER ) FROM tab1
----
-37
-44
-80

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT - CAST( NULL AS SIGNED ) + - MIN( + col0 ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT - 89 + 1 - - col2 FROM tab1
----
-20
-29
8

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - MIN( + + col0 ) FROM tab1 WHERE NULL <= + - 66 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT - MIN ( + + col0 ) FROM tab1 WHERE NULL <= + - 66 * + col1
----
NULL

query I rowsort
SELECT ALL + 9 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ( + 45 ) - - + SUM( - 85 ) AS col1 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-465
SELECT ( + 45 ) - - + SUM ( - 85 ) AS col1 FROM tab2
----
-210

query I rowsort
SELECT + 58 * + 27 * + col1 AS col1 FROM tab1
----
21924
73602
7830

query I rowsort
SELECT + 53 AS col1 FROM tab1 cor0
----
53
53
53

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

query I rowsort
SELECT DISTINCT 65 * - + 84 FROM tab0 cor0
----
-5460

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 28 NOT IN ( col1 * - - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 31 * - COUNT( * ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-472
SELECT - 31 * - COUNT ( * ) AS col2 FROM tab0
----
93

query I rowsort
SELECT - col2 * + 87 * - col1 FROM tab1
----
116928
25665
278052

query I rowsort
SELECT ALL 59 * - + col0 AS col2 FROM tab1
----
-3009
-5015
-5369

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL col0 * 38 DIV col0 AS col2 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL col0 * 38 / col0 AS col2 FROM tab0
----
38
38
38

query III rowsort
SELECT col0, - 89, col0 FROM tab0
----
9 values hashing to 80a071ba5d7f4c1edd80d7fae8011b53

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT MAX( + + 38 ) AS col2, 0 FROM tab1 AS cor0
----
38
0

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT MAX ( + + 38 ) AS col2, 0 FROM tab1 AS cor0
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT - + ( + - MIN( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - + ( + - MIN ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - ( 3 ) AS col0 FROM tab2 AS cor0 WHERE ( - 92 ) * - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL - 84 * - - COUNT( * ) AS col1 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - 84 * - - COUNT ( * ) AS col1 FROM tab0
----
-252

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 85 IS NULL
----

query I rowsort
SELECT + col2 + + 26 + 27 FROM tab2
----
111
76
93

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 IN ( col0, col2, + + 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col0 FROM tab1 AS cor0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / - col2 > - col0 + - ( - ( - col0 ) ) - + ( 27 )
----

query I rowsort
SELECT ALL ( - 48 ) AS col2 FROM tab0 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - col0 col0 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT 36 * + 37 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f7faa857e1c305a1d2209ffcdd75cc99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-492
SELECT DISTINCT - MIN ( ALL + + 91 ) col2 FROM tab1
----
-91

query I rowsort
SELECT 32 - + + col1 AS col1 FROM tab0
----
-49
11
31

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT DISTINCT - + COUNT( ALL - col0 ) - + ( + 62 ) * - + CAST( NULL AS SIGNED ) + + 98 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT - + COUNT ( ALL - col0 ) - + ( + 62 ) * - + CAST ( NULL AS INTEGER ) + + 98 FROM tab0 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 < 64
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < 64
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND col0
----

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

query I rowsort
SELECT ALL + 19 FROM tab2 WHERE NOT + 67 NOT IN ( - col0 + col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-502
SELECT ALL * FROM tab1 WHERE NOT CAST( - ( - 93 ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-502
SELECT ALL * FROM tab1 WHERE NOT CAST ( - ( - 93 ) AS INTEGER ) >= NULL
----

query I rowsort
SELECT 86 - - col2 AS col1 FROM tab2
----
109
126
144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT + COUNT( * ) + 44 AS col2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + COUNT ( * ) + 44 AS col2 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL MAX( DISTINCT col2 ) + 68 * COUNT( * ) AS col2 FROM tab2
----
262

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL MAX ( DISTINCT col2 ) + 68 * COUNT ( * ) AS col2 FROM tab2
----
262

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( 43 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT 33 * 40 + - 87 * COUNT( * ) AS col1 FROM tab0 WHERE - ( 96 ) IS NOT NULL
----
1059

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT 33 * 40 + - 87 * COUNT ( * ) AS col1 FROM tab0 WHERE - ( 96 ) IS NOT NULL
----
1059

query I rowsort
SELECT ALL col0 + 17 AS col1 FROM tab0
----
104
114
32

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT COUNT( * ) * 13 FROM tab0 WHERE NOT ( + col2 * + col1 + - 30 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-512
SELECT COUNT ( * ) * 13 FROM tab0 WHERE NOT ( + col2 * + col1 + - 30 ) <= NULL
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + 42 * + 72 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL + MIN( ALL + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL + MIN ( ALL + col1 ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 25 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) <> ( - 52 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT 93 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT + 36 * - 53 + - COUNT( * ) AS col0 FROM tab1
----
-1911

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT + 36 * - 53 + - COUNT ( * ) AS col0 FROM tab1
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ( COUNT( - col2 ) ) * COUNT( * ) FROM tab0 WHERE + col1 + + col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-523
SELECT ( COUNT ( - col2 ) ) * COUNT ( * ) FROM tab0 WHERE + col1 + + col1 IS NOT NULL
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL - CAST( + col1 AS SIGNED ) * - col2 + col0 * - 11 AS col2 FROM tab1 AS cor0
----
-640
2195
783

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - CAST ( + col1 AS INTEGER ) * - col2 + col0 * - 11 AS col2 FROM tab1 AS cor0
----
-640
2195
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT DISTINCT + 38 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( CAST( 93 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + 38 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( CAST ( 93 AS INTEGER ) ) < NULL
----

query I rowsort
SELECT + 3 * - ( 21 * + col0 ) + col2 FROM tab0 cor0
----
-5471
-6012
-898

query I rowsort
SELECT + col2 + 22 FROM tab2 AS cor0
----
45
62
80

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

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

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

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

query I rowsort
SELECT col1 * + 41 + col2 FROM tab1 AS cor0
----
1995
264
670

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col2 * + 55 + + 37
----

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

skipif mysql # not compatible
query III rowsort label-534
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - col0
----

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

query I rowsort
SELECT - 69 + + col1 FROM tab2
----
-18
-2
8

query I rowsort
SELECT DISTINCT 15 / 8 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT 60 * 6 * COUNT( DISTINCT 67 ) col0 FROM tab1
----
360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-540
SELECT 60 * 6 * COUNT ( DISTINCT 67 ) col0 FROM tab1
----
360

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - col2 + + 43 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT - 95 DIV + col1 col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT - 95 / + col1 col1 FROM tab1 AS cor0
----
-19
-2
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT MAX( - 22 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-544
SELECT MAX ( - 22 ) FROM tab0 AS cor0
----
-22

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

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

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

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN col0 AND col0
----
-15
-87
-97

query I rowsort
SELECT + col2 * - 96 FROM tab1 AS cor0
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT + - 80 * + ( + 48 ) FROM tab0 AS cor0 WHERE NOT + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT - COUNT( col0 ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - ( col1 ) / col1 NOT BETWEEN ( NULL ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT - COUNT ( col0 ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - ( col1 ) / col1 NOT BETWEEN ( NULL ) AND - col1
----
0

query I rowsort
SELECT 12 + - 4 AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - COUNT( * ) * + 86 + 9 AS col1 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - COUNT ( * ) * + 86 + 9 AS col1 FROM tab0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT ALL col1 + - - 13 DIV - col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL col1 + - - 13 / - col1 AS col0 FROM tab2
----
51
67
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-563
SELECT DISTINCT + col1 * - col2 AS col0, - CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + col1 * - col2 AS col0, - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - COUNT( * ) + SUM( - ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-564
SELECT - COUNT ( * ) + SUM ( - ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
224

query I rowsort
SELECT 27 + col2 - col2 * - + col2 AS col0 FROM tab0
----
137
2283
9927

query I rowsort
SELECT - 43 * + - col1 + col1 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT + 91 + 71 FROM tab0
----
162
162
162

query I rowsort
SELECT DISTINCT 78 + + 9 * - 92 * + + col2 AS col2 FROM tab1
----
-48774
-56226
-79410

query I rowsort
SELECT ALL - col2 * 28 + + - col1 FROM tab2 cor0
----
-1197
-1691
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - COUNT( - + col1 ) * - 95 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT - COUNT ( - + col1 ) * - 95 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0

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

query I rowsort
SELECT DISTINCT + 42 * + + 7 AS col2 FROM tab0 AS cor0
----
294

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

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

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

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

query I rowsort
SELECT DISTINCT 19 FROM tab2 AS cor0 WHERE NOT + 42 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 90 - + col1 + + - 89 AS col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT col2 * 67 - + + col0 FROM tab2
----
1495
2616
3811

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT DISTINCT 1, - COUNT( * ) AS col2 FROM tab0
----
1
-3

skipif mysql # not compatible
query II rowsort label-578
SELECT DISTINCT 1, - COUNT ( * ) AS col2 FROM tab0
----
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL MIN( 12 ) AS col0 FROM tab2, tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL MIN ( 12 ) AS col0 FROM tab2, tab1 AS cor0
----
12

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

query I rowsort
SELECT + ( + ( + AVG ( 79 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 ) > NULL
----
NULL

query I rowsort
SELECT ALL col1 * + 64 - + col2 AS col0 FROM tab0 AS cor0
----
-35
1334
5137

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT - + col2 DIV col0 + - col1 AS col2 FROM tab1 cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - + col2 / col0 + - col1 AS col2 FROM tab1 cor0
----
-15
-47
-5

query I rowsort
SELECT DISTINCT + 93 * - col0 AS col2 FROM tab2 AS cor0
----
-4278
-5952
-6975

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

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

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

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

query II rowsort
SELECT col0 AS col2, 82 AS col0 FROM tab0 AS cor0
----
15
82
87
82
97
82

query II rowsort
SELECT + col2 * + - col1 AS col1, + ( + - 76 ) * - - col2 AS col2 FROM tab2
----
-1173
-1748
-3080
-3040
-3886
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-589
SELECT ALL + CAST( - col2 AS SIGNED ), + col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-589
SELECT ALL + CAST ( - col2 AS INTEGER ), + col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL - ( + col0 ), 20 * + 43 AS col0 FROM tab1 AS cor0
----
-51
860
-85
860
-91
860

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT + - col1 DIV 33 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-591
SELECT + - col1 / 33 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT + 2 * - col1, + col1 + + col1 AS col0 FROM tab1 AS cor0
----
-10
10
-28
28
-94
94

query II rowsort
SELECT ( + col1 ) AS col1, col0 * col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT + + SUM( ALL + 93 ) AS col2, 90 + - - 6 FROM tab2 AS cor0
----
279
96

skipif mysql # not compatible
query II rowsort label-595
SELECT + + SUM ( ALL + 93 ) AS col2, 90 + - - 6 FROM tab2 AS cor0
----
279
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 * + col0 col0, + 2 * + col0 AS col0 FROM tab0 AS cor0
----
2175
174
2425
194
375
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT col1 + - 73 + CAST( NULL AS SIGNED ) + - col0 * col2 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-597
SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT col1 + - 73 + CAST ( NULL AS INTEGER ) + - col0 * col2 IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT ALL - ( 42 ) FROM tab0
----
-42
-42
-42

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

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

query I rowsort
SELECT DISTINCT + 22 + col1 + 74 * - - col0 - 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3426
4784
5588

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

query I rowsort
SELECT DISTINCT 13 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND + col0 - + 39
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT - - COUNT( * ) + MIN( DISTINCT - 44 ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - - COUNT ( * ) + MIN ( DISTINCT - 44 ) FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col2 * + - col0 NOT IN ( + + 39 )
----
3

skipif mysql # not compatible
query I rowsort label-607
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * + - col0 NOT IN ( + + 39 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL + + 14 + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + + 14 + COUNT ( * ) FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 39 col0, col1 FROM tab1 AS cor0
----
-20
5
-29
47
-57
14

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + - 26 - - 78 + + col1 col1 FROM tab0 AS cor0 WHERE + 44 + + col2 BETWEEN col0 AND 69
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT MAX( ALL - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab1
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT col2 DIV - 65 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-616
SELECT col2 / - 65 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 89 * + - 17 AS col0 FROM tab1
----
-1513
-1513
-1513

query I rowsort
SELECT + col1 * + + col2 * - 18 * + + 84 FROM tab1
----
-2032128
-446040
-4832352

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
55
55

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + col2 ) ) IN ( 10, - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT col2 * + CAST( + 59 AS SIGNED ) FROM tab0
----
2773
5841
590

skipif mysql # not compatible
query I rowsort label-622
SELECT col2 * + CAST ( + 59 AS INTEGER ) FROM tab0
----
2773
5841
590

query II rowsort
SELECT col0, + 20 + - 64 * - col0 FROM tab1
----
51
3284
85
5460
91
5844

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

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

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab0 cor0
----
-62

query I rowsort
SELECT DISTINCT + col2 * - 81 AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT - col0, + col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + 78 * + col1 AS col1 FROM tab0
----
1638
6318
78

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

query I rowsort
SELECT DISTINCT col1 * + 28 + - - 5 AS col0 FROM tab2
----
1433
1881
2161

query I rowsort
SELECT ALL ( - 34 ) AS col1 FROM tab2 WHERE ( 18 + - 39 ) IS NOT NULL
----
-34
-34
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT + - ( + COUNT( * ) ) * + + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
-756

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

query I rowsort
SELECT DISTINCT - 46 + + col2 FROM tab1
----
13
22
50

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + 73 AS col0 FROM tab1 AS cor0
----
124
158
164

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL 58 + + MIN( + col0 ) FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL 58 + + MIN ( + col0 ) FROM tab1 AS cor0
----
109

query I rowsort
SELECT DISTINCT + 13 * col2 - 37 AS col0 FROM tab0 AS cor0
----
1250
574
93

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT - SUM( 82 ) AS col1 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-639
SELECT - SUM ( 82 ) AS col1 FROM tab1 AS cor0
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col0 * + 42 AS col0 FROM tab1 AS cor0
----
51
-2142
85
-3570
91
-3822

query II rowsort
SELECT DISTINCT - ( - 40 ) AS col2, + col1 AS col0 FROM tab1
----
40
14
40
47
40
5

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

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

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

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

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

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2 cor0
----
-95
-95
-95

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

query I rowsort
SELECT + + 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

skipif mysql # not compatible
query III rowsort label-648
SELECT DISTINCT * FROM tab1 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT DISTINCT - col1 DIV + + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - col1 / + + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT DISTINCT - + col0, - col1 * - 43 AS col1 FROM tab2 AS cor0
----
-46
2193
-64
3311
-75
2881

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT col2 DIV 39 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-654
SELECT col2 / 39 col0 FROM tab2 AS cor0
----
0
1
1

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

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

query I rowsort
SELECT - col1 + - col2 * - 7 AS col0 FROM tab1
----
408
429
658

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT + COUNT( * ) + + 63 + MAX( - - col2 ) AS col0 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + COUNT ( * ) + + 63 + MAX ( - - col2 ) AS col0 FROM tab2
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - 63 * + CAST( + col1 AS SIGNED ) * - col1 - + ( + col2 ) AS col0 FROM tab2 WHERE - 82 * + 80 > NULL
----

skipif mysql # not compatible
query I rowsort label-658
SELECT - 63 * + CAST ( + col1 AS INTEGER ) * - col1 - + ( + col2 ) AS col0 FROM tab2 WHERE - 82 * + 80 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-659
SELECT + col2 + - 7 + - + col2 * col1, - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2
----
-1157
NULL
-3047
NULL
-3835
NULL

skipif mysql # not compatible
query II rowsort label-659
SELECT + col2 + - 7 + - + col2 * col1, - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2
----
-1157
NULL
-3047
NULL
-3835
NULL

query I rowsort
SELECT DISTINCT 55 + col1 - + + ( + + col1 ) + - + col2 * - col0 AS col2 FROM tab0
----
760
925
9658

query I rowsort
SELECT - 95 + col0 AS col2 FROM tab1
----
-10
-4
-44

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

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

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT DISTINCT MAX( + 86 ) col2 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-664
SELECT DISTINCT MAX ( + 86 ) col2 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col0 * - 84 + 75 col1 FROM tab2 WHERE + + col2 IS NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0, + ( - - col0 ) + + col2 AS col1 FROM tab1
----
-51
147
-85
144
-91
159

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

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col1 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT 94 * - col1 + - + col0 FROM tab0 WHERE NOT + + CAST( + 91 AS SIGNED ) IS NULL
----
-191
-2061
-7629

skipif mysql # not compatible
query I rowsort label-671
SELECT 94 * - col1 + - + col0 FROM tab0 WHERE NOT + + CAST ( + 91 AS INTEGER ) IS NULL
----
-191
-2061
-7629

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 col1, 57 AS col1 FROM tab2 cor0
----
78
57
78
57
78
57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col1 FROM tab2 cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 28 DIV 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 28 / 82 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL + + 83 * COUNT( * ) AS col2 FROM tab1 cor0
----
249

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + + 83 * COUNT ( * ) AS col2 FROM tab1 cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 87 * + COUNT( * ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-680
SELECT + 87 * + COUNT ( * ) FROM tab2
----
261

query I rowsort
SELECT - col0 * 19 FROM tab1
----
-1615
-1729
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT ALL + 96 * col1 DIV - 29 + + col0 AS col0 FROM tab2
----
-122
-146
-190

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + 96 * col1 / - 29 + + col0 AS col0 FROM tab2
----
-122
-146
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 + col0 col1 FROM tab1
----
38
4
44

query III rowsort
SELECT * FROM tab0 WHERE 16 IS NULL
----

query I rowsort
SELECT - col2 * - col2 - + 44 FROM tab1
----
3437
4580
9172

query I rowsort
SELECT DISTINCT 91 * + col2 FROM tab1 WHERE NOT NULL IN ( - + col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-688
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) - ( + 68 ) AS col1 FROM tab2 cor0
----
3
-65

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) - ( + 68 ) AS col1 FROM tab2 cor0
----
3
-65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - 26 FROM tab2 AS cor0
----
-1326
-1742
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + col2 col1 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-694
SELECT * FROM tab1 cor0 WHERE NOT NULL < - - 69 OR NOT 3 * - - 15 - + CAST( + + col1 AS SIGNED ) + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-694
SELECT * FROM tab1 cor0 WHERE NOT NULL < - - 69 OR NOT 3 * - - 15 - + CAST ( + + col1 AS INTEGER ) + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-695
SELECT - col1, - col1 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

skipif mysql # not compatible
query II rowsort label-695
SELECT - col1, - col1 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

query I rowsort
SELECT - ( + - 58 ) FROM tab0 AS cor0
----
58
58
58

query II rowsort
SELECT + 60 AS col2, 11 AS col2 FROM tab0 AS cor0
----
60
11
60
11
60
11

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

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

query II rowsort
SELECT DISTINCT ( + + col1 ), + col1 + + col1 * - - 65 FROM tab1
----
14
924
47
3102
5
330

query I rowsort
SELECT ( + col0 ) * - 44 * col0 AS col2 FROM tab2
----
-180224
-247500
-93104

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + ( + MIN( ALL - col1 ) ) + 83 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-702
SELECT + ( + MIN ( ALL - col1 ) ) + 83 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT 65 FROM tab0 AS cor0 WHERE NOT ( NOT - 98 = CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-703
SELECT 65 FROM tab0 AS cor0 WHERE NOT ( NOT - 98 = CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 * 23 * - + 62 * - 37 * 20 FROM tab0 AS cor0
----
1055240
22160040
85474440

query I rowsort
SELECT col0 - - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 - - + col2 IS NOT NULL )
----
108
96
98

query II rowsort
SELECT ALL - col2, + 10 + + col0 * ( + 73 ) AS col1 FROM tab1 AS cor0
----
-59
6215
-68
6653
-96
3733

query I rowsort
SELECT 7 + + col0 FROM tab0 AS cor0
----
104
22
94

query II rowsort
SELECT 93 AS col1, + col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 9 * + col2 + col1 * ( + 35 ) AS col1 FROM tab2 AS cor0
----
1578
1823
2335

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT DISTINCT + CAST( + 37 AS SIGNED ) AS col2 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) AS col2 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT ALL + COUNT( * ), - COUNT( * ) AS col0 FROM tab0 WHERE NOT + - 70 IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-712
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - 70 IS NULL
----
3
-3

query I rowsort
SELECT 66 * + + col0 AS col1 FROM tab0
----
5742
6402
990

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

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - COUNT ( * ) + AVG ( DISTINCT + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT - 35 * + col1 AS col0 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT - + col0 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-717
SELECT 83, col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-717
SELECT 83, col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
83
NULL
83
NULL
83
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT + 61 DIV + - 88 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + 61 / + - 88 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-721
SELECT ALL + - 60 DIV ( col1 ), col0 FROM tab2 cor0
----
-1
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-721
SELECT ALL + - 60 / ( col1 ), col0 FROM tab2 cor0
----
-1
46
0
64
0
75

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 * + - ( + + ( - col0 ) ) / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 6 * - col2 FROM tab2
----
-138
-240
-348

query II rowsort
SELECT + col2 AS col2, - col2 + col2 * - - 13 * - col2 FROM tab0
----
10
-1310
47
-28764
99
-127512

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

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 + - 26 AS col0, - col2 + 12 AS col0 FROM tab1
----
-122
-84
-85
-47
-94
-56

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + col1 + + - 33 * + 20 col0 FROM tab2
----
-573
-583
-599

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE + - col2 + - col0 * - 89 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE + - col2 + - col0 * - 89 IS NOT NULL
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL - ( - - MIN( + col2 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL - ( - - MIN ( + col2 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT + ( - col0 ) * + - ( - ( - col1 ) ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col1 IN ( + - 53 * - + col2 - + - col1 * + - col2 * + - col2 )
----

skipif mysql # not compatible
query I rowsort label-734
SELECT + ( - col0 ) * + - ( - ( - col1 ) ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col1 IN ( + - 53 * - + col2 - + - col1 * + - col2 * + - col2 )
----

query I rowsort
SELECT ALL + col2 - 14 FROM tab0 cor0
----
-4
33
85

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

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

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

query I rowsort
SELECT ALL - + 44 FROM tab1 AS cor0
----
-44
-44
-44

query II rowsort
SELECT col0, + 47 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 * - 81 - col2 AS col2, col1 AS col2 FROM tab1
----
4035
14
6826
5
7303
47

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT col1 DIV - + col2 - 72 DIV - 81 * - - col1 + col1 AS col1 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-741
SELECT col1 / - + col2 - 72 / - 81 * - - col1 + col1 AS col1 FROM tab0
----
1
19
80

query I rowsort
SELECT col1 - ( col2 ) - + + col1 * col1 FROM tab0
----
-430
-6527
-99

query I rowsort
SELECT DISTINCT - ( - col1 ) * + - col2 + 15 FROM tab1
----
-1329
-280
-3181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 94 col1 FROM tab1
----
-26
-35
2

query I rowsort
SELECT ALL - + 16 - - + 17 AS col2 FROM tab1 AS cor0
----
1
1
1

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

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

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

query II rowsort
SELECT DISTINCT 29 AS col2, + 47 FROM tab2 AS cor0
----
29
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL 78 * + - MAX( - col1 ) FROM tab1 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 78 * + - MAX ( - col1 ) FROM tab1 AS cor0
----
390

query I rowsort
SELECT ALL + col0 * + col1 * col1 AS col1 FROM tab0 cor0
----
38367
97
98415

query I rowsort
SELECT + - col1 * + + 3 * + - 57 + col0 * - - col0 AS col0 FROM tab1 cor0
----
16318
4995
8080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - - SUM( + - col2 ) * - 80 AS col2 FROM tab2 AS cor0
----
9680

skipif mysql # not compatible
query I rowsort label-756
SELECT - - SUM ( + - col2 ) * - 80 AS col2 FROM tab2 AS cor0
----
9680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-757
SELECT DISTINCT + COUNT( * ) DIV - 41 + + SUM( + 64 ) AS col0, - 19 FROM tab2 AS cor0
----
192
-19

skipif mysql # not compatible
query II rowsort label-757
SELECT DISTINCT + COUNT ( * ) / - 41 + + SUM ( + 64 ) AS col0, - 19 FROM tab2 AS cor0
----
192
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + MAX( ALL - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-758
SELECT + MAX ( ALL - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-759
SELECT + + 25 DIV - 14 AS col2, MIN( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-1
48

skipif mysql # not compatible
query II rowsort label-759
SELECT + + 25 / - 14 AS col2, MIN ( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-1
48

onlyif mysql # DIV for integer division: 
query II rowsort label-760
SELECT DISTINCT - col1 DIV - + col1, + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-760
SELECT DISTINCT - col1 / - + col1, + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
51
1
67
1
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + + ( + col1 ) ) + - 77 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - SUM( ALL - 39 ) AS col1 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - SUM ( ALL - 39 ) AS col1 FROM tab2
----
117

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( + + col1 )
----

query I rowsort
SELECT ALL + 96 * + 12 FROM tab0
----
1152
1152
1152

query I rowsort
SELECT ALL 3 + + ( - ( + - col0 ) ) FROM tab1
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - SUM( ALL - 16 ) AS col2 FROM tab2, tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-767
SELECT - SUM ( ALL - 16 ) AS col2 FROM tab2, tab1 AS cor0
----
144

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 NOT BETWEEN + - col1 AND + ( - 27 )
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - - 52 NOT BETWEEN 33 AND NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 + + + col2 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL + col1 DIV 54 * - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
10
99

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + col1 / 54 * - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
10
99

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

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

query I rowsort
SELECT DISTINCT + ( + 26 ) AS col0 FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT - CAST( 10 AS SIGNED ) FROM tab1 WHERE col1 * + - col0 >= - col2
----

skipif mysql # not compatible
query I rowsort label-776
SELECT - CAST ( 10 AS INTEGER ) FROM tab1 WHERE col1 * + - col0 >= - col2
----

query I rowsort
SELECT ALL 3 + - - col2 FROM tab0
----
102
13
50

query I rowsort
SELECT 55 * + col0 + - 78 AS col2 FROM tab0 AS cor0
----
4707
5257
747

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT + COUNT( * ) * - 33 - + COUNT( * ) + + + 79 * + 10 AS col0 FROM tab1 AS cor0
----
688

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + COUNT ( * ) * - 33 - + COUNT ( * ) + + + 79 * + 10 AS col0 FROM tab1 AS cor0
----
688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col2 col0 FROM tab1 cor0
----
4992
5074
6256

query I rowsort
SELECT ALL + 67 FROM tab0 cor0 WHERE NOT NULL >= + 70
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - - 97 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-783
SELECT - - 97 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT DISTINCT + 51 - - + col1 DIV ( - + ( - 77 ) ) FROM tab2
----
51
52

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + 51 - - + col1 / ( - + ( - 77 ) ) FROM tab2
----
51
52

query I rowsort
SELECT - - 41 FROM tab0 WHERE NULL = - 74
----

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT - + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-788
SELECT - + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT 6 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT ALL * FROM tab1 WHERE - 12 * + + col0 <= - 50 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MIN( DISTINCT ( - 96 ) ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-288

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MIN ( DISTINCT ( - 96 ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-288

query I rowsort
SELECT + ( ( col1 ) ) * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-796
SELECT - COUNT( * ), + 49 AS col1 FROM tab2 AS cor0
----
-3
49

skipif mysql # not compatible
query II rowsort label-796
SELECT - COUNT ( * ), + 49 AS col1 FROM tab2 AS cor0
----
-3
49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 ) < col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT DISTINCT + col0 + - col2 * + CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) / - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + col0 + - col2 * + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) / - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 / + col0 > + col1
----
-51
-67
-77

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

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

query I rowsort
SELECT DISTINCT + 35 + + + col2 * col0 AS col1 FROM tab2
----
1093
2595
4385

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

query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL - CAST( NULL AS SIGNED ) + + + AVG ( DISTINCT - 30 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - CAST ( NULL AS INTEGER ) + + + AVG ( DISTINCT - 30 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-805
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT CAST ( NULL AS REAL ) * 2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 27 * - + col2 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ALL + 91 * 21 + + + 84 FROM tab0
----
1995
1995
1995

query I rowsort
SELECT ALL + col2 + - + 67 FROM tab0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT + SUM( + col2 ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + SUM ( + col2 ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-810
SELECT - - col2 AS col0, + col2 - - col2 * + CAST( NULL AS SIGNED ) + - col0 col1 FROM tab0 AS cor0 WHERE - col1 = - + 38 + + col2 * - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-810
SELECT - - col2 AS col0, + col2 - - col2 * + CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab0 AS cor0 WHERE - col1 = - + 38 + + col2 * - col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * - 54 * + + col2 / + col1 FROM tab0 AS cor0 WHERE ( NOT - + col2 + - 11 * + + col0 * + + col2 IS NOT NULL )
----

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

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + MIN ( DISTINCT 39 ) FROM tab1
----
39

query I rowsort
SELECT + col2 + - 33 AS col2 FROM tab1
----
26
35
63

query I rowsort
SELECT + 35 + col2 + col2 AS col2 FROM tab1
----
153
171
227

query I rowsort
SELECT DISTINCT 13 * - 76 FROM tab1
----
-988

query I rowsort
SELECT col2 + + 96 FROM tab0
----
106
143
195

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

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col2 FROM tab0 AS cor0 WHERE 91 IS NULL
----

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

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

query I rowsort
SELECT ALL col2 - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT + + 26 DIV - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT + + 26 / - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT - - col2 - CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-822
SELECT - - col2 - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + ( + col2 ) - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

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

query I rowsort
SELECT 15 - 34 AS col1 FROM tab0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT ALL COUNT( * ) AS col1, + 71 FROM tab2
----
3
71

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL COUNT ( * ) AS col1, + 71 FROM tab2
----
3
71

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT ALL 23 DIV - - 37 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 23 / - - 37 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL MIN( + 44 ) AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL MIN ( + 44 ) AS col0 FROM tab2 AS cor0
----
44

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

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

skipif mysql # not compatible
query I rowsort label-830
SELECT - ( + - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-834
SELECT + - COUNT( * ) * - 89, 35 AS col2 FROM tab2 AS cor0
----
267
35

skipif mysql # not compatible
query II rowsort label-834
SELECT + - COUNT ( * ) * - 89, 35 AS col2 FROM tab2 AS cor0
----
267
35

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

skipif mysql # not compatible
query I rowsort label-835
SELECT + COUNT ( * ) * - + 1 AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( + col1 ) * 16 AS col1 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT 32 * - col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + 13 DIV - 80 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-839
SELECT + 13 / - 80 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-840
SELECT - + 62 + + COUNT( * ) AS col1, 40 DIV - COUNT( * ) FROM tab1 AS cor0
----
-59
-13

skipif mysql # not compatible
query II rowsort label-840
SELECT - + 62 + + COUNT ( * ) AS col1, 40 / - COUNT ( * ) FROM tab1 AS cor0
----
-59
-13

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + col1 / + 93 * + - 56 * - col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT - SUM( - col2 ) FROM tab2 WHERE + ( ( + 15 ) ) = col0 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT - SUM ( - col2 ) FROM tab2 WHERE + ( ( + 15 ) ) = col0 + - + 53
----
NULL

query II rowsort
SELECT DISTINCT - col0 * col0 + + col2, col1 FROM tab2
----
-2093
51
-4056
77
-5567
67

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

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

query I rowsort
SELECT ALL col0 + + - 49 AS col1 FROM tab2
----
-3
15
26

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

query I rowsort
SELECT DISTINCT ( - - 12 ) + - + col2 AS col2 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT DISTINCT + ( + 10 ) * + + ( - - col0 ) FROM tab2 AS cor0
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT col2, col1 + CAST( - 88 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
-83
68
-41
96
-74

skipif mysql # not compatible
query II rowsort label-851
SELECT col2, col1 + CAST ( - 88 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
-83
68
-41
96
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT + 17 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 17 / - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - SUM( ALL - - col2 ) + + - 46 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - SUM ( ALL - - col2 ) + + - 46 FROM tab0
----
-202

query II rowsort
SELECT DISTINCT - - ( - col2 ) * - 36 + + 95 AS col2, - 41 AS col1 FROM tab2 AS cor0
----
1535
-41
2183
-41
923
-41

query I rowsort
SELECT DISTINCT + - col2 * - + col0 + 83 - + + col2 FROM tab0 AS cor0
----
741
943
9587

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

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

query I rowsort
SELECT - + col2 * col0 + - col1 AS col2 FROM tab0 cor0
----
-786
-891
-9604

query II rowsort
SELECT - ( + col1 ), col1 FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-860
SELECT - - ( + - 94 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT - - ( + - 94 ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 / + col2 col2 FROM tab0 WHERE NOT 34 NOT BETWEEN 1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col1 * 95 FROM tab0
----
1995
7695
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 91 col2 FROM tab0
----
1911
7371
91

query I rowsort
SELECT ALL ( col1 ) * - 80 + + col0 AS col1 FROM tab0
----
-1593
-6465
17

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 WHERE NULL > + + col1
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL > + + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT ALL - - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - - col0 / - col1 AS col0 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT ALL - - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

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

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

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

skipif mysql # not compatible
query I rowsort label-874
SELECT - + COUNT ( * ) + 74 AS col0 FROM tab1 cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3, - col1 + ( 19 ) + + col0 col1 FROM tab0 AS cor0
----
3
-47
3
115
3
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + ( - 88 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-877
SELECT ALL COUNT( * ) * - 42 AS col0, COUNT( ALL + + 26 ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL COUNT ( * ) * - 42 AS col0, COUNT ( ALL + + 26 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT DISTINCT - 87 AS col0, ( - COUNT( + ( + col2 ) ) ) FROM tab1 cor0
----
-87
-3

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT - 87 AS col0, ( - COUNT ( + ( + col2 ) ) ) FROM tab1 cor0
----
-87
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-880
SELECT + + col0, + CAST( NULL AS SIGNED ) 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-880
SELECT + + col0, + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-884
SELECT 8 DIV + COUNT( col0 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-884
SELECT 8 / + COUNT ( col0 ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT col0 + - col1 - - - col2 * + 39 * + 89 AS col2 FROM tab0
----
-163203
-343533
-34644

query II rowsort
SELECT ALL col0 + - 61 AS col1, 94 * col2 AS col0 FROM tab2
----
-15
2162
14
5452
3
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT 37 * MAX( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT 37 * MAX ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-555

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

query I rowsort
SELECT DISTINCT + 39 - - col2 FROM tab0 AS cor0
----
138
49
86

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

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + COUNT ( * ) - - + COUNT ( DISTINCT + col1 ) FROM tab0 cor0
----
6

query I rowsort
SELECT - - 49 + - + 10 AS col0 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT - 68 * + + col1 * col2 * - col2 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
1183455
14778213
8773581

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

query I rowsort
SELECT ALL - 19 * + col1 FROM tab1
----
-266
-893
-95

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

query I rowsort
SELECT DISTINCT + - 62 * - - 13 AS col1 FROM tab2 cor0
----
-806

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT MIN( - - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-900
SELECT MIN ( - - col0 ) AS col1 FROM tab1 AS cor0
----
51

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

skipif mysql # not compatible
query I rowsort label-901
SELECT - MAX ( + 27 ) FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT DISTINCT col0 DIV - ( - - 80 ) + + + col1 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT col0 / - ( - - 80 ) + + + col1 FROM tab0 AS cor0
----
0
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + COUNT( * ) * + + 57 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-903
SELECT + COUNT ( * ) * + + 57 FROM tab1 AS cor0
----
171

query I rowsort
SELECT ( - + ( 11 ) ) FROM tab2
----
-11
-11
-11

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

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

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

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

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + 14 * + col0 FROM tab2 AS cor0
----
1050
644
896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT - AVG ( - CAST( NULL AS DECIMAL ) ) / ( + MIN( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT - AVG ( - CAST ( NULL AS REAL ) ) / ( + MIN ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * - col2 col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL + + COUNT( + - ( 97 ) ) * COUNT( * ) - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + + COUNT ( + - ( 97 ) ) * COUNT ( * ) - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

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

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

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

query I rowsort
SELECT + 61 + col1 FROM tab1 AS cor0
----
108
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT 75 * - + COUNT( * ) + MIN( col2 ) AS col2 FROM tab2 cor0
----
-202

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 75 * - + COUNT ( * ) + MIN ( col2 ) AS col2 FROM tab2 cor0
----
-202

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-918
SELECT ALL - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT 7 * - col2 + - 8 - + - col1 * - col1 + 23 DIV - col0 FROM tab1 AS cor0
----
-2693
-446
-876

skipif mysql # not compatible
query I rowsort label-919
SELECT 7 * - col2 + - 8 - + - col1 * - col1 + 23 / - col0 FROM tab1 AS cor0
----
-2693
-446
-876

query I rowsort
SELECT ALL + 74 + 30 - - + 42 FROM tab0
----
146
146
146

query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 * + col0 AS col1 FROM tab0
----
1
9603
21
870
81
705

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-922
SELECT - - 33 / + CAST ( NULL AS INTEGER ) * + + CAST ( col0 AS INTEGER ) col2 FROM tab2 WHERE NULL > NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT 42 AS col0, 68 + MIN( - 92 ) * + - 99 FROM tab2 AS cor0
----
42
9176

skipif mysql # not compatible
query II rowsort label-924
SELECT 42 AS col0, 68 + MIN ( - 92 ) * + - 99 FROM tab2 AS cor0
----
42
9176

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

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 27 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

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

query I rowsort
SELECT - + col2 - + 68 FROM tab0 AS cor0
----
-115
-167
-78

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

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

query I rowsort
SELECT + 51 * + 99 FROM tab1 cor0
----
5049
5049
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - - MAX( DISTINCT + 76 ) * 27 + + 80 FROM tab0 AS cor0
----
2132

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - - MAX ( DISTINCT + 76 ) * 27 + + 80 FROM tab0 AS cor0
----
2132

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 81 * col0 = col1 / - - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 67 * - + ( col0 ) FROM tab2 AS cor0
----
-3082
-4288
-5025

query I rowsort
SELECT col0 * col2 * 3 + col2 - + - ( - + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + 1 * + ( + + col2 ) IS NULL
----
13033
3151
7656

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL >= 63 - col2
----

query II rowsort
SELECT ( - + col2 ) * - 36 AS col1, - col0 AS col0 FROM tab2
----
1440
-64
2088
-75
828
-46

query I rowsort
SELECT 58 * + ( - 4 ) FROM tab2
----
-232
-232
-232

query I rowsort
SELECT 99 * - 24 FROM tab2
----
-2376
-2376
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT COUNT( * ) * + 73 AS col2 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT COUNT ( * ) * + 73 AS col2 FROM tab0
----
219

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

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

query I rowsort
SELECT ALL col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - + 63 + - + 47 * + - col0 + col0 AS col1 FROM tab0 AS cor0
----
4113
4593
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT col2 * CAST( col2 AS SIGNED ) - col0 FROM tab1
----
3396
4533
9165

skipif mysql # not compatible
query I rowsort label-943
SELECT col2 * CAST ( col2 AS INTEGER ) - col0 FROM tab1
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT COUNT( * ) * - 94 AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-944
SELECT COUNT ( * ) * - 94 AS col0 FROM tab0
----
-282

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( + 36 ) * - col2 ) > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT MAX( DISTINCT + col0 ) * - COUNT( * ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-946
SELECT MAX ( DISTINCT + col0 ) * - COUNT ( * ) AS col2 FROM tab2
----
-225

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 86 ) IN ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + 29 * COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-949
SELECT + 29 * COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT 0 * - col2 AS col2 FROM tab0 WHERE NOT col1 + col1 NOT IN ( - col1 * 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT 96 + ( - MAX( DISTINCT col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-951
SELECT 96 + ( - MAX ( DISTINCT col2 ) ) FROM tab0
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 88 FROM tab1
----
4488
7480
8008

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 65 + col2 * col2 AND + col2 * 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT + CAST( + AVG ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-958
SELECT + CAST ( + AVG ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
66

query I rowsort
SELECT 20 * + ( 18 ) FROM tab0 WHERE NOT 16 IS NULL
----
360
360
360

query I rowsort
SELECT + col0 + + 19 FROM tab1
----
104
110
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT CAST( NULL AS SIGNED ) * 24 + - 46 / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT CAST ( NULL AS INTEGER ) * 24 + - 46 / - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - 56 * col1 + + col2 FROM tab2
----
-2833
-3694
-4272

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= - 23
----

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

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - 59 FROM tab1 WHERE ( ( + CAST ( NULL AS INTEGER ) ) + + col0 * col2 ) IS NULL
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL CAST( col2 AS SIGNED ) * 72 AS col1 FROM tab2
----
1656
2880
4176

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL CAST ( col2 AS INTEGER ) * 72 AS col1 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT DISTINCT - 36 * + 85 AS col1 FROM tab2
----
-3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 * + col0 BETWEEN - col2 + + ( + CAST( - col2 AS SIGNED ) ) * col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 * + col0 BETWEEN - col2 + + ( + CAST ( - col2 AS INTEGER ) ) * col0 AND NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + COUNT( * ) + SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-970
SELECT + COUNT ( * ) + SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT ALL 32 DIV + 19 - - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL 32 / + 19 - - col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT - CAST( 63 AS SIGNED ) * + 52 FROM tab2 cor0
----
-3276
-3276
-3276

skipif mysql # not compatible
query I rowsort label-972
SELECT - CAST ( 63 AS INTEGER ) * + 52 FROM tab2 cor0
----
-3276
-3276
-3276

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + ( 73 ) * - COUNT ( * ) FROM tab2
----
-219

query I rowsort
SELECT ALL - 70 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT + col1 * 14 + - col0 * col1 AS col2 FROM tab0 WHERE NOT NULL IN ( - col0 + 30 * 44 )
----

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

query I rowsort
SELECT ALL + 19 * col1 AS col2 FROM tab2 AS cor0
----
1273
1463
969

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

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

query I rowsort
SELECT - 24 * col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - + 14 * - MIN( - col2 ) FROM tab1 AS cor0
----
-1344

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - + 14 * - MIN ( - col2 ) FROM tab1 AS cor0
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT - CAST( 70 AS SIGNED ) FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-982
SELECT - CAST ( 70 AS INTEGER ) FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL ( 28 ) AS col2 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT 64 * col1 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND + 72
----

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

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

query I rowsort
SELECT 71 * - col0 AS col0 FROM tab1 WHERE NOT NULL <= col2 + 65 * 46
----

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

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

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL NOT IN ( + col1 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL 33 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
1683
2211
2541

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 33 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 23 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 23 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT + SUM( - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-992
SELECT + SUM ( - col1 ) FROM tab0 cor0
----
-103

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

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

query I rowsort
SELECT ALL - 9 * - col1 - 52 / - col1 AS col2 FROM tab2 AS cor0 WHERE + col0 + + 16 BETWEEN ( - col0 ) * - 5 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + + ( - 54 ) col1 FROM tab0
----
651
816
9549

query I rowsort
SELECT DISTINCT + col0 + + 18 + + col0 * + 16 FROM tab0
----
1497
1667
273

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT col1 - 32 AS col0 FROM tab0
----
-11
-31
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT col0 + - + col0 DIV - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1000
SELECT col0 + - + col0 / - col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT 3 + - CAST( 28 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-1001
SELECT 3 + - CAST ( 28 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT - + COUNT( * ) DIV - + ( - COUNT( * ) ) - - 16 + 2 col0 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1003
SELECT - + COUNT ( * ) / - + ( - COUNT ( * ) ) - - 16 + 2 col0 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + COUNT( * ) * - + ( 99 ) + COUNT( * ) * 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-255

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + COUNT ( * ) * - + ( 99 ) + COUNT ( * ) * 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-255

query I rowsort
SELECT col1 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL 11 - MAX( ALL + + 60 ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL 11 - MAX ( ALL + + 60 ) AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL + + col1 * 39 * col1 FROM tab1 AS cor0
----
7644
86151
975

query II rowsort
SELECT ALL - col0 * + - col2, col2 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT - col1 + 40 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 64 + + 53 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT + COUNT( * ) DIV - 75 AS col0 FROM tab0 WHERE ( - 31 + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT + COUNT ( * ) / - 75 AS col0 FROM tab0 WHERE ( - 31 + - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT 37 + - - ( 94 ) - + 75 + 79 * COUNT( * ) FROM tab1
----
293

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT 37 + - - ( 94 ) - + 75 + 79 * COUNT ( * ) FROM tab1
----
293

query I rowsort
SELECT - col0 * - 53 AS col2 FROM tab2
----
2438
3392
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT - 25 DIV col2 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT - 25 / col2 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col0 < - col0 + col1
----

query I rowsort
SELECT col2 * + 34 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT ALL - col0 + 5 FROM tab0 AS cor0
----
-10
-82
-92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT - CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1021
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 10 AND + - 61
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( - 99 ) BETWEEN ( NULL ) AND ( - 19 )
----

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab0 WHERE NOT - - 89 NOT BETWEEN - col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT 29 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1026
SELECT - ( 8 ) / MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 * - 38 + col2 < NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + MAX ( + col0 ) AS col0 FROM tab2 cor0
----
75

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( - + CAST( - 20 AS DECIMAL ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( - + CAST ( - 20 AS REAL ) ) ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 30 + - col0 + - 52 FROM tab1
----
-107
-113
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - MAX( DISTINCT + col0 ) * - MIN( 56 ) - - 3 FROM tab1
----
5099

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - MAX ( DISTINCT + col0 ) * - MIN ( 56 ) - - 3 FROM tab1
----
5099

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1036
SELECT ALL 10 + CAST( + - 56 AS SIGNED ) + + - 46 DIV COUNT( * ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 10 + CAST ( + - 56 AS INTEGER ) + + - 46 / COUNT ( * ) AS col2 FROM tab0
----
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) < col2 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT MIN( ALL col0 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 64 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT MIN ( ALL col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 64 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + MAX( - - 47 ) AS col0 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-1039
SELECT + MAX ( - - 47 ) AS col0 FROM tab0
----
47

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

query I rowsort
SELECT ALL col2 / - ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59, + col1 col2 FROM tab2 AS cor0
----
59
51
59
67
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT - COUNT( * ) + + ( - MIN( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1043
SELECT - COUNT ( * ) + + ( - MIN ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL - SUM( 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-729

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - SUM ( 81 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-729

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 31 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT AVG ( DISTINCT col1 ) * - - SUM( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT AVG ( DISTINCT col1 ) * - - SUM ( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( col1 * col2 )
----
NULL

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

query I rowsort
SELECT ALL - 15 * - - col1 + - - col1 + col2 AS col1 FROM tab1 AS cor0
----
-100
-11
-590

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 = - - col1
----

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

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

query II rowsort
SELECT DISTINCT 98 * 34 AS col0, - 24 AS col0 FROM tab2 AS cor0
----
3332
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL + + MAX( - 15 ) - - 16 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL + + MAX ( - 15 ) - - 16 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - 71 FROM tab1 AS cor0 WHERE NOT col1 * col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT 72 - - col2 DIV - + col1 FROM tab0
----
-27
72
72

skipif mysql # not compatible
query I rowsort label-1055
SELECT 72 - - col2 / - + col1 FROM tab0
----
-27
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT - col2 + 73 - - 72 DIV 25 FROM tab0
----
-24
28
65

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - col2 + 73 - - 72 / 25 FROM tab0
----
-24
28
65

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * 35 OR + 33 * ( col0 ) * - col1 NOT BETWEEN ( col0 + + col0 / 31 ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 71 - - - 44 * col2 col2 FROM tab2
----
2254
2773
2784

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT 21 + + COUNT( * ) DIV - 9 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1061
SELECT 21 + + COUNT ( * ) / - 9 FROM tab1
----
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1063
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 + col1 / + col1 < - CAST( - - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1063
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 + col1 / + col1 < - CAST ( - - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL 22 * + + 93 * + COUNT( 81 ) FROM tab0
----
6138

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 22 * + + 93 * + COUNT ( 81 ) FROM tab0
----
6138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT MIN( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1066
SELECT MIN ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
51

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( 88, col2 )
----

query I rowsort
SELECT - - 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT + 50 * - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT + 50 * - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-450

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT ALL + + 8 DIV + ( - col0 ) + 29 * + - 49 AS col1 FROM tab0 AS cor0
----
-1421
-1421
-1421

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + + 8 / + ( - col0 ) + 29 * + - 49 AS col1 FROM tab0 AS cor0
----
-1421
-1421
-1421

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1074
SELECT + ( - CAST( col1 AS SIGNED ) ) DIV 27 AS col1 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT + ( - CAST ( col1 AS INTEGER ) ) / 27 AS col1 FROM tab0 cor0
----
-3
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + col1 / - col1 NOT BETWEEN + 19 AND ( - + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - SUM( DISTINCT - + 58 ) * MIN( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1334

skipif mysql # not compatible
query I rowsort label-1076
SELECT - SUM ( DISTINCT - + 58 ) * MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE col1 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col1 BETWEEN ( NULL ) AND NULL
----
0

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

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

query I rowsort
SELECT ALL - col1 + 44 * + - col0 AS col2 FROM tab0
----
-3849
-4269
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT COUNT( * ) + 42 + + + 49 * + 62 FROM tab2
----
3083

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) + 42 + + + 49 * + 62 FROM tab2
----
3083

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

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

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + COUNT ( * ) + + 21 FROM tab0
----
24

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

query I rowsort
SELECT col1 + - + 34 AS col2 FROM tab0 AS cor0
----
-13
-33
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT 70 * - 17 - - col2 + + 27 DIV col0 FROM tab2 AS cor0
----
-1132
-1150
-1167

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 70 * - 17 - - col2 + + 27 / col0 FROM tab2 AS cor0
----
-1132
-1150
-1167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT - + CAST( - 93 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
139
157
168

skipif mysql # not compatible
query I rowsort label-1087
SELECT - + CAST ( - 93 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
139
157
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT DISTINCT + - ( - ( - - col2 ) ) * + ( - + col1 ) * - - ( - col0 ) + + 95 DIV - ( - col0 ) AS col0 FROM tab1 AS cor0
----
25076
290837
68545

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + - ( - ( - - col2 ) ) * + ( - + col1 ) * - - ( - col0 ) + + 95 / - ( - col0 ) AS col0 FROM tab1 AS cor0
----
25076
290837
68545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL - CAST( - ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 74 + + col0 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 74 + + col0 * col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( 46 ) - + + col2 + ( + col1 ) + + + ( col1 ) FROM tab1 AS cor0
----
-22
-3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + - COUNT( * ) + 72 AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1091
SELECT + - COUNT ( * ) + 72 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT DISTINCT + ( SUM( ALL ( - col1 ) ) ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 52 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + ( SUM ( ALL ( - col1 ) ) ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 52 IS NOT NULL
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1093
SELECT ALL CAST( NULL AS SIGNED ) col2, - col2 AS col0 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1093
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col2 AS col0 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

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

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

query I rowsort
SELECT ALL 54 * 66 FROM tab1, tab0 AS cor0
----
9 values hashing to ff393261a85d4ec158a92fa151a2e634

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT DISTINCT - ( - MIN( ALL - - CAST( NULL AS SIGNED ) ) ) * MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - ( - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) ) * MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT - MIN( DISTINCT + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1098
SELECT - MIN ( DISTINCT + col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT + MIN( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 )
----
-66

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT + MIN ( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 )
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - 65 * + COUNT( + - col2 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - 65 * + COUNT ( + - col2 ) FROM tab2
----
-195

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

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

query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab0 cor0
----
-97

query I rowsort
SELECT - 44 + - ( + + col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 52 * + 50 IS NOT NULL
----
46
64
75

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

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

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

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

query II rowsort
SELECT DISTINCT - + 63, 70 AS col0 FROM tab1 AS cor0
----
-63
70

query II rowsort
SELECT ALL - 6 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-6
15
-6
87
-6
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - MAX( ( col2 ) ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT - MAX ( ( col2 ) ) col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT + SUM( - col0 ) / - CAST( + MIN( ALL + 12 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 19 + col1 + + 36 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT + SUM ( - col0 ) / - CAST ( + MIN ( ALL + 12 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 19 + col1 + + 36 ) AND - col2
----
NULL

query I rowsort
SELECT - ( - 82 ) FROM tab0 WHERE 70 IS NOT NULL
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT 50 + + COUNT( * ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT 50 + + COUNT ( * ) AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT MAX( ALL ( + 71 ) ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT MAX ( ALL ( + 71 ) ) FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 23 + - + col0 col2 FROM tab2
----
-1219
-1616
-1835

query I rowsort
SELECT DISTINCT - 32 + col2 AS col0 FROM tab1
----
27
36
64

query I rowsort
SELECT DISTINCT col0 + 67 FROM tab0 AS cor0
----
154
164
82

query I rowsort
SELECT ( + 15 ) + + + col1 + - col2 * - col2 FROM tab1 AS cor0
----
3501
4686
9245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col1 + 80 + - col0 * + 21 + + 10 col2 FROM tab0 cor0
----
-1726
-191
-2045

query II rowsort
SELECT + col2 + col0 + 47, + col0 * + - col2 AS col1 FROM tab0
----
109
-705
144
-870
243
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT - SUM( DISTINCT - col2 ) + + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - SUM ( DISTINCT - col2 ) + + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
312

query I rowsort
SELECT + 88 * - col1 AS col0 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NOT NULL < ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL COUNT( * ) + - MIN( + + 49 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL COUNT ( * ) + - MIN ( + + 49 ) FROM tab2 cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1127
SELECT DISTINCT + - 14 DIV 70 - + 49 + - col1 AS col0 FROM tab0 AS cor0
----
-130
-50
-70

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + - 14 / 70 - + 49 + - col1 AS col0 FROM tab0 AS cor0
----
-130
-50
-70

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

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

query I rowsort
SELECT ALL 63 + + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
159
161
171

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

query II rowsort
SELECT DISTINCT + col1 AS col1, 39 * col0 * + col0 FROM tab1 AS cor0
----
14
101439
47
322959
5
281775

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT - - MIN( DISTINCT + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1133
SELECT - - MIN ( DISTINCT + col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + 61 * - COUNT( - - ( - 84 ) ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 61 * - COUNT ( - - ( - 84 ) ) FROM tab0
----
-183

query I rowsort
SELECT + 88 * col2 AS col0 FROM tab1
----
5192
5984
8448

query II rowsort
SELECT 52 AS col2, - col2 FROM tab0
----
52
-10
52
-47
52
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + ( + col2 ) * 13 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 * + 25 FROM tab1
----
-1275
-2125
-2275

query I rowsort
SELECT ALL - 49 + + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-26
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT COUNT( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
1

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT COUNT ( DISTINCT - 94 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
1

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

skipif mysql # not compatible
query III rowsort label-1143
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1144
SELECT ALL - 56 DIV - - col1, CAST( NULL AS SIGNED ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-2
NULL
-56
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL - 56 / - - col1, CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
-2
NULL
-56
NULL
0
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT + COUNT( * ) DIV - SUM( DISTINCT + 35 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT + COUNT ( * ) / - SUM ( DISTINCT + 35 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1147
SELECT col0 * + 22, - col2 + col1 DIV + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1914
9
2134
-98
330
33

skipif mysql # not compatible
query II rowsort label-1147
SELECT col0 * + 22, - col2 + col1 / + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1914
9
2134
-98
330
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - ( + COUNT( * ) ) + - - 49 * COUNT( * ) FROM tab1 cor0
----
144

skipif mysql # not compatible
query I rowsort label-1148
SELECT - ( + COUNT ( * ) ) + - - 49 * COUNT ( * ) FROM tab1 cor0
----
144

query II rowsort
SELECT + - col0 * + + 93 * + ( 73 ) + - col0, - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-312340
23
-434560
40
-509250
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT - MAX( - col2 ) + + AVG ( DISTINCT 11 ) + + 31 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - MAX ( - col2 ) + + AVG ( DISTINCT 11 ) + + 31 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 * + 44 + col0 FROM tab0
----
1011
141
3579

query I rowsort
SELECT + col0 * 38 FROM tab0 WHERE + col2 <= - 25 * - col2
----
3306
3686
570

query I rowsort
SELECT - 32 FROM tab0 WHERE NULL NOT IN ( + + 96 / - col2 * col1 * + col1, - ( - col0 ), + + col2 * + col1 * - col2 )
----

query I rowsort
SELECT ALL + 71 + - 61 + col1 AS col0 FROM tab0
----
11
31
91

query I rowsort
SELECT ALL - 66 + - - col2 AS col1 FROM tab2
----
-26
-43
-8

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + + CAST ( + 89 AS INTEGER ) AS col1 FROM tab0
----
79

query II rowsort
SELECT 68 AS col0, col0 + - ( + 16 ) FROM tab0
----
68
-1
68
71
68
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1159
SELECT MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

query II rowsort
SELECT - col0, - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-110
-85
-64
-91
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE + 19 >= col1
----

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

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

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

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

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

query I rowsort
SELECT ALL - - ( - + 43 ) FROM tab0 cor0
----
-43
-43
-43

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

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

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

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

query I rowsort
SELECT ALL + 38 * + 26 FROM tab2
----
988
988
988

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

query I rowsort
SELECT - 5 * - 69 AS col2 FROM tab2
----
345
345
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col2 col1 FROM tab2
----
-1633
-2840
-4118

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

query I rowsort
SELECT + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT + col0 * - + col0 + + CAST( + col2 AS SIGNED ) - - - col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-1179
SELECT + col0 * - + col0 + + CAST ( + col2 AS INTEGER ) - - - col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 35 * - 76 FROM tab2 AS cor0
----
-2660
-2660
-2660

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT ALL + col1 * + - col1 * + col2 AS col0 FROM tab1 cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL - 6 * - - col0 + - col2 + + col0 * + col1 AS col2 FROM tab0
----
-584
1078
1295

query I rowsort
SELECT DISTINCT + col2 + - 22 + - 61 AS col2 FROM tab2
----
-25
-43
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + - 47 + - col2 col0 FROM tab2
----
-41
-58
-76

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

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

query I rowsort
SELECT DISTINCT 9 + + + col0 FROM tab1
----
100
60
94

query I rowsort
SELECT DISTINCT 97 - - col2 * + col2 * - + 30 FROM tab2
----
-100823
-15773
-47903

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

query I rowsort
SELECT - 49 + + col1 FROM tab1 AS cor0
----
-2
-35
-44

query I rowsort
SELECT col0 + 9 - + - col0 * 63 FROM tab2 cor0
----
2953
4105
4809

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE + 12 IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL - MIN( DISTINCT + 50 ) AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - MIN ( DISTINCT + 50 ) AS col2 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT + 6 AS col1 FROM tab0 AS cor0 WHERE NOT 4 + col0 * 53 <> - 27
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1197
SELECT MAX ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT + MIN( + - 93 ) FROM tab2 WHERE ( + 75 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + MIN ( + - 93 ) FROM tab2 WHERE ( + 75 IS NULL )
----
NULL

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

query I rowsort
SELECT - ( + - 66 ) FROM tab1 WHERE NOT - col2 - col1 IS NULL
----
66
66
66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1204
SELECT ALL + + col0 * + + col2 col1, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1204
SELECT ALL + + col0 * + + col2 col1, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

query I rowsort
SELECT ALL 51 FROM tab0 WHERE ( col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT ALL 90 * - COUNT( * ), - COUNT( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL 90 * - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + 11 + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + 11 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col1 * + col2 * 82 * 65 + CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 * + col2 * 82 * 65 + CAST ( NULL AS INTEGER ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT + 98 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + 98 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT + 96 + - 42 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL ( - ( - - 52 ) ) + - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-139
-149
-67

query I rowsort
SELECT DISTINCT + 28 * - - ( - + 16 ) AS col0 FROM tab1 AS cor0
----
-448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT + ( - 21 ) + + AVG ( col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT + ( - 21 ) + + AVG ( col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab2 cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT ALL 86 DIV + ( ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 86 / + ( ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-1
-17
-6

query II rowsort
SELECT DISTINCT col0 * col1, col2 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1219
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + CAST( NULL AS SIGNED ) * ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-1219
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + CAST ( NULL AS INTEGER ) * ( + col1 )
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT col0 + + col0 + + - 75 AS col1 FROM tab0
----
-45
119
99

query I rowsort
SELECT ALL + col0 * 29 AS col1 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT + col1 * + 58 AS col0 FROM tab2
----
2958
3886
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT - - CAST( NULL AS SIGNED ) + 47 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT - - CAST ( NULL AS INTEGER ) + 47 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + ( + ( 76 ) ) + - col1 + - col2 * + col2 AS col1 FROM tab2
----
-1601
-3355
-504

query I rowsort
SELECT ALL col1 - col2 + - col0 AS col1 FROM tab0
----
-195
-76
19

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

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

query III rowsort
SELECT - - 26 AS col0, + col0 AS col0, - + col1 FROM tab0 cor0
----
9 values hashing to a61bd2a0afb139438728313776f3cc2c

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

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

query I rowsort
SELECT + + col2 * + + col0 + - col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT + col2 - - 8 FROM tab0 AS cor0
----
107
18
55

query II rowsort
SELECT ALL - - col0 * col0 + - col0 + + col1 AS col1, col2 FROM tab1 AS cor0
----
2564
96
7145
59
8237
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 65 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 65 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL 25 * - MAX( + + ( + - col2 ) ) FROM tab2
----
575

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL 25 * - MAX ( + + ( + - col2 ) ) FROM tab2
----
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * - 74 * col2 FROM tab1 AS cor0
----
257594
342176
681984

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * - 74 * col2 FROM tab1 AS cor0
----
257594
342176
681984

query I rowsort
SELECT DISTINCT - + col0 * - - ( + col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT CAST( 74 AS SIGNED ) AS col1 FROM tab2 cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1241
SELECT CAST ( 74 AS INTEGER ) AS col1 FROM tab2 cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT - - ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col1 * - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) + - - col2 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1242
SELECT - - ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col1 * - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) + - - col2 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL ( + col2 ) DIV + col2 + - col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL ( + col2 ) / + col2 + - col1 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT + ( 87 ) FROM tab0
----
87
87
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1245
SELECT ALL col0 + - + CAST( - col0 AS DECIMAL ) AS col1 FROM tab2 WHERE + ( + col2 ) + - 98 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL col0 + - + CAST ( - col0 AS REAL ) AS col1 FROM tab2 WHERE + ( + col2 ) + - 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * - 88 + - - col1 NOT IN ( - col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - COUNT( ALL col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - COUNT ( ALL col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL 9 * + COUNT( * ) * - - 63 * + SUM( + col2 ) FROM tab2 AS cor0
----
205821

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL 9 * + COUNT ( * ) * - - 63 * + SUM ( + col2 ) FROM tab2 AS cor0
----
205821

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 35 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 11, + col2 AS col2 FROM tab2 AS cor0
----
11
23
11
40
11
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT col1 DIV - 78 + + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1252
SELECT col1 / - 78 + + col0 AS col1 FROM tab1
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-1253
SELECT ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT col1 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT + + col1 * - col2 - - + 67 - col0 AS col0 FROM tab2 cor0
----
-1152
-3077
-3894

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 * 7 + 49 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT DISTINCT - col2 + - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - col2 + - col0 / + col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-59

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

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

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

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

query I rowsort
SELECT + col2 - 65 FROM tab2 AS cor0
----
-25
-42
-7

query I rowsort
SELECT - col0 * + col0 - col0 AS col1 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1263
SELECT - col0 - 68 * - col0 + - col2 * - - 78 * CAST( NULL AS SIGNED ) AS col1, - 2 FROM tab2
----
NULL
-2
NULL
-2
NULL
-2

skipif mysql # not compatible
query II rowsort label-1263
SELECT - col0 - 68 * - col0 + - col2 * - - 78 * CAST ( NULL AS INTEGER ) AS col1, - 2 FROM tab2
----
NULL
-2
NULL
-2
NULL
-2

query I rowsort
SELECT DISTINCT 17 * - + col2 AS col0 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT ALL + col1 * + 69 AS col2 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - MIN( ALL ( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1266
SELECT - MIN ( ALL ( - col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1267
SELECT - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - + 78 * + 7 AS col0 FROM tab0 AS cor0
----
-546
-546
-546

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT - + COUNT( * ) AS col2, - 2 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-5

skipif mysql # not compatible
query II rowsort label-1269
SELECT - + COUNT ( * ) AS col2, - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + COUNT( * ) * 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1271
SELECT + COUNT ( * ) * 13 FROM tab1
----
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) >= col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1273
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) >= col1
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 * col2 NOT IN ( + col1 * - - col2 / - + 59 )
----

query II rowsort
SELECT 76 AS col1, 80 AS col2 FROM tab0 cor0
----
76
80
76
80
76
80

query I rowsort
SELECT + ( 12 ) FROM tab0 AS cor0
----
12
12
12

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT - SUM( ALL 38 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - SUM ( ALL 38 ) FROM tab2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT 12 * + - 1 + + COUNT( * ) - + + 77 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT 12 * + - 1 + + COUNT ( * ) - + + 77 FROM tab1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT col2 + + col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-1282
SELECT col2 + + col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-1150
-3040
-3828

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

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

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

query I rowsort
SELECT + - 71 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - + 61 AS col1 FROM tab0 AS cor0
----
-108
-160
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT DISTINCT CAST( col2 AS SIGNED ) + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + + 43 + + COUNT( * ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1288
SELECT + + 43 + + COUNT ( * ) FROM tab0 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 * 24 = col2 * col1 - - col2 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT DISTINCT ( + ( - - ( - 47 ) ) ) - col2 + - 28 AS col0, + CAST( NULL AS SIGNED ) / - ( - + col0 ) FROM tab0 AS cor0
----
-122
NULL
-174
NULL
-85
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT ( + ( - - ( - 47 ) ) ) - col2 + - 28 AS col0, + CAST ( NULL AS INTEGER ) / - ( - + col0 ) FROM tab0 AS cor0
----
-122
NULL
-174
NULL
-85
NULL

query I rowsort
SELECT - col0 + - col1 - col2 FROM tab2 AS cor0
----
-120
-181
-200

query I rowsort
SELECT - + col2 + - 42 + - 28 FROM tab1 AS cor0
----
-129
-138
-166

query I rowsort
SELECT DISTINCT + 68 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1294
SELECT DISTINCT - SUM ( - col0 ) col1 FROM tab1 AS cor0
----
227

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT DISTINCT MAX( col0 ), - COUNT( * ) AS col0 FROM tab1
----
91
-3

skipif mysql # not compatible
query II rowsort label-1297
SELECT DISTINCT MAX ( col0 ), - COUNT ( * ) AS col0 FROM tab1
----
91
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT ALL 86 * COUNT( * ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL 86 * COUNT ( * ) AS col2 FROM tab2
----
258

query I rowsort
SELECT + col2 * + - 2 FROM tab2
----
-116
-46
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT - - 67 DIV - MAX( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - - 67 / - MAX ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2 cor0
----
-92

query II rowsort
SELECT ALL col0, - col0 - + col2 AS col0 FROM tab2 AS cor0
----
46
-69
64
-104
75
-133

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + 27 + + + col2 IS NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1307
SELECT + 31 AS col0, + COUNT( * ) FROM tab2
----
31
3

skipif mysql # not compatible
query II rowsort label-1307
SELECT + 31 AS col0, + COUNT ( * ) FROM tab2
----
31
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * ( col2 ) + 72 + + 81 >= - col0 * + 79 + - - col0 / col0 + - - col2
----

query I rowsort
SELECT ALL col1 * 67 AS col0 FROM tab2
----
3417
4489
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT DISTINCT - COUNT( DISTINCT + 81 ) FROM tab1 WHERE CAST( - - ( - 14 ) AS SIGNED ) > + 99
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - COUNT ( DISTINCT + 81 ) FROM tab1 WHERE CAST ( - - ( - 14 ) AS INTEGER ) > + 99
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT MIN( + 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1313
SELECT MIN ( + 63 ) FROM tab1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 * - ( - - col2 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + 84 AS col0 FROM tab1 AS cor0
----
-16
-25
12

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 + + - col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT + ( + col2 ) + + + 75 AS col0 FROM tab0
----
122
174
85

query I rowsort
SELECT ALL + 70 * + + col2 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + 37 + SUM( col0 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + 37 + SUM ( col0 ) FROM tab2
----
222

query I rowsort
SELECT - + 77 FROM tab1 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1321
SELECT DISTINCT + 88 + - + CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT + 88 + - + CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL + col0 * - 17 - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-1152
-1350
-828

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + col0 * - 17 - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-1152
-1350
-828

query II rowsort
SELECT DISTINCT - 71 + ( 1 ) AS col0, 16 FROM tab2 AS cor0
----
-70
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1325
SELECT ALL + col1 - 3 DIV - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + col1 - 3 / - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 * + col1 + - col1 col1 FROM tab0 AS cor0
----
-452
-6595
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1327
SELECT + col0 - + col2 AS col2, + CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-1327
SELECT + col0 - + col2 AS col2, + CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab1 AS cor0
----
-45
NULL
23
NULL
26
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( * ) * - + SUM ( DISTINCT + CAST ( 0 AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 22 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 7 col2 FROM tab1
----
357
595
637

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 * + col0 > NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT col2 - - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - MIN( + - col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1336
SELECT - MIN ( + - col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT DISTINCT col2 * + ( - + 33 ) * - + col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL - col0, 29 AS col2 FROM tab0 AS cor0
----
-15
29
-87
29
-97
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT + col2 DIV - - col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1339
SELECT + col2 / - - col2 AS col2 FROM tab0 cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - SUM ( + - col1 ) FROM tab1 AS cor0
----
66

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - col1 AND col1 - + - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT - - SUM( DISTINCT + 0 ) * - COUNT( * ) * - - 66 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - - SUM ( DISTINCT + 0 ) * - COUNT ( * ) * - - 66 * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + SUM( - col0 ) * - 56 AS col0 FROM tab1 AS cor0
----
12712

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + SUM ( - col0 ) * - 56 AS col0 FROM tab1 AS cor0
----
12712

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

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

query I rowsort
SELECT DISTINCT 56 * col2 + col2 FROM tab2
----
1311
2280
3306

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT DISTINCT + col1 DIV + 61 + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + col1 / + 61 + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 + + col2 + 10 AS col0 FROM tab1
----
154
157
169

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL + 74 * - COUNT( * ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + 74 * - COUNT ( * ) FROM tab0 AS cor0
----
-222

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

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

query I rowsort
SELECT DISTINCT col1 + - 4 AS col2 FROM tab1 AS cor0
----
1
10
43

query I rowsort
SELECT + col2 + + 71 FROM tab0 AS cor0
----
118
170
81

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

query I rowsort
SELECT DISTINCT - col1 - - col2 + + + col0 + + - col0 + + + col2 AS col1 FROM tab0 AS cor0
----
-1
13
197

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1360
SELECT 48 AS col2, MAX( - CAST( + 50 AS SIGNED ) ) FROM tab2 AS cor0
----
48
-50

skipif mysql # not compatible
query II rowsort label-1360
SELECT 48 AS col2, MAX ( - CAST ( + 50 AS INTEGER ) ) FROM tab2 AS cor0
----
48
-50

query I rowsort
SELECT DISTINCT + col2 * + 40 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT ALL col1 * 97 * + - col2 + - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - + col0 + - col0 FROM tab1 WHERE + - col2 * + 93 * - col2 - col0 + - col0 IS NOT NULL
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL COUNT( ALL - 4 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL COUNT ( ALL - 4 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT - COUNT( * ) DIV + - 94 * + + 65 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - COUNT ( * ) / + - 94 * + + 65 AS col0 FROM tab2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT DISTINCT 48 DIV col0 AS col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT 48 / col0 AS col0 FROM tab2 cor0
----
0
1

query I rowsort
SELECT - col2 + + 88 AS col2 FROM tab2
----
30
48
65

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 col2 FROM tab0 AS cor0
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - + 5 ) <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 * - 34 col2 FROM tab1 AS cor0
----
-2652

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 * - + col0 <= - 49 + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - COUNT( DISTINCT col0 ) col1 FROM tab2
----
-3

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

query I rowsort
SELECT col1 * + col1 - col0 + + 80 + + 38 AS col1 FROM tab1
----
2236
263
58

query I rowsort
SELECT ALL col2 + + col1 * + 39 FROM tab2
----
2012
2671
3043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + ( + 81 ) col2 FROM tab1
----
140
149
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT + 92 + COUNT( * ) + + ( + 97 ) + COUNT( * ), 95 AS col2 FROM tab2
----
195
95

skipif mysql # not compatible
query II rowsort label-1383
SELECT + 92 + COUNT ( * ) + + ( + 97 ) + COUNT ( * ), 95 AS col2 FROM tab2
----
195
95

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 47 + - - col0 * - 97 * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

query I rowsort
SELECT DISTINCT - 61 + - - col1 FROM tab2
----
-10
16
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1389
SELECT - col1 DIV + CAST( + col2 AS SIGNED ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1389
SELECT - col1 / + CAST ( + col2 AS INTEGER ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT 9 - + + col2 AS col0 FROM tab2
----
-14
-31
-49

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL + ( col2 ) DIV - col0 - col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + ( col2 ) / - col0 - col1 FROM tab0 AS cor0
----
-2
-21
-84

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

query II rowsort
SELECT DISTINCT 27 AS col1, col2 * col0 FROM tab1
----
27
4896
27
5015
27
6188

query II rowsort
SELECT ALL 63 * col0, - col2 AS col0 FROM tab2
----
2898
-23
4032
-40
4725
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - COUNT( * ) FROM tab1 WHERE NOT + - 13 >= + 71
----
-3

skipif mysql # not compatible
query I rowsort label-1397
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + - 13 >= + 71
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

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

query I rowsort
SELECT DISTINCT - - col2 + 63 AS col2 FROM tab1 AS cor0
----
122
131
159

query II rowsort
SELECT - + col1 + col2 AS col0, 41 * col1 AS col0 FROM tab1 AS cor0
----
21
1927
54
205
82
574

query I rowsort
SELECT - 53 * + + col2 + + + 69 AS col2 FROM tab0 AS cor0
----
-2422
-461
-5178

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

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1407
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 4 * - 63 * - - CAST( NULL AS DECIMAL ) - - CAST( + + col1 AS DECIMAL ) * + - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1407
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 4 * - 63 * - - CAST ( NULL AS REAL ) - - CAST ( + + col1 AS REAL ) * + - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1408
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + 58 * - col2 * col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + 58 * - col2 * col2 > NULL
----

query I rowsort
SELECT ALL col1 + + ( - 75 ) AS col0 FROM tab0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - + COUNT( * ) FROM tab0 WHERE ( - 80 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1410
SELECT - + COUNT ( * ) FROM tab0 WHERE ( - 80 IS NULL )
----
0

query I rowsort
SELECT DISTINCT 36 + col1 AS col1 FROM tab2
----
103
113
87

query III rowsort
SELECT * FROM tab0 WHERE col2 * col0 + - col1 * + col1 = - 68
----

query II rowsort
SELECT 99, col1 AS col2 FROM tab0 AS cor0
----
99
1
99
21
99
81

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

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

query II rowsort
SELECT col1 - + ( - col2 ) * + col2 * - col2 + + col1 + col0 * + col2 AS col0, 90 FROM tab0 AS cor0
----
-102956
90
-88
90
-960694
90

query I rowsort
SELECT + + 61 * - - col1 - - col2 FROM tab2 AS cor0
----
3134
4145
4737

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * col0 BETWEEN ( - 88 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + 13 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 13 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 47 * + ( col2 * - 88 ) AS col0 FROM tab2
----
-165440
-239888
-95128

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 76 * - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + col1 col0 FROM tab0 WHERE ( + 74 / - col0 ) NOT BETWEEN + col1 AND NULL
----
141
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + MAX( DISTINCT - col2 ) + + COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + MAX ( DISTINCT - col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1423
SELECT DISTINCT - COUNT( DISTINCT CAST( CAST( - col0 AS DECIMAL ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - COUNT ( DISTINCT CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) ) FROM tab0
----
-3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 71 < NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT 74 + + COUNT( ALL + col2 ) DIV 30 AS col0 FROM tab0 WHERE - col1 = ( NULL )
----
74

skipif mysql # not compatible
query I rowsort label-1427
SELECT 74 + + COUNT ( ALL + col2 ) / 30 AS col0 FROM tab0 WHERE - col1 = ( NULL )
----
74

query I rowsort
SELECT 20 + - ( 6 ) FROM tab2
----
14
14
14

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1430
SELECT * FROM tab1 WHERE 17 * col0 BETWEEN col0 AND ( - CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1430
SELECT * FROM tab1 WHERE 17 * col0 BETWEEN col0 AND ( - CAST ( col1 AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 54 * 40 + - 19 AS col2 FROM tab1
----
-2179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <> NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - 87 * + col0 ) < + 20 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) + - 2 FROM tab2
----
21
38
56

query I rowsort
SELECT - ( - col2 ) + + col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + MAX( - 6 ) + ( + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + MAX ( - 6 ) + ( + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 1 + + col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL col1 * - col0 + col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT COUNT( * ) * MAX( col2 ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT COUNT ( * ) * MAX ( col2 ) AS col1 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT 28 * + MIN( + col1 ) FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT 28 * + MIN ( + col1 ) FROM tab1 AS cor0
----
140

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 NOT IN ( + col0 + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT SUM( ALL + col2 ) * + MIN( DISTINCT - 74 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IN ( 40 )
----
-16505

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT SUM ( ALL + col2 ) * + MIN ( DISTINCT - 74 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IN ( 40 )
----
-16505

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col0 <= NULL
----

query I rowsort
SELECT DISTINCT 20 FROM tab1 AS cor0 CROSS JOIN tab1
----
20

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

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

query I rowsort
SELECT DISTINCT 15 * 69 + - col1 * col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT CAST( 88 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1454
SELECT CAST ( 88 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 97 - COUNT( + ( - col1 ) ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1455
SELECT 97 - COUNT ( + ( - col1 ) ) AS col1 FROM tab2
----
94

query I rowsort
SELECT 5 - col2 AS col0 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT 67 * - - col1 + - col2 AS col0 FROM tab0
----
-32
1397
5380

query I rowsort
SELECT ALL - 76 * - 94 AS col2 FROM tab2
----
7144
7144
7144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 17 ) * 56 col2 FROM tab1 WHERE - col1 IS NOT NULL
----
952

query I rowsort
SELECT 45 + - + col2 AS col2 FROM tab0
----
-2
-54
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( col2 * 87 + 38 ) AND - col0 * col0
----

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

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

query I rowsort
SELECT ( - col2 ) + col1 * + col2 AS col0 FROM tab1
----
1248
236
3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT + MAX( + col0 ) * + 39 + + ( - 50 ) FROM tab0 AS cor0
----
3733

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + MAX ( + col0 ) * + 39 + + ( - 50 ) FROM tab0 AS cor0
----
3733

query I rowsort
SELECT + + ( - 20 ) * - col0 FROM tab0 AS cor0
----
1740
1940
300

query I rowsort
SELECT + 71 - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1469
SELECT + col0 AS col2, - col1 * + CAST( NULL AS DECIMAL ) * - ( col2 / - 38 ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1469
SELECT + col0 AS col2, - col1 * + CAST ( NULL AS REAL ) * - ( col2 / - 38 ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 ) = NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IN ( col2 - + col1 * 89 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1474
SELECT COUNT( * ) DIV 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) / 42 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT + 16 DIV col2 FROM tab0 AS cor0 WHERE NOT ( col2 + - col2 DIV col1 ) IN ( 94 + col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1475
SELECT + 16 / col2 FROM tab0 AS cor0 WHERE NOT ( col2 + - col2 / col1 ) IN ( 94 + col0 )
----
0
0
1

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col2 + + - col2 / + col0
----

query I rowsort
SELECT ALL 52 - + - col0 + - ( col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT + + 48 * + - 39 + + 76 FROM tab0 AS cor0
----
-1796

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

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

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

query I rowsort
SELECT DISTINCT col1 * + 88 AS col2 FROM tab0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT + 57 - + COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) >= + 29
----
57

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + 57 - + COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) >= + 29
----
57

query I rowsort
SELECT DISTINCT col0 * - col1 * 77 FROM tab0
----
-140679
-7469
-93555

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 97
----

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + 83 * col1 FROM tab1 WHERE NOT + col2 < + col2
----
-3066
-723
-8054

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - - 30 - - + 94 IN ( - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - - 30 - - + 94 IN ( - 78 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 81 - - ( + col2 ) + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1491
SELECT ALL col1 + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL col1 + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
108
NULL
96
NULL
98
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + MIN( + - 93 ) + + ( CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + MIN ( + - 93 ) + + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
-90

query I rowsort
SELECT col2 + + - 27 FROM tab1 AS cor0
----
32
41
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT DISTINCT - col1 - 77 DIV - - 12 AS col1 FROM tab2 AS cor0
----
-57
-73
-83

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - col1 - 77 / - - 12 AS col1 FROM tab2 AS cor0
----
-57
-73
-83

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1 AS cor0 WHERE + 73 BETWEEN NULL AND + - col0 / + 4 + - col2
----

query I rowsort
SELECT - + col2 - - 86 AS col2 FROM tab1 cor0 WHERE ( col1 ) <= 3
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 7
----

query I rowsort
SELECT 12 FROM tab2 AS cor0 WHERE - col1 NOT IN ( col2 )
----
12
12
12

query I rowsort
SELECT DISTINCT + - 87 FROM tab2 cor0
----
-87

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - + COUNT( * ) + + COUNT( * ), 85 col0 FROM tab0
----
-24
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1502
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) + + COUNT ( * ), 85 col0 FROM tab0
----
-24
85

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

query II rowsort
SELECT ALL - col0, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

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

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2
----

query II rowsort
SELECT ALL + ( + col2 ) AS col0, + col0 + - col0 * - 34 AS col2 FROM tab2 AS cor0
----
23
1610
40
2240
58
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT + MAX( - col0 ) DIV - - 46 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1508
SELECT + MAX ( - col0 ) / - - 46 AS col0 FROM tab1 AS cor0
----
-1

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * + - col0 ) NOT BETWEEN 12 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + 84 ) < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 47 col2 FROM tab1
----
132
138
98

query I rowsort
SELECT + 49 FROM tab2 WHERE NOT + 24 >= col0
----
49
49
49

query II rowsort
SELECT + col2 AS col2, col1 * col1 + - col0 AS col0 FROM tab1
----
59
-60
68
2118
96
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - ( 74 ) ) DIV - + 28 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - ( 74 ) ) / - + 28 FROM tab0
----
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 16 AND - col1 / col2 + + 13
----

query I rowsort
SELECT ALL - col1 + + 22 FROM tab2
----
-29
-45
-55

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE ( + + CAST ( col2 AS INTEGER ) * + 65 ) IS NOT NULL
----
46
64
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT ( SUM( CAST( col2 AS SIGNED ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1520
SELECT ( SUM ( CAST ( col2 AS INTEGER ) ) ) FROM tab0
----
156

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

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - - ( + 25 ) * - ( 43 ) FROM tab2 AS cor0
----
-1075

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

query I rowsort
SELECT + - col2 + - 12 FROM tab2 AS cor0
----
-35
-52
-70

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

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - + ( COUNT ( DISTINCT + - col0 ) ) * - CAST ( NULL AS INTEGER ) + - 31 AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col0 + + col2, - 3 AS col0 FROM tab2
----
104
-3
133
-3
69
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL - col2 DIV col2 + + 10 + + ( + ( + col1 ) ) AS col2 FROM tab1
----
14
23
56

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - col2 / col2 + + 10 + + ( + ( + col1 ) ) AS col2 FROM tab1
----
14
23
56

query I rowsort
SELECT DISTINCT - 97 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT + 86 - - + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + 86 - - + COUNT ( * ) FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL 93 - + MAX( - + 85 ) AS col1 FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL 93 - + MAX ( - + 85 ) AS col1 FROM tab0 AS cor0
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT - col0 - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1531
SELECT - col0 - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col1 - + - 46 FROM tab0 cor0
----
127
47
67

query I rowsort
SELECT DISTINCT + 8 - col2 FROM tab2 AS cor0
----
-15
-32
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT - CAST( - MAX( DISTINCT - col1 ) AS SIGNED ) - 99 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-1534
SELECT - CAST ( - MAX ( DISTINCT - col1 ) AS INTEGER ) - 99 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-101

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 88 ) IS NULL
----

query I rowsort
SELECT 89 - - col2 FROM tab2
----
112
129
147

query I rowsort
SELECT + 72 + - 83 FROM tab0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT 4 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT 4 / col0 FROM tab2
----
0
0
0

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL + - COUNT( + 2 ) DIV + - 5 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + - COUNT ( + 2 ) / + - 5 FROM tab0 cor0
----
0

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

query I rowsort
SELECT DISTINCT - + col2 + + col1 FROM tab0 WHERE NOT 22 * + col1 * + col2 * + col0 * - + col1 + col1 = NULL
----

query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab0 cor0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-1546
SELECT col1, + col0 + + 41 DIV + col1 col0 FROM tab1 AS cor0 WHERE NOT + 48 BETWEEN col2 AND NULL
----
14
53
47
91
5
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1546
SELECT col1, + col0 + + 41 / + col1 col0 FROM tab1 AS cor0 WHERE NOT + 48 BETWEEN col2 AND NULL
----
14
53
47
91
5
93

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

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = - 28 + col1
----

query II rowsort
SELECT col1 AS col0, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + + 92 FROM tab1 cor0
----
-5428
-6256
-8832

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col1 / - col1 + col1 <> + col0
----

query II rowsort
SELECT DISTINCT - - 50 AS col0, + col2 + - - 51 FROM tab1 AS cor0
----
50
110
50
119
50
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT 96 + + COUNT( * ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1555
SELECT 96 + + COUNT ( * ) AS col2 FROM tab2
----
99

query I rowsort
SELECT + col0 + + 16 FROM tab0
----
103
113
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT 77 * - 19 + - - ( - COUNT( * ) ) FROM tab2
----
-1466

skipif mysql # not compatible
query I rowsort label-1557
SELECT 77 * - 19 + - - ( - COUNT ( * ) ) FROM tab2
----
-1466

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

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

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

query I rowsort
SELECT - ( - + col1 ) * + 73 + + 58 FROM tab2
----
3781
4949
5679

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - col1 DIV 54 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT - col1 / 54 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT MAX( DISTINCT + col2 ) - - 19 FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-1565
SELECT MAX ( DISTINCT + col2 ) - - 19 FROM tab0
----
118

query I rowsort
SELECT - - 7 AS col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT COUNT( * ) + + 7 * + 74 AS col0 FROM tab1
----
521

skipif mysql # not compatible
query I rowsort label-1567
SELECT COUNT ( * ) + + 7 * + 74 AS col0 FROM tab1
----
521

query I rowsort
SELECT col0 + + + 23 AS col2 FROM tab1
----
108
114
74

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

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

query I rowsort
SELECT DISTINCT - + col1 - - 89 FROM tab1 AS cor0
----
42
75
84

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 21 + - 32 >= col2 )
----

query I rowsort
SELECT - - 80 + + 74 AS col1 FROM tab2 AS cor0
----
154
154
154

query I rowsort
SELECT ( - - col1 ) + - - 35 FROM tab0 cor0
----
116
36
56

query I rowsort
SELECT col0 + - 7 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( + col0 AS INTEGER ) )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1578
SELECT - + ( + col1 ) + 56 + - CAST( 2 AS SIGNED ) - + - col2 * + col0 AS col2, + col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1578
SELECT - + ( + col1 ) + 56 + - CAST ( 2 AS INTEGER ) - + - col2 * + col0 AS col2, + col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * col0 + - + 31 AS col2 FROM tab2
----
2085
4065
5594

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + 88 * - + MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
4136

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 88 * - + MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT + 54 * + COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-1581
SELECT + 54 * + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
162

query I rowsort
SELECT ALL + 35 * - col0 AS col0 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT COUNT( * ) + + ( - 57 ), + MAX( DISTINCT - 61 ) AS col2 FROM tab0
----
-54
-61

skipif mysql # not compatible
query II rowsort label-1583
SELECT COUNT ( * ) + + ( - 57 ), + MAX ( DISTINCT - 61 ) AS col2 FROM tab0
----
-54
-61

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1586
SELECT + MIN ( ALL - 92 ) col2 FROM tab0
----
-92

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

query I rowsort
SELECT ALL - 28 + + AVG ( ALL col2 ) AS col2 FROM tab2 WHERE 0 * col0 IS NULL
----
NULL

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

query II rowsort
SELECT - col0, 19 AS col0 FROM tab2
----
-46
19
-64
19
-75
19

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

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

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

query I rowsort
SELECT DISTINCT + 57 + 14 + - - 29 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL <= - - col1 / - - 47 * + - 20
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL <= - - col1 / - - 47 * + - 20
----
0

query I rowsort
SELECT 98 + + - col1 FROM tab0
----
17
77
97

query I rowsort
SELECT ALL col0 + - + 50 + + 1 FROM tab1
----
2
36
42

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) = 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT SUM( 38 ) FROM tab0 cor0
----
114

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT SUM ( 38 ) FROM tab0 cor0
----
114

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

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

query I rowsort
SELECT 20 FROM tab2 WHERE + col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 8 IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 * - + 34 FROM tab1
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT + 62 * - + 36 FROM tab1
----
-2232

query II rowsort
SELECT ALL + col0 AS col1, + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + COUNT( * ) * - + COUNT( * ) * + SUM( ALL 90 ) FROM tab2 AS cor0
----
-2430

skipif mysql # not compatible
query I rowsort label-1611
SELECT + COUNT ( * ) * - + COUNT ( * ) * + SUM ( ALL 90 ) FROM tab2 AS cor0
----
-2430

query II rowsort
SELECT - + 67 AS col1, - col2 * col1 + - + col0 - ( - col0 ) - + - 3 * + - 87 * + col1 AS col1 FROM tab2 AS cor0
----
-67
-14484
-67
-21373
-67
-23177

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1613
SELECT - + ( + MIN( DISTINCT + 56 ) ) DIV + 98 AS col1, - 12 FROM tab0 cor0
----
0
-12

skipif mysql # not compatible
query II rowsort label-1613
SELECT - + ( + MIN ( DISTINCT + 56 ) ) / + 98 AS col1, - 12 FROM tab0 cor0
----
0
-12

query II rowsort
SELECT ALL - + 40 * 74 * - - col1 AS col0, col2 FROM tab1 AS cor0
----
-139120
68
-14800
59
-41440
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1615
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 62 * - + col2 * col0 / CAST( 89 AS SIGNED ) AND + + col0
----

skipif mysql # not compatible
query III rowsort label-1615
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 62 * - + col2 * col0 / CAST ( 89 AS INTEGER ) AND + + col0
----

query I rowsort
SELECT ALL col2 * col0 + + + col1 * - + 20 FROM tab1
----
4616
4915
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT COUNT( 37 ) + - + 22 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT COUNT ( 37 ) + - + 22 AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - 21 * ( COUNT( * ) ) + - SUM( + + ( - - col0 ) ) FROM tab0 AS cor0
----
-262

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 21 * ( COUNT ( * ) ) + - SUM ( + + ( - - col0 ) ) FROM tab0 AS cor0
----
-262

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 BETWEEN - ( + + col1 ) AND - + 71 + + - col0 / + - col1 - - - col2 + + - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - - 45 + MIN( + col0 ) AS col0 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-1623
SELECT - - 45 + MIN ( + col0 ) AS col0 FROM tab0 cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT - col2 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - col2 / + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 47 AS col2 FROM tab2
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT DISTINCT + ( + + COUNT( * ) ) + + 83 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + ( + + COUNT ( * ) ) + + 83 FROM tab1
----
86

query II rowsort
SELECT DISTINCT col1 AS col2, 72 * + 83 AS col0 FROM tab0 AS cor0
----
1
5976
21
5976
81
5976

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - - COUNT( + 76 ) + - 49 AS col0 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - - COUNT ( + 76 ) + - 49 AS col0 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 72 - + + 12 FROM tab0 AS cor0
----
60

query I rowsort
SELECT col1 - - 20 * - - 75 AS col1 FROM tab2 cor0
----
1551
1567
1577

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT ALL ( - + COUNT( * ) ) AS col1, - 8 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

skipif mysql # not compatible
query II rowsort label-1636
SELECT ALL ( - + COUNT ( * ) ) AS col1, - 8 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1637
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - 45 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1637
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - 45 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1638
SELECT - - col2 AS col2, + col0 DIV col1 FROM tab1 AS cor0
----
59
17
68
1
96
3

skipif mysql # not compatible
query II rowsort label-1638
SELECT - - col2 AS col2, + col0 / col1 FROM tab1 AS cor0
----
59
17
68
1
96
3

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE NOT 6 = col0 * + 87 + + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE NOT 6 = col0 * + 87 + + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL )
----

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

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * + col2 col2 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT MIN( DISTINCT 43 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-1644
SELECT MIN ( DISTINCT 43 ) AS col2 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT COUNT( - 68 ), + 21 * + COUNT( * ) + - - ( + MAX( DISTINCT + col2 ) ) AS col0 FROM tab2
----
3
121

skipif mysql # not compatible
query II rowsort label-1645
SELECT COUNT ( - 68 ), + 21 * + COUNT ( * ) + - - ( + MAX ( DISTINCT + col2 ) ) AS col0 FROM tab2
----
3
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT ALL COUNT ( * ) * - COUNT ( * ) col2 FROM tab1
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL COUNT( * ) + - 82 AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( * ) + - 82 AS col0 FROM tab1 AS cor0
----
-79

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

query I rowsort
SELECT DISTINCT 32 * 44 + 66 + - col0 FROM tab0
----
1377
1387
1459

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + MIN( DISTINCT + + ( - col2 ) ) * - 19 AS col2 FROM tab2 cor0 WHERE col0 / + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT + MIN ( DISTINCT + + ( - col2 ) ) * - 19 AS col2 FROM tab2 cor0 WHERE col0 / + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - COUNT( * ) * - + 42 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1653
SELECT - COUNT ( * ) * - + 42 FROM tab0 AS cor0
----
126

query I rowsort
SELECT 49 FROM tab1 cor0 WHERE NULL >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ALL + - 19 DIV 5 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + - 19 / 5 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT DISTINCT + 87 DIV - 16 + + - col2 + col0 FROM tab0 AS cor0
----
-37
-7
72

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + 87 / - 16 + + - col2 + col0 FROM tab0 AS cor0
----
-37
-7
72

query II rowsort
SELECT ( + col1 ) AS col2, - col0 * + col0 FROM tab1
----
14
-2601
47
-8281
5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL ( + 2 ) * + + MAX( + + 30 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL ( + 2 ) * + + MAX ( + + 30 ) AS col1 FROM tab2
----
60

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

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

query II rowsort
SELECT DISTINCT 34 + - + col0 AS col0, col2 FROM tab2
----
-12
23
-30
40
-41
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1661
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) NOT IN ( + 12 ) )
----

skipif mysql # not compatible
query III rowsort label-1661
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) NOT IN ( + 12 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col2 - - col0 AS col0 FROM tab1
----
-141
-33
-45

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

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT 1 * + MIN ( col0 ) * 73 / - COUNT ( * ) FROM tab2
----
-1119

query I rowsort
SELECT col2 * + 19 + + ( - ( + - col0 ) ) FROM tab2
----
1177
483
824

query I rowsort
SELECT DISTINCT col0 + 22 FROM tab0
----
109
119
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT + CAST( + col2 AS SIGNED ) - 54 - - ( + + col0 ) FROM tab0 AS cor0
----
142
43
8

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) - 54 - - ( + + col0 ) FROM tab0 AS cor0
----
142
43
8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL + 76 FROM tab1 WHERE NOT col1 NOT IN ( + col0, + 56, - - col0 + + col1 * + col2 * + - col0 * + col1 * - col1, - col1 + + 88 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1673
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 >= col1 + CAST( 23 AS SIGNED ) - + + col2
----

skipif mysql # not compatible
query III rowsort label-1673
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 >= col1 + CAST ( 23 AS INTEGER ) - + + col2
----

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

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

query I rowsort
SELECT col0 + + 50 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - ( 17 ) IS NULL
----
146
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 66 ) col0 FROM tab1
----
-66
-66
-66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 44 - + + 7 col1 FROM tab1
----
-51
37
-85
37
-91
37

query II rowsort
SELECT DISTINCT 39, 12 AS col2 FROM tab0 AS cor0
----
39
12

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

query I rowsort
SELECT ALL 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + COUNT( DISTINCT - - 22 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COUNT ( DISTINCT - - 22 ) AS col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ALL ( col0 ) * col1 + - + col0 + CAST( + - col0 AS SIGNED ) FROM tab1
----
255
4095
612

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL ( col0 ) * col1 + - + col0 + CAST ( + - col0 AS INTEGER ) FROM tab1
----
255
4095
612

query I rowsort
SELECT + 32 + + col0 AS col1 FROM tab0
----
119
129
47

query I rowsort
SELECT ALL 25 * + col1 + 38 FROM tab2 cor0
----
1313
1713
1963

query I rowsort
SELECT - col1 + - 0 - - + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + + 29 + - + col0 FROM tab2 AS cor0
----
-17
-35
-46

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

query I rowsort
SELECT DISTINCT ( - - col1 ) * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 36 * - - col0 col0 FROM tab0 AS cor0
----
272484
338724
8100

query I rowsort
SELECT col2 + col2 * + col2 * 80 FROM tab2 AS cor0
----
128040
269178
42343

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + col1 * - + col2 + - - col1 - 99 FROM tab0 AS cor0
----
14493231
44022
9703

query I rowsort
SELECT - col2 + + col0 * - col1 * - - col1 FROM tab1 AS cor0
----
-10092
-201087
-2184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( * ) + - 91 AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL - 61 * + 7 AS col1 FROM tab1
----
-427
-427
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ALL + 34 DIV + 67 * + + col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + 34 / + 67 * + + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - 9 FROM tab2
----
-55
-73
-84

query I rowsort
SELECT DISTINCT - col1 + + - 84 FROM tab1
----
-131
-89
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT + 64 DIV - 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 64 / - 89 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT 94 AS col1, COUNT( * ) FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-1703
SELECT 94 AS col1, COUNT ( * ) FROM tab1
----
94
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + 80 * - 8 * + 36 + + - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL - + COUNT( * ) col2 FROM tab0 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-1706
SELECT ALL - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 * + - 4 FROM tab0
----
188
396
40

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * - + 29 / - col2 BETWEEN + 70 * + col1 * 81 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL SUM( + col1 ) + + 12 AS col1 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL SUM ( + col1 ) + + 12 AS col1 FROM tab2
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 col2, + col2 * + - 9 FROM tab1
----
26
-531
26
-612
26
-864

query I rowsort
SELECT DISTINCT col2 * col2 * - 74 + - 32 FROM tab1
----
-257626
-342208
-682016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 1 col0 FROM tab0
----
100
11
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 7 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col0 = + - col2
----

query I rowsort
SELECT ALL + + 54 * - col2 * + col0 FROM tab2 AS cor0
----
-138240
-234900
-57132

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col0 - + col2 col0 FROM tab0 cor0
----
178
7559
9310

query I rowsort
SELECT col1 * 56 - + col2 - col1 AS col0 FROM tab2
----
2782
3627
4195

query I rowsort
SELECT + col2 + col1 + + col2 * + + ( - col0 ) + - - col0 * + col1 * - col0 AS col1 FROM tab0
----
-159788
-18802
-18912

query I rowsort
SELECT ALL + col2 * + - col1 + 27 FROM tab0
----
-183
-3780
-72

query II rowsort
SELECT ALL - 99 + - - col2 - - col2 AS col0, + col1 FROM tab2
----
-19
77
-53
51
17
67

query I rowsort
SELECT ALL - 28 * - 19 * + - col1 FROM tab0 AS cor0
----
-11172
-43092
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT ALL - + 26 DIV - - col2 * 82 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - + 26 / - - col2 * 82 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 89 * - col0 AS col1 FROM tab1
----
4539
7565
8099

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 1 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

query I rowsort
SELECT + + 10 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + COUNT( * ) + - ( AVG ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + COUNT ( * ) + - ( AVG ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

query I rowsort
SELECT ALL - col0 * + - 74 AS col1 FROM tab1 AS cor0
----
3774
6290
6734

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL col2 DIV + - ( + 9 ) AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL col2 / + - ( + 9 ) AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
-1
-11
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT - ( + 10 ) DIV + 84 - - 94 + - 91 + + - col1 FROM tab0
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-1737
SELECT - ( + 10 ) / + 84 - - 94 + - 91 + + - col1 FROM tab0
----
-18
-78
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 AS col2, col0 col0 FROM tab1 WHERE - + col0 IS NOT NULL
----
39
51
39
85
39
91

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 + - - 56 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT + 84 DIV + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 84 / + COUNT ( * ) FROM tab0
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <= NULL
----

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

query I rowsort
SELECT DISTINCT + col0 * + 72 + + + col1 FROM tab1
----
3686
6125
6599

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

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 35 + - SUM ( + + col1 ) + - COUNT ( * ) + COUNT ( col1 ) / + CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT - 98 + col2 FROM tab2 AS cor0
----
-40
-58
-75

query I rowsort
SELECT + 3 + - + col1 AS col0 FROM tab1 AS cor0
----
-11
-2
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - ( - + col2 ) col0 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query II rowsort label-1750
SELECT ( col2 ), - col2 DIV - col2 AS col1 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-1750
SELECT ( col2 ), - col2 / - col2 AS col1 FROM tab0
----
10
1
47
1
99
1

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

query II rowsort
SELECT 42, 60 AS col2 FROM tab1
----
42
60
42
60
42
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 46 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - - col2 * + col0 AS col1, 69 AS col2 FROM tab1 cor0
----
4896
69
5015
69
6188
69

query I rowsort
SELECT DISTINCT 55 * + 22 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT DISTINCT - col0 * - 82, + col1 FROM tab0 AS cor0
----
1230
81
7134
21
7954
1

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

query I rowsort
SELECT ( - 48 ) AS col0 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT ALL + col1 + + 20 * + col0 + 5 FROM tab1
----
1039
1710
1872

onlyif mysql # DIV for integer division: 
query II rowsort label-1761
SELECT ALL col0 AS col2, 12 DIV - col1 * col2 + - col2 * - ( col0 ) FROM tab2
----
46
1058
64
2560
75
4350

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL col0 AS col2, 12 / - col1 * col2 + - col2 * - ( col0 ) FROM tab2
----
46
1058
64
2560
75
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT ALL 42 + MAX( col1 ) / CAST( NULL AS SIGNED ) * + + ( 89 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 42 + MAX ( col1 ) / CAST ( NULL AS INTEGER ) * + + ( 89 ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT col1, col0 DIV col1 AS col1 FROM tab0
----
1
97
21
4
81
0

skipif mysql # not compatible
query II rowsort label-1763
SELECT col1, col0 / col1 AS col1 FROM tab0
----
1
97
21
4
81
0

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * - - col0 FROM tab0 WHERE + 0 IS NOT NULL
----
-1
9603
-21
870
-81
705

query I rowsort
SELECT col0 + + 50 FROM tab0
----
137
147
65

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1767
SELECT ALL - + 62 + + ( + col1 ) * - col0 AS col1, CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
-4339
NULL
-487
NULL
-776
NULL

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL - + 62 + + ( + col1 ) * - col0 AS col1, CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
-4339
NULL
-487
NULL
-776
NULL

query I rowsort
SELECT 44 + 73 AS col2 FROM tab1 cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT COUNT( * ) + 8 + 64 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-1769
SELECT COUNT ( * ) + 8 + 64 FROM tab0
----
75

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

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

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

query I rowsort
SELECT ALL + 23 - + 1 AS col2 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + col0 - + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
2392
4992
5100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 50 + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT - + 61 - - - 6 - - col2 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-13
-46
15

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - + 61 - - - 6 - - col2 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-13
-46
15

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1777
SELECT ALL - CAST ( + COUNT ( ALL - + 96 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-3

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

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

query I rowsort
SELECT - 90 FROM tab2 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col1 * - - col0 * - + col2, 89 AS col0 FROM tab0
----
-18270
89
-57105
89
-9603
89

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 * ( + - 72 ) * ( + col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
106560
154512
61272

query I rowsort
SELECT - col2 * - 91 FROM tab2 AS cor0
----
2093
3640
5278

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1788
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL MAX( ALL + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL MAX ( ALL + col1 ) FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND 1 * 35
----

query I rowsort
SELECT + - col2 + + 90 AS col1 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT - col1 + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1794
SELECT 25 + + ( + 11 ), CAST( - 42 AS SIGNED ) + col1 col2 FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL AND col0 * - col0 * + 64 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1794
SELECT 25 + + ( + 11 ), CAST ( - 42 AS INTEGER ) + col1 col2 FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL AND col0 * - col0 * + 64 <> NULL
----

query II rowsort
SELECT - + 51 + + col2, - 17 AS col0 FROM tab2 AS cor0
----
-11
-17
-28
-17
7
-17

query I rowsort
SELECT DISTINCT - 57 + + col1 AS col2 FROM tab0
----
-36
-56
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col1 col1 FROM tab1
----
10
28
94

query I rowsort
SELECT - 27 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL + ( 48 ) + + ( - COUNT( * ) ) - + COUNT( * ) - - - 57 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + ( 48 ) + + ( - COUNT ( * ) ) - + COUNT ( * ) - - - 57 FROM tab2 AS cor0
----
-15

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col1, + col2 * + + 29 AS col2 FROM tab2 AS cor0
----
51
667
67
1682
77
1160

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT ALL - 77, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-77
0

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL - 77, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-77
0

query II rowsort
SELECT 67 AS col2, col2 * col1 FROM tab2 AS cor0
----
67
1173
67
3080
67
3886

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 * col1 / - + 48
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1807
SELECT ALL CAST( - CAST( + CAST( + col1 AS SIGNED ) AS DECIMAL ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL CAST ( - CAST ( + CAST ( + col1 AS INTEGER ) AS REAL ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL OR NOT 27 * 35 IS NOT NULL
----

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

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

query II rowsort
SELECT - 17 * + 31 AS col1, col2 AS col1 FROM tab2
----
-527
23
-527
40
-527
58

query I rowsort
SELECT DISTINCT - + col0 * - - col1 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 31 )
----

query I rowsort
SELECT ALL + 33 * - col1 + 81 + col1 * - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
2807
333
341

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 80 + col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - COUNT( * ) * - 8 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - COUNT ( * ) * - 8 AS col2 FROM tab0 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 * 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT + 54 DIV 10 + + - 11 * SUM( col2 ) DIV 92 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 54 / 10 + + - 11 * SUM ( col2 ) / 92 FROM tab0 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT 14 DIV - col0 * - 7 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT 14 / - col0 * - 7 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT 40 - + + 56 AS col2, + SUM( ALL + col1 ) AS col2 FROM tab2
----
-16
195

skipif mysql # not compatible
query II rowsort label-1822
SELECT 40 - + + 56 AS col2, + SUM ( ALL + col1 ) AS col2 FROM tab2
----
-16
195

query I rowsort
SELECT 49 * - + col2 - + - col1 AS col1 FROM tab0
----
-2222
-469
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT 29 + - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1824
SELECT 29 + - COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT - 95 * + col1 + col0 FROM tab0
----
-1908
-7680
2

query I rowsort
SELECT 63 + + col2 AS col0 FROM tab1
----
122
131
159

query I rowsort
SELECT ALL - col1 + - ( - 33 ) AS col1 FROM tab0
----
-48
12
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT ( MIN( - 0 ) ) + - 48 DIV + 16 AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT ( MIN ( - 0 ) ) + - 48 / + 16 AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - 20 * - col1 AS col1 FROM tab1 AS cor0
----
100
280
940

query I rowsort
SELECT - - col1 + - - 68 + - col0 FROM tab1 AS cor0
----
-12
24
31

query I rowsort
SELECT + 20 * col2 + + col1 + + col0 - - col1 * + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT - MAX( + 28 ) FROM tab2 AS cor0 WHERE - 5 * + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - MAX ( + 28 ) FROM tab2 AS cor0 WHERE - 5 * + - col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 * + 31 * 60 AS col1 FROM tab1 AS cor0
----
-109740
-126480
-178560

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL 41 * + - COUNT( * ) FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL 41 * + - COUNT ( * ) FROM tab2 AS cor0
----
-123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT + + SUM( 77 ) * + ( + - 10 ) col2 FROM tab2 AS cor0
----
-2310

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1837
SELECT DISTINCT + + SUM ( 77 ) * + ( + - 10 ) col2 FROM tab2 AS cor0
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - 21 * + + 99 * + COUNT( + + 97 ) FROM tab1 cor0
----
-6237

skipif mysql # not compatible
query I rowsort label-1838
SELECT - 21 * + + 99 * + COUNT ( + + 97 ) FROM tab1 cor0
----
-6237

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * col0 + 71 / + 36 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 69 AS col1, - 23 FROM tab2
----
69
-23
69
-23
69
-23

query I rowsort
SELECT ( - + col0 ) * col2 AS col2 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT - col1, col2 * 48 * - 85 + - col0 + + col2 - col1 AS col2 FROM tab0
----
-1
-403919
-21
-40898
-81
-191809

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - col2 + 44 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT MAX( DISTINCT - 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT MAX ( DISTINCT - 40 ) FROM tab1
----
-40

query I rowsort
SELECT DISTINCT 5 * + 64 AS col0 FROM tab2 AS cor0
----
320

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1847
SELECT col0, - 72 DIV - col1 AS col1 FROM tab1 cor0
----
51
5
85
14
91
1

skipif mysql # not compatible
query II rowsort label-1847
SELECT col0, - 72 / - col1 AS col1 FROM tab1 cor0
----
51
5
85
14
91
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1848
SELECT SUM ( + col2 ) col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT - col0 * ( CAST( col1 AS SIGNED ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1849
SELECT - col0 * ( CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT MAX( ALL - 49 ) col2 FROM tab0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT MAX ( ALL - 49 ) col2 FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT - col2 + - 20 FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND 65 + + ( CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query I rowsort label-1852
SELECT - col2 + - 20 FROM tab0 WHERE ( NULL ) BETWEEN - col1 AND 65 + + ( CAST ( NULL AS INTEGER ) + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT COUNT( * ) col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 8 ) AND 79
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1854
SELECT COUNT ( * ) col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 8 ) AND 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT + col0 * col2 + col2 DIV col1 AS col1 FROM tab0 WHERE ( + 19 ) NOT IN ( col1 - - col0 )
----
705
870
9702

skipif mysql # not compatible
query I rowsort label-1855
SELECT + col0 * col2 + col2 / col1 AS col1 FROM tab0 WHERE ( + 19 ) NOT IN ( col1 - - col0 )
----
705
870
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1856
SELECT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) + + col1 = + 55
----

skipif mysql # not compatible
query III rowsort label-1856
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) + + col1 = + 55
----

query I rowsort
SELECT ALL col2 * + 90 FROM tab1
----
5310
6120
8640

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

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

query I rowsort
SELECT DISTINCT - 72 * - 30 + ( 91 + col1 ) FROM tab1
----
2256
2265
2298

query I rowsort
SELECT + 86 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL ( ( SUM( ALL 80 ) ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL ( ( SUM ( ALL 80 ) ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 62 AS col2 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT col0 * ( - col2 ) AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN - 25 AND 20 * + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT SUM( ALL 53 ) AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT SUM ( ALL 53 ) AS col2 FROM tab1
----
159

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

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

query I rowsort
SELECT DISTINCT - col1 * 94 AS col1 FROM tab2
----
-4794
-6298
-7238

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

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

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

query I rowsort
SELECT + 7 + - col1 FROM tab0
----
-14
-74
6

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col1 >= + 81
----
87
21
10

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL >= 9 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + col0 col1 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL - CAST( col0 AS SIGNED ) * + 86 FROM tab0
----
-1290
-7482
-8342

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - CAST ( col0 AS INTEGER ) * + 86 FROM tab0
----
-1290
-7482
-8342

query III rowsort
SELECT * FROM tab1 WHERE + 10 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1884
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN + col0 * + col2 + ( + col2 + - CAST( col1 AS SIGNED ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1884
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN + col0 * + col2 + ( + col2 + - CAST ( col1 AS INTEGER ) ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT ALL 70 DIV + COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL 70 / + COUNT ( * ) FROM tab2
----
23

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > ( + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1891
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + 32 BETWEEN ( col1 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT col0 DIV 5 FROM tab2 AS cor0
----
12
15
9

skipif mysql # not compatible
query I rowsort label-1893
SELECT col0 / 5 FROM tab2 AS cor0
----
12
15
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT + 24 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE col2 - - 76 * col1 <> + 37
----
3

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 - - 76 * col1 <> + 37
----
3

query I rowsort
SELECT ALL 95 * + col1 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT - col2 * + 32 AS col0 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT ALL + col1 * - 57 AS col1 FROM tab1 AS cor0
----
-2679
-285
-798

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

query I rowsort
SELECT + col1 * + 74 FROM tab0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1
----
-5

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) <> 12 + - col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT - col0 DIV + 41 - 25 AS col2 FROM tab0 AS cor0
----
-25
-27

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - col0 / + 41 - 25 AS col2 FROM tab0 AS cor0
----
-25
-27

query I rowsort
SELECT ALL 66 FROM tab1 AS cor0 WHERE NOT ( 31 ) >= + col0
----
66
66
66

query I rowsort
SELECT DISTINCT 0 + + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT 37 + + + COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 37 + + + COUNT ( * ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( - - col0 / col1 ) NOT BETWEEN ( - col0 * col2 ) AND ( - 49 )
----
3

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( - - col0 / col1 ) NOT BETWEEN ( - col0 * col2 ) AND ( - 49 )
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT ALL - col0 DIV + ( + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - col0 / + ( + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1914
SELECT * FROM tab2 AS cor0 WHERE + 82 IN ( - CAST( + 92 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1914
SELECT * FROM tab2 AS cor0 WHERE + 82 IN ( - CAST ( + 92 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 74 * - 66 + ( - col0 ) / + 25 BETWEEN + 25 + - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + 81 NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + 54 AS col2 FROM tab2 AS cor0
----
105
121
131

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

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

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

query I rowsort
SELECT DISTINCT - col1 - 75 FROM tab0 AS cor0
----
-156
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT - SUM( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT 5 * - + ( 10 ) NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT - SUM ( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT 5 * - + ( 10 ) NOT IN ( + col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

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

query I rowsort
SELECT DISTINCT - col1 * - 65 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

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

query I rowsort
SELECT + + 71 - col2 FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1928
SELECT col1 - - 0 AS col0, + CAST( + col0 AS SIGNED ) col0 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1928
SELECT col1 - - 0 AS col0, + CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
51
46
67
75
77
64

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

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

query II rowsort
SELECT - 9 + col2 AS col1, - col2 * - - col2 AS col1 FROM tab1
----
50
-3481
59
-4624
87
-9216

query I rowsort
SELECT + col1 + col0 + 98 FROM tab2
----
195
239
240

query I rowsort
SELECT ALL + 24 * col1 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT ALL + ( - col0 ) + - + CAST( - col1 AS SIGNED ) * - 23 FROM tab1
----
-1172
-200
-373

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + ( - col0 ) + - + CAST ( - col1 AS INTEGER ) * - 23 FROM tab1
----
-1172
-200
-373

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + MIN( ALL 94 ) AS col1 FROM tab2 WHERE + 47 NOT BETWEEN - col2 AND + col2
----
94

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + MIN ( ALL 94 ) AS col1 FROM tab2 WHERE + 47 NOT BETWEEN - col2 AND + col2
----
94

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

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

query I rowsort
SELECT ALL + 34 + + col2 FROM tab2 AS cor0
----
57
74
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN 44 * - col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 28 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 28 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT DISTINCT MIN( DISTINCT + 36 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-1939
SELECT DISTINCT MIN ( DISTINCT + 36 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
36
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * + 19 + 84 ) BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - 56 + - col2 FROM tab1 AS cor0
----
-2952
-4819
-5164

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 * 62 NOT BETWEEN NULL AND + + col0 * + ( col2 )
----

query I rowsort
SELECT - 97 * - col0 FROM tab2 AS cor0
----
4462
6208
7275

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

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

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

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

query I rowsort
SELECT + col0 * - 86 AS col1 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - 26 * col2 IS NULL
----

query II rowsort
SELECT ALL 11, + 51 AS col1 FROM tab0
----
11
51
11
51
11
51

query I rowsort
SELECT - col0 * 95 AS col0 FROM tab0 WHERE NOT + - 21 <> + 78 + - 24
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 + + col2 NOT IN ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL + 45 + - col2 DIV - ( + col1 ) * col2 AS col0 FROM tab2
----
45
45
45

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + 45 + - col2 / - ( + col1 ) * col2 AS col0 FROM tab2
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= ( - 64 + - col1 )
----

query I rowsort
SELECT ALL 14 * + col1 FROM tab1
----
196
658
70

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT DISTINCT col1 AS col2, 57 DIV col1 - + 14 FROM tab2
----
51
-13
67
-14
77
-14

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT col1 AS col2, 57 / col1 - + 14 FROM tab2
----
51
-13
67
-14
77
-14

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

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

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 38 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - 21 DIV + 29 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 21 / + 29 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT 21 * 18 + + col2 * - col0 * + 49 AS col1 FROM tab2 AS cor0
----
-125062
-212772
-51464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-1964
SELECT ALL + + COUNT( * ) AS col1, + 20 + + 10 FROM tab2 cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-1964
SELECT ALL + + COUNT ( * ) AS col1, + 20 + + 10 FROM tab2 cor0
----
3
30

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NOT 39 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 = + col2 / - - 4 * - ( + - 37 ) + col2 / + col2
----

query I rowsort
SELECT DISTINCT 79 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
79

query I rowsort
SELECT DISTINCT col0 + + 56 + + col1 AS col1 FROM tab2
----
153
197
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL - COUNT( * ) + MIN( - + 86 ) * + 57 FROM tab1
----
-4905

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( * ) + MIN ( - + 86 ) * + 57 FROM tab1
----
-4905

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - ( - MIN( + 43 ) ) * 74 FROM tab1 AS cor0
----
3182

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - ( - MIN ( + 43 ) ) * 74 FROM tab1 AS cor0
----
3182

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT - col2 + - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1972
SELECT - col2 + - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-118
-136
-192

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

query I rowsort
SELECT DISTINCT 60 FROM tab0 cor0 WHERE + 20 IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL - COUNT( - 17 ) - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - COUNT ( - 17 ) - - COUNT ( * ) FROM tab0 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 40, - col1 )
----

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

query I rowsort
SELECT col1 - - + 75 AS col0 FROM tab0
----
156
76
96

query I rowsort
SELECT + col2 * + - col2 * - + ( col2 ) AS col2 FROM tab1 cor0
----
205379
314432
884736

query I rowsort
SELECT ALL + ( + 97 ) * col1 / 58 + + col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT + - 0 AS col1, + col2 * 1 FROM tab2 AS cor0
----
0
23
0
40
0
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - col0 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 5
----

query I rowsort
SELECT DISTINCT + ( 71 ) * - + col2 AS col2 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT COUNT( - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

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

query I rowsort
SELECT ALL + - 83 AS col2 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT - col0 DIV - 91 + - - col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1991
SELECT - col0 / - 91 + - - col1 FROM tab2 cor0
----
51
67
77

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

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

query I rowsort
SELECT ALL 12 + 11 AS col2 FROM tab0
----
23
23
23

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - COUNT( * ) * 47 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-1997
SELECT - COUNT ( * ) * 47 FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT 51 + - - MIN( ALL ( ( col2 ) ) ) * - COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1998
SELECT 51 + - - MIN ( ALL ( ( col2 ) ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT ( + - 44 ) DIV - + col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1999
SELECT ( + - 44 ) / - + col2 FROM tab0
----
0
0
4

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

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

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col1 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - - COUNT( * ) - - 19 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2002
SELECT - - COUNT ( * ) - - 19 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + col1 * + - 55 AS col0 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL COUNT( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL COUNT ( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

query I rowsort
SELECT ALL + col2 * - col1 * - ( - col2 ) AS col1 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT ALL + col2 + - 11 AS col1, + 20 * - col1 FROM tab2
----
12
-1020
29
-1540
47
-1340

query I rowsort
SELECT col1 * + col1 + col2 AS col2 FROM tab0
----
100
451
6608

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

skipif mysql # not compatible
query I rowsort label-2008
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

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

skipif mysql # not compatible
query II rowsort label-2009
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col2, + 75 FROM tab2
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT - col2 BETWEEN - col2 * col1 AND - col2 + + ( col0 ) + col0
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2015
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 + - col2 * col0 > - + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 71 AS col0, + 91 FROM tab0 AS cor0
----
71
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT DISTINCT 71 AS col1, MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
71
51

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT 71 AS col1, MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
71
51

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + 17 + + 68 < col0 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 59 * - 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2028
SELECT + + col1 + - col2 - - col0 * - - CAST( + + col0 AS SIGNED ) * col0 AS col1, col1 * + col2 FROM tab1 AS cor0
----
132569
1344
614071
295
753550
3196

skipif mysql # not compatible
query II rowsort label-2028
SELECT + + col1 + - col2 - - col0 * - - CAST ( + + col0 AS INTEGER ) * col0 AS col1, col1 * + col2 FROM tab1 AS cor0
----
132569
1344
614071
295
753550
3196

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2030
SELECT * FROM tab0 WHERE + CAST( col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 37 * - - col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2030
SELECT * FROM tab0 WHERE + CAST ( col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 37 * - - col0 * col0 IS NOT NULL
----

query I rowsort
SELECT col2 + - + col2 - - 78 AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL + col0 + 66 FROM tab1
----
117
151
157

query I rowsort
SELECT ALL col0 * - - 27 * + col2 FROM tab2
----
117450
28566
69120

query I rowsort
SELECT DISTINCT + 15 FROM tab0 WHERE - - col0 * - - 40 * - col2 IS NOT NULL
----
15

query III rowsort
SELECT * FROM tab1 WHERE 80 IS NULL
----

query I rowsort
SELECT col0 * 58 FROM tab0
----
5046
5626
870

query I rowsort
SELECT ALL - + col0 + + + col2 FROM tab2 WHERE NULL >= + ( + 21 ) * + col1 - + col2 + - col2 * 15
----

query I rowsort
SELECT ALL col2 + + col2 - col0 * col2 * - 6 AS col2 FROM tab2
----
15440
26216
6394

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - col0 BETWEEN col1 - 73 / - col1 AND - 50
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT DISTINCT COUNT( * ), ( - 1 ) AS col1 FROM tab1 WHERE NOT NULL <> - - 84
----
0
-1

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT COUNT ( * ), ( - 1 ) AS col1 FROM tab1 WHERE NOT NULL <> - - 84
----
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT - - col0 DIV - + col2 col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT - - col0 / - + col2 col0 FROM tab0 AS cor0
----
-8
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 61 - + + 0 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL 20 - - ( + + CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
71
87
97

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL 20 - - ( + + CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + SUM( + col1 ) + + - 70 * + 61 FROM tab2 AS cor0
----
-4075

skipif mysql # not compatible
query I rowsort label-2048
SELECT + SUM ( + col1 ) + + - 70 * + 61 FROM tab2 AS cor0
----
-4075

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col2 + - - 99 <= + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE - 27 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - 27 BETWEEN NULL AND NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + + col1 + + col2 * 92 col0 FROM tab2 AS cor0
----
1657
2987
4733

query I rowsort
SELECT + ( + 23 ) AS col2 FROM tab0 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 * + + col1 * 35 NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT + 40 DIV + 61 + - col0 - + + col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-2055
SELECT + 40 / + 61 + - col0 - + + col1 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-108
-96
-98

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + 46 * + + col1 AS col2 FROM tab0
----
3726
46
966

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT - COUNT( * ) * + MAX( - 98 ) AS col2 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - COUNT ( * ) * + MAX ( - 98 ) AS col2 FROM tab0
----
294

query I rowsort
SELECT - col0 * col1 * col1 * + col0 * + col1 AS col1 FROM tab0
----
-119574225
-70096509
-9409

query I rowsort
SELECT + + 43 * 45 AS col1 FROM tab1 AS cor0
----
1935
1935
1935

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT DISTINCT + col2 DIV - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + col2 / - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 18 + + - col1 = + + col1 + + ( + + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT DISTINCT 20 + - + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2065
SELECT DISTINCT 20 + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

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

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

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - 44 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT ALL + ( + col2 ) DIV + col0 - + col0 + - col0 + + 34 FROM tab0 AS cor0
----
-140
-159
7

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + ( + col2 ) / + col0 - + col0 + - col0 + + 34 FROM tab0 AS cor0
----
-140
-159
7

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

query I rowsort
SELECT - 11 * + 57 + - col2 AS col2 FROM tab0 AS cor0
----
-637
-674
-726

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE 3 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT 68 * 90 + - COUNT( * ) col2 FROM tab2
----
6117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2072
SELECT 68 * 90 + - COUNT ( * ) col2 FROM tab2
----
6117

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL COUNT( * ) * + - COUNT( + - 14 ) + + 68 * - + 40 FROM tab2
----
-2729

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( * ) * + - COUNT ( + - 14 ) + + 68 * - + 40 FROM tab2
----
-2729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 79 col2 FROM tab1 AS cor0
----
-12
-6
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT CAST( 81 AS SIGNED ) * col1 FROM tab1
----
1134
3807
405

skipif mysql # not compatible
query I rowsort label-2075
SELECT CAST ( 81 AS INTEGER ) * col1 FROM tab1
----
1134
3807
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT - 24 DIV MAX( ( + col1 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - 24 / MAX ( ( + col1 ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT - 90 DIV + + col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 90 / + + col0 FROM tab0
----
-1
-6
0

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 82
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2080
SELECT - ( + COUNT( DISTINCT + CAST( 73 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2080
SELECT - ( + COUNT ( DISTINCT + CAST ( 73 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT + - CAST( - 99 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + - CAST ( - 99 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2082
SELECT 43 AS col1, - col1 * 0 FROM tab0 AS cor0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2082
SELECT 43 AS col1, - col1 * 0 FROM tab0 AS cor0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - 83 * + COUNT( * ) * 19 FROM tab0 AS cor0
----
-4731

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 83 * + COUNT ( * ) * 19 FROM tab0 AS cor0
----
-4731

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

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

query I rowsort
SELECT ALL col0 * - + 61 AS col1 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT ALL - col0 * + ( + col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 13 * - 9 AS col1 FROM tab2
----
-117
-117
-117

query I rowsort
SELECT DISTINCT ( + - ( - col2 ) ) FROM tab1
----
59
68
96

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

query I rowsort
SELECT 65 FROM tab1 WHERE NOT + col2 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + 50 * 13 + - + MIN( DISTINCT - - col1 ) + SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 50 * 13 + - + MIN ( DISTINCT - - col1 ) + SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
711

query I rowsort
SELECT DISTINCT col2 + - 10 * col0 AS col1 FROM tab2 AS cor0
----
-437
-600
-692

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-2098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT 50 + 43 + MAX( DISTINCT - col0 ), + MAX( + col2 ) col1 FROM tab2 AS cor0
----
47
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2099
SELECT 50 + 43 + MAX ( DISTINCT - col0 ), + MAX ( + col2 ) col1 FROM tab2 AS cor0
----
47
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT ALL - - MIN( ALL + col1 ) AS col1, MAX( DISTINCT - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
51
-51

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL - - MIN ( ALL + col1 ) AS col1, MAX ( DISTINCT - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
51
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT - MAX( 89 ) + - CAST( NULL AS SIGNED ) + + 73 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT - MAX ( 89 ) + - CAST ( NULL AS INTEGER ) + + 73 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + SUM( DISTINCT - 27 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + SUM ( DISTINCT - 27 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-27

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

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL COUNT ( * ) + + COUNT ( + ( col0 ) ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT MIN( ALL + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2104
SELECT MIN ( ALL + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 75 * col2 AS col1 FROM tab2 WHERE ( 5 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * - col1 - col2 * - col2 FROM tab0 AS cor0
----
1927
3424
9898

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 * col0 <> 84
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 42 <> + col2
----

query I rowsort
SELECT DISTINCT - 54 - - 22 + - - 21 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT 12 * - - col0 FROM tab2
----
552
768
900

query I rowsort
SELECT ( - col1 ) * + - col0 - + col1 AS col0 FROM tab2
----
2295
4851
4958

query II rowsort
SELECT + col0 AS col2, 57 FROM tab0
----
15
57
87
57
97
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col2, + 30 AS col0 FROM tab1 AS cor0
----
59
30
68
30
96
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT + + 49 DIV + - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT + + 49 / + - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2118
SELECT ALL - ( - CAST( col2 AS SIGNED ) ) AS col2, - CAST( - - 40 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
-40
40
-40
58
-40

skipif mysql # not compatible
query II rowsort label-2118
SELECT ALL - ( - CAST ( col2 AS INTEGER ) ) AS col2, - CAST ( - - 40 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
-40
40
-40
58
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col2 * + col2 + + col2 IS NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT - ( + MIN( ALL + 80 ) ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - ( + MIN ( ALL + 80 ) ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT DISTINCT - 53 * + ( - + col0 ) FROM tab1
----
2703
4505
4823

query I rowsort
SELECT ALL + col0 * - col2 + col0 * + - col1 * - col1 FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + 70 * - col2 AS col0 FROM tab0
----
-154630
-686070
-7000

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT DISTINCT + - col0 DIV 95 + 75 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + - col0 / 95 + 75 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - COUNT( * ) * - + 6 * - + COUNT( * ) col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT - COUNT ( * ) * - + 6 * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT 1 + - COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2127
SELECT 1 + - COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 42 + - col2 AS col2 FROM tab0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT - 5 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 5 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND col2
----
2

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND col2
----
2

query I rowsort
SELECT DISTINCT + col0 + ( 85 ) * col1 - + col2 AS col1 FROM tab0 AS cor0
----
1862
6853
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32

query I rowsort
SELECT ALL 65 + + + col1 FROM tab2 AS cor0
----
116
132
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL COUNT( * ) * + MIN( DISTINCT - 26 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT - 26 ) FROM tab1 AS cor0
----
-78

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 > 70 + + 37
----

query I rowsort
SELECT - + col1 * + 89 AS col0 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 37 + - + col0 + - - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2139
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 37 + - + col0 + - - CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT col0 - + - col2 / + col0 * - col2 * - CAST( NULL AS SIGNED ) * - 47 / col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT col0 - + - col2 / + col0 * - col2 * - CAST ( NULL AS INTEGER ) * - 47 / col0 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 = col1
----

query I rowsort
SELECT col2 + 8 * - + col0 FROM tab0
----
-677
-686
-73

query I rowsort
SELECT + 59 + col0 + - + col0 AS col0 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - COUNT( + col2 ) AS col0 FROM tab0 WHERE 73 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2144
SELECT - COUNT ( + col2 ) AS col0 FROM tab0 WHERE 73 IS NOT NULL
----
-3

query I rowsort
SELECT col1 + - + 43 FROM tab0
----
-22
-42
38

query I rowsort
SELECT col0 * + - 99 * + col2 + 42 FROM tab1
----
-484662
-496443
-612570

query I rowsort
SELECT ALL - 20 + - col0 + - 80 FROM tab0
----
-115
-187
-197

query I rowsort
SELECT - 45 * - 54 + - + ( + col1 ) FROM tab2
----
2353
2363
2379

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( - 81 * col1, + col1 * + - col1 )
----

query I rowsort
SELECT DISTINCT - 70 - + - 66 + + + col1 * - 32 * - col1 AS col1 FROM tab2
----
143644
189724
83228

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 7 - - 14 AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL + + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT DISTINCT + 92 AS col0, - ( + + SUM( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
92
-227

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT + 92 AS col0, - ( + + SUM ( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
92
-227

query II rowsort
SELECT ALL - col0 AS col2, 41 * + col2 - + + col0 AS col1 FROM tab1 cor0
----
-51
3885
-85
2334
-91
2697

onlyif mysql # DIV for integer division: 
query II rowsort label-2157
SELECT + col1 DIV - col0, + 18 + 55 * col1 AS col0 FROM tab2
----
-1
2823
-1
4253
0
3703

skipif mysql # not compatible
query II rowsort label-2157
SELECT + col1 / - col0, + 18 + 55 * col1 AS col0 FROM tab2
----
-1
2823
-1
4253
0
3703

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2158
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2158
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ( + + 67 ) FROM tab2 cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2161
SELECT ALL CAST( - col0 AS SIGNED ) AS col2, 81 + 97 * - 37 FROM tab0 AS cor0
----
-15
-3508
-87
-3508
-97
-3508

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL CAST ( - col0 AS INTEGER ) AS col2, 81 + 97 * - 37 FROM tab0 AS cor0
----
-15
-3508
-87
-3508
-97
-3508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2162
SELECT CAST( - + COUNT( * ) AS SIGNED ), + 82 AS col2 FROM tab1 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-2162
SELECT CAST ( - + COUNT ( * ) AS INTEGER ), + 82 AS col2 FROM tab1 AS cor0
----
-3
82

query I rowsort
SELECT DISTINCT AVG ( + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 21 col1, + col1 AS col1 FROM tab1
----
21
14
21
47
21
5

query I rowsort
SELECT DISTINCT ( - 13 ) + col1 + + col0 * - col1 FROM tab0
----
-109
-1147
-1819

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT ( MIN( col2 ) ) FROM tab1 WHERE NOT ( 45 * 44 + - - col0 / + col2 + - col1 - - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT ( MIN ( col2 ) ) FROM tab1 WHERE NOT ( 45 * 44 + - - col0 / + col2 + - col1 - - col1 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col0, col2 + - 41 FROM tab0 AS cor0
----
-15
6
-87
-31
-97
58

query II rowsort
SELECT ALL + - 16, col1 FROM tab2 cor0
----
-16
51
-16
67
-16
77

query II rowsort
SELECT + 90, - col2 AS col2 FROM tab2 AS cor0
----
90
-23
90
-40
90
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + - 4 * ( COUNT( * ) ) + 80 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + - 4 * ( COUNT ( * ) ) + 80 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT - + MIN( + + 19 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - + MIN ( + + 19 ) FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - ( - MAX( DISTINCT + 31 ) ) * 15 FROM tab2 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-2172
SELECT - ( - MAX ( DISTINCT + 31 ) ) * 15 FROM tab2 AS cor0
----
465

query II rowsort
SELECT + - 6 * - + 85, 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 7bed8cb4fe36f4276fdd17a4d80d5f84

query I rowsort
SELECT 1 AS col1 FROM tab2 WHERE + col0 NOT IN ( + col2, col1 )
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT DISTINCT + + 88 DIV + 26 + + 81 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + + 88 / + 26 + + 81 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COUNT( ALL col0 ) + COUNT( + 22 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( ALL col0 ) + COUNT ( + 22 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 13 * - 38 FROM tab0 AS cor0
----
494
494
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT - CAST( + col1 AS SIGNED ) + - 42 FROM tab1 cor0
----
-47
-56
-89

skipif mysql # not compatible
query I rowsort label-2178
SELECT - CAST ( + col1 AS INTEGER ) + - 42 FROM tab1 cor0
----
-47
-56
-89

query I rowsort
SELECT DISTINCT 38 - ( 28 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + + col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 9 * - - 2 * + 81 AS col0 FROM tab2 AS cor0
----
1458

query I rowsort
SELECT - col0 * col1 + 64 FROM tab0 AS cor0
----
-1151
-1763
-33

query I rowsort
SELECT - col1 * + - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 * - 24 * - 89 AS col0 FROM tab1
----
108936
181560
194376

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL - 59 DIV - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - 59 / - col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + 85 - col1 AS col1 FROM tab0
----
4
64
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT MAX( DISTINCT col1 ) - 87 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2188
SELECT MAX ( DISTINCT col1 ) - 87 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT + + col2 - 66 FROM tab0 cor0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - MIN( ALL - 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2190
SELECT - MIN ( ALL - 62 ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) * - 90 FROM tab2
----
-270

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2193
SELECT ALL + COUNT( DISTINCT + - CAST( + col1 AS DECIMAL ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + COUNT ( DISTINCT + - CAST ( + col1 AS REAL ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT 70 col1 FROM tab1 WHERE + CAST( 59 AS SIGNED ) IS NOT NULL
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2194
SELECT DISTINCT 70 col1 FROM tab1 WHERE + CAST ( 59 AS INTEGER ) IS NOT NULL
----
70

query II rowsort
SELECT - - col2, ( + - 2 ) * col1 * + col0 AS col1 FROM tab2 AS cor0
----
23
-4692
40
-9856
58
-10050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 61 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col2 * + col2 / + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 14 * 78 * + col2 AS col0 FROM tab0 AS cor0
----
108108
10920
51324

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT + 54 DIV col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + 54 / col0 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT 6 DIV - - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT 6 / - - col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + ( - MAX( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2201
SELECT + ( - MAX ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 74 ) * - col0 AS col1 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + + col0 NOT IN ( + col0 * col1 * col2, 74, - 34 )
----

query I rowsort
SELECT ALL - 57 + - 73 FROM tab0
----
-130
-130
-130

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 + + + 19 <> + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT 95 * + COUNT( * ), COUNT( * ) col0 FROM tab2
----
285
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2207
SELECT 95 * + COUNT ( * ), COUNT ( * ) col0 FROM tab2
----
285
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 67 / col2 * 54 + - col1 <> + 69 * - 43
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT ALL - - 33 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

skipif mysql # not compatible
query II rowsort label-2209
SELECT ALL - - 33 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT - CAST( - + 37 AS SIGNED ) AS col0 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2210
SELECT - CAST ( - + 37 AS INTEGER ) AS col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL - + col0 - - + 16 FROM tab2 AS cor0
----
-30
-48
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + 31 - - col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT ALL - 0 + col1 + col1 AS col2, + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
102
23
134
58
154
40

skipif mysql # not compatible
query II rowsort label-2213
SELECT ALL - 0 + col1 + col1 AS col2, + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
102
23
134
58
154
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL MAX( - 78 ) FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL MAX ( - 78 ) FROM tab1 cor0
----
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL + col1 + - CAST( - + 28 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + - col2 NOT BETWEEN - + col0 - - + col2 - + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + col1 + - CAST ( - + 28 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + - col2 NOT BETWEEN - + col0 - - + col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 86 NOT IN ( + 21, 62, col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 86 NOT IN ( + 21, 62, col1 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - ( - CAST( - col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - ( - CAST ( - col2 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2219
SELECT ALL - AVG ( ALL + col1 ) / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - AVG ( ALL + col1 ) / CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - COUNT( - col2 ) + 28 col1 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2220
SELECT ALL - COUNT ( - col2 ) + 28 col1 FROM tab0
----
25

query I rowsort
SELECT col2 * + col0 + - - col1 FROM tab2
----
1109
2637
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 col0 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - COUNT( * ) * ( + + 24 ) * + COUNT( + col0 ) + - + COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-2223
SELECT - COUNT ( * ) * ( + + 24 ) * + COUNT ( + col0 ) + - + COUNT ( * ) AS col0 FROM tab1
----
-219

query I rowsort
SELECT ALL - 75 * col1 * 49 FROM tab1
----
-172725
-18375
-51450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT - 51 * + + 71 AS col0 FROM tab0
----
-3621
-3621
-3621

query I rowsort
SELECT - 18 * + col1 AS col0 FROM tab0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + 84 * + - COUNT( * ) AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 84 * + - COUNT ( * ) AS col1 FROM tab1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) * 38 * - 84 FROM tab2
----
9576

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) * 38 * - 84 FROM tab2
----
9576

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2230
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT SUM( + col2 ) * 99 AS col0 FROM tab1 AS cor0
----
22077

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT SUM ( + col2 ) * 99 AS col0 FROM tab1 AS cor0
----
22077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT - col0 - - col2 * - ( - col2 ) * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT + col0 + 70 + 5 / 89 * - 14 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2232
SELECT - col0 - - col2 * - ( - col2 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT + col0 + 70 + 5 / 89 * - 14 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 20 FROM tab1 AS cor0
----
100
280
940

query I rowsort
SELECT + 6 * + col2 + - + col0 + + col1 AS col0 FROM tab1
----
274
364
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - ( - COUNT( * ) ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2235
SELECT - ( - COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT + col2 * + ( + col2 ) * 6 * + - col1 + col1 + + 78, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1352183
NULL
-161745
NULL
-739045
NULL

skipif mysql # not compatible
query II rowsort label-2236
SELECT + col2 * + ( + col2 ) * 6 * + - col1 + col1 + + 78, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1352183
NULL
-161745
NULL
-739045
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + - ( + 87 ) ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( - 72 ) * + col0 FROM tab1
----
-3672
-6120
-6552

query II rowsort
SELECT 72, col1 AS col2 FROM tab2
----
72
51
72
67
72
77

query I rowsort
SELECT ( col0 ) * + col1 AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - 14 + 34 * - COUNT( - + 37 ) AS col1 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - 14 + 34 * - COUNT ( - + 37 ) AS col1 FROM tab1
----
-116

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> col1 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT 42 + CAST( NULL AS SIGNED ) * + col1 * - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 42 + CAST ( NULL AS INTEGER ) * + col1 * - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + 94 - - COUNT( * ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + 94 - - COUNT ( * ) FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + - MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + - MAX ( col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col0 * - 67 + + 64 AS col2 FROM tab2 AS cor0
----
-3018
-4224
-4961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT - 14 DIV + SUM( - col1 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2249
SELECT - 14 / + SUM ( - col1 ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT MIN( DISTINCT + 50 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2250
SELECT MIN ( DISTINCT + 50 ) FROM tab1
----
50

query I rowsort
SELECT - col0 + - 79 + + 92 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2252
SELECT ALL - col0 * + col2 DIV CAST( col2 AS SIGNED ) * col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - col0 * + col2 / CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 * + col0 / - - 52 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + CAST( - - 32 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CAST ( - - 32 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT ALL - - col2 AS col1, 78 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
78
47
78
99
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT + ( col2 ) DIV + - col2 - - col0 AS col2 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2257
SELECT + ( col2 ) / + - col2 - - col0 AS col2 FROM tab2 cor0
----
45
63
74

query II rowsort
SELECT DISTINCT - + col0, 15 + col0 AS col1 FROM tab2 cor0
----
-46
61
-64
79
-75
90

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE NOT col2 - - + col0 + - col1 IS NULL
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 83 col0 FROM tab1
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT - 1 * + - COUNT( * ), + MAX( DISTINCT ( + + col2 ) ) AS col2 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-2261
SELECT - 1 * + - COUNT ( * ), + MAX ( DISTINCT ( + + col2 ) ) AS col2 FROM tab2
----
3
58

query I rowsort
SELECT ALL - - 53 * + 88 + + - 90 * col2 AS col1 FROM tab0 AS cor0
----
-4246
3764
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 53 / + + col1 NOT BETWEEN col1 AND 53
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 53 / + + col1 NOT BETWEEN col1 AND 53
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT + - col0 * - col0, CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

skipif mysql # not compatible
query II rowsort label-2264
SELECT + - col0 * - col0, CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

query I rowsort
SELECT ALL + ( + 4 ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL < ( col0 )
----

query I rowsort
SELECT DISTINCT + 8 + + + col1 FROM tab1
----
13
22
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col1 + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - COUNT( * ) + - 83 + - COUNT( * ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-2270
SELECT - COUNT ( * ) + - 83 + - COUNT ( * ) FROM tab1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + 67 + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2271
SELECT + 67 + COUNT ( * ) FROM tab2
----
70

query I rowsort
SELECT DISTINCT col1 * - + 40 + + 86 - - col0 + - 5 * - col1 AS col2 FROM tab2
----
-1653
-2184
-2545

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * + - col1 AS col2 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col2 - 31 FROM tab2
----
-8
27
9

query I rowsort
SELECT ALL - col1 * - - col2 + - + col1 * + col0 FROM tab0
----
-196
-2037
-5022

query I rowsort
SELECT 91 - - col2 FROM tab1 AS cor0
----
150
159
187

query I rowsort
SELECT ALL + + col0 * col2 + col1 FROM tab1 cor0
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL + 73 * - + 47 - + col2 + - col1 DIV 78 + - col2 AS col2 FROM tab1 AS cor0
----
-3549
-3567
-3623

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 73 * - + 47 - + col2 + - col1 / 78 + - col2 AS col2 FROM tab1 AS cor0
----
-3549
-3567
-3623

query II rowsort
SELECT ALL - - 67 AS col2, - 25 FROM tab2 AS cor0
----
67
-25
67
-25
67
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT - - 74 AS col0, col1 - - + 0 + + + col1 FROM tab1 AS cor0
----
74
10
74
28
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + - MAX( - - 24 ) * - ( 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT + - MAX ( - - 24 ) * - ( 0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2284
SELECT + 19 FROM tab0 AS cor0 WHERE NOT CAST( - - col2 AS DECIMAL ) * + 6 = + col1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2284
SELECT + 19 FROM tab0 AS cor0 WHERE NOT CAST ( - - col2 AS REAL ) * + 6 = + col1
----
19
19
19

query II rowsort
SELECT DISTINCT + + col1, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ( 23 ) * + + col2 + - col0 + col1 FROM tab2
----
1326
534
933

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT MAX( - col1 ), - 16 AS col0 FROM tab1
----
-5
-16

skipif mysql # not compatible
query II rowsort label-2287
SELECT MAX ( - col1 ), - 16 AS col0 FROM tab1
----
-5
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT DISTINCT - MIN( ALL col1 ) AS col0, 25 FROM tab2
----
-51
25

skipif mysql # not compatible
query II rowsort label-2288
SELECT DISTINCT - MIN ( ALL col1 ) AS col0, 25 FROM tab2
----
-51
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + 51 ), + 61 col0 FROM tab2 cor0
----
51
61
51
61
51
61

query I rowsort
SELECT + 44 AS col2 FROM tab1 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT ALL MAX( col2 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL MAX ( col2 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT + COUNT( - + 97 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + COUNT ( - + 97 ) FROM tab1
----
3

query I rowsort
SELECT 17 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + - COUNT( ALL - + 78 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2294
SELECT + - COUNT ( ALL - + 78 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 + + - col1 + + col2 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT + + 14 + col2 - CAST( - 24 AS SIGNED ) * - 99 AS col1 FROM tab1 AS cor0
----
-2266
-2294
-2303

skipif mysql # not compatible
query I rowsort label-2296
SELECT + + 14 + col2 - CAST ( - 24 AS INTEGER ) * - 99 AS col1 FROM tab1 AS cor0
----
-2266
-2294
-2303

query II rowsort
SELECT ALL - col0, + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= col1 + + - 45
----

query I rowsort
SELECT DISTINCT - 51 * col1 + + ( - - ( + + col2 ) ) + + col1 AS col1 FROM tab1
----
-191
-2282
-604

query I rowsort
SELECT ALL col1 + - 10 FROM tab0
----
-9
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + COUNT( - - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2301
SELECT + COUNT ( - - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - + COUNT( * ) * 6 * - + 41 FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-2303
SELECT - + COUNT ( * ) * 6 * - + 41 FROM tab0 AS cor0
----
738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT - CAST( NULL AS SIGNED ) / + 87 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2304
SELECT - CAST ( NULL AS INTEGER ) / + 87 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * 69 * 4 - - 88 AS col0 FROM tab2 AS cor0
----
11128
16096
6436

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + - MIN( DISTINCT - - 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2306
SELECT + - MIN ( DISTINCT - - 51 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT 58, - col0 AS col1 FROM tab2 AS cor0
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT MAX( DISTINCT 98 ) AS col2 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT MAX ( DISTINCT 98 ) AS col2 FROM tab1
----
98

query I rowsort
SELECT + col1 * + 68 AS col0 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + ( + ( COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT + ( + ( COUNT ( * ) ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + MAX( + + col0 ) * COUNT( * ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + MAX ( + + col0 ) * COUNT ( * ) AS col1 FROM tab0
----
291

query I rowsort
SELECT ALL - col2 * 33 AS col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT ALL - 19 DIV - col1 AS col0 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - 19 / - col1 AS col0 FROM tab0
----
0
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT COUNT( DISTINCT - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT DISTINCT COUNT ( DISTINCT - col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT ALL + ( - + col0 ) * - - CAST( NULL AS SIGNED ) + 18 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + ( - + col0 ) * - - CAST ( NULL AS INTEGER ) + 18 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 39
----

query I rowsort
SELECT + ( - col1 ) * + col1 + + col1 AS col0 FROM tab0
----
-420
-6480
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT 24 * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT 24 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - ( - + col1 ) + col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - - 31 AS col2 FROM tab1 cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT - + SUM( ALL - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - + SUM ( ALL - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT DISTINCT - 2 * - - ( + 75 ) * - col2 AS col1 FROM tab2 AS cor0
----
3450
6000
8700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + - 62 AND + 86 - + col0
----
15
81
47

query II rowsort
SELECT DISTINCT + 33 * + + col0 AS col1, + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
1518
23
2112
40
2475
58

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2 + 4 + col0
----

query I rowsort
SELECT 62 - + col2 AS col0 FROM tab0
----
-37
15
52

query I rowsort
SELECT - col2 - + 7 + - - ( col0 ) - - - col2 * + col0 AS col1 FROM tab1
----
-4948
-4996
-6172

query I rowsort
SELECT col0 + + 20 FROM tab1
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + 30 + - + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 30 + - + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT + 59 + - COUNT( * ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 59 + - COUNT ( * ) AS col0 FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT + + 76 DIV + 48 + - ( - + 85 ) * + COUNT( * ) FROM tab0 cor0
----
256

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + + 76 / + 48 + - ( - + 85 ) * + COUNT ( * ) FROM tab0 cor0
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT DISTINCT 66 + 85 * AVG ( ALL CAST( NULL AS SIGNED ) + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT 66 + 85 * AVG ( ALL CAST ( NULL AS INTEGER ) + - col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( - 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( - 4 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( ( SUM( ALL col1 ) ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( ( SUM ( ALL col1 ) ) ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT col0 + - 44 FROM tab1
----
41
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + COUNT( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT + COUNT ( - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT + 45 - - col0 DIV col0 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 45 - - col0 / col0 FROM tab2
----
46
46
46

query I rowsort
SELECT ALL - 23 + - col2 FROM tab2
----
-46
-63
-81

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - COUNT( * ) + - 14 FROM tab1 WHERE NOT col1 * - col2 < ( - 62 + ( col0 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-2345
SELECT - COUNT ( * ) + - 14 FROM tab1 WHERE NOT col1 * - col2 < ( - 62 + ( col0 ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT col2 + CAST( col0 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-2346
SELECT col2 + CAST ( col0 AS INTEGER ) FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT COUNT( ALL ( - col2 ) ) + 7 * - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2348
SELECT COUNT ( ALL ( - col2 ) ) + 7 * - COUNT ( * ) FROM tab2
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 74 AND col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + 94 + + 51 * COUNT( ALL 16 / - col2 ) FROM tab1
----
247

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 94 + + 51 * COUNT ( ALL 16 / - col2 ) FROM tab1
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MIN( ALL col0 ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT MIN ( ALL col0 ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) + 75 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) + 75 FROM tab2
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 86 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 35 + col0 AS col1 FROM tab2
----
110
81
99

query I rowsort
SELECT - 55 FROM tab0 AS cor0 WHERE NOT ( + col1 / - col0 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( + 44 / 86 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col2 + - 2 * + 62 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT 58 DIV col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2358
SELECT 58 / col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + COUNT( - 3 ) * - 38 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2360
SELECT + COUNT ( - 3 ) * - 38 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * 17 + + col2 AS col1 FROM tab2
----
-368
-640
-928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + + 54 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 + - col0 FROM tab0
----
0
1200
1740

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 71 < - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT - MIN( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - MIN ( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL 85 * - col2 + 99 AS col2 FROM tab2 AS cor0
----
-1856
-3301
-4831

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT + - 74 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2368
SELECT + - 74 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT CAST( col0 AS SIGNED ) + + col2 * + col0 FROM tab2 AS cor0
----
1104
2624
4425

skipif mysql # not compatible
query I rowsort label-2369
SELECT CAST ( col0 AS INTEGER ) + + col2 * + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + - 62 * + col2 + col0 AS col0 FROM tab1 cor0
----
-3573
-4125
-5901

query I rowsort
SELECT - ( col0 ) + col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN 93 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT - ( + col0 ) + 63 DIV - 40 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2374
SELECT - ( + col0 ) + 63 / - 40 AS col1 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT - 95 * col2 + + col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 94 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL MAX( - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL MAX ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT 22 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - MIN( ALL col2 ) FROM tab0 WHERE + col0 + + col1 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2380
SELECT - MIN ( ALL col2 ) FROM tab0 WHERE + col0 + + col1 IS NOT NULL
----
-10

query I rowsort
SELECT DISTINCT col2 * col0 + ( col2 ) FROM tab0
----
752
880
9702

query I rowsort
SELECT ALL - 66 * - col0 + + 39 AS col1 FROM tab0
----
1029
5781
6441

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ( + MIN( 60 ) ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2383
SELECT ( + MIN ( 60 ) ) AS col1 FROM tab1
----
60

query I rowsort
SELECT + col2 - 59 AS col2 FROM tab1 AS cor0
----
0
37
9

query I rowsort
SELECT + 37 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN + col2 AND 14 - 22
----
136
47
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT + COUNT( CAST( - col0 AS SIGNED ) ) - + COUNT( * ) * COUNT( + col2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + COUNT ( CAST ( - col0 AS INTEGER ) ) - + COUNT ( * ) * COUNT ( + col2 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 6 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-522
-582
-90

query I rowsort
SELECT + ( 17 ) * col2 FROM tab2 AS cor0
----
391
680
986

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 + - col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + MIN( ALL - - 20 ) AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + MIN ( ALL - - 20 ) AS col0 FROM tab0
----
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 20 * + + 11 + + ( + col1 ) ) BETWEEN NULL AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 0 * col1 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - col0 FROM tab0 AS cor0 WHERE NOT 30 - 95 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT + + MAX( DISTINCT 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + + MAX ( DISTINCT 71 ) AS col0 FROM tab0 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT - col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT + CAST( 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2398
SELECT + CAST ( 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( - + 34 ) * col2 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + ( - col2 ) AS col2 FROM tab0 WHERE NOT ( ( + CAST( NULL AS SIGNED ) ) ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + ( - col2 ) AS col2 FROM tab0 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - - + col2 + - ( col2 + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL - col2 * - + col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT + col1 DIV - 5 FROM tab1
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-2406
SELECT + col1 / - 5 FROM tab1
----
-1
-2
-9

query I rowsort
SELECT DISTINCT 29 * - col2 * + col1 * + 31 * - col0 FROM tab1
----
22542425
261461564
61621056

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 FROM tab1 WHERE - 37 * + ( + col1 ) NOT BETWEEN col1 AND ( col0 + col2 )
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2410
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 81 / + col0 * col0 * col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 81 / + col0 * col0 * col2 >= NULL
----
0

query I rowsort
SELECT + 22 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
22
22
22

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN col0 + + col2 AND - 41
----

query I rowsort
SELECT ALL col2 + 38 AS col1 FROM tab2
----
61
78
96

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - col1 + + ( - col1 ) + - 20 FROM tab1 AS cor0
----
-114
-30
-48

query I rowsort
SELECT + 16 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 2 ) AS col2 FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ALL 16 * + - 10 + - + 3 * + + ( col0 ) DIV 80 - col1 * col2 FROM tab0 AS cor0
----
-262
-373
-3967

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL 16 * + - 10 + - + 3 * + + ( col0 ) / 80 - col1 * col2 FROM tab0 AS cor0
----
-262
-373
-3967

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2422
SELECT ALL - col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2422
SELECT ALL - col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL AND NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( - col1 + - CAST( NULL AS SIGNED ) * + 31 ) BETWEEN NULL AND ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - col1 + - CAST ( NULL AS INTEGER ) * + 31 ) BETWEEN NULL AND ( 12 )
----
0

query I rowsort
SELECT 62 + - col0 + col0 FROM tab2
----
62
62
62

query I rowsort
SELECT 52 + - col2 - - col2 AS col0 FROM tab2
----
52
52
52

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col0 / - col0 * + col1 )
----

query II rowsort
SELECT DISTINCT - 21 AS col0, 28 AS col1 FROM tab1
----
-21
28

query I rowsort
SELECT DISTINCT + ( - 80 ) + + - col0 + + - col1 + - - col1 AS col0 FROM tab1
----
-131
-165
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL 87 + - col1 AS col1 FROM tab0
----
6
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT col0 + + - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2432
SELECT col0 + + - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT - 92 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT DISTINCT - COUNT( * ), 61 * + 69 AS col0 FROM tab2 AS cor0
----
-3
4209

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT - COUNT ( * ), 61 * + 69 AS col0 FROM tab2 AS cor0
----
-3
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - MIN( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-2435
SELECT - MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL COUNT( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT ALL COUNT ( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - - COUNT( DISTINCT 36 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2437
SELECT - - COUNT ( DISTINCT 36 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2438
SELECT + col0 DIV col1, + col2 AS col0 FROM tab2
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-2438
SELECT + col0 / col1, + col2 AS col0 FROM tab2
----
0
23
0
40
1
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab2 cor0
----
29

query I rowsort
SELECT ALL - - col1 + - ( - col2 ) FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT DISTINCT 87, col2 - - col2 - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND col1 - - 82
----

query I rowsort
SELECT col1 + - 83 AS col2 FROM tab0
----
-2
-62
-82

query I rowsort
SELECT col0 + - - col1 + + - 86 * col0 AS col2 FROM tab0
----
-1194
-7374
-8244

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT 14 AS col1 FROM tab0 WHERE NOT - ( - 12 ) * + col2 BETWEEN - + col2 * + col2 AND ( NULL )
----

query III rowsort
SELECT ALL col1 * col0 + - 6, - col0 AS col1, - 83 * + 52 + + - col0 + ( ( col1 ) ) AS col2 FROM tab0
----
9 values hashing to 62a49de78648d2cf5f3ee8c239d484b8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2447
SELECT * FROM tab0 WHERE NOT - + CAST( + col0 AS SIGNED ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-2447
SELECT * FROM tab0 WHERE NOT - + CAST ( + col0 AS INTEGER ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT + - CAST( + col1 AS SIGNED ) * 4 * + col1 FROM tab0 AS cor0
----
-1764
-26244
-4

skipif mysql # not compatible
query I rowsort label-2448
SELECT + - CAST ( + col1 AS INTEGER ) * 4 * + col1 FROM tab0 AS cor0
----
-1764
-26244
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL - col2 * col2 + - CAST( 66 AS SIGNED ) FROM tab1 AS cor0
----
-3547
-4690
-9282

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - col2 * col2 + - CAST ( 66 AS INTEGER ) FROM tab1 AS cor0
----
-3547
-4690
-9282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT COUNT( + col2 ) DIV - 93 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( + col2 ) / - 93 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - ( - 60 ) FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ALL - col1 * - col1 * + col1 + 14 - col2 FROM tab1
----
103769
2662
80

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) IN ( + + col1, + col2 / + + col2 ) )
----

query I rowsort
SELECT ALL - - col1 * - 74 * - 17 + - - 23 + - col0 + + - col2 + - 84 + - 12 + col0 + + col2 * col1 * col1 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
119032
1282
25079520

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL 35 - + COUNT( * ) col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT ALL 35 - + COUNT ( * ) col0 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - COUNT( * ) * + 12 * 98 + + COUNT( * ) FROM tab2 AS cor0
----
-3525

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - COUNT ( * ) * + 12 * 98 + + COUNT ( * ) FROM tab2 AS cor0
----
-3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 + - 73 AS col1 FROM tab2
----
-155
-155
-155

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2460
SELECT COUNT( + CAST( + + 5 AS DECIMAL ) ) AS col0, + 1 * - 19 AS col0 FROM tab2
----
3
-19

skipif mysql # not compatible
query II rowsort label-2460
SELECT COUNT ( + CAST ( + + 5 AS REAL ) ) AS col0, + 1 * - 19 AS col0 FROM tab2
----
3
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT 31 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT 31 / + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + + MIN( + 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2462
SELECT + + MIN ( + 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + ( 56 ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL ( col1 ) * - 22 AS col0 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + col1 * + col0 * + + col1 FROM tab2 WHERE NOT + col0 + 60 < NULL
----

query II rowsort
SELECT + col2 AS col1, - col0 + + + col1 AS col0 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - COUNT( * ) * + + SUM( DISTINCT - 95 ) col0 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT - COUNT ( * ) * + + SUM ( DISTINCT - 95 ) col0 FROM tab0 AS cor0
----
285

query I rowsort
SELECT DISTINCT col2 * + 76 AS col0 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT DISTINCT - 30 AS col1, COUNT( + col0 ) FROM tab1 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT - 30 AS col1, COUNT ( + col0 ) FROM tab1 AS cor0
----
-30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT - 31 DIV - 63 - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2470
SELECT - 31 / - 63 - - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 77 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( - 14 ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 16 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL IN ( + 65, 41 + + 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) + col2 col2, + col0 * - - col1 FROM tab2
----
104
4928
133
5025
69
2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT DISTINCT col2 + - col0 - - col1 + + + col0 * CAST( - + col0 AS SIGNED ) FROM tab1
----
-2542
-7246
-8257

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT col2 + - col0 - - col1 + + + col0 * CAST ( - + col0 AS INTEGER ) FROM tab1
----
-2542
-7246
-8257

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2476
SELECT + COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL 22 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
103
23
43

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL 22 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
103
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT + 1 + + - 57 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT + 1 + + - 57 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + 61 + - + COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + 61 + - + COUNT ( * ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + + SUM( DISTINCT col0 ) * - + 52 * - ( - ( + 47 ) ) AS col0 FROM tab1 AS cor0
----
-554788

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + + SUM ( DISTINCT col0 ) * - + 52 * - ( - ( + 47 ) ) AS col0 FROM tab1 AS cor0
----
-554788

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + - MIN( DISTINCT - 43 ) col1 FROM tab2 cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2481
SELECT ALL + - MIN ( DISTINCT - 43 ) col1 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL - SUM( ALL col1 ) * - MIN( ALL + col0 ) AS col1 FROM tab2 cor0
----
8970

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - SUM ( ALL col1 ) * - MIN ( ALL + col0 ) AS col1 FROM tab2 cor0
----
8970

query I rowsort
SELECT + 63 + - col0 AS col0 FROM tab1 AS cor0
----
-22
-28
12

query I rowsort
SELECT ALL + col0 * - 35 * + 12 * + col2 FROM tab2 AS cor0
----
-1075200
-1827000
-444360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT * FROM tab2 WHERE + CAST( - + col0 AS SIGNED ) * - + 75 = + + col0
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT * FROM tab2 WHERE + CAST ( - + col0 AS INTEGER ) * - + 75 = + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT COUNT( - + ( + + 54 ) ) - + MIN( - col1 ) AS col1 FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2486
SELECT COUNT ( - + ( + + 54 ) ) - + MIN ( - col1 ) AS col1 FROM tab2 cor0
----
80

query I rowsort
SELECT DISTINCT - - 53 - + - col1 AS col1 FROM tab0 AS cor0
----
134
54
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( ( + + col1 ) )
----

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * - col0 * + + 2 < NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL IN ( col1 * - col0 + col2 / 98 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT 44 * - - 96 * CAST( - - ( + 52 ) AS SIGNED ) FROM tab2
----
219648
219648
219648

skipif mysql # not compatible
query I rowsort label-2493
SELECT 44 * - - 96 * CAST ( - - ( + 52 ) AS INTEGER ) FROM tab2
----
219648
219648
219648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1
----
63
63
63

query I rowsort
SELECT - col1 * + + col2 AS col1 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT COUNT( - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT COUNT ( - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2498
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= CAST( + ( - + 32 ) AS SIGNED ) / col1 + + col1 - - col1 + - - 46
----

skipif mysql # not compatible
query III rowsort label-2498
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= CAST ( + ( - + 32 ) AS INTEGER ) / col1 + + col1 - - col1 + - - 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT ALL - col1 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT - SUM( + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - SUM ( + col1 ) FROM tab0
----
-103

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ( 3 ) DIV 86 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ( 3 ) / 86 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 0 + + 99 FROM tab0 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - COUNT( * ) + - - 14 AS col1 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-2505
SELECT - COUNT ( * ) + - - 14 AS col1 FROM tab1 cor0
----
11

query I rowsort
SELECT col0 * - - col2 + + - ( + + 88 ) FROM tab0 AS cor0
----
617
782
9515

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2507
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 * - col1 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2507
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 * - col1 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT - 19 + + + 47 DIV + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-5
29
80

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 19 + + + 47 / + col2 + + col2 AS col0 FROM tab0 AS cor0
----
-5
29
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IN ( + - ( CAST( CAST( + + col1 AS SIGNED ) AS SIGNED ) ) * + 94, col0 + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IN ( + - ( CAST ( CAST ( + + col1 AS INTEGER ) AS INTEGER ) ) * + 94, col0 + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 28 * col1 * - col1 + - col2 * - - 70 + - col1 FROM tab1 AS cor0
----
-12222
-4835
-66659

query I rowsort
SELECT ALL - 76 * + - col0 * - - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
160793
311256
427442

query I rowsort
SELECT DISTINCT - 22 * - col0 AS col1 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT + col0 + 0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT 30 AS col2, ( + COUNT( * ) ) AS col0 FROM tab0
----
30
3

skipif mysql # not compatible
query II rowsort label-2514
SELECT 30 AS col2, ( + COUNT ( * ) ) AS col0 FROM tab0
----
30
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 62 - - col1 + - + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - ( + MAX( + - 25 ) ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2516
SELECT - ( + MAX ( + - 25 ) ) AS col2 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT + CAST( + + 20 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
1740
1940
300

skipif mysql # not compatible
query I rowsort label-2517
SELECT + CAST ( + + 20 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
1740
1940
300

query II rowsort
SELECT + col2 * - + col2 + - 90 - + + 6 AS col2, col2 FROM tab0 cor0
----
-196
10
-2305
47
-9897
99

query I rowsort
SELECT - col1 - + 14 * col1 * - col1 + + - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-86
6143
91726

query I rowsort
SELECT 29 + + - 56 + + col1 FROM tab1
----
-13
-22
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT CAST( NULL AS SIGNED ) + - 2 + - 89 + + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT CAST ( NULL AS INTEGER ) + - 2 + - 89 + + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 44 + - + col2 FROM tab2
----
-14
21
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2523
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 19 + + col1 AS col2 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT DISTINCT col2 - - - col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 85 AS col0 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT ALL + 80 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT ALL + + col0 - + - col2 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2179
-9607
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - + 34 - + + 64 * - + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - + 34 - + + 64 * - + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - + COUNT( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2530
SELECT - + COUNT ( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 80 * + - ( 15 ) FROM tab0 AS cor0
----
-1200
-1200
-1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 52 ) * - 22 + col1 col0 FROM tab2 AS cor0
----
-1067
-1077
-1093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2533
SELECT ALL - col2 * col0 col0, + CAST( + - col2 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-705
3807
-870
210
-9603
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2533
SELECT ALL - col2 * col0 col0, + CAST ( + - col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-705
3807
-870
210
-9603
99

query I rowsort
SELECT DISTINCT + col1 * + - 96 - + 2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT SUM( 48 ) col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2535
SELECT DISTINCT SUM ( 48 ) col1 FROM tab1 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + ( - col1 ) DIV - + col1 FROM tab1 WHERE NOT + - 83 IN ( + col2, 49, + 1 DIV 98 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + ( - col1 ) / - + col1 FROM tab1 WHERE NOT + - 83 IN ( + col2, 49, + 1 / 98 )
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2537
SELECT - 4 / - + col2 + 79 + + col1 * - ( col2 ) * - ( - 59 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST( - ( col2 ) AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 4 / - + col2 + 79 + + col1 * - ( col2 ) * - ( - 59 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST ( - ( col2 ) AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2538
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( 96, - 82, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2538
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( 96, - 82, - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 57 + + 90
----

query I rowsort
SELECT ALL + 47 * - - col1 FROM tab1 AS cor0
----
2209
235
658

query I rowsort
SELECT - col1 * + + ( + col1 ) FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT + CAST( - MAX( - col0 ) AS SIGNED ) col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2542
SELECT + CAST ( - MAX ( - col0 ) AS INTEGER ) col2 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT COUNT( + 18 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT COUNT ( + 18 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 10 + + 33 AS col2 FROM tab0
----
43
43
43

query I rowsort
SELECT ALL - 18 * col0 + - col0 AS col2 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT + 78 > - + col2 + col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT + 78 > - + col2 + col2 + + col1
----
0

query I rowsort
SELECT 14 + + col1 * ( - + ( col1 ) ) AS col1 FROM tab1
----
-11
-182
-2195

query I rowsort
SELECT 93 * - 48 + + 0 AS col0 FROM tab0
----
-4464
-4464
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT - col1 * + col0 + + col1 + + + col1 DIV + + col0 AS col1 FROM tab1
----
-420
-4230
-700

skipif mysql # not compatible
query I rowsort label-2550
SELECT - col1 * + col0 + + col1 + + + col1 / + + col0 AS col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - - 50 FROM tab1 WHERE NOT col0 IS NULL OR NOT NULL NOT IN ( + ( - 70 ), + col2, - col1 )
----
50

query I rowsort
SELECT 90 * + col2 + - col0 AS col1 FROM tab2
----
2024
3536
5145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT col0 FROM tab1 WHERE NULL <= - 33 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2553
SELECT col0 FROM tab1 WHERE NULL <= - 33 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col0 ) + - - col2 * col1 AS col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT col1 + - - 41 FROM tab0
----
122
42
62

query I rowsort
SELECT + 41 + + + ( - ( - + col1 ) ) FROM tab0 AS cor0
----
122
42
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * - ( + 49 ) FROM tab0
----
-10
4263
-47
735
-99
4753

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 78 * + + col2 + col1
----

query I rowsort
SELECT DISTINCT 28 + + col0 AS col0 FROM tab1
----
113
119
79

query I rowsort
SELECT + 39 * 33 - 41 AS col2 FROM tab2
----
1246
1246
1246

query I rowsort
SELECT DISTINCT 93 * - 20 AS col0 FROM tab2 AS cor0
----
-1860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2563
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 1, col0 * ( + CAST( + 40 AS SIGNED ) ), + 64 - + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2563
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 1, col0 * ( + CAST ( + 40 AS INTEGER ) ), + 64 - + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2564
SELECT - + COUNT( * ) * + + 56 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT - + COUNT ( * ) * + + 56 * - - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + + COUNT( + 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + COUNT ( + 28 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - MIN( DISTINCT 5 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - MIN ( DISTINCT 5 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col0 * + 35 FROM tab2
----
-1610
-2240
-2625

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT 3 * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2570
SELECT 3 * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * col2 * - 10 FROM tab0
----
-7050
-8700
-96030

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT COUNT( * ) * + 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( * ) * + 85 FROM tab0
----
255

query III rowsort
SELECT * FROM tab2 WHERE NOT + 50 BETWEEN NULL AND ( + 20 ) - + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL 1 * MIN( ALL + ( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL 1 * MIN ( ALL + ( col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2575
SELECT CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT DISTINCT - SUM( + - 82 ) AS col2, + MIN( ALL col1 ) * + 32 col0 FROM tab1 AS cor0
----
246
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2576
SELECT DISTINCT - SUM ( + - 82 ) AS col2, + MIN ( ALL col1 ) * + 32 col0 FROM tab1 AS cor0
----
246
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - + MIN( + 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - + MIN ( + 94 ) FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ( + + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2578
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 + + col2 + + - col0 * + 6 + - 35 FROM tab1
----
-259
-491
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL - 63 + + COUNT( 68 ) * - SUM( ALL col1 ) / - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 45 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - 63 + + COUNT ( 68 ) * - SUM ( ALL col1 ) / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 45 >= col2
----
NULL

query I rowsort
SELECT + + 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + + COUNT( * ) ) + - 0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + + COUNT ( * ) ) + - 0 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT COUNT( * ) * - 11 AS col2 FROM tab0 WHERE NULL = ( + + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT COUNT ( * ) * - 11 AS col2 FROM tab0 WHERE NULL = ( + + 99 )
----
0

query I rowsort
SELECT + + col1 * - col2 + 75 * - col0 FROM tab1 AS cor0
----
-10021
-5169
-6670

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT + - col2 + + 39 + - col1 DIV ( + 66 ) AS col0 FROM tab2 AS cor0
----
-2
-20
16

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - col2 + + 39 + - col1 / ( + 66 ) AS col0 FROM tab2 AS cor0
----
-2
-20
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 92 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COUNT( * ) + + 43 AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COUNT ( * ) + + 43 AS col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + + CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT + col1 DIV + col2 + + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2591
SELECT + col1 / + col2 + + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 WHERE ( 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - - COUNT( * ) * 74 FROM tab0 WHERE col1 = + - 98
----
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT - - COUNT ( * ) * 74 FROM tab0 WHERE col1 = + - 98
----
0

query I rowsort
SELECT DISTINCT col1 + - 3 FROM tab2 WHERE - 75 * 68 IS NULL
----

query I rowsort
SELECT ALL 92 + + 94 + + col2 FROM tab1
----
245
254
282

query III rowsort
SELECT * FROM tab1 WHERE + + col2 - - - 54 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + 17 + - COUNT( + col0 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + 17 + - COUNT ( + col0 ) FROM tab1
----
14

query I rowsort
SELECT ALL 44 - + 76 FROM tab2 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + 24 - col0 * 87 col0 FROM tab1 AS cor0
----
-3616
-3699
-6946

query I rowsort
SELECT - col2 * col1 - + + col0 + + 44 + + 90 FROM tab2 AS cor0
----
-1085
-3010
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + 66 - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + 66 - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT SUM( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT SUM ( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2603
SELECT ALL MIN( ALL + col1 ) - + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL MIN ( ALL + col1 ) - + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + ( + + MAX( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + ( + + MAX ( + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2606
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + col2 * + - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - - SUM( DISTINCT + - col2 ) * COUNT( ALL + - 48 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - - SUM ( DISTINCT + - col2 ) * COUNT ( ALL + - 48 ) FROM tab0 AS cor0
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2609
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2609
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 IS NULL
----

query II rowsort
SELECT - col1 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col2 * col1 - + col1 * + col0 * - col0 + 46 + + 18
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col2 * col1 - + col1 * + col0 * - col0 + 46 + + 18
----
0

query II rowsort
SELECT DISTINCT + + col2 AS col1, ( - 29 ) FROM tab0 AS cor0
----
10
-29
47
-29
99
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - + MAX( ALL + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + MAX ( ALL + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + 11 * - col1 FROM tab1
----
-154
-517
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 72 col2, col2 AS col1 FROM tab2
----
-72
23
-72
40
-72
58

query I rowsort
SELECT ALL + col2 * - - col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT DISTINCT AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 11 * - - col0 * col1 FROM tab2
----
-25806
-54208
-55275

query I rowsort
SELECT DISTINCT - col0 * ( - + col2 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 35 * - - COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 35 * - - COUNT ( * ) FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT + - col1, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - 30 - - 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + 32 + - MAX( ALL - + 85 ) AS col1 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + 32 + - MAX ( ALL - + 85 ) AS col1 FROM tab2
----
117

query I rowsort
SELECT ALL 3 + - col1 + + 3 FROM tab2
----
-45
-61
-71

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2627
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-2627
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( * ) + + 92 AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( * ) + + 92 AS col2 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT ALL COUNT( * ), COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-2629
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
3

query I rowsort
SELECT - - col2 * + col1 - - col2 * - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 8 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + - ( - col2 ) * - col0 + col0 * + 95 AS col2 FROM tab2 AS cor0
----
2775
3312
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + 57 - + + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 57 - + + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - COUNT( ALL 62 ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + 3 * - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT - COUNT ( ALL 62 ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + 3 * - - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 + - 61 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT ALL - 86 AS col2, - COUNT( * ) FROM tab1
----
-86
-3

skipif mysql # not compatible
query II rowsort label-2637
SELECT ALL - 86 AS col2, - COUNT ( * ) FROM tab1
----
-86
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT + 53 * - - ( + 37 ) + - ( col2 ) - - 81 + - ( + col2 ) + - col0 DIV + + col1 AS col1 FROM tab2
----
1925
1962
1996

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + 53 * - - ( + 37 ) + - ( col2 ) - - 81 + - ( + col2 ) + - col0 / + + col1 AS col1 FROM tab2
----
1925
1962
1996

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2639
SELECT DISTINCT col1 DIV + col1 + + CAST( - - col2 AS SIGNED ) FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT col1 / + col1 + + CAST ( - - col2 AS INTEGER ) FROM tab0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL - 9 + + 51 DIV + col2 AS col0 FROM tab2
----
-7
-8
-9

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - 9 + + 51 / + col2 AS col0 FROM tab2
----
-7
-8
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 87 IN ( - col1, + 10, - col1 + + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 48 FROM tab2
----
-25
-8
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2644
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 22 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 22 IS NULL )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2646
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 90 * - - 23 FROM tab0
----
2070
2070
2070

query I rowsort
SELECT - col1 * - 41 FROM tab2
----
2091
2747
3157

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 / + 39, col0, + ( - col2 ) )
----

query I rowsort
SELECT + 24 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2652
SELECT ALL - 95 col1, - col1 / - 9 * + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 88
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2652
SELECT ALL - 95 col1, - col1 / - 9 * + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 88
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( col1 ) AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 36 = - 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT 21 * + + COUNT( * ) * + - 84 col0 FROM tab0
----
-5292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT DISTINCT 21 * + + COUNT ( * ) * + - 84 col0 FROM tab0
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL + 50 * - COUNT( * ) AS col1 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 50 * - COUNT ( * ) AS col1 FROM tab1
----
-150

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - - col0 * + - 36 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT + ( + col1 ) * 90 DIV + col0 FROM tab1 AS cor0
----
24
46
5

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + ( + col1 ) * 90 / + col0 FROM tab1 AS cor0
----
24
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT + + COUNT( * ) * + 93 AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2662
SELECT + + COUNT ( * ) * + 93 AS col1 FROM tab2 AS cor0
----
279

query I rowsort
SELECT ( + + 7 ) FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + COUNT( * ) * 11 col2 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT DISTINCT + COUNT ( * ) * 11 col2 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT COUNT( * ) * 53 + + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2665
SELECT COUNT ( * ) * 53 + + COUNT ( * ) FROM tab1
----
162

query I rowsort
SELECT - col2 + - col2 * + ( col0 ) FROM tab1 AS cor0
----
-4992
-5074
-6256

query II rowsort
SELECT ALL 81 AS col0, + col0 + + col2 FROM tab0 AS cor0
----
81
196
81
62
81
97

query I rowsort
SELECT - - 11 + 22 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT ( - - col1 ) - - + 68 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT col2 * 93 - + col1 - + col2 AS col1 FROM tab2
----
2065
3603
5269

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT 55 DIV + col0 - 31 AS col0 FROM tab2
----
-30
-31
-31

skipif mysql # not compatible
query I rowsort label-2671
SELECT 55 / + col0 - 31 AS col0 FROM tab2
----
-30
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - - MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2672
SELECT - - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 21 * - col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 NOT BETWEEN NULL AND col0 * col2 + col1
----

query I rowsort
SELECT - - 35 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2675
SELECT ALL - col2 AS col0, + CAST( + - col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - col2 AS col0, + CAST ( + - col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT - 52, 8 AS col1 FROM tab2
----
-52
8

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL ) < NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2678
SELECT - - col0 AS col2, col0 DIV + col1 FROM tab2 AS cor0
----
46
0
64
0
75
1

skipif mysql # not compatible
query II rowsort label-2678
SELECT - - col0 AS col2, col0 / + col1 FROM tab2 AS cor0
----
46
0
64
0
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT + - 6 DIV + col1 FROM tab0 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + - 6 / + col1 FROM tab0 AS cor0
----
-6
0
0

query I rowsort
SELECT + col0 * - col2 + + + col0 AS col1 FROM tab2 cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT - COUNT( * ) col2, 49 FROM tab2 AS cor0
----
-3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2681
SELECT - COUNT ( * ) col2, 49 FROM tab2 AS cor0
----
-3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + + COUNT( DISTINCT 58 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + COUNT ( DISTINCT 58 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT col0, + col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query II rowsort
SELECT DISTINCT - - col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT + - col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL + COUNT( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL + COUNT ( - + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL MAX( - 21 ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL MAX ( - 21 ) FROM tab0 cor0
----
-21

query I rowsort
SELECT - ( col0 ) FROM tab0 WHERE NOT + + 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 15 * - col0 NOT BETWEEN NULL AND + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 40 * - - 48 AS col1 FROM tab2
----
1920
1920
1920

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( col0 ) col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col1 * + 10 AS col2 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT - - 37 + COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - - 37 + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + col0 col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT ALL - - col1 + 28 FROM tab1 cor0
----
33
42
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + col0 * + ( - CAST( ( col0 ) AS SIGNED ) ) + + - col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2702
SELECT ALL + col0 * + ( - CAST ( ( col0 ) AS INTEGER ) ) + + - col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT 60 - + + col1 + - col1 FROM tab0 AS cor0
----
-102
18
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL + col1 + + ( + + col1 ) + - CAST( - + col0 AS SIGNED ) FROM tab1
----
185
79
95

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + col1 + + ( + + col1 ) + - CAST ( - + col0 AS INTEGER ) FROM tab1
----
185
79
95

query I rowsort
SELECT + 43 + - col1 + + + 4 + - col0 FROM tab2
----
-50
-94
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - MIN( DISTINCT - 78 ) * - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - MIN ( DISTINCT - 78 ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 27 + - 52 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT ALL ( - + ( col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2709
SELECT DISTINCT + 0 * 64 AS col0, CAST( + - col1 AS SIGNED ) + - + col1 + - + ( - + 40 ) + + col2 DIV col1 FROM tab1
----
0
-53
0
18
0
41

skipif mysql # not compatible
query II rowsort label-2709
SELECT DISTINCT + 0 * 64 AS col0, CAST ( + - col1 AS INTEGER ) + - + col1 + - + ( - + 40 ) + + col2 / col1 FROM tab1
----
0
-53
0
18
0
41

query I rowsort
SELECT DISTINCT 38 * - col0 * col2 FROM tab0 cor0
----
-26790
-33060
-364914

query I rowsort
SELECT DISTINCT col0 / col1 + col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT ALL - MIN( + 88 ) * 19 DIV - 86 AS col2 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - MIN ( + 88 ) * 19 / - 86 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL + col0 * col2 + + col1 AS col2 FROM tab1 cor0
----
4910
5020
6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 35 FROM tab1 AS cor0 WHERE - col2 * - + col2 IS NULL
----

query I rowsort
SELECT ALL + 10 * 77 * + col1 AS col0 FROM tab2
----
39270
51590
59290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2716
SELECT ALL CAST( NULL AS DECIMAL ) * - - 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL CAST ( NULL AS REAL ) * - - 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT + COUNT( CAST( col2 AS SIGNED ) ) FROM tab1 cor0 WHERE NOT + col2 + + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2717
SELECT + COUNT ( CAST ( col2 AS INTEGER ) ) FROM tab1 cor0 WHERE NOT + col2 + + + col2 >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT + MAX( + - ( col0 ) ) DIV COUNT( * ) * ( + 65 ) AS col2 FROM tab1 AS cor0
----
-1105

skipif mysql # not compatible
query I rowsort label-2718
SELECT + MAX ( + - ( col0 ) ) / COUNT ( * ) * ( + 65 ) AS col2 FROM tab1 AS cor0
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - MAX( - - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - MAX ( - - col1 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT ALL MIN( DISTINCT 21 ) AS col2, + COUNT( - 62 ) AS col2 FROM tab2 cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT ALL MIN ( DISTINCT 21 ) AS col2, + COUNT ( - 62 ) AS col2 FROM tab2 cor0
----
21
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2722
SELECT + - col0 + - + CAST( NULL AS SIGNED ) + - col0, - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2722
SELECT + - col0 + - + CAST ( NULL AS INTEGER ) + - col0, - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT + 25 * - - col1 + + + col2 + - - col1 + 28 * 29 FROM tab1
----
1001
1272
2102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL + 5 + + COUNT( * ) + 76 * + SUM( - + CAST( NULL AS SIGNED ) ) + + 35 + - 30 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 5 + + COUNT ( * ) + 76 * + SUM ( - + CAST ( NULL AS INTEGER ) ) + + 35 + - 30 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT ALL COUNT( * ) AS col2, 39 FROM tab1
----
3
39

skipif mysql # not compatible
query II rowsort label-2727
SELECT ALL COUNT ( * ) AS col2, 39 FROM tab1
----
3
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL - col1 DIV + - 15 AS col0 FROM tab1 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - col1 / + - 15 AS col0 FROM tab1 AS cor0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 19 / col2 AND - + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT + - ( ( COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + - ( ( COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2731
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 94 - - col0 - + 76 AS col2 FROM tab2 AS cor0
----
64
82
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT DISTINCT col2 DIV + - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT col2 / + - col0 - + col1 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT - + col2 * - - col0 * - + CAST( NULL AS SIGNED ) * + col1 * - col1 * - col2 - - 22 AS col0 FROM tab1 WHERE NOT - - 75 + col2 + - - 59 BETWEEN col0 / - - 79 AND + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - + col2 * - - col0 * - + CAST ( NULL AS INTEGER ) * + col1 * - col1 * - col2 - - 22 AS col0 FROM tab1 WHERE NOT - - 75 + col2 + - - 59 BETWEEN col0 / - - 79 AND + - col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT 3 DIV - MAX( + - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT 3 / - MAX ( + - col0 ) FROM tab0
----
0

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2737
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0, col0 * 33, - + 77 + - col0 + - CAST( col1 AS SIGNED ), + - col0 + + col0 * - 31, + col2 * + 97 )
----

skipif mysql # not compatible
query III rowsort label-2737
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0, col0 * 33, - + 77 + - col0 + - CAST ( col1 AS INTEGER ), + - col0 + + col0 * - 31, + col2 * + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT ( + - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2738
SELECT ( + - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * - 41 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
2419
2788
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT ALL + + col0 + + - 28 DIV - 45 + + - col1 + - 30 + - col1 AS col0 FROM tab1 AS cor0
----
-33
-7
45

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + + col0 + + - 28 / - 45 + + - col1 + - 30 + - col1 AS col0 FROM tab1 AS cor0
----
-33
-7
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT - col0 DIV - 42 col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT - col0 / - 42 col0 FROM tab0
----
0
2
2

query I rowsort
SELECT + 45 + 20 * - - col0 + col0 AS col2 FROM tab1
----
1116
1830
1956

query I rowsort
SELECT DISTINCT 3 * + col1 + + - col2 + col2 * + col2 * + 28 FROM tab0
----
274332
2853
62048

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT + - col0 ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-94

query II rowsort
SELECT col0 * - col0, col2 + - col2 * 22 FROM tab2 WHERE NULL = + + 86
----

query II rowsort
SELECT DISTINCT - 37, 25 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT - 11 DIV MIN( + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 11 / MIN ( + - col2 ) FROM tab1
----
0

query I rowsort
SELECT ALL - 65 FROM tab1 WHERE NOT NULL = 73
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2750
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND + 44
----

skipif mysql # not compatible
query IIIIII rowsort label-2750
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS REAL ) AND + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL COUNT( * ) - - 77 - - 54 AS col2 FROM tab0 cor0
----
134

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL COUNT ( * ) - - 77 - - 54 AS col2 FROM tab0 cor0
----
134

query I rowsort
SELECT + 53 * + col0 FROM tab1 cor0 WHERE col0 * + col0 + 82 IS NOT NULL
----
2703
4505
4823

query I rowsort
SELECT + 74 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + + MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2754
SELECT + + MAX ( col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - 91 * 29 FROM tab1 AS cor0
----
2639
2639
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT COUNT( * ) * - 51 * + ( - + 23 ) * 0 + + 38 AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT COUNT ( * ) * - 51 * + ( - + 23 ) * 0 + + 38 AS col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT - col0 * - - col2 * - 36 FROM tab2
----
156600
38088
92160

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + COUNT( + ( - col0 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT DISTINCT + COUNT ( + ( - col0 ) ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT MAX( ALL - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL - CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - + 31 AS col2 FROM tab2 AS cor0
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ( + 88 ) FROM tab2
----
88
88
88

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + col2 + - - col2
----

query I rowsort
SELECT ALL - 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - ( - 3 ) * - col1 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT + 7 * - col0 + - col2 + + 74 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-4073
-5466
-6122

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT - - col0 DIV - + col1 + 92 FROM tab2 AS cor0
----
91
92
92

skipif mysql # not compatible
query I rowsort label-2770
SELECT - - col0 / - + col1 + 92 FROM tab2 AS cor0
----
91
92
92

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - col2 * + - col1 FROM tab1 cor0 WHERE NOT + 93 <> - 17
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 64 AND + col0
----

query I rowsort
SELECT DISTINCT 35 + + 69 AS col2 FROM tab2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT col0 DIV + 66 col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT col0 / + 66 col0 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT col2 * - + col1 * + + col1 * col2 DIV - col2 + 94 FROM tab1
----
150306
1569
18910

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT col2 * - + col1 * + + col1 * col2 / - col2 + 94 FROM tab1
----
150306
1569
18910

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL + 71 - + SUM( DISTINCT col0 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + 71 - + SUM ( DISTINCT col0 ) FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT ALL - col0 + + CAST( col2 AS SIGNED ) FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col0 + + CAST ( col2 AS INTEGER ) FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2779
SELECT - MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT - CAST( NULL AS SIGNED ) / col1 - 51 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT - CAST ( NULL AS INTEGER ) / col1 - 51 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - + 7 - ( COUNT( * ) ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2781
SELECT - + 7 - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT + + 53 + + ( + - 42 ) FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT - col1 + + - CAST( - - 25 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1077
-1517
-626

skipif mysql # not compatible
query I rowsort label-2783
SELECT - col1 + + - CAST ( - - 25 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1077
-1517
-626

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 94 IS NULL OR + 45 NOT BETWEEN 72 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 13 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - + 50 + COUNT( * ) + - AVG ( - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT - + 50 + COUNT ( * ) + - AVG ( - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + ( MIN( ALL ( 18 ) ) ) AS col0 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2787
SELECT - + ( MIN ( ALL ( 18 ) ) ) AS col0 FROM tab0 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + MIN( - + 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2788
SELECT + MIN ( - + 10 ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + ( - + col0 )
----

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - SUM( - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - SUM ( - col2 ) AS col1 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT NULL = - - col0 ) )
----

query I rowsort
SELECT 96 * + col0 FROM tab1
----
4896
8160
8736

query II rowsort
SELECT + 42, - col1 AS col0 FROM tab2
----
42
-51
42
-67
42
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + - col0 AND - 56 - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT - + 72 DIV col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT - + 72 / col2 FROM tab0 AS cor0
----
-1
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT - + col1 + + CAST( NULL AS SIGNED ) / col1 AS col0, - col2 + - 60 FROM tab1 cor0
----
NULL
-119
NULL
-128
NULL
-156

skipif mysql # not compatible
query II rowsort label-2797
SELECT - + col1 + + CAST ( NULL AS INTEGER ) / col1 AS col0, - col2 + - 60 FROM tab1 cor0
----
NULL
-119
NULL
-128
NULL
-156

query II rowsort
SELECT DISTINCT + - 63 AS col2, - 73 FROM tab1 AS cor0
----
-63
-73

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL <> - col1
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + col2 * - CAST( - ( col2 ) * 19 AS SIGNED ) FROM tab0
----
186219
1900
41971

skipif mysql # not compatible
query I rowsort label-2801
SELECT + col2 * - CAST ( - ( col2 ) * 19 AS INTEGER ) FROM tab0
----
186219
1900
41971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT 0 AS col2 FROM tab2 WHERE ( - 8 * + col2 ) NOT BETWEEN ( + CAST( - col0 AS SIGNED ) ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT 0 AS col2 FROM tab2 WHERE ( - 8 * + col2 ) NOT BETWEEN ( + CAST ( - col0 AS INTEGER ) ) AND ( NULL )
----
0

query I rowsort
SELECT 55 + 30 AS col2 FROM tab0 WHERE NOT NULL < col2
----

query I rowsort
SELECT 49 * 28 AS col1 FROM tab1
----
1372
1372
1372

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col2 NOT IN ( 67 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT ALL col2 DIV + ( + col1 ) - - col2 * ( - ( - col2 ) - + 49 * 15 ) col0 FROM tab0 WHERE - col0 < col1
----
-32336
-62865
-7250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2807
SELECT ALL col2 / + ( + col1 ) - - col2 * ( - ( - col2 ) - + 49 * 15 ) col0 FROM tab0 WHERE - col0 < col1
----
-32336
-62865
-7250

query I rowsort
SELECT col2 - + col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( - 70 + - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 27 col0 FROM tab0
----
1269
2673
270

query I rowsort
SELECT col0 * + col0 + - ( 56 ) FROM tab2
----
2060
4040
5569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL + 23 * + 68 AS col1 FROM tab2
----
1564
1564
1564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col2 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT COUNT( DISTINCT + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2815
SELECT COUNT ( DISTINCT + col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT MAX( ALL + 46 ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2816
SELECT MAX ( ALL + 46 ) AS col0 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2817
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2817
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < 35 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + 99 * - 16 + SUM( + 42 ) AS col0 FROM tab2
----
-1458

skipif mysql # not compatible
query I rowsort label-2819
SELECT + 99 * - 16 + SUM ( + 42 ) AS col0 FROM tab2
----
-1458

query I rowsort
SELECT DISTINCT + col0 - + 29 * col2 AS col2 FROM tab1
----
-1626
-1881
-2733

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT 58 DIV col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2821
SELECT 58 / col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL 69 AS col2 FROM tab0 WHERE + 77 * - col1 + + col1 NOT BETWEEN 52 AND ( - 42 )
----
69
69
69

query I rowsort
SELECT DISTINCT 2 * 47 AS col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - COUNT( * ) + + 63 * COUNT( * ) AS col0 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-2824
SELECT - COUNT ( * ) + + 63 * COUNT ( * ) AS col0 FROM tab0
----
186

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT SUM( ALL col0 ) * COUNT( col2 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-2826
SELECT SUM ( ALL col0 ) * COUNT ( col2 ) FROM tab0
----
597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT + MAX( - 10 ) col1 FROM tab1 WHERE - col2 * CAST( NULL AS SIGNED ) - - 70 * - col1 > 32
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2827
SELECT DISTINCT + MAX ( - 10 ) col1 FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) - - 70 * - col1 > 32
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <= col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2829
SELECT * FROM tab2 AS cor0 WHERE CAST( - 89 AS DECIMAL ) / col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-2829
SELECT * FROM tab2 AS cor0 WHERE CAST ( - 89 AS REAL ) / col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + col0 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + 99 * - COUNT( * ) FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 99 * - COUNT ( * ) FROM tab1 AS cor0
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT + 68 DIV - 4 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + 68 / - 4 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( col2 + 7 ) BETWEEN - col2 * + ( ( 28 ) * col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL 36 * COUNT( * ) FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL 36 * COUNT ( * ) FROM tab2 cor0
----
108

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - 31 FROM tab2
----
15
33
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT COUNT( * ) DIV 61 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT COUNT ( * ) / 61 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * 32 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2840
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 * 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2842
SELECT * FROM tab2 WHERE NOT col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2842
SELECT * FROM tab2 WHERE NOT col0 > + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 66 + + col2 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 > + col1
----

skipif mysql # not compatible
query I rowsort label-2845
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN - col2 - + CAST( 90 AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN - col2 - + CAST ( 90 AS INTEGER ) * + col0 AND NULL
----

query I rowsort
SELECT ( + 12 ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) < - 45 / + 69
----
12
12
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT ( 47 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL + - MAX( 25 ) AS col1 FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + - MAX ( 25 ) AS col1 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT ( 21 + + col0 ) NOT BETWEEN 20 AND 12
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT ( 21 + + col0 ) NOT BETWEEN 20 AND 12
----
0

query I rowsort
SELECT col2 * - - col2 * col2 FROM tab1
----
205379
314432
884736

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT - 38 + + col1 * + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - ( col1 ) * col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 82 AND + ( - col0 ) * 22
----

query I rowsort
SELECT ALL - ( + + col2 ) AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + MAX( + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + MAX ( + col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT 39 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( ( 21 ) * col2 )
----
39

skipif mysql # not compatible
query I rowsort label-2860
SELECT 39 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( ( 21 ) * col2 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT - COUNT( * ) DIV - COUNT( + 74 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2861
SELECT - COUNT ( * ) / - COUNT ( + 74 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT + col1 * 85 DIV col0 FROM tab0 AS cor0
----
0
20
459

skipif mysql # not compatible
query I rowsort label-2863
SELECT + col1 * 85 / col0 FROM tab0 AS cor0
----
0
20
459

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT 86 * COUNT( * ) + 79 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + 12 - + 73 )
----
337

skipif mysql # not compatible
query I rowsort label-2864
SELECT 86 * COUNT ( * ) + 79 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( + 12 - + 73 )
----
337

query I rowsort
SELECT DISTINCT + col1 + - 64 AS col2 FROM tab1 AS cor0
----
-17
-50
-59

query I rowsort
SELECT DISTINCT 28 + - 55 FROM tab1
----
-27

query I rowsort
SELECT - 84 + col1 AS col1 FROM tab0 AS cor0 WHERE + col0 > col1
----
-63
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT col0 + - col0 + - 33 * col0 DIV 75 FROM tab0 AS cor0
----
-38
-42
-6

skipif mysql # not compatible
query I rowsort label-2869
SELECT col0 + - col0 + - 33 * col0 / 75 FROM tab0 AS cor0
----
-38
-42
-6

query I rowsort
SELECT 23 FROM tab2 AS cor0 WHERE NULL >= col1 * - col1
----

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL CAST( NULL AS SIGNED ) - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL CAST ( NULL AS INTEGER ) - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 75 * col1 FROM tab0 AS cor0
----
1575
6075
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col1 / col1 - col1 * - col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT SUM( 31 ) AS col1 FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-2875
SELECT SUM ( 31 ) AS col1 FROM tab2 cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 73 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - - col2 - + col1 )
----

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 96 - - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col1 + - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 + ( col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2884
SELECT * FROM tab0 WHERE + 70 + + CAST( 51 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2884
SELECT * FROM tab0 WHERE + 70 + + CAST ( 51 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT 3 DIV - col2 * + col1 + - 86 + + col0 * - col1 FROM tab2
----
-2432
-5014
-5111

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT 3 / - col2 * + col1 + - 86 + + col0 * - col1 FROM tab2
----
-2432
-5014
-5111

query I rowsort
SELECT DISTINCT col2 - + - col2 + - col1 FROM tab0
----
-1
13
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + col1
----
46
51
23
64
77
40

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( 48 NOT BETWEEN - col1 AND NULL ) )
----

query I rowsort
SELECT ALL 48 * - 0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT 53 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT 53 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT SUM( ALL + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2894
SELECT SUM ( ALL + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL col0 * - - col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT - 86 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-1806
-6966
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 * - 23 * + col2 col0 FROM tab1 AS cor0
----
14
-30912
47
-73508
5
-6785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * + ( col0 ) col0 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + col2 DIV - + col1 + col2 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-1
13
98

skipif mysql # not compatible
query I rowsort label-2899
SELECT + col2 / - + col1 + col2 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-1
13
98

query I rowsort
SELECT ALL 5 FROM tab1 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - + 70 - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT ALL - col1 DIV 55 - - - col0 * - col0 FROM tab0 AS cor0
----
224
7569
9409

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - col1 / 55 - - - col0 * - col0 FROM tab0 AS cor0
----
224
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 48 NOT IN ( + col1 )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - ( + - 44 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> NULL AND NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - ( + 77 ) FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - ( + 77 ) FROM tab2 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT - 50 * MIN( + ( + 50 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - 50 * MIN ( + ( + 50 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 42 ) IS NULL
----

query I rowsort
SELECT - 6 * ( - 11 ) * col0 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) FROM tab0 WHERE ( 17 ) <= 92 / + 65 + + col2
----
225
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT MIN( ALL - CAST( 84 AS SIGNED ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-2911
SELECT MIN ( ALL - CAST ( 84 AS INTEGER ) ) FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT ALL * FROM tab1 WHERE NOT + + col2 - - 32 * + CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-2912
SELECT ALL * FROM tab1 WHERE NOT + + col2 - - 32 * + CAST ( NULL AS INTEGER ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT + MIN( DISTINCT + CAST( - 71 AS SIGNED ) ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2914
SELECT + MIN ( DISTINCT + CAST ( - 71 AS INTEGER ) ) AS col2 FROM tab1
----
-71

query I rowsort
SELECT DISTINCT - 17 - + 69 AS col2 FROM tab0 WHERE NOT - + col2 / - + col0 - - col0 * + + 47 + + col2 * col0 < NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 87 + - 73 AND + - 45
----

query I rowsort
SELECT + col2 + - col1 * + - col2 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2918
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT - ( + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - ( + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - ( - MAX( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - ( - MAX ( + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2922
SELECT * FROM tab0 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2922
SELECT * FROM tab0 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2923
SELECT - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE - 59 * - - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col2 * - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT + + 76 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + + 76 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT 20 + + - 11 FROM tab2
----
9
9
9

query I rowsort
SELECT + col2 + + + col1 + 79 + + 45 FROM tab0
----
155
224
252

query II rowsort
SELECT + 91 + + + col0 + 12, + col2 FROM tab2
----
149
23
167
40
178
58

query I rowsort
SELECT - col0 + - - 18 + - col2 * - col0 + + col1 FROM tab1
----
4877
4953
6162

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT 79 + + + COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 79 + + + COUNT ( * ) FROM tab0
----
82

query I rowsort
SELECT + 57 + - - ( - col1 ) FROM tab2
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL 97 + COUNT( * ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL 97 + COUNT ( * ) AS col0 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL - - COUNT( + col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - - COUNT ( + col2 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 33 AS col0 FROM tab0 AS cor0 WHERE ( + col2 + - col2 + + col0 ) > ( col1 )
----
33
33

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 * + col2 FROM tab0 AS cor0
----
-10
100
-47
2209
-99
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT DISTINCT + - COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + - COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 91, - 71 AS col0 FROM tab1 AS cor0
----
91
-71
91
-71
91
-71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 < NULL )
----

query I rowsort
SELECT ALL + 59 + col0 FROM tab1 WHERE NOT + ( + 46 ) * - - 3 * + 38 BETWEEN - col2 AND - + col2 + + 56
----
110
144
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + COUNT( * ) * + 22 AS col0 FROM tab2 AS cor0 WHERE NOT ( 86 ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-2941
SELECT + COUNT ( * ) * + 22 AS col0 FROM tab2 AS cor0 WHERE NOT ( 86 ) IS NULL
----
66

query I rowsort
SELECT - + 1 * + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 19 ) col2 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - - ( + 37 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT + + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT - - COUNT( * ) * - 8 + - - 25 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2947
SELECT - - COUNT ( * ) * - 8 + - - 25 AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + 34 AS col2, col0 + 98 AS col2 FROM tab2
----
34
144
34
162
34
173

query I rowsort
SELECT - col1 + - - 72 AS col0 FROM tab2
----
-5
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2952
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN + CAST ( NULL AS REAL ) AND ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + - SUM( DISTINCT + 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + - SUM ( DISTINCT + 51 ) FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT ALL - col0 DIV + + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - col0 / + + col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2955
SELECT + - ( - CAST( NULL AS SIGNED ) ) * - 6 AS col2, col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2955
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * - 6 AS col2, col2 col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 89 * + - col1, - col2 * + col1 + + 28 + + + col0 AS col2 FROM tab2
----
-4539
-1099
-5963
-3783
-6853
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL COUNT( * ) + 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL COUNT ( * ) + 98 FROM tab0
----
101

query III rowsort
SELECT * FROM tab1 WHERE - 79 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 19 + 19 + - col1 + + 37 * + 49 * - 56 FROM tab2
----
-101564
-101607
-101615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2961
SELECT + COUNT( * ) * + COUNT( * ) + + AVG ( + 70 ) * CAST( NULL AS SIGNED ) + - COUNT( ALL - - col1 ) - 38 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + COUNT ( * ) * + COUNT ( * ) + + AVG ( + 70 ) * CAST ( NULL AS INTEGER ) + - COUNT ( ALL - - col1 ) - 38 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + + 45 FROM tab1 AS cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - COUNT( * ) * + - 75 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - COUNT ( * ) * + - 75 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + COUNT( * ) * + 58 + 29 FROM tab1 cor0
----
203

skipif mysql # not compatible
query I rowsort label-2964
SELECT + COUNT ( * ) * + 58 + 29 FROM tab1 cor0
----
203

query II rowsort
SELECT - col0 AS col1, - 37 FROM tab1 AS cor0
----
-51
-37
-85
-37
-91
-37

query II rowsort
SELECT DISTINCT + 66, + col0 * 16 AS col0 FROM tab2 AS cor0
----
66
1024
66
1200
66
736

query I rowsort
SELECT DISTINCT + 69 - - col2 * - - 20 AS col1 FROM tab2 AS cor0
----
1229
529
869

query I rowsort
SELECT DISTINCT - col0 - + col1 - - 86 AS col1 FROM tab2 WHERE NOT ( - - col0 * - + 7 * + col0 ) IS NULL
----
-11
-55
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2969
SELECT + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT DISTINCT 40, 26 AS col0 FROM tab1
----
40
26

query I rowsort
SELECT 24 * + 20 AS col1 FROM tab1
----
480
480
480

query I rowsort
SELECT - col2 * + + col2 FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= - col0
----
0

query I rowsort
SELECT ALL ( col2 ) + + col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT DISTINCT - 32 DIV + 38 + - + COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - 32 / + 38 + - + COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT SUM( col2 ) + 47 + 2 FROM tab0
----
205

skipif mysql # not compatible
query I rowsort label-2977
SELECT SUM ( col2 ) + 47 + 2 FROM tab0
----
205

query I rowsort
SELECT col0 + + col0 + + - col2 + + + col2 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + ( + - col2 ) * col0 + + - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + 38 * - COUNT( * ) + + - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-2980
SELECT + 38 * - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT CAST( NULL AS SIGNED ) / 39 + + - col1 * 49 FROM tab1 AS cor0 WHERE + col0 / + + col1 / - ( + col1 ) BETWEEN - 40 + + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-2982
SELECT CAST ( NULL AS INTEGER ) / 39 + + - col1 * 49 FROM tab1 AS cor0 WHERE + col0 / + + col1 / - ( + col1 ) BETWEEN - 40 + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL COUNT( * ) * + - 2 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL COUNT ( * ) * + - 2 AS col2 FROM tab1
----
-6

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND + 18 + 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + - COUNT( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2986
SELECT + - COUNT ( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT ALL - + col1 + 19 - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + col1 + - 79 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
178
1788
6576

query I rowsort
SELECT + col1 - - col2 + 41 * + 0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - - 78 - + col2 * col1 FROM tab2 cor0
----
-1095
-3002
-3808

query I rowsort
SELECT ALL - col0 - + 34 FROM tab1 cor0
----
-119
-125
-85

query I rowsort
SELECT DISTINCT - - col2 - + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - col2 + 37 / + + 67 + col1 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT col0 AS col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 41 ) * - col2 * - col2 + - - col1 / - col0 * + - col2 NOT IN ( + ( - 52 ) + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT col2 DIV ( + col0 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT col2 / ( + col0 ) FROM tab0
----
0
1
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 66 NOT IN ( + 23, + 32 + + - col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT CAST( col2 AS SIGNED ) * 7 AS col1 FROM tab1
----
413
476
672

skipif mysql # not compatible
query I rowsort label-2998
SELECT CAST ( col2 AS INTEGER ) * 7 AS col1 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT DISTINCT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 * - 27 AS col0 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - COUNT( - - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - COUNT ( - - col2 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT + col1, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36, ( + col1 ) col2 FROM tab2 cor0
----
36
51
36
67
36
77

query II rowsort
SELECT - ( col2 ), + col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - + 24 FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT ALL + + MIN( col0 ) AS col2, - SUM( - - 97 ) * + + 72 AS col0 FROM tab1 AS cor0
----
51
-20952

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL + + MIN ( col0 ) AS col2, - SUM ( - - 97 ) * + + 72 AS col0 FROM tab1 AS cor0
----
51
-20952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT + - 62 + + + 71 DIV + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3009
SELECT + - 62 + + + 71 / + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT ALL - col1 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - col1 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
15
87
97

query I rowsort
SELECT ALL 65 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
65
65
65

query I rowsort
SELECT col1 + + + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + + 38 + 73 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT + MIN( ALL col2 ) * 12 DIV + - 84 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + MIN ( ALL col2 ) * 12 / + - 84 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 + + + 17 * col0 + - col0 * + 12 * - - col1 + + + 11 FROM tab2 AS cor0
----
-27410
-58114
-59081

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT COUNT( * ) + - 53 AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-3017
SELECT COUNT ( * ) + - 53 AS col2 FROM tab1
----
-50

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + col0
----

query I rowsort
SELECT DISTINCT + col2 + - - col2 * + 24 FROM tab1
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL COUNT( ALL 89 ) + - - 47 FROM tab1, tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL COUNT ( ALL 89 ) + - - 47 FROM tab1, tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col2 - - 76 AS col1, col2 + + ( 70 ) * + 72 col0 FROM tab0 AS cor0
----
175
5139
286
5050
3883
5087

query I rowsort
SELECT ALL + col0 * + 49 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT - 24 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - 24 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + col0 + col2 * ( CAST( + 50 AS SIGNED ) ) AS col0 FROM tab0
----
2365
5047
587

skipif mysql # not compatible
query I rowsort label-3026
SELECT + col0 + col2 * ( CAST ( + 50 AS INTEGER ) ) AS col0 FROM tab0
----
2365
5047
587

query I rowsort
SELECT ALL - 68 + - 66 * + 86 FROM tab2
----
-5744
-5744
-5744

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - 74 + - + MAX( ALL + + col0 ) AS col1 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - 74 + - + MAX ( ALL + + col0 ) AS col1 FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT - COUNT( * ) + + ( 48 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - COUNT ( * ) + + ( 48 ) AS col1 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3030
SELECT - MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 28 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT - + CAST( + + MIN( + 33 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3032
SELECT - + CAST ( + + MIN ( + 33 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - + 34 * + ( + 24 ) AS col0 FROM tab1 AS cor0
----
-816
-816
-816

query I rowsort
SELECT ALL + ( + col1 ) * 88 + + 33 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL > + 30 + + - 28 - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT ALL col2 DIV + - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL col2 / + - col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + SUM( + - 56 ) AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-3038
SELECT + SUM ( + - 56 ) AS col0 FROM tab1
----
-168

query I rowsort
SELECT + col1 * + + ( col1 ) * + - ( + - col1 ) + - 25 - - col2 + + 9 FROM tab0
----
531472
84
9255

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + ( - + 39 ) * + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3040
SELECT + ( - + 39 ) * + COUNT ( * ) FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - COUNT( * ) * + ( + 47 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-3041
SELECT - COUNT ( * ) * + ( + 47 ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + 28 * + + col0 FROM tab1 AS cor0
----
1428
2380
2548

query II rowsort
SELECT 64, col1 AS col0 FROM tab0
----
64
1
64
21
64
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 83 * COUNT( * ) * - - 52 FROM tab2
----
12948

skipif mysql # not compatible
query I rowsort label-3044
SELECT 83 * COUNT ( * ) * - - 52 FROM tab2
----
12948

query I rowsort
SELECT DISTINCT - ( + ( + 53 ) ) * + col0 + col1 AS col1 FROM tab1
----
-2689
-4500
-4776

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 5 + ( - - col2 ) NOT BETWEEN + 64 AND - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + - ( - 94 ) + - + 70 AS col2 FROM tab2
----
4254
5946
6980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL 86 * - + CAST( NULL AS SIGNED ) + 37 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL 86 * - + CAST ( NULL AS INTEGER ) + 37 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 21 + 3 AS col0, + 28 FROM tab1
----
24
28
24
28
24
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL - CAST( NULL AS SIGNED ) + + 51 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - CAST ( NULL AS INTEGER ) + + 51 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - col1 DIV - + 47 + + col1 FROM tab1
----
14
48
5

skipif mysql # not compatible
query I rowsort label-3051
SELECT - col1 / - + 47 + + col1 FROM tab1
----
14
48
5

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col2 + - - col0 FROM tab0
----
-33120
-8613
-950600

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - SUM( - 58 ) + + 25 AS col0 FROM tab1
----
199

skipif mysql # not compatible
query I rowsort label-3053
SELECT - SUM ( - 58 ) + + 25 AS col0 FROM tab1
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 99 + - SUM( ALL - + col0 ) FROM tab2
----
284

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 99 + - SUM ( ALL - + col0 ) FROM tab2
----
284

query I rowsort
SELECT + col2 + - 73 + + col2 + - 29 AS col2 FROM tab0
----
-8
-82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT - COUNT( * ) + - 88 AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - COUNT ( * ) + - 88 AS col1 FROM tab2
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 <= 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 75 > - col0 * - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3060
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3060
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + 74 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 97 - + + col0 FROM tab1
----
12
46
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3062
SELECT + col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( 2 AS SIGNED ) BETWEEN col1 AND + col2 * + col0 - - 92 + - col1 + + col0 - col0 * + col0 + - - 17
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-3062
SELECT + col1, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( 2 AS INTEGER ) BETWEEN col1 AND + col2 * + col0 - - 92 + - col1 + + col0 - col0 * + col0 + - - 17
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( + - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-3064
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

query II rowsort
SELECT - - 33, + ( col0 ) FROM tab1 AS cor0
----
33
51
33
85
33
91

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT 90 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 93 + 12 * - ( - + 4 ) col2 FROM tab0 AS cor0
----
-1905
-45
-7485

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3069
SELECT ALL - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + 5 * col1 AS col1, col1 FROM tab1
----
235
47
25
5
70
14

onlyif mysql # DIV for integer division: 
query II rowsort label-3071
SELECT - 23 DIV + col2, col1 FROM tab0
----
-2
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-3071
SELECT - 23 / + col2, col1 FROM tab0
----
-2
21
0
1
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3072
SELECT + 72 * col0 AS col2, + 97 * + + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3672
NULL
6120
NULL
6552
NULL

skipif mysql # not compatible
query II rowsort label-3072
SELECT + 72 * col0 AS col2, + 97 * + + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3672
NULL
6120
NULL
6552
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 WHERE col0 BETWEEN + col1 * + 67 + - col1 AND col0 * 18
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 WHERE col0 BETWEEN + col1 * + 67 + - col1 AND col0 * 18
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT + + SUM( - 64 ) AS col2, - 76 FROM tab1 AS cor0
----
-192
-76

skipif mysql # not compatible
query II rowsort label-3075
SELECT + + SUM ( - 64 ) AS col2, - 76 FROM tab1 AS cor0
----
-192
-76

query I rowsort
SELECT DISTINCT - + 85 * - col1 FROM tab0 AS cor0
----
1785
6885
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3077
SELECT DISTINCT + - ( col1 ), CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3077
SELECT DISTINCT + - ( col1 ), CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - - MAX( + 86 ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3079
SELECT - - MAX ( + 86 ) AS col2 FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - - MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3080
SELECT - - MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 57 + - col2 FROM tab0
----
-42
10
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IS NULL AND - col1 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - ( - col0 ) / - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT MIN( 47 ) col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT DISTINCT MIN ( 47 ) col1 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT ( + + col2 ) * - - col1 + + col2 AS col0 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3086
SELECT col1 * CAST( NULL AS DECIMAL ) + + + 34 AS col0, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3086
SELECT col1 * CAST ( NULL AS REAL ) + + + 34 AS col0, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - + 34 * 94 * 40 AS col2 FROM tab2 cor0
----
-127840
-127840
-127840

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - 2 - - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT MIN( + 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3089
SELECT MIN ( + 5 ) FROM tab0
----
5

query II rowsort
SELECT ALL - 41, + col1 * + col2 AS col1 FROM tab2
----
-41
1173
-41
3080
-41
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL 35 * - COUNT( * ) + 96 AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 35 * - COUNT ( * ) + 96 AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 99 * 98 - 99 + col1 * - 34 * - 20
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE + + 76 * + 42 IS NULL
----

query I rowsort
SELECT + col1 - + + col1 + + ( + 58 ) AS col2 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL + COUNT( * ) - - 74 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + COUNT ( * ) - - 74 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - col1 + 80 + + + col0 AS col0 FROM tab2 AS cor0
----
67
75
88

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + COUNT( * ) col1 FROM tab0 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-3099
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3100
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT - - col2 DIV + ( 74 ) col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3101
SELECT - - col2 / + ( 74 ) col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab2 AS cor0
----
-88
-88
-88

query II rowsort
SELECT ALL + ( - col1 ) AS col0, + col0 * + col2 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

query I rowsort
SELECT ALL - + 46 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT - - MAX( CAST( + - col0 AS SIGNED ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - - MAX ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT + - CAST( + 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + - CAST ( + 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + COUNT( - col2 ) * + + 88 AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( - col2 ) * + + 88 AS col0 FROM tab2
----
264

query I rowsort
SELECT DISTINCT + col2 * ( + - col2 ) * - col1 AS col0 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( + col0, + col1, - col2 * - col2 * - col1, + 71, - 89, ( ( - + 97 ) ) - - ( + col0 ) )
----

query II rowsort
SELECT + col0, 47 FROM tab1 WHERE NOT - ( + col1 ) + ( col0 ) + col0 IS NULL
----
51
47
85
47
91
47

query I rowsort
SELECT ALL col0 * 54 * + col0 AS col0 FROM tab2
----
114264
221184
303750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - 15 * col1 col0 FROM tab2 AS cor0
----
-1989765
-4511445
-6847995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3114
SELECT * FROM tab2 cor0 WHERE NOT ( NOT 55 >= - CAST( + 76 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3114
SELECT * FROM tab2 cor0 WHERE NOT ( NOT 55 >= - CAST ( + 76 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - col1 DIV + CAST( + ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - col1 / + CAST ( + ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-5
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( - col1 )
----

query I rowsort
SELECT 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - + ( + 44 ) FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - 35 IS NULL
----

query I rowsort
SELECT DISTINCT 37 - - + col2 AS col0 FROM tab1 AS cor0
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL + - ( + MAX( CAST( + col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + - ( + MAX ( CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT - 27 + 74 DIV - COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3123
SELECT - 27 + 74 / - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT col2 + ( 14 ) FROM tab0
----
113
24
61

query I rowsort
SELECT DISTINCT col0 + + 61 FROM tab0
----
148
158
76

query I rowsort
SELECT 52 + - 27 FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( + - col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + - 6 FROM tab2
----
17
34
52

query I rowsort
SELECT DISTINCT 13 + - + col1 FROM tab1
----
-1
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT CAST( - - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3130
SELECT CAST ( - - col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - COUNT( col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - COUNT ( col1 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + ( + col2 ) * - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL 63 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL 63 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
63
3

query I rowsort
SELECT ( - + 18 ) FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - COUNT( DISTINCT - - 41 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3135
SELECT - COUNT ( DISTINCT - - 41 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT ( - MIN( col1 ) ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT DISTINCT ( - MIN ( col1 ) ) col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col0 / + 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 3 / + 5 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + col0 * + col2 FROM tab1
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3140
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) * - - col1 - + col0 * + col2 + - col1 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3140
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * - - col1 - + col0 * + col2 + - col1 * col2 IS NULL
----

query I rowsort
SELECT - col1 - - ( col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 * - col2 - + col1 col1 FROM tab0 cor0
----
-2807
-5743
-601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT - 64 DIV COUNT( * ) * + 75 * 98 col2 FROM tab1 AS cor0
----
-154350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3143
SELECT - 64 / COUNT ( * ) * + 75 * 98 col2 FROM tab1 AS cor0
----
-154350

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL col0 + + col1 DIV col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col0 + + col1 / col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT - ( - 59 ) * - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 351aefd18b1976bbcc084070775bc99e

query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab2 WHERE + 17 / col1 * col0 * - col1 <= + col0 + 4 + + ( + + 46 ) / - col2
----
128
150
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3148
SELECT + - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * col0 * - + 5 - + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * col0 * - + 5 - + 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - SUM( - + 75 ) * - 28 - MAX( + 55 ) AS col0 FROM tab1 AS cor0
----
-6355

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - SUM ( - + 75 ) * - 28 - MAX ( + 55 ) AS col0 FROM tab1 AS cor0
----
-6355

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / - + col0 * + col0 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3153
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + + col0 / + col1 * - col1 + col0 + - col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query II rowsort
SELECT col0, - 33 FROM tab0 cor0
----
15
-33
87
-33
97
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - - 76 IS NOT NULL
----

query I rowsort
SELECT ALL 5 * + + col1 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT DISTINCT col0 * 82 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT ALL + 7 * - col2 FROM tab2
----
-161
-280
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL - col2 + - 55 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - col2 + - 55 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT BETWEEN col0 * + + col1 AND NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT DISTINCT COUNT( * ) - + - ( - COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT COUNT ( * ) - + - ( - COUNT ( * ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 89 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1335
-7743
-8633

query I rowsort
SELECT DISTINCT - col0 * - + ( col1 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
51
85
91

query II rowsort
SELECT - - col2 AS col0, 98 FROM tab2 AS cor0
----
23
98
40
98
58
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3167
SELECT DISTINCT + 95 AS col1, + 41 + - col2 + - col1 / + + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT + 95 AS col1, + 41 + - col2 + - col1 / + + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
95
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 76 * - 64 >= - 32 / - + 50 * col1
----

query II rowsort
SELECT DISTINCT 17 AS col1, col0 FROM tab1 AS cor0
----
17
51
17
85
17
91

query II rowsort
SELECT - + col1 AS col1, - 21 * - + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-14
-102816
-47
-129948
-5
-105315

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3172
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - col0 * - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-158949
NULL
-18225
NULL
-9409

skipif mysql # not compatible
query II rowsort label-3172
SELECT ALL CAST ( NULL AS REAL ) AS col2, - col0 * - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-158949
NULL
-18225
NULL
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 NOT IN ( + col2 / + col1, 99 + + col2, - - col1 * + - ( - 90 ) )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN col1 AND - - 26
----
59
68
96

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - - ( + col0 ) IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT + - col0 + - - col2 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 / - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL + + col0 - + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND - ( + col0 ) - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT ALL + + col0 - + col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND - ( + col0 ) - col1
----

query I rowsort
SELECT DISTINCT + 53 * - col0 * + + 8 AS col1 FROM tab1 AS cor0
----
-21624
-36040
-38584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3180
SELECT + 45 * + - col2 * - col2 + CAST( NULL AS DECIMAL ) * + + 8 * - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT + 45 * + - col2 * - col2 + CAST ( NULL AS REAL ) * + + 8 * - col1 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT col1 + - ( + - CAST( NULL AS SIGNED ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT col1 + - ( + - CAST ( NULL AS INTEGER ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 * - + col2 AS col1 FROM tab0
----
1980
200
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL + 97 col0 FROM tab2 WHERE - - 19 + col1 = col1 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3183
SELECT ALL + 97 col0 FROM tab2 WHERE - - 19 + col1 = col1 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT - col2 > col1
----
196
62
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT DISTINCT - COUNT( * ), + COUNT( 98 ) * 78 AS col2 FROM tab0 cor0
----
-3
234

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT - COUNT ( * ), + COUNT ( 98 ) * 78 AS col2 FROM tab0 cor0
----
-3
234

query I rowsort
SELECT ALL - 2 * - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT DISTINCT 25 DIV MIN( - - col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 25 / MIN ( - - col0 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + ( - + 67 ) AS col1 FROM tab2, tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL + + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT ALL + + COUNT ( * ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - 66 + + COUNT( * ) * - + 89 FROM tab2 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 66 + + COUNT ( * ) * - + 89 FROM tab2 AS cor0
----
-333

query I rowsort
SELECT - + col1 * + 44 + + col1 * + col1 + - ( col1 ) FROM tab0 AS cor0
----
-44
-504
2916

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > col1 * + - col1 * col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - COUNT( * ) + + - 78 AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3195
SELECT - COUNT ( * ) + + - 78 AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT + col2 + - CAST( + + CAST( - 16 AS SIGNED ) AS SIGNED ) FROM tab0
----
115
26
63

skipif mysql # not compatible
query I rowsort label-3196
SELECT + col2 + - CAST ( + + CAST ( - 16 AS INTEGER ) AS INTEGER ) FROM tab0
----
115
26
63

query I rowsort
SELECT ALL + 43 + col2 AS col2 FROM tab2 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE - - col0 * - col2 + + - col0 + - col1 + + col1 + + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - COUNT( * ) + + 18 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - COUNT ( * ) + + 18 FROM tab1
----
15

query I rowsort
SELECT + + col0 * - - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + + 49 + - col0 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT ALL - - 50 * - 27 + - col1 AS col1 FROM tab2 AS cor0
----
-1401
-1417
-1427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT ( + ( 6 ) ) DIV COUNT( * ) + - 49 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3203
SELECT ( + ( 6 ) ) / COUNT ( * ) + - 49 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - col1 - - + CAST( NULL AS SIGNED ) - - + col2 * + 32 + + col1 AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * + - ( - col0 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3204
SELECT - col1 - - + CAST ( NULL AS INTEGER ) - - + col2 * + 32 + + col1 AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * + - ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 13 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + - COUNT( * ) - - MAX( col2 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + - COUNT ( * ) - - MAX ( col2 ) FROM tab2 AS cor0
----
55

query II rowsort
SELECT DISTINCT - 74 AS col0, - 65 - + - 98 AS col1 FROM tab1 AS cor0
----
-74
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3209
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT + - col2, 24 + - + col0 AS col1 FROM tab2 cor0
----
-23
-22
-40
-40
-58
-51

query I rowsort
SELECT DISTINCT - - 84 FROM tab0 AS cor0 WHERE NOT - col1 + + col2 < + col0
----
84

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) - 97 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-143
-161
-172

query I rowsort
SELECT ( col0 ) * + - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + SUM ( col2 ) FROM tab1
----
223

query II rowsort
SELECT DISTINCT 17 * col1 * 86 AS col0, + 57 FROM tab2
----
112574
57
74562
57
97954
57

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 + col1
----

query I rowsort
SELECT 21 * + + col0 AS col1 FROM tab2
----
1344
1575
966

query I rowsort
SELECT + - 35 * - + 76 + + - 66 * + col1 FROM tab0 AS cor0
----
-2686
1274
2594

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT ALL - col2 DIV - + 21, ( + ( - + 4 ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
1
184
1
256
2
300

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL - col2 / - + 21, ( + ( - + 4 ) ) * + - col0 AS col2 FROM tab2 AS cor0
----
1
184
1
256
2
300

query I rowsort
SELECT - ( - + 85 ) FROM tab2 AS cor0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT ALL + 26 DIV + ( + col2 ) col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT ALL + 26 / + ( + col2 ) col0 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + col1 + col1 FROM tab0
----
15
243
87
63
97
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col0 AND - 8 / - + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT + + COUNT( * ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + + COUNT ( * ) * - 87 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - - 66 AS col0 FROM tab0 AS cor0
----
66
66
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3228
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 68 + + 83 FROM tab1
----
151
151
151

query I rowsort
SELECT + 54 FROM tab1 WHERE - 7 * + col2 * - ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE col2 * - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT + COUNT( * ) + - + ( - + 74 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3232
SELECT + COUNT ( * ) + - + ( - + 74 ) FROM tab2
----
77

query I rowsort
SELECT + col1 + + + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 26 FROM tab0 WHERE NOT + 76 IS NOT NULL
----

query I rowsort
SELECT + col2 + + ( + col1 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL - - CAST( NULL AS SIGNED ) + + 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 31 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT COUNT( * ) - + + 74 AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3237
SELECT COUNT ( * ) - + + 74 AS col2 FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT - 85 - + 13 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( + 41 ) col0 FROM tab2 AS cor0
----
64
81
99

query I rowsort
SELECT ALL - AVG ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + - MAX( col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + - MAX ( col2 ) FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ), + col2 col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col2 > 59
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL COUNT( + - 35 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL COUNT ( + - 35 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - COUNT( DISTINCT - - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3250
SELECT - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 69 col2 FROM tab1 AS cor0
----
-69
-69
-69

query II rowsort
SELECT ALL - 35, 52 AS col1 FROM tab2 AS cor0
----
-35
52
-35
52
-35
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3255
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 20 + - col0 * col0 FROM tab0 cor0
----
-205
-7549
-9389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT + col1 + 16 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT + col1 + 16 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 * + col2 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - + 56 * - 77 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
4315

skipif mysql # not compatible
query I rowsort label-3259
SELECT - + 56 * - 77 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4315

query I rowsort
SELECT - 11 + col2 AS col1 FROM tab2 cor0
----
12
29
47

query I rowsort
SELECT DISTINCT - col1 + - + col1 + - + ( - - 90 ) AS col1 FROM tab2 AS cor0
----
-192
-224
-244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT - + col2 + - col1 + + ( col2 ) - col1 * + - 54 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-23835
-354375
-55

skipif mysql # not compatible
query I rowsort label-3262
SELECT - + col2 + - col1 + + ( col2 ) - col1 * + - 54 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-23835
-354375
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - ( + col2 )
----
0

query II rowsort
SELECT - ( + col1 ), 80 AS col1 FROM tab2 AS cor0
----
-51
80
-67
80
-77
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - col0 <> + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 22 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT - ( col2 ) DIV 42 * + - col1 AS col0 FROM tab2
----
0
0
67

skipif mysql # not compatible
query I rowsort label-3268
SELECT - ( col2 ) / 42 * + - col1 AS col0 FROM tab2
----
0
0
67

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * - col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 * 13 FROM tab0
----
1053
13
273

query I rowsort
SELECT DISTINCT + 42 FROM tab0 AS cor0 WHERE NOT + 94 BETWEEN - 92 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( ( - - 35 ) ) IS NULL
----

query I rowsort
SELECT ( - col1 ) + + col0 + - ( - col2 ) + + 13 * - col0 + + col2 * + col1 FROM tab0 AS cor0
----
-845
-967
3593

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT col2 * ( + 65 ) AS col1 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT CAST( 47 AS SIGNED ) * 15 AS col0 FROM tab0
----
705
705
705

skipif mysql # not compatible
query I rowsort label-3277
SELECT CAST ( 47 AS INTEGER ) * 15 AS col0 FROM tab0
----
705
705
705

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT ( col2 + - 54 ) IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 62 ) NOT BETWEEN ( NULL ) AND + 69 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT SUM( ALL - 37 ) * + COUNT( DISTINCT col0 ) FROM tab1
----
-333

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT SUM ( ALL - 37 ) * + COUNT ( DISTINCT col0 ) FROM tab1
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col2 FROM tab1
----
28

query I rowsort
SELECT ( 14 ) AS col0 FROM tab0
----
14
14
14

query I rowsort
SELECT + 84 * col1 + - col0 FROM tab0
----
-13
1677
6789

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT + ( + AVG ( - col0 ) ) * + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL >= 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + ( + AVG ( - col0 ) ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL >= 45
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL - 74 / + 94 FROM tab1 WHERE - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - 74 / + 94 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT MAX( col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3288
SELECT MAX ( col0 ) col0 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN ( NULL ) AND + col0 * 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2 + + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * col1 + 9 AS col2 FROM tab0
----
-1206
-1818
-88

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col2 + - col2 )
----

query I rowsort
SELECT - 17 * col2 + 98 * 73 FROM tab2
----
6168
6474
6763

query III rowsort
SELECT * FROM tab2 WHERE 78 NOT IN ( + col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * ( - col0 ) + col2 FROM tab0
----
1262
1837
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT + MAX( + 66 ) * + CAST( + 71 AS SIGNED ) col0 FROM tab2 WHERE NOT ( col0 * CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----
4686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3297
SELECT + MAX ( + 66 ) * + CAST ( + 71 AS INTEGER ) col0 FROM tab2 WHERE NOT ( col0 * CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----
4686

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 40 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 40 * col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT BETWEEN 28 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 95 + col0 col1 FROM tab1 AS cor0
----
-10
-4
-44

query I rowsort
SELECT - + 66 * + 12 FROM tab0 cor0
----
-792
-792
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + 16 * MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
736

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + 16 * MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col0 - + 71 / - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col0 - + 71 / - col1 )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 16 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE col2 * + col1 = NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col2 / - col1 + col2 IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 * - 37 AS col0 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT DISTINCT 27 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + + 23 AS col2 FROM tab2
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT COUNT( * ) * ( COUNT( - ( col1 ) ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT COUNT ( * ) * ( COUNT ( - ( col1 ) ) ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 46 ) <> col1 * col1
----

query I rowsort
SELECT - col2 + + - col2 + + col0 * col2 FROM tab2
----
1012
2480
4234

query I rowsort
SELECT 93 + + col2 FROM tab2
----
116
133
151

query I rowsort
SELECT DISTINCT 42 + - + col0 * - ( + col2 ) FROM tab0
----
747
912
9645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT * FROM tab0 AS cor0 WHERE + 14 = - ( + CAST( NULL AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT * FROM tab0 AS cor0 WHERE + 14 = - ( + CAST ( NULL AS INTEGER ) ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT ( 29 ) + + MIN( DISTINCT col1 - + 6 ) FROM tab1 AS cor0 WHERE NOT 94 >= col0 * 25 - + col0 * col1
----
28

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT ( 29 ) + + MIN ( DISTINCT col1 - + 6 ) FROM tab1 AS cor0 WHERE NOT 94 >= col0 * 25 - + col0 * col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT ALL + col0 DIV - - 46 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + col0 / - - 46 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query II rowsort
SELECT ALL - 80 AS col2, col0 AS col1 FROM tab2
----
-80
46
-80
64
-80
75

query I rowsort
SELECT DISTINCT + + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT - MIN( DISTINCT - + 59 ) col1 FROM tab0 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT DISTINCT - MIN ( DISTINCT - + 59 ) col1 FROM tab0 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> ( 15 ) * 60
----

query II rowsort
SELECT col0 AS col0, col0 * + col0 * 41 AS col1 FROM tab1 cor0
----
51
106641
85
296225
91
339521

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + - MAX( DISTINCT + 82 ) FROM tab0 AS cor0 WHERE NOT - 35 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT + - MAX ( DISTINCT + 82 ) FROM tab0 AS cor0 WHERE NOT - 35 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) >= ( col2 / col2 )
----

query I rowsort
SELECT 92 * + - col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + 56 * - - CAST( + - ( COUNT( * ) ) AS SIGNED ) + - 0 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3331
SELECT + 56 * - - CAST ( + - ( COUNT ( * ) ) AS INTEGER ) + - 0 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT - SUM( + 97 ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT - SUM ( + 97 ) FROM tab1
----
-291

query I rowsort
SELECT col1 / - 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - 69 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 66 <> - 57
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - 69 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 66 <> - 57
----
0

query I rowsort
SELECT - ( + 47 ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT SUM( 10 ) + + 46 AS col0 FROM tab2 WHERE NULL IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-3340
SELECT SUM ( 10 ) + + 46 AS col0 FROM tab2 WHERE NULL IS NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT - + MAX( - col0 ) + - COUNT( + 73 ) AS col0 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3341
SELECT - + MAX ( - col0 ) + - COUNT ( + 73 ) AS col0 FROM tab0 cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col0 = ( + 78 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 44 NOT BETWEEN + col1 + + col2 AND ( + col2 * - col0 - + col0 * 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 + - col0 - - col1 AS col0, + 48 * - + 38 FROM tab1 AS cor0
----
-21
-1824
24
-1824
59
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3346
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST( NULL AS SIGNED ) NOT IN ( + col1 / col1 + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3346
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST ( NULL AS INTEGER ) NOT IN ( + col1 / col1 + - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 25 + col0 + + col2 * col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1639
3414
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + MIN( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT + MIN ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( col1 ) - COUNT( * ) col1 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT - COUNT ( col1 ) - COUNT ( * ) col1 FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT col1 DIV - - col2 + - 17 DIV - ( + col1 ) FROM tab0
----
1
17
2

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT col1 / - - col2 + - 17 / - ( + col1 ) FROM tab0
----
1
17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL ( + COUNT( * ) ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL ( + COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL ( col1 ) + - 38 AS col1 FROM tab0
----
-17
-37
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + - 75 col1 FROM tab2
----
-167

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE 65 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT - 49 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT - MIN( col2 ) * + 70 AS col2 FROM tab1 WHERE ( NULL ) < 9 / - col1 + col1 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT - MIN ( col2 ) * + 70 AS col2 FROM tab1 WHERE ( NULL ) < 9 / - col1 + col1 * + 87
----
NULL

query II rowsort
SELECT DISTINCT + - 27, + col1 AS col0 FROM tab2 AS cor0 WHERE col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - COUNT( - 61 ) + + + 47 AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3359
SELECT - COUNT ( - 61 ) + + + 47 AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL - 95 * + 44 + + 19 FROM tab2 AS cor0
----
-4161
-4161
-4161

query II rowsort
SELECT ALL col1 * + col1, col1 AS col0 FROM tab2
----
2601
51
4489
67
5929
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT ALL + - col2 * 70, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-1610
NULL
-2800
NULL
-4060
NULL

skipif mysql # not compatible
query II rowsort label-3362
SELECT ALL + - col2 * 70, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-1610
NULL
-2800
NULL
-4060
NULL

query I rowsort
SELECT + 86 FROM tab2 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT MIN( DISTINCT ( col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3364
SELECT MIN ( DISTINCT ( col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + + + col0 / + 44 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, 48 + + 92 FROM tab1
----
14
140
47
140
5
140

query I rowsort
SELECT DISTINCT col0 * - col1 * - - col2 AS col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT col0 * - 46 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL COUNT( * ) * - - COUNT( + 94 ) * COUNT( * ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL COUNT ( * ) * - - COUNT ( + 94 ) * COUNT ( * ) AS col1 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT + col0 + - col0 DIV + col0 col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3371
SELECT + col0 + - col0 / + col0 col2 FROM tab2
----
45
63
74

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 14 * + 17 + - col1 + col1 + - col2 AND + 25
----

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, - col0 * + col2 ) AND NOT ( NOT ( - + col1 ) <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + - 30 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT COUNT( - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3375
SELECT COUNT ( - + col2 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 >= - + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 92 + + col0 AS col1, + col2 AS col2 FROM tab2
----
138
23
156
40
167
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - COUNT( * ) - + + COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-3378
SELECT - COUNT ( * ) - + + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6
3

query II rowsort
SELECT DISTINCT + + 99 + + - 48, - 27 AS col2 FROM tab0 AS cor0
----
51
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3380
SELECT col2 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT col2 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL + 57 - + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + 57 - + COUNT ( * ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - 49 - + + COUNT( + + 99 ) AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - 49 - + + COUNT ( + + 99 ) AS col1 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL COUNT( ALL col1 ) + - 85 * 44 AS col0 FROM tab2
----
-3737

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL COUNT ( ALL col1 ) + - 85 * 44 AS col0 FROM tab2
----
-3737

query I rowsort
SELECT - col2 * - col2 + - col1 AS col1 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT ALL - 38 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + col0 col0 FROM tab0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT COUNT( * ) + COUNT( DISTINCT + + col2 ) AS col2, + 57 FROM tab2
----
6
57

skipif mysql # not compatible
query II rowsort label-3387
SELECT COUNT ( * ) + COUNT ( DISTINCT + + col2 ) AS col2, + 57 FROM tab2
----
6
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL - 96 - - - col2 + + - col1 - + - 79 DIV - - 77 AS col1 FROM tab1 WHERE NOT col0 * - 4 > - col1
----
-159
-205
-210

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - 96 - - - col2 + + - col1 - + - 79 / - - 77 AS col1 FROM tab1 WHERE NOT col0 * - 4 > - col1
----
-159
-205
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3389
SELECT col2, + CAST( NULL AS SIGNED ) + - + col1 * - col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3389
SELECT col2, + CAST ( NULL AS INTEGER ) + - + col1 * - col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3390
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + + 63 + col1 * - col0 * + col2 col1, col1 + col1 + col0 FROM tab0
----
NULL
129
NULL
177
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3390
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + + 63 + col1 * - col0 * + col2 col1, col1 + col1 + col0 FROM tab0
----
NULL
129
NULL
177
NULL
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT - 64 AS col1, - SUM( DISTINCT - col2 ) FROM tab2
----
-64
121

skipif mysql # not compatible
query II rowsort label-3392
SELECT - 64 AS col1, - SUM ( DISTINCT - col2 ) FROM tab2
----
-64
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 29 * + MIN( ALL + + col2 ) FROM tab2
----
667

skipif mysql # not compatible
query I rowsort label-3393
SELECT 29 * + MIN ( ALL + + col2 ) FROM tab2
----
667

query I rowsort
SELECT - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( + 29 )
----

query I rowsort
SELECT DISTINCT - 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT + 82, + 35 + + 13 + + COUNT( * ) * - 25 AS col0 FROM tab0 cor0
----
82
-27

skipif mysql # not compatible
query II rowsort label-3396
SELECT + 82, + 35 + + 13 + + COUNT ( * ) * - 25 AS col0 FROM tab0 cor0
----
82
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - ( + COUNT( + 28 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - ( + COUNT ( + 28 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT + ( - + col0 ) * + - 45 + + + col2 * + - col0 + - col1 + 64 + col2 + - - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + ( - + col0 ) * + - 45 + + + col2 * + - col0 + - col1 + 64 + col2 + - - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT COUNT( * ) * + 95 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT COUNT ( * ) * + 95 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - 99 + - COUNT( 61 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - 99 + - COUNT ( 61 ) FROM tab0
----
-102

query II rowsort
SELECT + col0 * + - col0 - + - 44 * + + col0 * - + col0 * + col1, - col1 FROM tab0 WHERE ( NOT NULL >= ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL - CAST( NULL AS SIGNED ) / - + ( - COUNT( * ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - CAST ( NULL AS INTEGER ) / - + ( - COUNT ( * ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT + COUNT( * ) AS col2, 93 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 29 * + - col1
----
3
93

skipif mysql # not compatible
query II rowsort label-3403
SELECT + COUNT ( * ) AS col2, 93 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 29 * + - col1
----
3
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + ( + MAX( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + ( + MAX ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + + 55 * col0 + + 68 FROM tab0 AS cor0
----
4853
5403
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - 0 * + + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2 cor0 WHERE 42 * + ( col0 ) * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3406
SELECT - 0 * + + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE 42 * + ( col0 ) * + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE + col2 < col1
----
23
40
58

query I rowsort
SELECT ALL + 26 + col1 FROM tab0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - - MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3409
SELECT - - MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - - col1 - - ( col2 ) AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col2 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - SUM( ALL + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - SUM ( ALL + col2 ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - - col1
----

query I rowsort
SELECT - + col2 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT + - ( + + CAST( 57 AS SIGNED ) ) FROM tab2 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - ( + + CAST ( 57 AS INTEGER ) ) FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL + CAST( NULL AS SIGNED ) * - 34 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + CAST ( NULL AS INTEGER ) * - 34 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 99 * + col0 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col0 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT col0 * + - ( - - 99 ) FROM tab1 AS cor0
----
-5049
-8415
-9009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + + ( - col2 ) FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT col1 * - col0 + ( col1 ) FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - + 82 IS NOT NULL
----

query I rowsort
SELECT - col1 * + + ( - col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL - + CAST( NULL AS SIGNED ) + + MAX( ALL 36 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - + CAST ( NULL AS INTEGER ) + + MAX ( ALL 36 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab2 WHERE + + col1 >= - col0 + - col2 - 3
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) + + - 39 + COUNT( * ) col2 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT - COUNT ( * ) + + - 39 + COUNT ( * ) col2 FROM tab1
----
-39

query I rowsort
SELECT ALL - col2 * - - 23 AS col1 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - 2 + - COUNT( * ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 2 + - COUNT ( * ) AS col0 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT - ( + - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - ( + - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 76 * - 25 + + col2 AS col2 FROM tab1
----
-1804
-1832
-1841

query I rowsort
SELECT + ( + + col0 ) + + col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT - col1 DIV - - col2 + + col2 + + 69 FROM tab2 AS cor0
----
108
126
90

skipif mysql # not compatible
query I rowsort label-3434
SELECT - col1 / - - col2 + + col2 + + 69 FROM tab2 AS cor0
----
108
126
90

query I rowsort
SELECT ALL + col2 * col1 * - col0 + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - 92 * - COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - 92 * - COUNT ( * ) FROM tab1
----
276

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 <= - + col1 OR NOT - + 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 * + col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT - col0 - - 31 * + col2 * + ( - col1 ) FROM tab0
----
-118032
-3166
-6597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT + CAST( - 85 AS SIGNED ) - 43 AS col0 FROM tab2
----
-128
-128
-128

skipif mysql # not compatible
query I rowsort label-3441
SELECT + CAST ( - 85 AS INTEGER ) - 43 AS col0 FROM tab2
----
-128
-128
-128

query I rowsort
SELECT DISTINCT col0 + 26 AS col1 FROM tab0
----
113
123
41

query I rowsort
SELECT ALL + + col0 * - - 35 * + col2 - - + col1 AS col0 FROM tab1 AS cor0
----
171374
175530
216627

query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 WHERE NOT NULL < 76 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 86 col2 FROM tab2 WHERE ( NOT + col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + 67 FROM tab0
----
1
67
21
67
81
67

query II rowsort
SELECT DISTINCT col1 AS col1, 43 AS col0 FROM tab1
----
14
43
47
43
5
43

query II rowsort
SELECT col2 * - 59 * 25 AS col1, - col2 FROM tab1
----
-100300
-68
-141600
-96
-87025
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT + 89 * - + COUNT( * ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 89 * - + COUNT ( * ) FROM tab0
----
-267

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT DISTINCT - CAST( + + CAST( + ( + 36 ) AS SIGNED ) AS SIGNED ) * + col0 + + 49 FROM tab1 WHERE NOT col0 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - CAST ( + + CAST ( + ( + 36 ) AS INTEGER ) AS INTEGER ) * + col0 + + 49 FROM tab1 WHERE NOT col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 95 AS col2 FROM tab1
----
-100
-109
-142

query I rowsort
SELECT ALL - - 92 AS col2 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT AVG ( + 20 ) * - CAST( NULL AS SIGNED ) + + + 44 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT AVG ( + 20 ) * - CAST ( NULL AS INTEGER ) + + + 44 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 77 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
0
10
26

query I rowsort
SELECT + 84 + - - col2 FROM tab0 cor0
----
131
183
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + - 44 col2 FROM tab1 cor0 WHERE NOT + col2 / - col2 + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ( + MAX( col0 ) ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT ( + MAX ( col0 ) ) col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE - 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE - 28 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT 90 / + - col1 + - col2 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3461
SELECT 90 / + - col1 + - col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT MIN( + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3462
SELECT MIN ( + + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - 54 + COUNT( * ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - 54 + COUNT ( * ) AS col2 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 WHERE 26 + col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 27 * - - col2 + ( col0 ) AS col0 FROM tab1
----
1678
1927
2643

query I rowsort
SELECT ALL - - 4 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT + 27 + + + COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + 27 + + + COUNT ( * ) AS col2 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT + CAST( - + 28 AS SIGNED ) AS col1 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3469
SELECT + CAST ( - + 28 AS INTEGER ) AS col1 FROM tab0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE ( col0 ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3471
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) + + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - col1 * - CAST ( NULL AS REAL ) + + + col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3472
SELECT ALL - 95 - + + CAST( - 43 AS SIGNED ), + ( + col2 ) FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

skipif mysql # not compatible
query II rowsort label-3472
SELECT ALL - 95 - + + CAST ( - 43 AS INTEGER ), + ( + col2 ) FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - - SUM( + ( + col1 ) ) - - - 37 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3473
SELECT - - SUM ( + ( + col1 ) ) - - - 37 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + + SUM( + - col2 ) + + + COUNT( * ) FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3475
SELECT + + SUM ( + - col2 ) + + + COUNT ( * ) FROM tab0 cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + 86 - COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + 86 - COUNT ( * ) FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL < NULL
----

query II rowsort
SELECT - 95, col1 AS col0 FROM tab1
----
-95
14
-95
47
-95
5

query I rowsort
SELECT ALL + 55 - + ( + 15 ) AS col0 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT + - 17, + col1 AS col0 FROM tab0 cor0
----
-17
1
-17
21
-17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT - + 69 * - + 94 - SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
6685

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - + 69 * - + 94 - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
6685

query II rowsort
SELECT DISTINCT col1, 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3485
SELECT + COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col2 FROM tab0 AS cor0
----
67
67
67

query II rowsort
SELECT 61, 76 AS col2 FROM tab2 AS cor0
----
61
76
61
76
61
76

query I rowsort
SELECT ALL + 52 * ( - 51 ) FROM tab1 AS cor0
----
-2652
-2652
-2652

query II rowsort
SELECT DISTINCT + col2, 71 AS col0 FROM tab2 AS cor0
----
23
71
40
71
58
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3490
SELECT ALL - col0 DIV + - col2 AS col0, + 79 DIV + + ( + - CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
0
-1
0
0
8
-7

skipif mysql # not compatible
query II rowsort label-3490
SELECT ALL - col0 / + - col2 AS col0, + 79 / + + ( + - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
0
-1
0
0
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT MIN( - 3 ) * + 21 AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3491
SELECT MIN ( - 3 ) * + 21 AS col1 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > - - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 30 ) * - col2 * - 24 * + 53 col2 FROM tab2
----
-1526400
-2213280
-877680

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT 42 DIV 54 * - - col0 * - 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 42 / 54 * - - col0 * - 70 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 + + - col2 + - col0 * col2 FROM tab1 AS cor0
----
-4978
-5069
-6209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT - 30 DIV - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - 30 / - COUNT ( * ) AS col1 FROM tab1
----
10

query I rowsort
SELECT ALL + - 66 AS col1 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT + - 51 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + + COUNT( * ) * - - 27 - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3500
SELECT + + COUNT ( * ) * - - 27 - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + COUNT( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3501
SELECT + COUNT ( * ) * + + 96 AS col2 FROM tab2 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT DISTINCT - col1, - col0 DIV + + 58 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - col1, - col0 / + + 58 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + - COUNT( * ) * 51 AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3503
SELECT + - COUNT ( * ) * 51 AS col1 FROM tab2 cor0
----
-153

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( ( - 18 ) IS NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT - CAST( - - COUNT( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - ( - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( - - COUNT ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - ( - COUNT ( * ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 85 IS NULL
----

query I rowsort
SELECT ALL col0 + - - col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query II rowsort label-3508
SELECT col1 * - 84 * + col1 + - col0 AS col0, col1 DIV + col2 FROM tab0
----
-181
0
-37131
2
-551139
1

skipif mysql # not compatible
query II rowsort label-3508
SELECT col1 * - 84 * + col1 + - col0 AS col0, col1 / + col2 FROM tab0
----
-181
0
-37131
2
-551139
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + col1 DIV - col2 + col0 + + ( - col2 ) - - col1 + - + col0 * + col1 AS col2 FROM tab0
----
-1167
-1731
-98

skipif mysql # not compatible
query I rowsort label-3509
SELECT + col1 / - col2 + col0 + + ( - col2 ) - - col1 + - + col0 * + col1 AS col2 FROM tab0
----
-1167
-1731
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + 19 - + COUNT( * ) col2 FROM tab2
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT ALL + 19 - + COUNT ( * ) col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL 10 + + SUM( ALL - col1 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 10 + + SUM ( ALL - col1 ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL + 88 * - - COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + 88 * - - COUNT ( * ) FROM tab2 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL MAX( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - - 98 - - - SUM( DISTINCT + 99 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - 98 - - - SUM ( DISTINCT + 99 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 62 AS col2 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT 73 - - - 94 + + COUNT( * ), + 44 AS col1 FROM tab0
----
-18
44

skipif mysql # not compatible
query II rowsort label-3516
SELECT 73 - - - 94 + + COUNT ( * ), + 44 AS col1 FROM tab0
----
-18
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT col1 DIV - + ( - + col2 ) - + col2 AS col1 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3517
SELECT col1 / - + ( - + col2 ) - + col2 AS col1 FROM tab2
----
-21
-39
-57

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL - col2 DIV + - 23 AS col2 FROM tab1 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - col2 / + - 23 AS col2 FROM tab1 AS cor0
----
2
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - MIN( ALL 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - MIN ( ALL 2 ) FROM tab1
----
-2

query I rowsort
SELECT ALL + - 76 + + col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 NOT BETWEEN + 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3524
SELECT 50 DIV + CAST( - col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT 50 / + CAST ( - col0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT COUNT( ALL + + 26 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT COUNT ( ALL + + 26 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + 15 AS col2, 98 FROM tab2
----
15
98
15
98
15
98

query II rowsort
SELECT ALL + col1, 64 FROM tab2
----
51
64
67
64
77
64

query I rowsort
SELECT DISTINCT + 86 * - col2 * - - 44 AS col1 FROM tab1
----
-223256
-257312
-363264

query I rowsort
SELECT ALL - ( + ( + col1 ) ) * + 33 * + + col2 FROM tab1
----
-105468
-44352
-9735

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 16 * - COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3530
SELECT 16 * - COUNT ( * ) FROM tab0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT DISTINCT - - col1 DIV - 77 + - 86 AS col0 FROM tab2 AS cor0
----
-86
-87

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - - col1 / - 77 + - 86 AS col0 FROM tab2 AS cor0
----
-86
-87

query II rowsort
SELECT DISTINCT 24, col2 AS col1 FROM tab1 cor0
----
24
59
24
68
24
96

query I rowsort
SELECT ALL - ( + + 19 ) FROM tab1 AS cor0
----
-19
-19
-19

query II rowsort
SELECT DISTINCT + 80 AS col0, + col0 AS col0 FROM tab0 AS cor0
----
80
15
80
87
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3536
SELECT ALL + - ( - col0 ) + + - 46 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + - ( - col0 ) + + - 46 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 58 * ( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 58 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + 97 * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col2 AS col0, 54 col1 FROM tab2 AS cor0
----
-28
54
-37
54
-9
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT - - 10 DIV - col1 + + ( + + 77 ) FROM tab0 AS cor0
----
67
77

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - - 10 / - col1 + + ( + + 77 ) FROM tab0 AS cor0
----
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 + - col1 col0, + 30 * - ( 76 ) AS col0 FROM tab0 AS cor0
----
-60
-2280
0
-2280
20
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 11 * - - MIN( DISTINCT col1 ) + + COUNT( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 11 * - - MIN ( DISTINCT col1 ) + + COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 41 FROM tab0 cor0
----
128
138
56

query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col0 * - + col2 AS col0 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT col2 * + 86 * - col0 AS col2, 26 AS col0 FROM tab1 AS cor0
----
-421056
26
-431290
26
-532168
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT CAST( + - 41 AS SIGNED ) FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-3550
SELECT CAST ( + - 41 AS INTEGER ) FROM tab0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - + COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT - + COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + + col2 FROM tab0 AS cor0 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL + + 73 * col1 - + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-6036
-9336
5688

query I rowsort
SELECT - 96 + + col1 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT ALL 63 - - 94 * - col2 AS col0 FROM tab0 AS cor0
----
-4355
-877
-9243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 72 + - CAST( NULL AS SIGNED ) - + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3556
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - 72 + - CAST ( NULL AS INTEGER ) - + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col2 + 91 FROM tab1 AS cor0
----
51
-5
85
32
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - 68 - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-3558
SELECT - 68 - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + + col2 * + - col2 * 85 AS col2 FROM tab2 AS cor0
----
-136000
-285940
-44965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + col1 * + col0 * - col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-125375
-13669292
-959616

skipif mysql # not compatible
query I rowsort label-3561
SELECT + col1 * + col0 * - col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-125375
-13669292
-959616

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + - 76 * COUNT( * ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + - 76 * COUNT ( * ) FROM tab2 AS cor0
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3564
SELECT ALL - 68 * + ( - - 0 ) + 83 + + CAST( NULL AS SIGNED ) + + col2 + + col0 + + + col0 + col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL - 68 * + ( - - 0 ) + 83 + + CAST ( NULL AS INTEGER ) + + col2 + + col0 + + + col0 + col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - 25 * + col2 AS col1 FROM tab0
----
-1175
-2475
-250

query I rowsort
SELECT DISTINCT - col2 * - 62 AS col2 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT + col1 * col1 * - col0 AS col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT - 32 * + 87 * col2 FROM tab2
----
-111360
-161472
-64032

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( - 16 ) NOT BETWEEN 4 / + col0 AND + 16 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT - COUNT( * ) * + 98 AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-3570
SELECT - COUNT ( * ) * + 98 AS col1 FROM tab2
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT ALL 58 DIV - + COUNT( * ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 58 / - + COUNT ( * ) AS col0 FROM tab1
----
-19

query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT - 13 IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT ALL - col1 DIV + - 28 col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3573
SELECT ALL - col1 / + - 28 col2 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT DISTINCT - COUNT( * ) AS col0, 29 FROM tab2
----
-3
29

skipif mysql # not compatible
query II rowsort label-3574
SELECT DISTINCT - COUNT ( * ) AS col0, 29 FROM tab2
----
-3
29

query I rowsort
SELECT - - 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ( 66 ) AS col2 FROM tab1
----
66
66
66

query II rowsort
SELECT - 25 AS col2, + col1 FROM tab0 AS cor0
----
-25
1
-25
21
-25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL MIN( + 79 ) + 6 AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL MIN ( + 79 ) + 6 AS col0 FROM tab2 AS cor0
----
85

query II rowsort
SELECT ALL + col1 AS col1, - col0 + - col0 FROM tab1 AS cor0
----
14
-102
47
-182
5
-170

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + 21 ) AS col2 FROM tab0 cor0
----
21

query I rowsort
SELECT DISTINCT - 24 - + + 93 + - 14 AS col2 FROM tab0 AS cor0
----
-131

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 15 = + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - + SUM( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
223

query I rowsort
SELECT + col2 + + ( - col0 ) AS col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 19 + col0
----

query I rowsort
SELECT ( - ( + ( + col0 ) ) ) AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3589
SELECT DISTINCT * FROM tab1 WHERE + - CAST( + - col1 AS SIGNED ) * col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3589
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( + - col1 AS INTEGER ) * col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL 78 * + 96 + + COUNT( * ) FROM tab1
----
7491

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL 78 * + 96 + + COUNT ( * ) FROM tab1
----
7491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT 49 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT 49 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3592
SELECT DISTINCT - COUNT( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + COUNT( ALL - - 52 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( ALL - - 52 ) AS col1 FROM tab0 AS cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT 45 * - col1 FROM tab0
----
-3645
-45
-945

query III rowsort
SELECT * FROM tab2 WHERE NOT + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 / - + 56 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20 col1, + col0 + col2 FROM tab1 cor0
----
20
144
20
147
20
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL MIN( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL MIN ( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3600
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - - CAST( - col1 AS SIGNED ) <= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3600
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - - CAST ( - col1 AS INTEGER ) <= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + SUM( DISTINCT + - 33 ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + SUM ( DISTINCT + - 33 ) AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + 0 * 3 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3604
SELECT + 48 DIV - col0 + 73 + + col0 AS col2, col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 + + - 97 DIV - - col0 * col0 + 81 = + ( + + col2 ) + 54
----
160
10
170
99
85
47

skipif mysql # not compatible
query II rowsort label-3604
SELECT + 48 / - col0 + 73 + + col0 AS col2, col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 + + - 97 / - - col0 * col0 + 81 = + ( + + col2 ) + 54
----
160
10
170
99
85
47

query II rowsort
SELECT DISTINCT + - col0 AS col1, 32 FROM tab1 AS cor0
----
-51
32
-85
32
-91
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT col0 AS col2, - col0 + + col0 AS col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL COUNT( * ) * + + 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL COUNT ( * ) * + + 2 FROM tab2
----
6

query I rowsort
SELECT ( + - 52 ) FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - + SUM( - - 66 ) * 53 FROM tab1 AS cor0
----
-10494

skipif mysql # not compatible
query I rowsort label-3610
SELECT - + SUM ( - - 66 ) * 53 FROM tab1 AS cor0
----
-10494

query I rowsort
SELECT + col2 + + + 79 + col0 * - - 71 AS col1 FROM tab2
----
3368
4663
5462

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - col1 + + - 10 AS col0, - col2 * + col1 col1 FROM tab0
----
200
-210
3797
-3807
89
-99

query I rowsort
SELECT ALL - col1 - 61 FROM tab0 AS cor0
----
-142
-62
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) + - col1 / - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) + - col1 / - col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * col0 col0 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL col1 + - col2 + - ( - - col0 ) + - 64 * + + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-1441
-260
-5246

query I rowsort
SELECT - - ( + 95 ) FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + MIN( - - 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3620
SELECT + MIN ( - - 88 ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - MAX( + col1 ) * - 65 * 8 AS col1 FROM tab1 cor0
----
24440

skipif mysql # not compatible
query I rowsort label-3621
SELECT - MAX ( + col1 ) * - 65 * 8 AS col1 FROM tab1 cor0
----
24440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL ( + col1 ) - + + CAST( + + 22 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
59

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL ( + col1 ) - + + CAST ( + + 22 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - MAX( - 66 ) * + + 68 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3623
SELECT ALL - MAX ( - 66 ) * + + 68 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT ( 87 ) * CAST( NULL AS SIGNED ) + - col2 * + 64 * 89 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT ( 87 ) * CAST ( NULL AS INTEGER ) + - col2 * + 64 * 89 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 73 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE - 4 IN ( col0, col0, + ( - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL + ( - COUNT( + 64 ) ) * - + COUNT( ALL + 6 ) - - CAST( 74 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + ( - COUNT ( + 64 ) ) * - + COUNT ( ALL + 6 ) - - CAST ( 74 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
155

query II rowsort
SELECT DISTINCT col2, 38 FROM tab2
----
23
38
40
38
58
38

query II rowsort
SELECT - - col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - - col0 * - col1 + col2 - - 5 AS col2 FROM tab2 AS cor0
----
-2318
-4883
-4962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT ALL CAST( - + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT 88 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 84 ) >= - col2 * - - col2 * + - ( 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT - + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + - COUNT( + 79 ) * + + COUNT( * ) * + + 84 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0 + - 74
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT + - COUNT ( + 79 ) * + + COUNT ( * ) * + + 84 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0 + - 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT - + col1 / + + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT - + col1 / + + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3640
SELECT - CAST( NULL AS SIGNED ), - col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3640
SELECT - CAST ( NULL AS INTEGER ), - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 1 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT + - 57, col1 * - 98 AS col0 FROM tab0 WHERE NULL IS NULL
----
-57
-2058
-57
-7938
-57
-98

query III rowsort
SELECT * FROM tab2 WHERE - 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 11 + 59 AS col2 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT MIN( ALL + 29 ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT MIN ( ALL + 29 ) AS col1 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 32 col0 FROM tab2
----
19
35
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT + COUNT( * ) DIV - COUNT( * ) + COUNT( * ) + + 86 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3648
SELECT + COUNT ( * ) / - COUNT ( * ) + COUNT ( * ) + + 86 FROM tab1
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3649
SELECT DISTINCT - col2, + 21 DIV col0 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - col2, + 21 / col0 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL + + 20 AS col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL + - ( - 86 ) * + COUNT( * ) * 47 FROM tab1 cor0
----
12126

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + - ( - 86 ) * + COUNT ( * ) * 47 FROM tab1 cor0
----
12126

query I rowsort
SELECT DISTINCT + 20 + - col0 AS col1 FROM tab1
----
-31
-65
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT COUNT( * ) DIV - 53 - + 28 AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3653
SELECT COUNT ( * ) / - 53 - + 28 AS col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NULL <> col0 + 10
----

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE col1 <> - col0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) + + MAX( + 32 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) + + MAX ( + 32 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - 91 * - 96 + - col2 col0, - col2 FROM tab1 cor0
----
8736
-59
8736
-68
8736
-96

query I rowsort
SELECT col1 * 81 FROM tab1
----
1134
3807
405

query I rowsort
SELECT DISTINCT + - 2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT ALL + 21 DIV - 42 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + 21 / - 42 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 16 ) AS col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL COUNT( * ) * - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT col0 - - CAST( NULL AS SIGNED ) + - col0 * ( - col0 ) NOT BETWEEN NULL AND + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT col0 - - CAST ( NULL AS INTEGER ) + - col0 * ( - col0 ) NOT BETWEEN NULL AND + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * col0 col2 FROM tab1 AS cor0
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + SUM( ALL + + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3665
SELECT + SUM ( ALL + + col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT MIN( + 33 ) col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3666
SELECT MIN ( + 33 ) col2 FROM tab2 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT + col2 DIV ( + col2 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + col2 / ( + col2 ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT col0 * col2, + CAST( - - ( 79 ) AS SIGNED ) * + + col0 * 1 AS col1 FROM tab1
----
4896
4029
5015
6715
6188
7189

skipif mysql # not compatible
query II rowsort label-3668
SELECT col0 * col2, + CAST ( - - ( 79 ) AS INTEGER ) * + + col0 * 1 AS col1 FROM tab1
----
4896
4029
5015
6715
6188
7189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3669
SELECT 4 * - + CAST( NULL AS SIGNED ) * col1 * - col2, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3669
SELECT 4 * - + CAST ( NULL AS INTEGER ) * col1 * - col2, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3671
SELECT DISTINCT COUNT( * ) / + SUM( col2 ) + 26 AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST( NULL AS DECIMAL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT COUNT ( * ) / + SUM ( col2 ) + 26 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST ( NULL AS REAL )
----
NULL
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 13 * + col2 * - 98 + + - col0
----

query I rowsort
SELECT - 38 + + col0 AS col0 FROM tab1 AS cor0
----
13
47
53

query I rowsort
SELECT + col2 + + 35 FROM tab1 AS cor0
----
103
131
94

query I rowsort
SELECT 64 + - 39 FROM tab0 AS cor0
----
25
25
25

query II rowsort
SELECT ALL 29 AS col0, ( + - col0 ) FROM tab0 AS cor0
----
29
-15
29
-87
29
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 BETWEEN + + 51 / col0 AND + 2 * - col0 AND NOT ( 40 ) + + + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + ( + 77 ) ) FROM tab0 AS cor0
----
-77

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 61 = + col1
----

query I rowsort
SELECT + col1 FROM tab1 WHERE 95 >= NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + + col1 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3682
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + + col1 col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + col1 + + col0 <> 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT ALL - 70 + + col1 DIV col1 + + col2 + - col0 FROM tab1 cor0
----
-24
-92
-95

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - 70 + + col1 / col1 + + col2 + - col0 FROM tab1 cor0
----
-24
-92
-95

query II rowsort
SELECT + col0 - - - col1, col0 AS col1 FROM tab0 AS cor0
----
-66
15
66
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MIN( + col0 ) + + COUNT( * ) + MAX( + + 37 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3686
SELECT MIN ( + col0 ) + + COUNT ( * ) + MAX ( + + 37 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - ( + - col0 ) + col2 - - col1 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3688
SELECT + + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col2 ) - - col0 >= NULL
----

query I rowsort
SELECT ( + + 40 ) AS col2 FROM tab2 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col1, + col2, - - 12, - + col1 + - col0 )
----

query II rowsort
SELECT col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT ALL + 69, + ( + + col0 ) AS col2 FROM tab2 AS cor0
----
69
46
69
64
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT + col2 + - - col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3694
SELECT + col2 + - - col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - SUM( ALL - + 10 ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - SUM ( ALL - + 10 ) AS col0 FROM tab1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3696
SELECT - col1 * col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - col1 * col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT 11 * MAX( + 79 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
869

skipif mysql # not compatible
query I rowsort label-3697
SELECT 11 * MAX ( + 79 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT + col0 AS col1 FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) > 65
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3698
SELECT + col0 AS col1 FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) > 65
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3700
SELECT + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col0 * + 74 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + - 44 + + 97 + 57 * - 55 * col0 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - - ( - col1 ) * col0 * col2 + - col1 AS col2 FROM tab2
----
-1241085
-16904167
-7884877

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT SUM( ALL + + 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-3706
SELECT SUM ( ALL + + 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL - 83 DIV col1 - 77 FROM tab1 AS cor0
----
-78
-82
-93

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - 83 / col1 - 77 FROM tab1 AS cor0
----
-78
-82
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT - - MIN( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - - MIN ( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 49 col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col0 IN ( + ( + - 67 ), + col0 * - - col1 )
----

query I rowsort
SELECT 42 * - 2 + col1 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT - 13 + + col2 + + 83 * + col1 * col2 AS col1 FROM tab0
----
17427
316015
8303

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL COUNT( ( - col1 ) ) + + - 77 + COUNT( * ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( ( - col1 ) ) + + - 77 + COUNT ( * ) AS col2 FROM tab0
----
-71

query I rowsort
SELECT col1 * - col2 + - col2 AS col0 FROM tab2 WHERE col2 + + col2 >= NULL
----

query I rowsort
SELECT - ( - + col0 ) + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT 57 AS col0, 58 AS col1 FROM tab2 AS cor0
----
57
58
57
58
57
58

query I rowsort
SELECT DISTINCT + + 2 * + col2 + col1 + col0 FROM tab1 AS cor0
----
208
257
274

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT DISTINCT - col1 + - + CAST( NULL AS SIGNED ) AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + col0 NOT BETWEEN NULL AND + - 63
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 30 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 * - - col1 AS col2 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE + 36 NOT BETWEEN col1 AND NULL
----
47

query I rowsort
SELECT - col0 * - + 6 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3725
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / CAST( NULL AS DECIMAL ) >= col1
----

skipif mysql # not compatible
query III rowsort label-3725
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / CAST ( NULL AS REAL ) >= col1
----

query I rowsort
SELECT 33 * - col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT - col0 * + 18 AS col2 FROM tab1
----
-1530
-1638
-918

query II rowsort
SELECT 19 AS col2, 75 + + 6 AS col2 FROM tab0
----
19
81
19
81
19
81

query I rowsort
SELECT 2 * + ( - col0 ) AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3730
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL - col0 * - col2 * + - col2 * - col1 FROM tab0
----
182700
2683935
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT MIN( - - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3732
SELECT MIN ( - - col1 ) AS col1 FROM tab1
----
5

query II rowsort
SELECT 37 AS col0, - col2 FROM tab2
----
37
-23
37
-40
37
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 * - 22 col1 FROM tab0 AS cor0
----
1452
1452
1452

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3735
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT + 20 / CAST( NULL AS DECIMAL ) = ( - + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3735
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT + 20 / CAST ( NULL AS REAL ) = ( - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col0 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 39 AND ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col1 FROM tab0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 + + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN 96 * - 26 AND - col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 60 * col0 AS col0 FROM tab2
----
2760
3840
4500

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 99 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT ALL 16 + + ( - 0 ) DIV - 39 FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 16 + + ( - 0 ) / - 39 FROM tab1
----
16
16
16

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + col1 * - col1 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + col1 * - col1 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + ( + 5 ) * - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + ( + 5 ) * - COUNT ( * ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT ALL - col2 + - col2 DIV col0 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - col2 + - col2 / col0 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT + 45 + - SUM( col0 ) * - 59 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2 * + CAST( col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + 45 + - SUM ( col0 ) * - 59 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2 * + CAST ( col0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - col0 * ( + 0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3750
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3751
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 13 IS NULL
----
51
85
91

query I rowsort
SELECT 50 FROM tab1 WHERE ( NULL ) IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MAX( ALL - 69 ) + 77 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( ALL - 69 ) + 77 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( + col0 ) + 84 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( + col0 ) + 84 FROM tab2
----
87

query I rowsort
SELECT - ( + 64 ) + + 46 FROM tab1
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col0 NOT BETWEEN - col1 + - 88 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT ALL - CAST( ( + 75 ) AS SIGNED ) AS col1 FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - CAST ( ( + 75 ) AS INTEGER ) AS col1 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT 98 FROM tab2 WHERE NOT NULL <= ( col0 * col2 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) * + MAX( ALL ( - col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) * + MAX ( ALL ( - col0 ) ) FROM tab1
----
0

query I rowsort
SELECT + col1 - - col1 AS col1 FROM tab1 WHERE 79 >= col0
----
28

query I rowsort
SELECT DISTINCT - col2 * - 56 AS col0 FROM tab0
----
2632
5544
560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT + 45 DIV - 99 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 45 / - 99 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT 35 + - 80 DIV - col2 FROM tab0
----
35
36
43

skipif mysql # not compatible
query I rowsort label-3765
SELECT 35 + - 80 / - col2 FROM tab0
----
35
36
43

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( ( col2 ) / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT - COUNT( * ) + + 31 AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - COUNT ( * ) + + 31 AS col0 FROM tab1
----
28

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 93
----

query I rowsort
SELECT + 74 - + col2 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT col1 * 48 + - 26 FROM tab2 AS cor0
----
2422
3190
3670

query I rowsort
SELECT ALL 10 - - col0 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE + col2 * - col2 - 1 <> NULL
----

query I rowsort
SELECT + col0 + 43 FROM tab2 AS cor0
----
107
118
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL SUM( ALL 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL SUM ( ALL 28 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT + 57 + col2 AS col0 FROM tab0 cor0
----
104
156
67

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2 WHERE NOT - 97 * - col1 < col1 * + col1
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3778
SELECT - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT 39 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3778
SELECT - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT 39 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL COUNT( 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL COUNT ( 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL AVG ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT - 60 NOT BETWEEN NULL AND - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + SUM( + col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3781
SELECT + SUM ( + col0 ) AS col1 FROM tab2 cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col2 ) <> NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * 62 col0 FROM tab2 AS cor0
----
1426
2480
3596

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 82 * 51 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 86 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + 17 AND - col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + 17 AND - col0 * + col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT COUNT( + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + 23 * - COUNT( * ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + 23 * - COUNT ( * ) AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + - COUNT( * ) + + ( 70 ) - - 38 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3794
SELECT + - COUNT ( * ) + + ( 70 ) - - 38 AS col2 FROM tab1 AS cor0
----
105

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> ( 63 ) + ( ( + ( 26 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL <> ( 63 ) + ( ( + ( 26 ) ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + 98 < ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( NULL NOT IN ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( NULL NOT IN ( col2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL 41 * - ( - ( CAST( NULL AS SIGNED ) ) ) + col1 / - 60 FROM tab0 AS cor0 WHERE NOT 90 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL 41 * - ( - ( CAST ( NULL AS INTEGER ) ) ) + col1 / - 60 FROM tab0 AS cor0 WHERE NOT 90 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 9 + - 68 + 22 ) BETWEEN NULL AND - CAST( NULL AS SIGNED ) * 74 - col2
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 9 + - 68 + 22 ) BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * 74 - col2
----

query II rowsort
SELECT 99 AS col0, col0 FROM tab2 AS cor0
----
99
46
99
64
99
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT - - CAST( + AVG ( + ( + col2 ) ) AS SIGNED ) * 73 FROM tab0 cor0
----
3796

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - CAST ( + AVG ( + ( + col2 ) ) AS INTEGER ) * 73 FROM tab0 cor0
----
3796

query I rowsort
SELECT ALL + col1 * - 3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-243
-3
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 / + col1 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + col1 * - - 88 AS col1 FROM tab2 AS cor0
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + + ( - 18 ) FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * - 12 col1 FROM tab1 AS cor0
----
-936
-936
-936

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL col1 * 77 FROM tab2 WHERE ( col0 + - + col2 ) IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3815
SELECT * FROM tab2 WHERE 77 + col0 / 23 BETWEEN - CAST( NULL AS SIGNED ) AND ( 38 )
----

skipif mysql # not compatible
query III rowsort label-3815
SELECT * FROM tab2 WHERE 77 + col0 / 23 BETWEEN - CAST ( NULL AS INTEGER ) AND ( 38 )
----

query I rowsort
SELECT col0 + + 57 * + 19 AS col2 FROM tab0
----
1098
1170
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL COUNT( * ) * - 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL COUNT ( * ) * - 63 FROM tab2
----
-189

query I rowsort
SELECT - col0 + + ( + - col2 ) FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + 19 * + col2 + + - 41 * - col1 AS col2 FROM tab0
----
1051
1922
4214

query II rowsort
SELECT DISTINCT col1 + - col0, + col1 AS col2 FROM tab1
----
-37
14
-44
47
-80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT 70 + - - MIN( ALL - 79 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3821
SELECT 70 + - - MIN ( ALL - 79 ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL COUNT( * ) - - 36 AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL COUNT ( * ) - - 36 AS col1 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) <> ( - col0 ) + + CAST( + 26 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) <> ( - col0 ) + + CAST ( + 26 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT DISTINCT - COUNT( * ) + - + 60 AS col2, ( 59 ) + - 88 AS col0 FROM tab2
----
-63
-29

skipif mysql # not compatible
query II rowsort label-3826
SELECT DISTINCT - COUNT ( * ) + - + 60 AS col2, ( 59 ) + - 88 AS col0 FROM tab2
----
-63
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 75 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 75 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 67 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL - col2 + + CAST( - 59 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - col2 + + CAST ( - 59 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + 39 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 38 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3833
SELECT 38 / + col2 FROM tab0
----
0
0
3

query II rowsort
SELECT col0 * + ( - - col1 ) AS col0, col0 FROM tab0 cor0
----
1215
15
1827
87
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 76 * col1 + - 45 AS col1, col0 - col0 + + col1 AS col0 FROM tab0 AS cor0
----
1551
21
31
1
6111
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25, col1 col2 FROM tab2 AS cor0
----
25
51
25
67
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL MAX ( col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT 62 col1, - COUNT( DISTINCT - + 26 ) AS col0 FROM tab1
----
62
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3840
SELECT 62 col1, - COUNT ( DISTINCT - + 26 ) AS col0 FROM tab1
----
62
-1

query I rowsort
SELECT - ( 39 ) FROM tab0
----
-39
-39
-39

query I rowsort
SELECT col0 * - 33 * + 16 FROM tab0
----
-45936
-51216
-7920

query I rowsort
SELECT ALL col0 * 88 + + col1 AS col1 FROM tab0
----
1401
7677
8537

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - ( + + COUNT( ALL - - col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3844
SELECT - ( + + COUNT ( ALL - - col2 ) ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT ALL - col1, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT - 0, col2 FROM tab2 cor0
----
0
23
0
40
0
58

query I rowsort
SELECT + 27 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3848
SELECT DISTINCT - 17 - + AVG ( ALL + ( - col2 ) ) + - ( + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 17 - + AVG ( ALL + ( - col2 ) ) + - ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 37 AS col0 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT - col2 * + col1 + + col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-2346
-6160
-7772

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - - 53 - + + SUM( ALL col1 ) col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL - - 53 - + + SUM ( ALL col1 ) col0 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ALL - - CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - - CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 * + col0, + col1 + - - 81 )
----

query I rowsort
SELECT DISTINCT col0 + - 64 * - - 98 * + col1 FROM tab0
----
-131625
-508017
-6175

query I rowsort
SELECT + ( + + col0 ) * + + 38 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL - 50 + col1 FROM tab2
----
1
17
27

query I rowsort
SELECT - 10 - - 80 FROM tab0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 AS col1, + col2 * + 72 + + col1 col1 FROM tab0
----
60
3465
60
7129
60
741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL - col1 - + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - col1 - + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + + col0 NOT IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 69 * + 88 - + - 37 FROM tab2 AS cor0
----
6109

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col0 * + col1 * - col0 FROM tab2 AS cor0
----
107387
313792
373511

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + MAX( DISTINCT - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3864
SELECT + MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + 15, + col2 )
----

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + 15, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + - COUNT( * ) * - - 87 AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3866
SELECT + - COUNT ( * ) * - - 87 AS col2 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT - + 24 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3868
SELECT MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT + 63 DIV - COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 63 / - COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 23 * col2 AS col1 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT ALL - col1 DIV - 42 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - col1 / - 42 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3872
SELECT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - col1 * + - col2 - 67 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - col0 NOT BETWEEN 17 AND NULL OR NOT - col2 BETWEEN ( + 64 ) AND 18 + + CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - col0 NOT BETWEEN 17 AND NULL OR NOT - col2 BETWEEN ( + 64 ) AND 18 + + CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 * - 52 - - - ( - + 34 ) * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + - 93 * 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL + ( COUNT( * ) ) + SUM( DISTINCT 4 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + ( COUNT ( * ) ) + SUM ( DISTINCT 4 ) AS col0 FROM tab2
----
7

query I rowsort
SELECT ALL col1 + - + col1 - + col2 * - 84 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL 21 * + 64 FROM tab0
----
1344
1344
1344

query I rowsort
SELECT DISTINCT ( - + 82 ) AS col0 FROM tab2
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( - col2 ) col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 12 BETWEEN - - col1 AND + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3885
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT ALL - col0 + - + col0 AS col0 FROM tab1
----
-102
-170
-182

query II rowsort
SELECT + 30 AS col1, - 88 AS col2 FROM tab2
----
30
-88
30
-88
30
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL - SUM( DISTINCT + col2 ) - 96 AS col1 FROM tab2 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL - SUM ( DISTINCT + col2 ) - 96 AS col1 FROM tab2 AS cor0
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT + 38 DIV + 69 * - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 38 / + 69 * - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IS NULL AND NOT NULL BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 92 + - COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 92 + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - ( col2 ) + - col0 * CAST( 73 AS SIGNED ) AS col2 FROM tab0
----
-1142
-6361
-7180

skipif mysql # not compatible
query I rowsort label-3893
SELECT - ( col2 ) + - col0 * CAST ( 73 AS INTEGER ) AS col2 FROM tab0
----
-1142
-6361
-7180

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - 25 DIV 73 DIV + + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 25 / 73 / + + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3895
SELECT + COUNT( * ) DIV - CAST( + 46 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) / - CAST ( + 46 AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * + 73 AS col2 FROM tab1
----
3723
6205
6643

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 45 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col1 * - ( 13 ) * 91 FROM tab2 AS cor0
----
-60333
-79261
-91091

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( ALL col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( ALL col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - 76 * - col2 * - 86 AS col0 FROM tab1 AS cor0
----
-385624
-444448
-627456

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3902
SELECT ALL * FROM tab1 WHERE NOT - 40 + + + CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3902
SELECT ALL * FROM tab1 WHERE NOT - 40 + + + CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 77 + + + 38 AS col1 FROM tab1 WHERE NOT col1 + col2 + - 81 - + + 51 * + ( col1 ) >= + + 76
----
115
115
115

query I rowsort
SELECT DISTINCT + - 24 * + - col2 - + + col1 AS col1 FROM tab2 cor0
----
1325
501
883

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 = NULL
----

query I rowsort
SELECT + col0 + - 24 AS col2 FROM tab1 AS cor0
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + - SUM( - + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + - SUM ( - + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( 0 ) * 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3908
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( 0 ) * 86 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT + + MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + + MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 29, + 97 AS col0 FROM tab2 AS cor0
----
-29
97
-29
97
-29
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL MIN( + col1 ) * + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL MIN ( + col1 ) * + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2
----
156

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - col1 = + + col1 + + 78
----

query II rowsort
SELECT DISTINCT col0 + + - col0, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT + col0 DIV - + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + col0 / - + col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT + 61 + - + COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 61 + - + COUNT ( * ) AS col2 FROM tab1
----
58

query I rowsort
SELECT DISTINCT col1 - 41 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT COUNT( * ) + - 23 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( * ) + - 23 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 38 + + MIN( DISTINCT - - 73 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 38 + + MIN ( DISTINCT - - 73 ) FROM tab2 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + SUM( 33 ) FROM tab0, tab2 AS cor0 WHERE NOT - 97 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT + SUM ( 33 ) FROM tab0, tab2 AS cor0 WHERE NOT - 97 <> NULL
----
NULL

query II rowsort
SELECT 75 AS col0, - col1 AS col0 FROM tab1 cor0
----
75
-14
75
-47
75
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT DISTINCT - 13 - - COUNT( - - 66 ) col1, + 36 AS col0 FROM tab0 AS cor0
----
-10
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3923
SELECT DISTINCT - 13 - - COUNT ( - - 66 ) col1, + 36 AS col0 FROM tab0 AS cor0
----
-10
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - + ( + 21 ) - - 24 - - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - + ( + 21 ) - - 24 - - MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * - 41 + col1 - - 25 AS col1 FROM tab2 AS cor0
----
-2015
-2655
-3055

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT + + MIN( ALL + col1 ) * + - COUNT( * ) AS col0, 71 * + 69 AS col1 FROM tab2 AS cor0
----
-153
4899

skipif mysql # not compatible
query II rowsort label-3926
SELECT + + MIN ( ALL + col1 ) * + - COUNT ( * ) AS col0, 71 * + 69 AS col1 FROM tab2 AS cor0
----
-153
4899

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT ALL - 95, COUNT( - 97 ) AS col0 FROM tab1
----
-95
3

skipif mysql # not compatible
query II rowsort label-3927
SELECT ALL - 95, COUNT ( - 97 ) AS col0 FROM tab1
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - SUM( + 73 ) AS col0 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - SUM ( + 73 ) AS col0 FROM tab2
----
-219

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * col2 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + MIN( DISTINCT col0 ) * + + MIN( DISTINCT - col1 ) FROM tab2
----
-3542

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + MIN ( DISTINCT col0 ) * + + MIN ( DISTINCT - col1 ) FROM tab2
----
-3542

query I rowsort
SELECT col0 * - ( - - col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 84 >= - col1 + col0
----

query II rowsort
SELECT + 13 * - col1 + col2 AS col0, - col0 AS col1 FROM tab0 WHERE NOT - ( - 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + MAX( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-3935
SELECT + MAX ( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT ALL + col2 * - + col2 + + - col1 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-531
-8723
-9703

query I rowsort
SELECT - 93 * + col0 + + 83 AS col2 FROM tab2 AS cor0
----
-4195
-5869
-6892

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + MAX( ALL - col1 ) * + 24 + + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3938
SELECT + MAX ( ALL - col1 ) * + 24 + + COUNT ( * ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ( + + col1 ) * - + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-3

query I rowsort
SELECT ( + col1 ) * + 77 AS col0 FROM tab2 cor0
----
3927
5159
5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 56 < NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 53 + + 95 - 80 * col0 * 99 AS col0 FROM tab0
----
-118652
-688892
-768092

query I rowsort
SELECT 86 + + - 16 FROM tab2
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT col1 + - 5 DIV + 84 col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3946
SELECT col1 + - 5 / + 84 col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 51 + 8 - + + col0 * + col1 + - 51 AS col1 FROM tab2
----
-2338
-4920
-5017

query I rowsort
SELECT col1 + - 52 FROM tab1
----
-38
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3949
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN CAST( + col1 AS DECIMAL ) + col2 + - 64 * - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN CAST ( + col1 AS REAL ) + col2 + - 64 * - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT col0 + - col1 + + col0 + + col0 DIV 9 FROM tab2 AS cor0
----
46
58
91

skipif mysql # not compatible
query I rowsort label-3950
SELECT col0 + - col1 + + col0 + + col0 / 9 FROM tab2 AS cor0
----
46
58
91

query I rowsort
SELECT - 44 + + col2 AS col2 FROM tab2 cor0
----
-21
-4
14

query I rowsort
SELECT 87 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col1 - - 61 AS col2 FROM tab0
----
142
62
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - 42 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7581a2ef7efd668e72a74432a2e2e3a1

query I rowsort
SELECT ALL col1 + - 2 AS col1 FROM tab1 cor0
----
12
3
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL - - CAST( - - 96 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - - CAST ( - - 96 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT 75 DIV col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3958
SELECT 75 / col0 AS col1 FROM tab0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3959
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 + + col1 + + + col0 / - - ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 + + col1 + + + col0 / - - ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3960
SELECT + 10 AS col0, ( + + SUM( ALL + 14 ) ) FROM tab2
----
10
42

skipif mysql # not compatible
query II rowsort label-3960
SELECT + 10 AS col0, ( + + SUM ( ALL + 14 ) ) FROM tab2
----
10
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3962
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3962
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - ( - SUM( DISTINCT - col2 ) ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - ( - SUM ( DISTINCT - col2 ) ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL MIN( - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL MIN ( - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT CAST( NULL AS SIGNED ) * + 39 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT CAST ( NULL AS INTEGER ) * + 39 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * - ( - col2 ) FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL - CAST( - col0 AS SIGNED ) + + - 78 + 2 * - 72 AS col1 FROM tab2 AS cor0
----
-147
-158
-176

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - CAST ( - col0 AS INTEGER ) + + - 78 + 2 * - 72 AS col1 FROM tab2 AS cor0
----
-147
-158
-176

query I rowsort
SELECT ALL - 53 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 + - + col1 IS NULL OR NOT - col2 IS NOT NULL
----
-53
-53
-53

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( + ( - col2 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3971
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT + - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0 WHERE - 48 = NULL
----

skipif mysql # not compatible
query I rowsort label-3972
SELECT + - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 WHERE - 48 = NULL
----

query I rowsort
SELECT 7 + 77 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT - CAST( - col1 AS SIGNED ) * + 23 AS col0 FROM tab0 AS cor0
----
1863
23
483

skipif mysql # not compatible
query I rowsort label-3974
SELECT - CAST ( - col1 AS INTEGER ) * + 23 AS col0 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - ( + + col1 ) * + + 33 FROM tab0 AS cor0
----
3200
40014
60270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 82 + - ( + - col2 ) * + col1 + + 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3978
SELECT DISTINCT * FROM tab2 WHERE - + ( + col2 ) BETWEEN 48 AND ( CAST( 53 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3978
SELECT DISTINCT * FROM tab2 WHERE - + ( + col2 ) BETWEEN 48 AND ( CAST ( 53 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL + COUNT( * ) * + MIN( DISTINCT col0 ) + - + ( - 74 ) * 88 AS col1 FROM tab1
----
6665

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT col0 ) + - + ( - 74 ) * 88 AS col1 FROM tab1
----
6665

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + MIN( ALL + 8 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3980
SELECT + MIN ( ALL + 8 ) AS col1 FROM tab2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( + 98 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + 98 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + ( + - 63 ) FROM tab1
----
-16
-49
-58

query II rowsort
SELECT col1 + + + col1 AS col1, col2 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
102
23
134
58
154
40

query I rowsort
SELECT col2 * + col0 - - - col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 75 - - 30 - MAX( DISTINCT 69 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 75 - - 30 - MAX ( DISTINCT 69 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + + ( - 94 ) - - COUNT( * ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + + ( - 94 ) - - COUNT ( * ) FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-3987
SELECT + 18 + + col0, 97 DIV + col2 AS col0 FROM tab2 AS cor0
----
64
4
82
2
93
1

skipif mysql # not compatible
query II rowsort label-3987
SELECT + 18 + + col0, 97 / + col2 AS col0 FROM tab2 AS cor0
----
64
4
82
2
93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - - 44 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - - 44 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT - col1 + col2 FROM tab1 AS cor0 WHERE NULL = 64
----

query I rowsort
SELECT + 7 + + 52 * - 83 * + col0 FROM tab2 AS cor0
----
-198529
-276217
-323693

query I rowsort
SELECT DISTINCT + 83 + 82 AS col0 FROM tab0
----
165

query I rowsort
SELECT DISTINCT - col1 + + - 86 FROM tab0
----
-107
-167
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3993
SELECT DISTINCT - 6 + - col0 DIV 11 AS col1, col2 AS col2 FROM tab1
----
-10
96
-13
59
-14
68

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT - 6 + - col0 / 11 AS col1, col2 AS col2 FROM tab1
----
-10
96
-13
59
-14
68

query I rowsort
SELECT ALL col2 * + + col0 + 41 AS col0 FROM tab2
----
1099
2601
4391

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT SUM( + 15 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT SUM ( + 15 ) FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - COUNT( + + 97 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3998
SELECT - COUNT ( + + 97 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 94 - + col2 + 59 / + 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 13 col2 FROM tab2 AS cor0
----
299
520
754

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 51
----

query II rowsort
SELECT 81, + col1 FROM tab1 AS cor0
----
81
14
81
47
81
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4003
SELECT + COUNT( DISTINCT + + CAST( col1 AS SIGNED ) ) AS col0, MIN( col2 ) * + 95 AS col2 FROM tab1 AS cor0
----
3
5605

skipif mysql # not compatible
query II rowsort label-4003
SELECT + COUNT ( DISTINCT + + CAST ( col1 AS INTEGER ) ) AS col0, MIN ( col2 ) * + 95 AS col2 FROM tab1 AS cor0
----
3
5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT 68 + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT 68 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( NULL IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( - - 80 ) AS col1, - col2 FROM tab0
----
-80
-10
-80
-47
-80
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4008
SELECT col1 DIV + col2, 30 AS col0 FROM tab2
----
1
30
1
30
2
30

skipif mysql # not compatible
query II rowsort label-4008
SELECT col1 / + col2, 30 AS col0 FROM tab2
----
1
30
1
30
2
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 32 + - col0 = - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab0 WHERE NOT ( NOT col2 - + col0 / 14 + 21 IS NULL )
----

query I rowsort
SELECT + col1 * - + 41 * - 17 * - - ( col2 ) AS col1 FROM tab0
----
146370
2653479
69003

query II rowsort
SELECT + 63 * + col0, col2 AS col2 FROM tab0
----
5481
10
6111
99
945
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE NOT col1 + + 6 + + 35 + - - 79 / - col0 * + col0 + - - 16 <= - 71
----
-3

skipif mysql # not compatible
query I rowsort label-4013
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 + + 6 + + 35 + - - 79 / - col0 * + col0 + - - 16 <= - 71
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT - ( + - MIN( ALL - ( 9 ) ) ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT - ( + - MIN ( ALL - ( 9 ) ) ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-4015
SELECT ALL - col0 DIV - col0 AS col0, - 45 + + col2 AS col1 FROM tab1 cor0
----
1
14
1
23
1
51

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL - col0 / - col0 AS col0, - 45 + + col2 AS col1 FROM tab1 cor0
----
1
14
1
23
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 43 * 84 * - CAST( 29 AS SIGNED ) * + col0 * + + 95, - col0, + 34 * col0 - - 30, CAST( NULL AS SIGNED ) + - - col1, - col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 43 * 84 * - CAST ( 29 AS INTEGER ) * + col0 * + + 95, - col0, + 34 * col0 - - 30, CAST ( NULL AS INTEGER ) + - - col1, - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT COUNT( * ) + + - 38 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT COUNT ( * ) + + - 38 FROM tab0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + SUM( + 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4018
SELECT + SUM ( + 42 ) FROM tab1
----
126

query I rowsort
SELECT - ( + + 22 ) AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 AS col2, col1 * + + 94 * - col0 col2 FROM tab0 AS cor0
----
60
-114210
60
-171738
60
-9118

query I rowsort
SELECT ALL - 22 * - col1 AS col2 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * - 81 IS NOT NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + 51 * + COUNT( * ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + 51 * + COUNT ( * ) AS col2 FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT CAST( - col2 AS SIGNED ) + - col2 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-4025
SELECT CAST ( - col2 AS INTEGER ) + - col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT - 34 + - 86 AS col1 FROM tab0
----
-120
-120
-120

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4027
SELECT + + col0 + - CAST( NULL AS DECIMAL ) + + 51 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + col0 + - CAST ( NULL AS REAL ) + + 51 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 53 + - + ( + 0 ) FROM tab1
----
53
53
53

query I rowsort
SELECT ALL - 82 + - - 96 * + 72 AS col0 FROM tab0
----
6830
6830
6830

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT col1 * - ( + 17 ) * + 54 + + CAST( + 8 AS SIGNED ) FROM tab0 WHERE - 94 IS NOT NULL
----
-19270
-74350
-910

skipif mysql # not compatible
query I rowsort label-4031
SELECT col1 * - ( + 17 ) * + 54 + + CAST ( + 8 AS INTEGER ) FROM tab0 WHERE - 94 IS NOT NULL
----
-19270
-74350
-910

query I rowsort
SELECT - col1 + + ( col2 ) AS col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT DISTINCT col0 + - col1 + + - CAST( - - col1 AS SIGNED ) FROM tab1
----
-3
23
75

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT col0 + - col1 + + - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-3
23
75

query I rowsort
SELECT ALL + 50 - - 92 AS col2 FROM tab0
----
142
142
142

query II rowsort
SELECT DISTINCT ( - col0 ) * - col2 * - 88 AS col2, col2 * + - 34 + - + ( - + col0 ) FROM tab0 AS cor0 WHERE col1 = ( NULL )
----

query I rowsort
SELECT ALL - col2 * - - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4037
SELECT MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4038
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - - col2 + - col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4038
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - - col2 + - col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( 26 ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - - col1 * + + 35 + col0 AND - col0
----
26
26
26

query I rowsort
SELECT ALL + col0 - - col0 AS col2 FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 50 ) > + 56 / col0 * + col0 + + col0 + - - ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 <= + col1 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + SUM( ALL 24 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4043
SELECT + SUM ( ALL 24 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT DISTINCT - + 23 * COUNT( - col0 ) AS col2 FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - + 23 * COUNT ( - col0 ) AS col2 FROM tab0 cor0
----
-69

query II rowsort
SELECT DISTINCT - 16 AS col1, + col1 + col2 FROM tab0
----
-16
100
-16
128
-16
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4047
SELECT CAST( - col1 AS SIGNED ) * + 67, + 8 AS col1 FROM tab2
----
-3417
8
-4489
8
-5159
8

skipif mysql # not compatible
query II rowsort label-4047
SELECT CAST ( - col1 AS INTEGER ) * + 67, + 8 AS col1 FROM tab2
----
-3417
8
-4489
8
-5159
8

query I rowsort
SELECT ALL ( + 86 ) AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col1 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 93 * + 80 AS col1 FROM tab1
----
7440
7440
7440

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + + 61 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4052
SELECT ALL col0, - CAST( + - col1 AS SIGNED ) FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL col0, - CAST ( + - col1 AS INTEGER ) FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4053
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 NOT BETWEEN + CAST( NULL AS DECIMAL ) * + col1 AND col2 + + + 16 + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 NOT BETWEEN + CAST ( NULL AS REAL ) * + col1 AND col2 + + + 16 + 82 )
----
0

query I rowsort
SELECT - col1 * + col2 * 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1386
-2940
-53298

query II rowsort
SELECT + - col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + 28 + + + col2 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT DISTINCT - 13 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-110
-1228
-1840

query I rowsort
SELECT col1 + + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-2128
-79
-9800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT col2 * - - 49 * - - col1 FROM tab1 AS cor0
----
14455
156604
65856

query I rowsort
SELECT ALL ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + ( + 92 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
92
92
92

query I rowsort
SELECT - + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT DISTINCT + 32, 25 + COUNT( * ) AS col1 FROM tab0
----
32
28

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT + 32, 25 + COUNT ( * ) AS col1 FROM tab0
----
32
28

query III rowsort
SELECT * FROM tab0 WHERE + col0 - 88 <> + - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4066
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) + + CAST( + 33 AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CAST ( + 33 AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + col1 NOT BETWEEN + + col2 + - col0 * + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4069
SELECT - 63 col2, + ( - COUNT( * ) ) + + CAST( + + 8 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-63
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4069
SELECT - 63 col2, + ( - COUNT ( * ) ) + + CAST ( + + 8 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-63
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - SUM( - 51 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4070
SELECT - SUM ( - 51 ) FROM tab2 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col2 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + 75 AS col2, 60 FROM tab0 AS cor0
----
75
60
75
60
75
60

query I rowsort
SELECT DISTINCT - 83 * - + 2 AS col2 FROM tab0
----
166

query I rowsort
SELECT 37 * - - col1 + - - 18 AS col0 FROM tab0 WHERE NOT - 32 <= - col1 + + - col2
----
3015
55

query I rowsort
SELECT ALL + col2 + - - 28 FROM tab2
----
51
68
86

query III rowsort
SELECT + col2 * - col1 AS col2, + col0, - col1 FROM tab1
----
9 values hashing to 0888191793b54576e89662fb5267c9b6

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + MIN( + col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + MIN ( + col2 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT col1 * col1 DIV col0 FROM tab2
----
56
59
92

skipif mysql # not compatible
query I rowsort label-4078
SELECT col1 * col1 / col0 FROM tab2
----
56
59
92

query I rowsort
SELECT + col1 + - ( + 2 ) AS col2 FROM tab2
----
49
65
75

query I rowsort
SELECT DISTINCT + 11 FROM tab2 WHERE NULL BETWEEN + ( col1 ) + + - col1 AND col0
----

query I rowsort
SELECT ALL col0 * + - col2 * + - col2 * - + col0 FROM tab1
----
-23970816
-25150225
-38291344

query I rowsort
SELECT + + col0 + + col1 - + + ( + col1 ) * + + col2 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT col1 < + 41
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT col0 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4085
SELECT col0 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT - 96 - col2 FROM tab1 cor0
----
-155
-164
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - + COUNT( * ) + + 88 AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4087
SELECT - + COUNT ( * ) + + 88 AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab0 cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 + + col2 * - 40 * - col2 * + 30 * + col2 col2 FROM tab1 AS cor0
----
1061683200
246454800
377318400

query I rowsort
SELECT ALL - col1 * - - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL ( - 26 ) AS col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT + 66 + - col1 - col0 FROM tab0 WHERE NULL NOT BETWEEN - col0 * - - col1 * col1 AND NULL
----

query I rowsort
SELECT ALL + col2 + - col1 * + col0 + col1 + - 31 AS col0 FROM tab2
----
-2303
-4842
-4931

query I rowsort
SELECT - + col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab0 WHERE + col2 - 75 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT COUNT( DISTINCT + 72 ) DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( DISTINCT + 72 ) / - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 89 = col1 )
----

query I rowsort
SELECT - col2 * 31 + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1376
-289
-3068

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= - col1
----
97
1
99

query I rowsort
SELECT - 97 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) / - col1 + + 91 + 99 + + 80 + - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - COUNT( * ) * 46 col0 FROM tab1
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4102
SELECT - COUNT ( * ) * 46 col0 FROM tab1
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( NULL AS SIGNED ) / - - 60 / + MIN( + 95 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( NULL AS INTEGER ) / - - 60 / + MIN ( + 95 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 27 * + col2 FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL - COUNT( + - 29 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT ALL - COUNT ( + - 29 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + 93 * + + COUNT( * ) AS col0 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 93 * + + COUNT ( * ) AS col0 FROM tab2
----
279

query I rowsort
SELECT DISTINCT + + 62 * + 48 FROM tab1 AS cor0
----
2976

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 41 * + 23 * - + 12 * 65 + - 33 * - + ( + col2 ) + + 87 - + col2 + col2 * - 7 * + ( col1 ) * + + 21 * col2 + 8 AS col2 FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
-17373485
-3229542
-32394545

query II rowsort
SELECT DISTINCT 4, + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 * + - 65 + - - col1 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - ( + col0 ) col0 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT 62, + col1 FROM tab0
----
62
1
62
21
62
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col0 * + ( - + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4114
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 5 * + col0 * + - col1 FROM tab1
----
-2125
-21385
-3570

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT 51 + - - 79 AS col1 FROM tab2 AS cor0
----
130
130
130

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
3

query I rowsort
SELECT ALL + 24 * 63 + col2 FROM tab1
----
1571
1580
1608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT - 87 DIV - - MAX( + + 15 ) - 75 - 84 + - 40 DIV 7 * COUNT( * ) FROM tab0 AS cor0
----
-179

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 87 / - - MAX ( + + 15 ) - 75 - 84 + - 40 / 7 * COUNT ( * ) FROM tab0 AS cor0
----
-179

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4121
SELECT + 68 * col0 DIV + CAST( + 61 AS SIGNED ) AS col0 FROM tab1 cor0
----
101
56
94

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 68 * col0 / + CAST ( + 61 AS INTEGER ) AS col0 FROM tab1 cor0
----
101
56
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4122
SELECT + col1 + + col0, col1 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4122
SELECT + col1 + + col0, col1 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT CAST( NULL AS SIGNED ) * + - SUM( ALL + 68 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT CAST ( NULL AS INTEGER ) * + - SUM ( ALL + 68 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT + - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT + - col2 / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT + + COUNT( * ) DIV - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4125
SELECT + + COUNT ( * ) / - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT 56 - - COUNT( * ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4126
SELECT 56 - - COUNT ( * ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + col2 - - - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL + - COUNT( * ) col2 FROM tab1 WHERE NOT - col2 - ( + col2 ) * 50 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4128
SELECT ALL + - COUNT ( * ) col2 FROM tab1 WHERE NOT - col2 - ( + col2 ) * 50 = NULL
----
0

query II rowsort
SELECT ALL + 63 AS col2, + 78 FROM tab2
----
63
78
63
78
63
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4130
SELECT * FROM tab1 WHERE NOT - ( + + ( + + 22 ) ) + - ( + - col1 ) / - - 82 IN ( + ( - CAST( NULL AS SIGNED ) ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-4130
SELECT * FROM tab1 WHERE NOT - ( + + ( + + 22 ) ) + - ( + - col1 ) / - - 82 IN ( + ( - CAST ( NULL AS INTEGER ) ), - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT DISTINCT - 27 DIV - col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT - 27 / - col0 FROM tab0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT - 69 * + - 71 + MIN( + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
4909

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 69 * + - 71 + MIN ( + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
4909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + COUNT( * ) + - 65 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4134
SELECT + COUNT ( * ) + - 65 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT - 77 * - 81 AS col0 FROM tab1
----
6237
6237
6237

query I rowsort
SELECT + 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 75 ) col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) / + - 48 <> CAST( + 18 AS SIGNED ) + + 47 * + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) / + - 48 <> CAST ( + 18 AS INTEGER ) + + 47 * + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col1 * - col1 AND 49
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 NOT BETWEEN + 53 + + col0 + col0 + + col2 AND col1 * + ( + + 66 ) * 2 * - - col0 * + 87
----

query I rowsort
SELECT ALL 9 * - - col0 FROM tab0
----
135
783
873

query III rowsort
SELECT * FROM tab0 WHERE + ( - - col0 ) * - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IN ( 94, - col2, - col0 )
----

query I rowsort
SELECT + col1 * col1 + - - col1 FROM tab1
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ALL 29 DIV - ( + col2 ) + 94 AS col0 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 29 / - ( + col2 ) + 94 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT - 37 * - + col0 + + 78 AS col1 FROM tab1
----
1965
3223
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL - SUM( + 13 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - SUM ( + 13 ) FROM tab0
----
-39

query I rowsort
SELECT - col0 * - 84 + - - col2 FROM tab0
----
1307
7318
8247

query I rowsort
SELECT 5 + - - 91 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - 61 * col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT - COUNT( 66 ) * ( 82 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( 66 ) * ( 82 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL + ( + COUNT( * ) ) FROM tab1 WHERE NOT ( + + 95 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( + + 95 ) IS NOT NULL
----
0

query I rowsort
SELECT 74 * - col1 FROM tab0
----
-1554
-5994
-74

query III rowsort
SELECT * FROM tab2 WHERE + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - + 0 + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - + 0 + + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 27 * - COUNT( * ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 27 * - COUNT ( * ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL col0 DIV 56 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL col0 / 56 AS col0 FROM tab0
----
0
1
1

query II rowsort
SELECT ( - col1 ) * - 94 + + 25 - col0, + col1 FROM tab2
----
4773
51
6248
67
7199
77

query I rowsort
SELECT 58 * 87 AS col0 FROM tab0
----
5046
5046
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + COUNT( * ) * - 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-4164
SELECT + COUNT ( * ) * - 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-138

query I rowsort
SELECT ALL + 11 * - ( - - col2 ) AS col1 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT DISTINCT + COUNT( DISTINCT - 37 ) AS col1, 92 * - 12 FROM tab1
----
1
-1104

skipif mysql # not compatible
query II rowsort label-4166
SELECT DISTINCT + COUNT ( DISTINCT - 37 ) AS col1, 92 * - 12 FROM tab1
----
1
-1104

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL BETWEEN - col2 AND NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT + COUNT( * ) DIV + + 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT + COUNT ( * ) / + + 8 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL MAX( DISTINCT - + ( - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL MAX ( DISTINCT - + ( - col2 ) ) FROM tab0
----
99

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + + ( - ( + - col2 ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4172
SELECT ALL * FROM tab0 WHERE NOT + 5 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4172
SELECT ALL * FROM tab0 WHERE NOT + 5 < + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1, col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - 20 * - 85 * 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 38 + - - 72 + - col1 * - + col0 + + 34 FROM tab2 AS cor0
----
2490
5072
5169

query I rowsort
SELECT col1 + - + col2 + + 38 FROM tab2 AS cor0
----
47
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT - 98 - - + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - 98 - - + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-98

query I rowsort
SELECT ALL 38 FROM tab0 AS cor0 WHERE ( NOT 3 * - col2 IS NOT NULL )
----

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4180
SELECT - COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4183
SELECT + MAX( DISTINCT + + col0 ) AS col2, CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-4183
SELECT + MAX ( DISTINCT + + col0 ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - MIN( DISTINCT + ( + col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4184
SELECT - MIN ( DISTINCT + ( + col2 ) ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4186
SELECT ALL * FROM tab1 WHERE NOT col2 - + col1 + + col0 - + col0 * - - CAST( col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4186
SELECT ALL * FROM tab1 WHERE NOT col2 - + col1 + + col0 - + col0 * - - CAST ( col0 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col0 + ( + 24 ) AS col0 FROM tab2 AS cor0
----
-22
-40
-51

query I rowsort
SELECT - col0 * + - col1 * - + 74 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - SUM( col1 ) * + 81 AS col0 FROM tab2 AS cor0
----
-15795

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - SUM ( col1 ) * + 81 AS col0 FROM tab2 AS cor0
----
-15795

query I rowsort
SELECT + col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 19 - - col0 + - 65 * - ( - col0 ) * + 79 + 11 FROM tab1 cor0
----
-261842
-436398
-467202

query I rowsort
SELECT ALL + col0 * 54 - - - col0 + 47 * - + 27 * - - col0 AS col0 FROM tab1 AS cor0
----
-103360
-110656
-62016

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT ALL + 79 * - col1 DIV col1 + - col2 + - col2 FROM tab0 AS cor0
----
-173
-277
-99

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + 79 * - col1 / col1 + - col2 + - col2 FROM tab0 AS cor0
----
-173
-277
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT MAX( ALL col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4195
SELECT MAX ( ALL col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + COUNT( col0 ) * - 13 AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COUNT ( col0 ) * - 13 AS col0 FROM tab2 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT 24 DIV - col2 + col1 FROM tab2 AS cor0
----
50
67
77

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT 24 / - col2 + col1 FROM tab2 AS cor0
----
50
67
77

query II rowsort
SELECT DISTINCT 76, 8 * col1 * + 28 AS col0 FROM tab1 cor0 WHERE NOT + 54 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4200
SELECT ALL CAST( + 27 AS SIGNED ), col2 * col1 AS col1 FROM tab2
----
27
1173
27
3080
27
3886

skipif mysql # not compatible
query II rowsort label-4200
SELECT ALL CAST ( + 27 AS INTEGER ), col2 * col1 AS col1 FROM tab2
----
27
1173
27
3080
27
3886

query I rowsort
SELECT - - ( 45 ) + - col2 / + col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT col0 AS col1, + ( col2 ) FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 60 + col0 = 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 * col2 AS col1, col2 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL - col0 * 7 FROM tab1
----
-357
-595
-637

query II rowsort
SELECT 48 AS col0, - col0 FROM tab0 AS cor0
----
48
-15
48
-87
48
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL 31 + + + COUNT( * ) * - 98 FROM tab1
----
-263

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 31 + + + COUNT ( * ) * - 98 FROM tab1
----
-263

query I rowsort
SELECT + ( col1 ) * - + col1 + + col1 FROM tab0 AS cor0
----
-420
-6480
0

query I rowsort
SELECT - col1 * - - 10 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + ( + col1 ), - col0, - 55, 28 + - - 43 )
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + ( + col1 ), - col0, - 55, 28 + - - 43 )
----
0

query I rowsort
SELECT - col0 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - MIN( ALL + 78 ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4212
SELECT - MIN ( ALL + 78 ) AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL + - SUM( 39 ) FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + - SUM ( 39 ) FROM tab1 cor0
----
-117

query I rowsort
SELECT + 36 * ( 41 ) + + col0 FROM tab1
----
1527
1561
1567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4215
SELECT col2 + + ( - + CAST( NULL AS DECIMAL ) ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT col2 + + ( - + CAST ( NULL AS REAL ) ) * - 37 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + col0 ) col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 84 * - 71 FROM tab2
----
-5964
-5964
-5964

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * - col0
----

query I rowsort
SELECT DISTINCT - 2 - + 73 FROM tab1 cor0
----
-75

query I rowsort
SELECT ALL + col0 - - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL > col1
----

query II rowsort
SELECT DISTINCT + 65, col1 - col1 - + + 17 * 31 AS col2 FROM tab2 cor0
----
65
-527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / + col1 col0 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 30 + - 10 FROM tab2
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT col0 DIV 3 FROM tab1
----
17
28
30

skipif mysql # not compatible
query I rowsort label-4225
SELECT col0 / 3 FROM tab1
----
17
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT COUNT( * ) * MIN( - 86 * - col2 ) FROM tab0
----
2580

skipif mysql # not compatible
query I rowsort label-4226
SELECT COUNT ( * ) * MIN ( - 86 * - col2 ) FROM tab0
----
2580

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 >= col2
----

query I rowsort
SELECT DISTINCT ( AVG ( + col0 ) ) FROM tab1 WHERE 1 IN ( 69 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 BETWEEN ( - 96 * - 20 ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 37 ) + - col0 * 77 AS col1 FROM tab0
----
-1192
-6736
-7506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - CAST( MIN( DISTINCT - 80 ) AS SIGNED ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - CAST ( MIN ( DISTINCT - 80 ) AS INTEGER ) FROM tab2
----
80

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4233
SELECT ALL * FROM tab1 WHERE NOT ( + 65 ) * + col0 + col1 * CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4233
SELECT ALL * FROM tab1 WHERE NOT ( + 65 ) * + col0 + col1 * CAST ( NULL AS REAL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - col0 - + 99 AS col2 FROM tab0
----
-1314
-1926
-196

query III rowsort
SELECT * FROM tab1 WHERE + 11 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 13 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT col2 * ( 42 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1680
2436
966

skipif mysql # not compatible
query I rowsort label-4239
SELECT col2 * ( 42 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT 15 + COUNT( * ) col2 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT 15 + COUNT ( * ) col2 FROM tab2
----
18

query I rowsort
SELECT ALL + ( + 31 ) FROM tab1
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT col2 DIV + 22 + col0 * + col0 AS col2 FROM tab2
----
2117
4097
5627

skipif mysql # not compatible
query I rowsort label-4242
SELECT col2 / + 22 + col0 * + col0 AS col2 FROM tab2
----
2117
4097
5627

query I rowsort
SELECT 6 * col1 + 54 AS col1 FROM tab0
----
180
540
60

query I rowsort
SELECT DISTINCT + ( 3 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 AS col0 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL 28 + MAX( + 19 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL 28 + MAX ( + 19 ) FROM tab0 AS cor0
----
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab0 WHERE ( col1 - - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 15 AS col0 FROM tab2 AS cor0 WHERE col2 / col1 + + col0 NOT BETWEEN col0 + - col2 AND col2 * - col0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - MIN( - 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - MIN ( - 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - COUNT( * ) + MIN( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( 89 ) / col1 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-4252
SELECT - COUNT ( * ) + MIN ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( 89 ) / col1 IS NOT NULL
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT COUNT( * ) DIV + ( COUNT( * ) * + 64 + COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT COUNT ( * ) / + ( COUNT ( * ) * + 64 + COUNT ( * ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 + 83 FROM tab1 cor0
----
142
151
179

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT + 87 DIV + 26 AS col1 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4256
SELECT + 87 / + 26 AS col1 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT MAX( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT MAX ( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - COUNT( * ) * ( + 86 ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-4258
SELECT - COUNT ( * ) * ( + 86 ) AS col0 FROM tab2 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL + COUNT( * ) + + + ( - 74 ) - ( + COUNT( * ) ) AS col2 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + COUNT ( * ) + + + ( - 74 ) - ( + COUNT ( * ) ) AS col2 FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4261
SELECT + CAST( + col2 AS SIGNED ) DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT + CAST ( + col2 AS INTEGER ) / col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT ALL + col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 WHERE ( + col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT 41 * - - col0 AS col2 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - COUNT( * ) FROM tab0 WHERE ( + 82 * - 31 + + ( 12 ) / col1 ) > 18
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT - COUNT ( * ) FROM tab0 WHERE ( + 82 * - 31 + + ( 12 ) / col1 ) > 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT COUNT( 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( 57 ) FROM tab2
----
3

query I rowsort
SELECT - col1 - + 0 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 23 AS col0 FROM tab1 WHERE col2 BETWEEN + 79 AND + col0 * col1 - - col0
----
23

query I rowsort
SELECT ( - col0 ) + col1 * col0 FROM tab2 WHERE NULL IS NULL
----
2300
4864
4950

query III rowsort
SELECT * FROM tab1 WHERE - 14 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + col0 * + col0 + CAST( 87 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2203
4183
5712

skipif mysql # not compatible
query I rowsort label-4270
SELECT + col0 * + col0 + CAST ( 87 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2203
4183
5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4271
SELECT COUNT( * ) * + COUNT( * ) + - 21 + + SUM( 24 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( * ) * + COUNT ( * ) + - 21 + + SUM ( 24 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + - 87 * col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT ( 96 ) * - 94 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6b7cc9d69ba793d1d92a8d7bf2d64867

query I rowsort
SELECT DISTINCT 37 * 4 + 12 FROM tab1 WHERE - - 86 / col1 BETWEEN col2 AND - col1
----

query I rowsort
SELECT 65 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - + MAX( DISTINCT + + 80 ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - + MAX ( DISTINCT + + 80 ) AS col0 FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4277
SELECT CAST( 84 AS SIGNED ) DIV - + 58 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4277
SELECT CAST ( 84 AS INTEGER ) / - + 58 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 17 NOT BETWEEN + - col1 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT - ( - ( - MIN( - 41 ) ) ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - ( - ( - MIN ( - 41 ) ) ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE + 64 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE + 64 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL + 66 * col0 col1 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
3036
4224
4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4282
SELECT ALL + 66 * col0 col1 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + - COUNT( * ) * - - 95 col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT + - COUNT ( * ) * - - 95 col0 FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT + MAX( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + MAX ( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
20

query I rowsort
SELECT col2 + + col2 * + 0 AS col0 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - ( + col0 ) * + - col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT - ( - col2 ) * - col2 AS col2 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - ( - col2 ) * - col2 AS col2 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col2 AND col1 * col0
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + ( - col0 ) ) * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4290
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) - + - col1 BETWEEN ( 77 * col0 ) AND ( + col2 + CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) - + - col1 BETWEEN ( 77 * col0 ) AND ( + col2 + CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 * + col0 * col0 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 22 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT col2 + + col2 * - - 90 - + col0 DIV col1 FROM tab2
----
2093
3640
5277

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT col2 + + col2 * - - 90 - + col0 / col1 FROM tab2
----
2093
3640
5277

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE 88 IS NULL
----

query I rowsort
SELECT + 90 * col2 AS col1 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT ALL + - 34 + + 45 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 60 + 45 + col1 FROM tab0 AS cor0
----
106
126
186

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL - col0 * - + 42 AS col0 FROM tab1 AS cor0
----
2142
3570
3822

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - ( - col1 * col1 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT ( + + ( - - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + CAST( + col0 AS SIGNED ) + col2 * col1 * col1 + 35 * col0 AS col0 FROM tab1 AS cor0
----
153488
20652
4535

skipif mysql # not compatible
query I rowsort label-4308
SELECT + CAST ( + col0 AS INTEGER ) + col2 * col1 * col1 + 35 * col0 AS col0 FROM tab1 AS cor0
----
153488
20652
4535

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT ( NOT - col0 * + 29 IS NULL )
----

query I rowsort
SELECT col0 + - - 16 AS col0 FROM tab0
----
103
113
31

query III rowsort
SELECT * FROM tab1 WHERE ( 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL 9 - + - COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL 9 - + - COUNT ( * ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT col1 DIV - 35 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT col1 / - 35 FROM tab0
----
-2
0
0

query I rowsort
SELECT + 91 FROM tab0 WHERE NULL IS NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query III rowsort label-4315
SELECT - 14 AS col0, COUNT( * ) AS col2, 34 FROM tab1
----
-14
3
34

skipif mysql # not compatible
query III rowsort label-4315
SELECT - 14 AS col0, COUNT ( * ) AS col2, 34 FROM tab1
----
-14
3
34

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4317
SELECT ALL 30 DIV 34 AS col1, + COUNT( * ) * + + 34 FROM tab0
----
0
102

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL 30 / 34 AS col1, + COUNT ( * ) * + + 34 FROM tab0
----
0
102

query I rowsort
SELECT + - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + 76 * - 62 AS col1 FROM tab0
----
-4712
-4712
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL + COUNT( * ) * COUNT( * ) - - COUNT( * ) - - 53 AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) - - 53 AS col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + + 49 * + ( 42 ) FROM tab2 AS cor0
----
2058
2058
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4322
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE 52 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 5 <= ( col2 + - 1 * + + 57 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 5 <= ( col2 + - 1 * + + 57 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( 7 + + 41 * + 79 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ( - + ( + SUM( ALL col1 ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4325
SELECT ( - + ( + SUM ( ALL col1 ) ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL + ( + - ( + + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + ( + - ( + + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ( 55 ) * + 42 FROM tab0 AS cor0 WHERE NOT - ( col0 ) * + - 86 * - - col1 + - + col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / + 26 + - col1 + 98 * + col1 IS NULL
----

query II rowsort
SELECT 27 AS col2, + 66 + + col1 AS col1 FROM tab1
----
27
113
27
71
27
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT MIN( + 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4331
SELECT MIN ( + 89 ) FROM tab2
----
89

query II rowsort
SELECT col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT 32 * - 60 * CAST( 66 AS SIGNED ) FROM tab0
----
-126720
-126720
-126720

skipif mysql # not compatible
query I rowsort label-4333
SELECT 32 * - 60 * CAST ( 66 AS INTEGER ) FROM tab0
----
-126720
-126720
-126720

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4335
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 4 ) col0 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 + + col2 + - col0 > - ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT + col0 * - - col1 + col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4345
NULL
484
NULL
810
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT + col0 * - - col1 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4345
NULL
484
NULL
810
NULL

query I rowsort
SELECT DISTINCT 87 + + 44 FROM tab2
----
131

query I rowsort
SELECT ALL - 57 * - + col2 + + - 12 + 81 - - col2 * 82 AS col1 FROM tab0
----
13830
1459
6602

query I rowsort
SELECT DISTINCT - + 30 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 80 IN ( + 81 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 15 * col0 IN ( + col0, col1 - + - col1, col2, - + 72 + col0 + + 11 / 59 )
----

query I rowsort
SELECT DISTINCT - col0 * + - 55 * - 68 - col1 FROM tab0 AS cor0
----
-325401
-362781
-56181

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - - col2 NOT BETWEEN ( + ( col2 ) ) AND ( - col1 ) ) ) OR NOT + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 71 * 29 AS col1 FROM tab1 AS cor0
----
-2059
-2059
-2059

query II rowsort
SELECT 4 AS col2, col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * - + col1 + + 55 + - col0 FROM tab2 AS cor0
----
2355
4919
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT MAX( + col1 ) * - 79 FROM tab2 AS cor0
----
-6083

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT MAX ( + col1 ) * - 79 FROM tab2 AS cor0
----
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT ( - col2 ) DIV 42 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT ( - col2 ) / 42 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + 1 * COUNT( * ) + + 38 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + 1 * COUNT ( * ) + + 38 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT - 60 / + + MAX( ALL col2 ) + - ( COUNT( * ) ) + - COUNT( * ) FROM tab0 WHERE NULL >= + col2 + - col0 AND NOT + 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - 60 / + + MAX ( ALL col2 ) + - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 WHERE NULL >= + col2 + - col0 AND NOT + 44 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - SUM( + 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - SUM ( + 39 ) FROM tab2
----
-117

query I rowsort
SELECT col1 + - - 13 AS col0 FROM tab1
----
18
27
60

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col0 * + ( + col2 ) * - 45 FROM tab0
----
25164
38709
432134

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN + col1 AND + - ( 34 ) )
----

query I rowsort
SELECT ALL - 81 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 25
----

query I rowsort
SELECT ALL 40 * + ( col1 ) FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT - COUNT( * ) DIV 12 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( * ) / 12 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( col1 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + col1 - col2 FROM tab0 AS cor0 WHERE NULL < col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-4364
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

query I rowsort
SELECT DISTINCT + + 70 * - + col2 FROM tab1 cor0
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - SUM( + - col0 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - SUM ( + - col0 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4367
SELECT - - 85 DIV - + COUNT( * ) + + 64 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4367
SELECT - - 85 / - + COUNT ( * ) + + 64 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL + col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL + - 74 DIV 82 + - col1 * - col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + - 74 / 82 + - col1 * - col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 3 ) <= NULL
----

query I rowsort
SELECT - col2 * - 61 * + col0 FROM tab0 AS cor0
----
43005
53070
585783

onlyif mysql # DIV for integer division: 
query II rowsort label-4372
SELECT + col0, 37 DIV - col2 FROM tab1 cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4372
SELECT + col0, 37 / - col2 FROM tab1 cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL 25 DIV + col2 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT ALL 25 / + col2 col1 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 46 IS NOT NULL
----

query I rowsort
SELECT + col2 + ( col0 ) + 11 FROM tab1
----
155
158
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) + 87 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( * ) + 87 AS col0 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4377
SELECT + col2 - + 61 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) < - + col0 * - CAST( + - col0 AS DECIMAL ) + - col2 + col0
----

skipif mysql # not compatible
query I rowsort label-4377
SELECT + col2 - + 61 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) < - + col0 * - CAST ( + - col0 AS REAL ) + - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT MIN( col2 ) FROM tab2 AS cor0 WHERE ( + 82 ) IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-4378
SELECT MIN ( col2 ) FROM tab2 AS cor0 WHERE ( + 82 ) IS NOT NULL
----
23

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab2 WHERE - col2 / - col2 NOT BETWEEN col2 AND NULL
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4380
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - 0 * - COUNT( * ) - + COUNT( * ) - - COUNT( col2 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 0 * - COUNT ( * ) - + COUNT ( * ) - - COUNT ( col2 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL - 7 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - 7 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + col2 + + - 76 FROM tab2 AS cor0
----
-18
-36
-53

query I rowsort
SELECT DISTINCT + ( - 13 ) * + col1 * + col0 FROM tab1 AS cor0
----
-5525
-55601
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 IN ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 IN ( + col1 ) )
----
0

query I rowsort
SELECT ALL col0 * 56 * - 7 + + col2 FROM tab0 AS cor0
----
-34094
-37925
-5833

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 + + 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 AS col0 FROM tab2 AS cor0 WHERE col0 * - + 74 / 43 IS NOT NULL
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT 69 DIV + + 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT 69 / + + 90 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + - 44 AS col2, + ( - - col1 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 17 * + - col2 AS col1 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT - col0 * 22 AS col0 FROM tab2
----
-1012
-1408
-1650

query II rowsort
SELECT DISTINCT 63 * - col2, 40 AS col1 FROM tab1
----
-3717
40
-4284
40
-6048
40

query II rowsort
SELECT col2 * col2, col0 FROM tab0
----
100
87
2209
15
9801
97

query I rowsort
SELECT + + 93 AS col1 FROM tab2 cor0 WHERE NOT + col2 / 20 IS NOT NULL
----

query I rowsort
SELECT + + col2 * 65 + col1 AS col1 FROM tab2 AS cor0
----
1546
2677
3837

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + COUNT( ALL - - 19 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4399
SELECT + COUNT ( ALL - - 19 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * 30 AS col1 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( ALL col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( ALL col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4402
SELECT COUNT( * ) DIV - 27 * - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( * ) / - 27 * - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL ( + 69 ) AS col0 FROM tab1
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT - col0 DIV - 51 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - col0 / - 51 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL SUM( ALL - + 62 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL SUM ( ALL - + 62 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT DISTINCT + AVG ( - col1 ) + - 30 * - 7 AS col1 FROM tab0 AS cor0 WHERE + 39 + + col1 - - 14 + + 99 - - col0 / col2 * - col1 * - CAST( - - col0 AS SIGNED ) = - CAST( 10 AS SIGNED ) * + col2 * col1 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + AVG ( - col1 ) + - 30 * - 7 AS col1 FROM tab0 AS cor0 WHERE + 39 + + col1 - - 14 + + 99 - - col0 / col2 * - col1 * - CAST ( - - col0 AS INTEGER ) = - CAST ( 10 AS INTEGER ) * + col2 * col1 - col0
----
NULL

query II rowsort
SELECT + col1 * - col2 + + - 92, + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-191
9801
-302
100
-3899
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT MIN( - 5 ) * + SUM( + col0 ) * + COUNT( * ) col1 FROM tab0 AS cor0
----
-2985

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT MIN ( - 5 ) * + SUM ( + col0 ) * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-2985

query I rowsort
SELECT ALL - col1 * + + 87 + - col1 AS col2 FROM tab0 AS cor0
----
-1848
-7128
-88

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 95 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT + SUM( + col1 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + SUM ( + col1 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( - + col1, CAST( NULL AS SIGNED ) + 61 + + 14 * + + 59 * - + col1, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4413
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( - + col1, CAST ( NULL AS INTEGER ) + 61 + + 14 * + + 59 * - + col1, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + col0 AS col0, - 58 AS col0 FROM tab0
----
15
-58
87
-58
97
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL + CAST( NULL AS SIGNED ) / 16 + + 19 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + CAST ( NULL AS INTEGER ) / 16 + + 19 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT col0 + + + CAST( + col0 AS SIGNED ) + - col2 + + - col2 + col1 FROM tab2
----
101
125
97

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT col0 + + + CAST ( + col0 AS INTEGER ) + - col2 + + - col2 + col1 FROM tab2
----
101
125
97

query III rowsort
SELECT * FROM tab2 WHERE col2 <= + 49 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + col1 * + - col0 + + 34 AS col2 FROM tab1
----
-200985
-2091
-9962

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + + + col0 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT ALL col2 DIV + ( + + col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL col2 / + ( + + col0 ) AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col0, 90 + - 34 AS col1 FROM tab0 AS cor0
----
-1
56
-21
56
-81
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - + 48 ) col0 FROM tab2 cor0
----
-106
-71
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT + col0 DIV col0 * + + col0 + col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4424
SELECT + col0 / col0 * + + col0 + col0 FROM tab2
----
128
150
92

query II rowsort
SELECT ALL + col0 - - 18 - + - col2 AS col0, 47 * col2 FROM tab1
----
162
2773
165
4512
177
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - 44 col2, + 19 * + - 54 FROM tab1 AS cor0
----
41
-1026
47
-1026
7
-1026

query I rowsort
SELECT DISTINCT + col0 - - col0 * col2 * + 10 * ( - col2 ) FROM tab0 AS cor0
----
-331335
-86913
-9506873

query I rowsort
SELECT + - ( - 97 ) * col2 - + col2 FROM tab2 AS cor0
----
2208
3840
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT ALL + col2 * 14 DIV - col2 - 71 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + col2 * 14 / - col2 - 71 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) - + + 5 - + - 38 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) - + + 5 - + - 38 AS col0 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4431
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 89 AS col1 FROM tab0 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + + ( - + 76 ) + - - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col2 - + + 94 + - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col1, 6 col2 FROM tab1
----
56
6

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

query II rowsort
SELECT - - col0 AS col2, + 45 AS col1 FROM tab0 AS cor0
----
15
45
87
45
97
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + + MAX( + 30 ) AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + + MAX ( + 30 ) AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL - 8 * + + col0 AS col0 FROM tab1
----
-408
-680
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT + col1 * - CAST( 28 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

skipif mysql # not compatible
query I rowsort label-4440
SELECT + col1 * - CAST ( 28 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT + 11 DIV + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + 11 / + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT col1 DIV + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT col1 / + - col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 23 * MIN( ALL - - col2 ) + + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
1448

skipif mysql # not compatible
query I rowsort label-4444
SELECT 23 * MIN ( ALL - - col2 ) + + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
1448

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col1 < NULL
----

query I rowsort
SELECT DISTINCT col0 + + 38 AS col1 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL COUNT( * ) + - - ( - - 18 ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL COUNT ( * ) + - - ( - - 18 ) AS col1 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - ( + - COUNT( * ) ) + + - SUM( DISTINCT 20 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4448
SELECT - ( + - COUNT ( * ) ) + + - SUM ( DISTINCT 20 ) FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4450
SELECT ALL * FROM tab1 WHERE NOT CAST( col1 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4450
SELECT ALL * FROM tab1 WHERE NOT CAST ( col1 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + COUNT( * ) + - ( - 94 ) + - ( SUM( col1 ) ) * + COUNT( - 82 ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-4451
SELECT + COUNT ( * ) + - ( - 94 ) + - ( SUM ( col1 ) ) * + COUNT ( - 82 ) FROM tab1
----
-101

query I rowsort
SELECT col1 + - ( + - 89 ) FROM tab2 WHERE + col1 + 17 IS NOT NULL
----
140
156
166

query I rowsort
SELECT + col2 + - 61 FROM tab2
----
-21
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + SUM( - - 85 ) AS col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + SUM ( - - 85 ) AS col1 FROM tab0 AS cor0
----
255

query II rowsort
SELECT DISTINCT - col0 AS col1, 2 AS col0 FROM tab2 AS cor0
----
-46
2
-64
2
-75
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + 39 )
----

query I rowsort
SELECT ALL + col0 * col0 / + ( col0 ) AS col0 FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43, 95 col0 FROM tab0 AS cor0
----
43
95
43
95
43
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 26 ) FROM tab0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + - col2 AS col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + - col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT col0 * + 88 * + 23 AS col1 FROM tab0
----
176088
196328
30360

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 40 * + MAX( + - 64 ) AS col2 FROM tab1
----
-2560

skipif mysql # not compatible
query I rowsort label-4465
SELECT 40 * + MAX ( + - 64 ) AS col2 FROM tab1
----
-2560

query I rowsort
SELECT 15 AS col1 FROM tab0 WHERE NOT + + 93 IS NULL
----
15
15
15

query I rowsort
SELECT + ( - - col1 ) * + col1 * + col2 FROM tab0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT ( 4 ), - COUNT( * ) col0 FROM tab1 AS cor0
----
4
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4469
SELECT ( 4 ), - COUNT ( * ) col0 FROM tab1 AS cor0
----
4
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT ( + - col1 ) DIV + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT ( + - col1 ) / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT - + 90 * + col0 * - - col1 - - + col1 AS col1 FROM tab1 AS cor0
----
-38245
-384883
-64246

query II rowsort
SELECT DISTINCT ( - col2 ) * + 17 AS col1, - col2 AS col0 FROM tab1 cor0
----
-1003
-59
-1156
-68
-1632
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col2 >= + col2 * col2 + - 24 * - col1 * col0
----

query I rowsort
SELECT ALL + ( 35 ) FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT + - 21 * + col0 FROM tab1 AS cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4476
SELECT - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT COUNT( * ) + + + MAX( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND col1 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT COUNT ( * ) + + + MAX ( DISTINCT - col0 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND col1 * 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT SUM( + ( - CAST( - col0 AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4478
SELECT SUM ( + ( - CAST ( - col0 AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 8 / + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL col0 + 67 FROM tab0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 37 - - + 94 + COUNT( * ) FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-4482
SELECT 37 - - + 94 + COUNT ( * ) FROM tab0 AS cor0
----
134

query I rowsort
SELECT ALL col1 * - col1 * - - 51 AS col2 FROM tab0 AS cor0
----
-22491
-334611
-51

query I rowsort
SELECT 88 + - - col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT + + 81 DIV + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-16
-84

skipif mysql # not compatible
query I rowsort label-4485
SELECT + + 81 / + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-16
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col0 + 12, + 71, - 9 - - + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 84
----

query II rowsort
SELECT - 65 AS col0, 31 FROM tab2 AS cor0
----
-65
31
-65
31
-65
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - + COUNT( DISTINCT + 21 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4489
SELECT - + COUNT ( DISTINCT + 21 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT 0 AS col1, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL + - col1 * - col1 + - 29 FROM tab1 AS cor0
----
-4
167
2180

query I rowsort
SELECT DISTINCT - 16 * - + col0 AS col2 FROM tab1 AS cor0
----
1360
1456
816

query II rowsort
SELECT + 21 AS col0, col1 + + col1 AS col1 FROM tab0 AS cor0
----
21
162
21
2
21
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 + + col0 col1 FROM tab1
----
51
102
85
170
91
182

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND - - 56
----

query I rowsort
SELECT ( + 78 ) * - col1 AS col0 FROM tab0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - MAX( + - 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - MAX ( + - 62 ) FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - + SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4498
SELECT - + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4499
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4500
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL + 82 AS col1 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + ( + + 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

query I rowsort
SELECT DISTINCT + - 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-6

query I rowsort
SELECT 47 * - 7 AS col1 FROM tab2
----
-329
-329
-329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col2 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 54 + - col0 FROM tab2 AS cor0 WHERE NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT COUNT( DISTINCT + col0 ) * - 20 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4509
SELECT COUNT ( DISTINCT + col0 ) * - 20 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( + + col2 ) IN ( + col2 * - col1 + - + col1 * + + col2 * + + col1, 31 + - col2 * - col1, - 96 * + col1 * + 76, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + 10 + + 85 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT DISTINCT + COUNT( * ) * + 66 AS col0, SUM( + 81 ) + - + 76 AS col1 FROM tab2 AS cor0
----
198
167

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT + COUNT ( * ) * + 66 AS col0, SUM ( + 81 ) + - + 76 AS col1 FROM tab2 AS cor0
----
198
167

query I rowsort
SELECT ALL - 64 + + 15 * + + 7 AS col2 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col1
----

query II rowsort
SELECT ALL + col2, + 89 * + col0 FROM tab1
----
59
7565
68
8099
96
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT MIN( ALL + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT MIN ( ALL + col0 ) AS col2 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL - col0 + col1 + + 0 DIV + col2 AS col1 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - col0 + col1 + + 0 / + col2 AS col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 - 67 + col1 + - col0 IS NULL
----

query II rowsort
SELECT + 91 AS col2, + 14 AS col2 FROM tab0
----
91
14
91
14
91
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT MIN( ( col2 ) ) - - 2 AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT MIN ( ( col2 ) ) - - 2 AS col0 FROM tab0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4522
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE - col0 / + CAST( col0 AS DECIMAL ) * + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE - col0 / + CAST ( col0 AS REAL ) * + col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4523
SELECT ALL - - ( - col2 ) * - - 88 * CAST( NULL AS DECIMAL ) 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-4523
SELECT ALL - - ( - col2 ) * - - 88 * CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - col1 + + col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col2 * + 74 AS col1 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT + 49 * - + col2 AS col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT ALL - col1 DIV - - ( + - 22 ) AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - col1 / - - ( + - 22 ) AS col1 FROM tab2 AS cor0
----
2
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab1 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT col0 DIV 21 DIV + - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT col0 / 21 / + - col2 FROM tab0
----
0

query I rowsort
SELECT + col2 * 45 AS col1 FROM tab0
----
2115
4455
450

query I rowsort
SELECT 81 * + ( col2 ) AS col1 FROM tab2
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT MAX( DISTINCT - + 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT MAX ( DISTINCT - + 48 ) FROM tab2
----
-48

query II rowsort
SELECT ALL + - col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT DISTINCT + COUNT( * ) + + MIN( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0
----
4
56

skipif mysql # not compatible
query II rowsort label-4535
SELECT DISTINCT + COUNT ( * ) + + MIN ( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0
----
4
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4536
SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL AND NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4536
SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL AND NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 90 * + col1 + - 7 AS col1 FROM tab2
----
4583
6023
6923

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 70 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4539
SELECT + 4 DIV 28 * - col2 + CAST( + + 71 AS SIGNED ) FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 4 / 28 * - col2 + CAST ( + + 71 AS INTEGER ) FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4540
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / - 81 > CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4540
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / - 81 > CAST ( col1 AS REAL )
----

query I rowsort
SELECT ALL + - 42 + - + col1 AS col1 FROM tab0 AS cor0
----
-123
-43
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29 AS col2, - col2 col1 FROM tab2 AS cor0
----
-29
-23
-29
-40
-29
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + ( - + 6 ) + + + 91 * - + COUNT( * ) + + MIN( - col2 ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
-375

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + ( - + 6 ) + + + 91 * - + COUNT ( * ) + + MIN ( - col2 ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - - MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - - MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT + col1 * + - 89 * + col0 + + CAST( NULL AS SIGNED ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT + col1 * + - 89 * + col0 + + CAST ( NULL AS INTEGER ) + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col1 ) * + + col1 + col2 * ( + 34 ) FROM tab0 cor0
----
3367
781
8159

query I rowsort
SELECT DISTINCT - col2 * - col0 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT col2 * - col0 * + 63 AS col2 FROM tab1 AS cor0
----
-308448
-315945
-389844

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - 95 AS col0, + col2 FROM tab2 AS cor0
----
-95
23
-95
40
-95
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT 6 * - SUM( DISTINCT + - col1 ) * ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) + - CAST( + MIN( - + 17 ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 6 * - SUM ( DISTINCT + - col1 ) * ( + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + - CAST ( + MIN ( - + 17 ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 41 + col2 * - 60 AS col2 FROM tab1
----
-3581
-4121
-5801

onlyif mysql # DIV for integer division: 
query II rowsort label-4553
SELECT DISTINCT 85 DIV col1 + - 18, col0 AS col1 FROM tab1
----
-1
85
-12
51
-17
91

skipif mysql # not compatible
query II rowsort label-4553
SELECT DISTINCT 85 / col1 + - 18, col0 AS col1 FROM tab1
----
-1
85
-12
51
-17
91

query I rowsort
SELECT ALL - + col2 + + col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 / col0 * col2 + - + col1 FROM tab2 WHERE - 62 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 * col1 FROM tab2 WHERE - + 69 * - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4557
SELECT DISTINCT + 79 + + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4557
SELECT DISTINCT + 79 + + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - 61 - + COUNT( * ) col1 FROM tab0 cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT ALL - 61 - + COUNT ( * ) col1 FROM tab0 cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - COUNT( * ) + - 20 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + - 20 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1 cor0 WHERE NOT + 34 <= NULL
----

query I rowsort
SELECT ( - + 31 ) FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + col1 / + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( 82 ) AS col1 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT + COUNT( * ) * - MAX( - - 2 ) AS col2 FROM tab2 cor0 WHERE NOT col2 * + col2 * - + 8 * - col1 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + COUNT ( * ) * - MAX ( - - 2 ) AS col2 FROM tab2 cor0 WHERE NOT col2 * + col2 * - + 8 * - col1 + - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL >= - - col0
----

query II rowsort
SELECT - + col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 89 = NULL
----

query II rowsort
SELECT DISTINCT + 55 AS col0, - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
55
-116
55
-46
55
-80

query I rowsort
SELECT DISTINCT 39 + 82 AS col1 FROM tab0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( DISTINCT + col2 ) * COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4570
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * COUNT ( * ) col2 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) + 57 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) + 57 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL MIN ( ALL col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT + 61 + - - col1 FROM tab1
----
108
66
75

query I rowsort
SELECT DISTINCT - 77 * - + ( 10 ) FROM tab0 AS cor0
----
770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + COUNT( * ) + - - 24 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4577
SELECT + COUNT ( * ) + - - 24 FROM tab2 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 > ( + col1 * - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT + + COUNT( * ) + + - CAST( NULL AS SIGNED ) * COUNT( + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * COUNT ( + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT col2 - + - col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT + - ( 43 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - 91 + 52 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT - + SUM( - col2 ) DIV 78 + COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - + SUM ( - col2 ) / 78 + COUNT ( * ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT 29 + 89 AS col2 FROM tab1 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + COUNT( ALL + + 71 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + COUNT ( ALL + + 71 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + MAX ( col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 WHERE + + 26 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT ( - 35 ) + + col1 AS col1 FROM tab2
----
16
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT 82 * + CAST( NULL AS SIGNED ) * + - 77 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT 82 * + CAST ( NULL AS INTEGER ) * + - 77 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT - CAST( + 81 AS SIGNED ) FROM tab2
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4590
SELECT - CAST ( + 81 AS INTEGER ) FROM tab2
----
-81
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4591
SELECT COUNT( * ) AS col0, 7 FROM tab1 WHERE + col1 + - CAST( - col1 AS SIGNED ) + col1 >= NULL
----
0
7

skipif mysql # not compatible
query II rowsort label-4591
SELECT COUNT ( * ) AS col0, 7 FROM tab1 WHERE + col1 + - CAST ( - col1 AS INTEGER ) + col1 >= NULL
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT MIN( DISTINCT - ( - - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4592
SELECT MIN ( DISTINCT - ( - - col0 ) ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4593
SELECT * FROM tab0 WHERE NOT - col2 + ( + - 53 ) + - CAST( + + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4593
SELECT * FROM tab0 WHERE NOT - col2 + ( + - 53 ) + - CAST ( + + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT - - COUNT( * ) col0 FROM tab2 AS cor0 WHERE 94 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE 94 IS NULL
----
0

query II rowsort
SELECT - + 36, 49 AS col1 FROM tab1 AS cor0
----
-36
49
-36
49
-36
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + COUNT( * ) * + - 9 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + COUNT ( * ) * + - 9 FROM tab2
----
-27

query I rowsort
SELECT ALL 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col1 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4599
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4599
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 87 NOT BETWEEN - col2 AND - + 42 * - ( 69 ) * + col2 + + - col1 + col2
----

query I rowsort
SELECT - - 59 FROM tab0 cor0
----
59
59
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4603
SELECT col1 * col2 * + col1 AS col0, CAST( NULL AS SIGNED ) + + 17 + - col1 + + + 37 + - 23 * - 47 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

skipif mysql # not compatible
query II rowsort label-4603
SELECT col1 * col2 * + col1 AS col0, CAST ( NULL AS INTEGER ) + + 17 + - col1 + + + 37 + - 23 * - 47 FROM tab1
----
1475
NULL
150212
NULL
18816
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT COUNT( * ) * + 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT COUNT ( * ) * + 50 FROM tab2
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4605
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 37 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 37 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 - - 53 AS col0 FROM tab2 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ALL - col1 + col1 * + col1 * col0 AS col2 FROM tab1
----
200972
2120
9982

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT DISTINCT 24 DIV - 79 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT 24 / - 79 AS col1 FROM tab0
----
0

query II rowsort
SELECT 89 AS col0, - col2 FROM tab1
----
89
-59
89
-68
89
-96

query I rowsort
SELECT ALL - col2 * - + col0 * + - 48 * - - col1 FROM tab2
----
-13989600
-2589984
-9461760

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT COUNT( DISTINCT - 18 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT COUNT ( DISTINCT - 18 ) FROM tab2
----
1

query I rowsort
SELECT - 78 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT - 3 * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - 3 * - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) BETWEEN - + 58 AND NULL
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT DISTINCT - col2, CAST( - 15 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT - col2, CAST ( - 15 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT 16 + COUNT( * ) + + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4616
SELECT 16 + COUNT ( * ) + + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL + ( + + 1 ) + + + 97 * col2 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
1181
8367
9703

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( 47 IS NULL )
----

query I rowsort
SELECT + col1 + + 54 FROM tab1
----
101
59
68

query I rowsort
SELECT col0 + - ( + 65 ) + + col2 + - - 46 AS col1 FROM tab0
----
177
43
78

query I rowsort
SELECT DISTINCT col0 - + - 30 AS col2 FROM tab0
----
117
127
45

query I rowsort
SELECT DISTINCT col2 - + col1 + - 80 FROM tab1 AS cor0
----
-26
-59
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + + COUNT( * ) + 16 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + + COUNT ( * ) + 16 FROM tab2 AS cor0
----
19

query I rowsort
SELECT - - 27 * + 28 FROM tab2 AS cor0
----
756
756
756

onlyif mysql # DIV for integer division: 
query II rowsort label-4625
SELECT ALL + col1 - + col1 col1, col2 + + col2 DIV 90 * - ( - - col0 ) FROM tab1 AS cor0
----
0
45
0
59
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4625
SELECT ALL + col1 - + col1 col1, col2 + + col2 / 90 * - ( - - col0 ) FROM tab1 AS cor0
----
0
45
0
59
0
68

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - col0 + + + 84 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT + - 1 DIV + - ( + col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4627
SELECT + - 1 / + - ( + col0 ) - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4628
SELECT ALL + CAST( col1 AS SIGNED ) AS col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - 68 + - - MIN( + + col1 ) * - SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-1203

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 68 + - - MIN ( + + col1 ) * - SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-1203

query I rowsort
SELECT - col1 - 68 AS col1 FROM tab2
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + 76 - - - COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 76 - - - COUNT ( * ) AS col0 FROM tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - COUNT( ALL + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( ALL + col0 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - + col0 AS col0, 44 FROM tab0 AS cor0
----
-15
44
-87
44
-97
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 - col0 + - 54 + + + col1 + + + ( - col1 ) * - - ( + - col2 ) + + col0 * - - col1 + - col1 + - - 78 * + 4 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3774
8245
9137

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT + + 41 AS col2, COUNT( * ) * + + 12 FROM tab2 AS cor0
----
41
36

skipif mysql # not compatible
query II rowsort label-4637
SELECT + + 41 AS col2, COUNT ( * ) * + + 12 FROM tab2 AS cor0
----
41
36

query I rowsort
SELECT ALL 41 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab0
----
156

query II rowsort
SELECT DISTINCT - - col2 AS col0, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - ( - 8 ) FROM tab1 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 67 * 48 * + 60 col1 FROM tab0 AS cor0
----
-1
-192960
-21
-192960
-81
-192960

query I rowsort
SELECT + col1 * + + 62 * - + 46 FROM tab1 AS cor0
----
-134044
-14260
-39928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT - ( + COUNT( * ) ) * - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4645
SELECT - ( + COUNT ( * ) ) * - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + MIN( 13 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + MIN ( 13 ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + 37 ) * col2 * - 43 + + 34 + - ( + 97 ) * + 88 * + col2 BETWEEN - + 67 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - COUNT( col1 ) + + COUNT( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE + 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - COUNT ( col1 ) + + COUNT ( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE + 52 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL COUNT( * ) + + COUNT( * ) + - 83 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 83 FROM tab0
----
-77

query III rowsort
SELECT * FROM tab2 WHERE - col1 - col1 NOT BETWEEN + col1 AND + col2 * - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 4 AS col0 FROM tab1
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - 40 + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-4652
SELECT - 40 + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-43

query I rowsort
SELECT ALL col2 * col0 FROM tab0 WHERE NOT + 23 + - col2 NOT BETWEEN NULL AND + 68
----

query I rowsort
SELECT col2 + + 43 * + - col1 FROM tab2
----
-2170
-2823
-3271

query I rowsort
SELECT ALL - ( + 66 ) + - col1 FROM tab0 AS cor0
----
-147
-67
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT MIN( - col1 ) * - COUNT( ALL + - 19 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4657
SELECT MIN ( - col1 ) * - COUNT ( ALL + - 19 ) FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - CAST( NULL AS SIGNED ) * + 60 + 49 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT - CAST ( NULL AS INTEGER ) * + 60 + 49 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + CAST( + + col2 AS SIGNED ) + - 69 - + col2 + - col0 + + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + CAST ( + + col2 AS INTEGER ) + - 69 - + col2 + - col0 + + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 * 53 + - ( 76 ) - col0 * - col2 FROM tab1 cor0
----
1289
2117
434

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + - 42 FROM tab1 AS cor0
----
-127
-133
-93

query I rowsort
SELECT + 59 * + 50 FROM tab2
----
2950
2950
2950

query I rowsort
SELECT + 36 AS col2 FROM tab1 WHERE NOT ( + ( + col1 ) + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4666
SELECT ALL - COUNT( * ) / + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT ALL 87 * - + 42 * + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-295974
-3654
-76734

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 87 * - + 42 * + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-295974
-3654
-76734

query I rowsort
SELECT 60 AS col0 FROM tab0 cor0 WHERE NOT + 63 BETWEEN col2 - + + col0 AND 46
----
60
60
60

query I rowsort
SELECT 79 * + col0 AS col1 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT ALL + 71 * - + ( + ( - col0 ) ) FROM tab2
----
3266
4544
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL - + MIN( - 7 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - + MIN ( - 7 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT - 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT + - 96 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col0 + - col0 * + 98
----

query II rowsort
SELECT ALL - col1 AS col0, ( + col2 ) AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT - + 45 * + 63 * + - MIN( DISTINCT - 61 ) FROM tab0 AS cor0
----
-172935

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - + 45 * + 63 * + - MIN ( DISTINCT - 61 ) FROM tab0 AS cor0
----
-172935

query I rowsort
SELECT ALL ( + 44 ) FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL - CAST( NULL AS SIGNED ) + + AVG ( ALL - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - CAST ( NULL AS INTEGER ) + + AVG ( ALL - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ( CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4680
SELECT ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4681
SELECT + - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
103

query II rowsort
SELECT col0, - 83 AS col2 FROM tab0
----
15
-83
87
-83
97
-83

query I rowsort
SELECT + ( + 67 ) AS col0 FROM tab0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT + 36 AS col1, COUNT( * ) AS col1 FROM tab1
----
36
3

skipif mysql # not compatible
query II rowsort label-4684
SELECT + 36 AS col1, COUNT ( * ) AS col1 FROM tab1
----
36
3

query II rowsort
SELECT DISTINCT 52 * col2 + - col1 + + 42, + col0 AS col1 FROM tab0
----
2405
15
5189
97
541
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - COUNT( * ) + - 66 AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - COUNT ( * ) + - 66 AS col1 FROM tab0
----
-69

query I rowsort
SELECT ALL + + 60 AS col0 FROM tab2 WHERE NOT - - 20 > NULL
----

query I rowsort
SELECT 27 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 21 AS col2 FROM tab1
----
106
112
72

query I rowsort
SELECT DISTINCT 34 - + 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT COUNT( * ) + MAX( + 63 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT COUNT ( * ) + MAX ( + 63 ) FROM tab0
----
66

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( * ) + + - 64 + + MAX( + + col2 ) AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( * ) + + - 64 + + MAX ( + + col2 ) AS col0 FROM tab0
----
38

query I rowsort
SELECT DISTINCT - - 91 + + - col0 FROM tab2 AS cor0
----
16
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 * + 8 * + + 93 - + 93 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 * + 8 * + + 93 - + 93 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT ALL - 42 * + col2 + col1 DIV - + col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - 42 * + col2 + col1 / - + col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT DISTINCT + col2 * 30 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 68 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 52 IS NOT NULL
----

query II rowsort
SELECT col0 * - col0 * + col1 AS col1, + col2 AS col2 FROM tab1
----
-36125
59
-36414
96
-389207
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT + 84 * + - CAST( NULL AS SIGNED ) * + 42 * - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 84 * + - CAST ( NULL AS INTEGER ) * + 42 * - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( - col2 ) * col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 + 64 * + + col1 * + col0 BETWEEN NULL AND col2 + 26 * 93 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4704
SELECT ALL * FROM tab1 WHERE - col0 / CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4704
SELECT ALL * FROM tab1 WHERE - col0 / CAST ( NULL AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( + 55 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT 66 + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 66 + - COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT col1 / CAST( - 67 / - 18 AS SIGNED ) col1 FROM tab0 WHERE NOT 78 + CAST( NULL AS SIGNED ) IN ( + col2 * col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4707
SELECT col1 / CAST ( - 67 / - 18 AS INTEGER ) col1 FROM tab0 WHERE NOT 78 + CAST ( NULL AS INTEGER ) IN ( + col2 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 70 NOT BETWEEN + col1 AND - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 0 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + SUM( DISTINCT 30 ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4712
SELECT + SUM ( DISTINCT 30 ) AS col2 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4713
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4713
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 53 ) AS col0 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT SUM( - 43 ) col2 FROM tab0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4716
SELECT DISTINCT SUM ( - 43 ) col2 FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 80 * - 42 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 80 * - 42 > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 72 + + col2 ) = col2 / + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 20 + col1 AS col2 FROM tab0
----
-19
1
61

query III rowsort
SELECT ALL * FROM tab0 WHERE + 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - 10 + - COUNT( * ) AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 10 + - COUNT ( * ) AS col2 FROM tab1
----
-13

query I rowsort
SELECT - 94 * + col2 AS col1 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT + 84 * col1 FROM tab0
----
1764
6804
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + 61 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT col0 FROM tab0 WHERE NULL IN ( 6 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT col0 FROM tab0 WHERE NULL IN ( 6 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 * 78 FROM tab1
----
4602
5304
7488

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 * + col0 )
----

query I rowsort
SELECT col0 * 38 AS col2 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT col0 * - 64 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) > ( 74 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 8 )
----

query I rowsort
SELECT ALL + 36 FROM tab1 WHERE NOT 83 = NULL
----

query I rowsort
SELECT 91 * + col0 AS col0 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 40 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * col2 + - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( * ) * SUM( - 48 ) AS col0 FROM tab0
----
432

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - COUNT ( * ) * SUM ( - 48 ) AS col0 FROM tab0
----
432

query I rowsort
SELECT ALL - + 16 * col0 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT ALL + - col0 * + ( + 69 ) AS col2 FROM tab0 cor0
----
-1035
-6003
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT COUNT( - 31 ) * ( COUNT( * ) ) FROM tab1 AS cor0 WHERE 5 + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT COUNT ( - 31 ) * ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE 5 + col1 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab2 AS cor0 WHERE NOT ( 3 * + 18 ) BETWEEN NULL AND - 16 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - 86 + COUNT( * ) FROM tab0 AS cor0 WHERE - 63 - col0 * col2 <> col2 * - col1
----
-83

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - 86 + COUNT ( * ) FROM tab0 AS cor0 WHERE - 63 - col0 * col2 <> col2 * - col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL BETWEEN 20 AND ( NULL )
----

query I rowsort
SELECT 24 AS col0 FROM tab0 WHERE NOT ( col1 ) > ( NULL )
----

query I rowsort
SELECT 8 * - + 12 AS col0 FROM tab1
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 * - + 75 * - 89 AS col0 FROM tab0
----
313725
313725
313725

query I rowsort
SELECT DISTINCT 84 FROM tab1 WHERE 31 - col1 * + 0 NOT BETWEEN col0 + 53 AND ( col1 * - col2 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4751
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT 45 * + MIN( DISTINCT 34 ) AS col2 FROM tab1
----
1530

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT 45 * + MIN ( DISTINCT 34 ) AS col2 FROM tab1
----
1530

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE NOT col2 + + col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL - ( ( - COUNT( * ) ) ) * 11 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - ( ( - COUNT ( * ) ) ) * 11 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT COUNT( * ) * - + 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT COUNT ( * ) * - + 84 FROM tab1
----
-252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 * 37 IS NOT NULL
----

query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab1 WHERE - + col2 > - col1
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 87 BETWEEN - col0 * 93 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - ( + SUM( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - ( + SUM ( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT ALL ( + + COUNT( col2 ) ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL ( + + COUNT ( col2 ) ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT 45 DIV + col2 * + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT 45 / + col2 * + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + - col0, col0 AS col2 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT - CAST( NULL AS SIGNED ) AS col2, + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-4767
SELECT - CAST ( NULL AS INTEGER ) AS col2, + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + - 3 * + COUNT( * ) * + MAX( ALL + col0 ) + 63 FROM tab1 cor0
----
-756

skipif mysql # not compatible
query I rowsort label-4768
SELECT + - 3 * + COUNT ( * ) * + MAX ( ALL + col0 ) + 63 FROM tab1 cor0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT MAX( col1 ) FROM tab0 WHERE NOT - ( 76 ) / - 83 + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT MAX ( col1 ) FROM tab0 WHERE NOT - ( 76 ) / - 83 + col0 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 50 AS col1 FROM tab1
----
101
135
141

query III rowsort
SELECT * FROM tab2 WHERE + 11 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - + + 24 FROM tab0
----
-105
-25
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT COUNT( * ) - - MAX( col0 ) AS col0 FROM tab0 WHERE + 1 IS NOT NULL AND - 98 * col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT COUNT ( * ) - - MAX ( col0 ) AS col0 FROM tab0 WHERE + 1 IS NOT NULL AND - 98 * col0 >= col2
----
NULL

query I rowsort
SELECT ALL + col0 - - - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - - col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 IS NULL
----
0

query I rowsort
SELECT DISTINCT 91 - + col1 AS col2 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 50 )
----
0

query I rowsort
SELECT DISTINCT - col2 * 84 * + - col2 + - + 12 FROM tab2 AS cor0
----
134388
282564
44424

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT SUM( + ( + col0 ) ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4780
SELECT DISTINCT SUM ( + ( + col0 ) ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - SUM( ALL 77 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-4781
SELECT - SUM ( ALL 77 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT COUNT( DISTINCT - 91 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( DISTINCT - 91 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL + CAST( + - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + CAST ( + - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col0 * col2 * - ( - - col2 ) FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( - 87 ) BETWEEN ( col1 * - col2 + col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - col1 ) * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) < ( 78 * 60 + + + 66 + col1 / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT DISTINCT - col0 + - CAST( + col2 AS SIGNED ) + + 2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102
-131
-67

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - col0 + - CAST ( + col2 AS INTEGER ) + + 2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102
-131
-67

query I rowsort
SELECT ALL ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = + 84 * + 58
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col2 <> - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4793
SELECT 75 * + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT - ( 94 ) + - 41 < ( - 71 )
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT 75 * + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT - ( 94 ) + - 41 < ( - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + 1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + 1 AND NULL
----
0

query I rowsort
SELECT - 72 + + 57 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT - col1 * + + 47 + - col2 DIV + 86 FROM tab2
----
-2397
-3149
-3619

skipif mysql # not compatible
query I rowsort label-4796
SELECT - col1 * + + 47 + - col2 / + 86 FROM tab2
----
-2397
-3149
-3619

query II rowsort
SELECT DISTINCT + 0, col2 * + 77 AS col0 FROM tab2
----
0
1771
0
3080
0
4466

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - - 84 * - 74 + - + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col0 ) * col1 + + 67 + col0 AS col0 FROM tab2 cor0
----
-2233
-4797
-4883

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + COUNT( * ) + - 11 AS col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-4800
SELECT + COUNT ( * ) + - 11 AS col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-8

query II rowsort
SELECT col0, col2 + - col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT DISTINCT 85 AS col2, COUNT( * ) FROM tab1 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-4803
SELECT DISTINCT 85 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
85
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT ALL 62 DIV + 5 + - col0 FROM tab2 AS cor0
----
-34
-52
-63

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 62 / + 5 + - col0 FROM tab2 AS cor0
----
-34
-52
-63

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 * - 36 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT 18 + - + col1 FROM tab2 WHERE 20 <= + + CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-4807
SELECT 18 + - + col1 FROM tab2 WHERE 20 <= + + CAST ( NULL AS INTEGER ) + + col0
----

query I rowsort
SELECT - 34 + + + col0 AS col0 FROM tab1
----
17
51
57

query I rowsort
SELECT ALL - col2 * 48 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * + col1 * + - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * + col1 * + - col0 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT 35 DIV col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT 35 / col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 44 + ( + col1 ) * + 60 FROM tab1 WHERE - col1 - - col0 >= col0 * + col2 * - col1 + - col0
----
-172
-2296
-3384

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4813
SELECT DISTINCT col0 - - col2 + CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT DISTINCT col0 - - col2 + CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4814
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4814
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - 7 + 50 * COUNT( * ) FROM tab0 cor0 WHERE NOT - ( + col2 ) * + col1 + col1 + col1 BETWEEN ( NULL ) AND ( + col1 )
----
-7

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 7 + 50 * COUNT ( * ) FROM tab0 cor0 WHERE NOT - ( + col2 ) * + col1 + col1 + col1 BETWEEN ( NULL ) AND ( + col1 )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT DISTINCT col0 DIV 51 * + col2 * - 53 AS col1, - col1 AS col2 FROM tab0
----
-5247
-1
-530
-21
0
-81

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT col0 / 51 * + col2 * - 53 AS col1, - col1 AS col2 FROM tab0
----
-5247
-1
-530
-21
0
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( + MAX( ( - - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( + MAX ( ( - - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4819
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + CAST( col0 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4819
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + CAST ( col0 AS INTEGER ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT - ( - MIN( - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - ( - MIN ( - col1 ) ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 * + - 64 ) BETWEEN col1 * - col2 + - - col2 + - col1 AND + + col1 * - 15 + + col2 + col0
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 33 <> NULL
----

query I rowsort
SELECT + + ( + col1 ) * + + 99 FROM tab0 AS cor0
----
2079
8019
99

query I rowsort
SELECT DISTINCT - ( - - 25 ) FROM tab2 cor0
----
-25

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - + COUNT( * ) + - 10 AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - + COUNT ( * ) + - 10 AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT 6 + - col1 + - + col2 FROM tab2
----
-111
-119
-68

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + 85 ) AS col1 FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - CAST( + + SUM( - 41 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - CAST ( + + SUM ( - 41 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT + 80, col2 AS col0 FROM tab0 AS cor0
----
80
10
80
47
80
99

query I rowsort
SELECT - col0 + - + col2 AS col1 FROM tab1 cor0
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col2, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT col0 + - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT col0 + - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 < + 42
----
87
21
10

query I rowsort
SELECT 61 + col2 FROM tab1
----
120
129
157

query I rowsort
SELECT + 99 * - 28 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COUNT( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( - 65 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( - 65 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + 9 ) * - col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT - col1 DIV + + 58 col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT - col1 / + + 58 col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT ALL 15 DIV + + col1 col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT ALL 15 / + + col1 col1 FROM tab1 AS cor0
----
0
1
3

query II rowsort
SELECT + 85 * + + 96, - col0 AS col1 FROM tab2 cor0
----
8160
-46
8160
-64
8160
-75

query I rowsort
SELECT DISTINCT - + col2 * - 51 + + col1 FROM tab1 AS cor0
----
3014
3515
4910

query II rowsort
SELECT DISTINCT + col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = - - col1 + + col0 * - - 40
----

query I rowsort
SELECT + 94 - - + 90 AS col1 FROM tab1 AS cor0
----
184
184
184

query I rowsort
SELECT + 92 - col0 FROM tab0
----
-5
5
77

query I rowsort
SELECT DISTINCT - col2 * + 44 FROM tab2
----
-1012
-1760
-2552

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT 81 * - 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4851
SELECT DISTINCT - col0 + + - col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT - col0 + + - col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - 58 + - 98 - ( - COUNT( * ) ) * COUNT( * ) * + COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 58 + - 98 - ( - COUNT ( * ) ) * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-129

query I rowsort
SELECT DISTINCT 97 + - ( - + col0 ) FROM tab1
----
148
182
188

query III rowsort
SELECT * FROM tab1 WHERE NULL <> col1 + + 39 * + col1 + + col1 * - col2 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + MIN( ALL + 7 ) * - 63 FROM tab0 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + MIN ( ALL + 7 ) * - 63 FROM tab0 AS cor0
----
-441

query I rowsort
SELECT col0 * - 33 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + 45 AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT col1 > col1
----
-3

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT col1 > col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT - col0 DIV + 19 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4859
SELECT - col0 / + 19 FROM tab2
----
-2
-3
-3

query I rowsort
SELECT DISTINCT + 59 * col0 AS col2 FROM tab0
----
5133
5723
885

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * col2 * + + col1 - - 27 * - col2 col1 FROM tab2 AS cor0
----
28704
75920
95584

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT - SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 31 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 37 + - col1 + + + col0 AS col0 FROM tab1
----
0
43
7

query II rowsort
SELECT + col1 * - 1 + 12 * - col0 AS col1, - col2 AS col2 FROM tab2
----
-603
-23
-845
-40
-967
-58

query I rowsort
SELECT col1 + - + col1 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 19 AS col1 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT 46 * - - 30 AS col1 FROM tab0 cor0
----
1380

query I rowsort
SELECT DISTINCT ( col1 ) * 53 AS col1 FROM tab1 WHERE - + ( 40 ) * - - col1 IS NOT NULL
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - 36 - COUNT( * ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4872
SELECT - 36 - COUNT ( * ) AS col0 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 90 col0 FROM tab2
----
-136
-154
-165

query II rowsort
SELECT ALL ( + - col0 ) * - 80 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
1200
-81
6960
-21
7760
-1

query I rowsort
SELECT - 2 + - + 44 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL SUM( + col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL SUM ( + col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
226

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab2 AS cor0 WHERE + 33 + - + col2 NOT BETWEEN + 45 AND NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL COUNT( * ) * - MAX( - col1 ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) * - MAX ( - col1 ) FROM tab2 cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - COUNT( ALL + ( + ( 64 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4879
SELECT - COUNT ( ALL + ( + ( 64 ) ) ) FROM tab0
----
-3

query II rowsort
SELECT ALL + 28 * - - 59 AS col2, 19 * - + col2 FROM tab1
----
1652
-1121
1652
-1292
1652
-1824

query II rowsort
SELECT col2, - 86 * - + col2 FROM tab2
----
23
1978
40
3440
58
4988

query I rowsort
SELECT DISTINCT ( - + 43 ) AS col0 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL + COUNT( * ) * + + 74 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + COUNT ( * ) * + + 74 FROM tab2 AS cor0
----
222

onlyif mysql # DIV for integer division: 
query II rowsort label-4885
SELECT ALL + + col1, + 83 DIV + col1 AS col0 FROM tab0 cor0
----
1
83
21
3
81
1

skipif mysql # not compatible
query II rowsort label-4885
SELECT ALL + + col1, + 83 / + col1 AS col0 FROM tab0 cor0
----
1
83
21
3
81
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL COUNT( * ) * + 81 AS col1 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL COUNT ( * ) * + 81 AS col1 FROM tab0
----
243

query I rowsort
SELECT - 56 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT - + SUM( + + 33 ) + - + COUNT( * ) DIV 82 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4890
SELECT - + SUM ( + + 33 ) + - + COUNT ( * ) / 82 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT + col0 * - - col0 FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT IN ( col0, 98 * + + col0, 32 )
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT - MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - 62 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - MAX( DISTINCT + - col1 ) * - 67 AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4894
SELECT - MAX ( DISTINCT + - col1 ) * - 67 AS col1 FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT - + COUNT( * ) * + 2 col0 FROM tab0 cor0 WHERE col2 - - 85 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4895
SELECT - + COUNT ( * ) * + 2 col0 FROM tab0 cor0 WHERE col2 - - 85 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( + 61 ) FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + COUNT( + 13 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + COUNT ( + 13 ) FROM tab0
----
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE + 58 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 + col0 + + col2, col2 AS col0 FROM tab2
----
144
40
191
58
92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 85 + + - col2 - - 44 col2 FROM tab1
----
108
47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 * - 40 AS col0 FROM tab0
----
-3321
39
399

query I rowsort
SELECT 74 + + col2 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT - - 58 DIV - col2 - - + col2 * col1 + - - col2 AS col0 FROM tab0 AS cor0
----
198
215
3853

skipif mysql # not compatible
query I rowsort label-4904
SELECT - - 58 / - col2 - - + col2 * col1 + - - col2 AS col0 FROM tab0 AS cor0
----
198
215
3853

query I rowsort
SELECT DISTINCT col2 + + + col0 * + 18 * - col1 * - 85 AS col1 FROM tab1 AS cor0
----
1092516
650309
6543878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT + 96 * - + CAST( NULL AS SIGNED ) + 79 + - + 63 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + 96 * - + CAST ( NULL AS INTEGER ) + 79 + - + 63 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + 75 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4908
SELECT - 8 + 0 FROM tab2 AS cor0 WHERE + col1 IN ( - ( ( - ( CAST( NULL AS DECIMAL ) ) ) ) * 48, col0 + - - col1, - + col2 + + 32 + + + 84 + - ( col2 ) * - + col0 - - CAST( + col0 AS SIGNED ) * 33 * col0 - col0 )
----

skipif mysql # not compatible
query I rowsort label-4908
SELECT - 8 + 0 FROM tab2 AS cor0 WHERE + col1 IN ( - ( ( - ( CAST ( NULL AS REAL ) ) ) ) * 48, col0 + - - col1, - + col2 + + 32 + + + 84 + - ( col2 ) * - + col0 - - CAST ( + col0 AS INTEGER ) * 33 * col0 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT - col1 DIV + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
22
39
58

skipif mysql # not compatible
query I rowsort label-4909
SELECT - col1 / + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
22
39
58

query I rowsort
SELECT 78 * + col2 FROM tab0 AS cor0
----
3666
7722
780

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 < + + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 * - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 41 * + col1 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 72 * COUNT( * ) * + 53 FROM tab1 AS cor0
----
11448

skipif mysql # not compatible
query I rowsort label-4919
SELECT 72 * COUNT ( * ) * + 53 FROM tab1 AS cor0
----
11448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col0 col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT 6 * - 34 AS col0 FROM tab1 AS cor0
----
-204
-204
-204

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - col2 + + + 15 + - col1 + 40 * - 98 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - 65 * - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 65 * - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - COUNT( * ) * - 48 AS col2 FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( * ) * - 48 AS col2 FROM tab0 cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + - MAX( col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4925
SELECT + - MAX ( col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4926
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 55 + 98 FROM tab0 cor0 WHERE 93 > col2
----
153

query II rowsort
SELECT col1 + - col1, + col1 * + + ( + col1 ) - + - col1 AS col1 FROM tab2 AS cor0
----
0
2652
0
4556
0
6006

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + 91 >= col2
----

query I rowsort
SELECT ALL - ( col0 ) + col0 + - - col0 - + col1 * + col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL - 92 + 30 * + + col2 - - col0 + + + col2 + + + col1 FROM tab0
----
1461
3075
326

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4932
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * - col0 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4932
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * - col0 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + col1 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + col1 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 86 + + 80 FROM tab2
----
-4306
-5682
-6542

query I rowsort
SELECT + col2 + - col0 + - - 84 FROM tab2
----
60
61
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT + COUNT( * ) DIV - ( - ( - ( 24 ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT + COUNT ( * ) / - ( - ( - ( 24 ) ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, + 36 col0 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

query II rowsort
SELECT DISTINCT - - col0 AS col2, 62 FROM tab0 cor0
----
15
62
87
62
97
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 1 ) IS NOT NULL
----

query II rowsort
SELECT - 11, + 91 AS col1 FROM tab1 AS cor0
----
-11
91
-11
91
-11
91

query I rowsort
SELECT DISTINCT col2 * + 99 AS col0 FROM tab2
----
2277
3960
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4943
SELECT ( MAX( DISTINCT CAST( NULL AS DECIMAL ) ) ) FROM tab1 WHERE NOT + + col0 - - + col0 BETWEEN + - CAST( - col0 AS SIGNED ) AND - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( MAX ( DISTINCT CAST ( NULL AS REAL ) ) ) FROM tab1 WHERE NOT + + col0 - - + col0 BETWEEN + - CAST ( - col0 AS INTEGER ) AND - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT ( - SUM( DISTINCT - col0 ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT ( - SUM ( DISTINCT - col0 ) ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT + MIN( - 30 ) AS col0, COUNT( * ) FROM tab0
----
-30
3

skipif mysql # not compatible
query II rowsort label-4945
SELECT + MIN ( - 30 ) AS col0, COUNT ( * ) FROM tab0
----
-30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT 47 DIV - 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT 47 / - 95 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT - + 72 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query II rowsort
SELECT col1, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + 99 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT - col1 + col1 + + col2 + col0 + - 69 DIV + 93 * - + col2 AS col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4951
SELECT - col1 + col1 + + col2 + col0 + - 69 / + 93 * - + col2 AS col2 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col2 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL + - 86 + - + ( - col1 ) * + + col0 * - - col1 FROM tab2 AS cor0
----
119560
336589
379370

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT ( + col2 - ( - 13 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( ( NOT + col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT - - CAST( NULL AS SIGNED ) / - col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT - - CAST ( NULL AS INTEGER ) / - col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, + 18 FROM tab1
----
59
18
68
18
96
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT 31 * MIN( DISTINCT - col1 ) col1 FROM tab2
----
-2387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT 31 * MIN ( DISTINCT - col1 ) col1 FROM tab2
----
-2387

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - 69 ) + col2 + - ( col1 ) * - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 26 + - - 59 AS col1, + ( - - col1 ) FROM tab1
----
33
14
33
47
33
5

query I rowsort
SELECT ALL + col2 + col0 + + 13 AS col1 FROM tab1
----
157
160
172

query I rowsort
SELECT ALL + col2 + - + ( - col1 ) AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 + + - ( - col0 ) AS col2 FROM tab2
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL - 0 * + ( - col0 ) DIV - - col0 + 70 FROM tab1 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 0 * + ( - col0 ) / - - col0 + 70 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT + 83 DIV + COUNT( DISTINCT + col0 ) + 64 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4966
SELECT + 83 / + COUNT ( DISTINCT + col0 ) + 64 AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + SUM( - 62 ) * + ( ( - + 89 ) ) * + 65 - 82 * + 33 + - COUNT( * ) * 84 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
1072548

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + SUM ( - 62 ) * + ( ( - + 89 ) ) * + 65 - 82 * + 33 + - COUNT ( * ) * 84 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1072548

query I rowsort
SELECT 69 + + 55 AS col2 FROM tab0 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + COUNT( * ) * 41 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4970
SELECT + COUNT ( * ) * 41 FROM tab0 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT ALL + 3 DIV col1 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4971
SELECT ALL + 3 / col1 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + - 35 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT + - 35 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT SUM( ALL - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT SUM ( ALL - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT + ( + 81 ) FROM tab2 AS cor0
----
81
81
81

query II rowsort
SELECT ALL ( + col0 ) AS col1, - ( - 63 ) AS col0 FROM tab2 AS cor0
----
46
63
64
63
75
63

query I rowsort
SELECT ALL - ( col0 ) * - 56 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL - col0 DIV + 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - col0 / + 98 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL + + MIN( + 34 ) AS col2 FROM tab1 WHERE NOT - - 66 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + + MIN ( + 34 ) AS col2 FROM tab1 WHERE NOT - - 66 IS NULL
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - COUNT( * ) * - 48 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - COUNT ( * ) * - 48 FROM tab2
----
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 48 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 65 * + col0 FROM tab1
----
3315
5525
5915

query II rowsort
SELECT ALL col2, - col0 * + 31 + - col1 * - col1 FROM tab2
----
23
1175
40
3945
58
2164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4984
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( col1 AS SIGNED ) * - 16 * - - col1 * + col2 * - + col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-4984
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( col1 AS INTEGER ) * - 16 * - - col1 * + col2 * - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT AVG ( DISTINCT + + col2 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT AVG ( DISTINCT + + col2 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4986
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - - col1 / - col2 > NULL
----

query II rowsort
SELECT col1, - col1 * - col0 AS col0 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query I rowsort
SELECT DISTINCT - col1 + + 88 AS col2 FROM tab1
----
41
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT ( - 63 ) / 32 / + 91 + - CAST( NULL AS SIGNED ) * - col0 / - col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4990
SELECT ( - 63 ) / 32 / + 91 + - CAST ( NULL AS INTEGER ) * - col0 / - col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - - 44 AS col2 FROM tab1 cor0
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - - 92 * - + col2 FROM tab0 AS cor0
----
-4324
-9108
-920

query II rowsort
SELECT - col2 + + - col0, col1 AS col2 FROM tab2 cor0
----
-104
77
-133
67
-69
51

query I rowsort
SELECT col2 + - col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + 7 + + col0 * + 83 FROM tab0 AS cor0
----
1252
7228
8058

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + COUNT( + 44 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT + COUNT ( + 44 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 26 * - col1 FROM tab2 AS cor0
----
1326
1742
2002

query I rowsort
SELECT DISTINCT - ( - 31 ) * + col0 FROM tab1 cor0
----
1581
2635
2821

query I rowsort
SELECT ALL - 66 * + 72 FROM tab0
----
-4752
-4752
-4752

query I rowsort
SELECT + 37 + - col2 + ( - col0 ) FROM tab1
----
-107
-110
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT - + ( + CAST( NULL AS SIGNED ) ) + + col2 FROM tab2 WHERE 39 / 85 + CAST( NULL AS SIGNED ) + - col0 * - col2 + - - col2 * - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT - + ( + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab2 WHERE 39 / 85 + CAST ( NULL AS INTEGER ) + - col0 * - col2 + - - col2 * - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 + + - col1 AS col2 FROM tab1
----
-17
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + 39 + + + 90 - - + COUNT( DISTINCT - 64 ) * - 7 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + 39 + + + 90 - - + COUNT ( DISTINCT - 64 ) * - 7 FROM tab2
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5004
SELECT + 24 AS col2, + CAST( NULL AS DECIMAL ) / + col1 + - col1 AS col1 FROM tab0
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT + 24 AS col2, + CAST ( NULL AS REAL ) / + col1 + - col1 AS col1 FROM tab0
----
24
NULL
24
NULL
24
NULL

query I rowsort
SELECT - ( ( 90 ) ) FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL - COUNT( * ) - 34 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - COUNT ( * ) - 34 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT ( + 46 ) FROM tab0
----
46

query II rowsort
SELECT ALL + 43 * - + 26 AS col0, col0 * 67 * - + ( 28 ) FROM tab1
----
-1118
-159460
-1118
-170716
-1118
-95676

query I rowsort
SELECT ALL ( 11 ) AS col0 FROM tab0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 21 AS col0 FROM tab2
----
51
21
67
21
77
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col2 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT ALL - col2 * ( + 79 ) FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT ALL - + 14 * - col1 FROM tab2 AS cor0
----
1078
714
938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 33 col1 FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT + ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - ( + col0 ) FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT col2 * - + col1 AS col1, - col2 * col1 FROM tab2
----
-1173
-1173
-3080
-3080
-3886
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 29 FROM tab0 cor0
----
-29

query I rowsort
SELECT - 6 + col2 FROM tab0 AS cor0
----
4
41
93

query I rowsort
SELECT DISTINCT + 49 + + 48 FROM tab1 AS cor0
----
97

query I rowsort
SELECT ALL 22 + + col2 AS col1 FROM tab0
----
121
32
69

query I rowsort
SELECT col2 * col2 * - col0 + - - col2 AS col1 FROM tab1
----
-295826
-420716
-469920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 37 AS col0 FROM tab2 AS cor0
----
1887
2479
2849

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5029
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE 32 / - + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT col0 DIV - + 29 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT col0 / - + 29 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 90 * - - col1 FROM tab2 cor0
----
-4590
-6030
-6930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5033
SELECT + CAST( 0 AS SIGNED ) DIV 57 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT + CAST ( 0 AS INTEGER ) / 57 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT COUNT( * ) * - COUNT( + - col2 ) - - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5034
SELECT COUNT ( * ) * - COUNT ( + - col2 ) - - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ( col2 ) - col1 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT - col1 - + - col0 + - 38 * ( + col0 ) + - col2 FROM tab1
----
-1997
-3209
-3482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 + - - col0 col1, + col1 AS col2 FROM tab1
----
55
14
89
5
95
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - 96 AS col1, col2 col2 FROM tab2 AS cor0
----
119
23
136
40
154
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col1 + + - col1 - - - col0 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 30 + + - col0 col1 FROM tab2 AS cor0
----
-17
-25
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - ( + col0 ) ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - col0 * - ( + col2 ) + - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT - ( + col1 ) * + col0 + - col2 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT ALL - 94 * + 38 * - col0 * col0 FROM tab0
----
27036468
33608948
803700

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - - 70 - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-5046
SELECT - - 70 - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT ALL + + col2 DIV - 22 AS col1 FROM tab1 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + col2 / - 22 AS col1 FROM tab1 cor0
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL + COUNT( * ) * 93 col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT ALL + COUNT ( * ) * 93 col1 FROM tab2 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT 26 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * + col0 - + col2 + - + CAST( + + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5049
SELECT 26 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * + col0 - + col2 + - + CAST ( + + col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT ALL - col1 DIV 4 FROM tab2 cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - col1 / 4 FROM tab2 cor0
----
-12
-16
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col2 + - 31 * 56 AS col2 FROM tab1 AS cor0
----
51
-1640
85
-1677
91
-1668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5052
SELECT + 30, + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-5052
SELECT + 30, + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL 5 + - col2 + + 55 FROM tab2
----
2
20
37

query I rowsort
SELECT DISTINCT - col0 * + + ( + - col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( * ) + + 20 * + - MAX( DISTINCT + col0 ) col1 FROM tab2
----
-1497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT COUNT ( * ) + + 20 * + - MAX ( DISTINCT + col0 ) col1 FROM tab2
----
-1497

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - MIN( ALL col0 ) + - + COUNT( * ) * + COUNT( ALL + - 50 ) - - - MIN( col2 ) + 89 AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5058
SELECT - MIN ( ALL col0 ) + - + COUNT ( * ) * + COUNT ( ALL + - 50 ) - - - MIN ( col2 ) + 89 AS col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT 1 + + COUNT( * ) * - 95 FROM tab1 AS cor0
----
-284

skipif mysql # not compatible
query I rowsort label-5059
SELECT 1 + + COUNT ( * ) * - 95 FROM tab1 AS cor0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + SUM( - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + SUM ( - - col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 29 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 78 IS NULL
----

query I rowsort
SELECT 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT - ( - 3 ) * COUNT( - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - ( - 3 ) * COUNT ( - col1 ) FROM tab0
----
9

query II rowsort
SELECT + col1 + + + col0, col1 FROM tab1
----
138
47
65
14
90
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL col2 * + col0 * + CAST( - - 95 AS SIGNED ) + - col1 * - col2 - + 39 AS col1 FROM tab1 AS cor0
----
466425
476681
591017

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL col2 * + col0 * + CAST ( - - 95 AS INTEGER ) + - col1 * - col2 - + 39 AS col1 FROM tab1 AS cor0
----
466425
476681
591017

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( - col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + col1 + + + col2 DIV 73 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col1 + + + col2 / 73 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + + col2 - ( - col2 ) FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE 61 * - 34 - + + 38 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col2 * + col2 - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT 73 - 52 * 26 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3983

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT 73 - 52 * 26 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 55 ) col1 FROM tab1 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT ALL + CAST( NULL AS SIGNED ) - - - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + CAST ( NULL AS INTEGER ) - - - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - + ( + MIN( - - 92 ) ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - + ( + MIN ( - - 92 ) ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 WHERE NOT + col1 > - - 74
----
-7

query II rowsort
SELECT + col1, col2 + - col2 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT SUM( DISTINCT + 77 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT SUM ( DISTINCT + 77 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT MAX( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT MAX ( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT COUNT( * ) DIV - - 21 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT COUNT ( * ) / - - 21 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT DISTINCT 4 * - col1 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT DISTINCT 4 * - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT + + 75 AS col2, + col1 * - + 34 AS col0 FROM tab1 cor0
----
75
-1598
75
-170
75
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5085
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + SUM( ALL + ( col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + SUM ( ALL + ( col1 ) ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - MAX( DISTINCT - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - MAX ( DISTINCT - 31 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL SUM( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT ALL SUM ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - - col1 * + + 76 FROM tab0 cor0
----
1596
6156
76

query I rowsort
SELECT DISTINCT 36 * - col0 AS col1 FROM tab2 AS cor0
----
-1656
-2304
-2700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 42 * + + col2 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
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-5094
SELECT + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 + - col1 AS col2, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT - ( + 69 ) AS col1 FROM tab0
----
-69
-69
-69

query II rowsort
SELECT - 13 AS col0, 93 + col0 FROM tab1
----
-13
144
-13
178
-13
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + SUM( ALL - - 52 ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + SUM ( ALL - - 52 ) FROM tab1 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 80
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - - ( + COUNT( * ) ) DIV + 4 + - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - ( + COUNT ( * ) ) / + 4 + - - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 * - 25 * col1 FROM tab0 AS cor0
----
2425
30375
45675

query II rowsort
SELECT + + 47 AS col1, col0 AS col1 FROM tab1 AS cor0
----
47
51
47
85
47
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col0, + col0 * - col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT 82 - + COUNT( * ) * 76 FROM tab1 cor0
----
-146

skipif mysql # not compatible
query I rowsort label-5108
SELECT 82 - + COUNT ( * ) * 76 FROM tab1 cor0
----
-146

query I rowsort
SELECT ALL - 89 - col2 FROM tab0 cor0
----
-136
-188
-99

query I rowsort
SELECT DISTINCT + 40 * + + 47 * col0 - col2 FROM tab0 AS cor0
----
163550
182261
28153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT + 29 DIV - + 50 - - - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5111
SELECT + 29 / - + 50 - - - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col2 - ( - col1 ) + 61 FROM tab1 AS cor0
----
-21
40
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + 63 col2 FROM tab1 AS cor0
----
143
143
143

query I rowsort
SELECT DISTINCT - 16 * - + col1 AS col1 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT COUNT( * ) - - 26 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5115
SELECT COUNT ( * ) - - 26 FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 + 76 FROM tab0
----
163
173
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 2 >= - 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT + - 45 * - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5119
SELECT + - 45 * - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT ALL COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT DISTINCT - COUNT( - - 25 ) * + 46 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-138
3

skipif mysql # not compatible
query II rowsort label-5121
SELECT DISTINCT - COUNT ( - - 25 ) * + 46 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-138
3

query I rowsort
SELECT DISTINCT 89 * + 66 + + col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
5829
5897
5900

query II rowsort
SELECT col1 AS col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5124
SELECT - SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE 5 + col2 * + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE 5 + col2 * + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 * - - col2 + 59 + + + col2 FROM tab1
----
5051
5133
6315

query I rowsort
SELECT DISTINCT 11 + - col1 FROM tab1
----
-3
-36
6

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + 1 + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + - col1 + - col0 AS col2 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT + col0 + - + col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT DISTINCT + col0 + - CAST( + col0 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + col0 + - CAST ( + col0 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT 45 * - + 7 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + + col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN 74 AND - ( + col1 ) + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT ( col2 ) + CAST( + 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
101
153
64

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT ( col2 ) + CAST ( + 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
101
153
64

query I rowsort
SELECT DISTINCT - 73 * - 3 - - col1 FROM tab2 AS cor0
----
270
286
296

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - + col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - - 20
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT - - 10 * col2 DIV + 67 FROM tab0 AS cor0
----
1
14
7

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - - 10 * col2 / + 67 FROM tab0 AS cor0
----
1
14
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 / + ( + ( - col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 / + ( + ( - col0 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT col0 * + 27 * - 51 FROM tab1
----
-117045
-125307
-70227

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5147
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5147
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query II rowsort
SELECT ALL col2 AS col0, col1 * + col2 * - ( 71 ) FROM tab1
----
59
-20945
68
-226916
96
-95424

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE NOT + - CAST( - + 31 AS SIGNED ) * + + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( - + 31 AS INTEGER ) * + + col2 <> NULL
----

query I rowsort
SELECT - ( ( + 97 ) ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col2
----

query I rowsort
SELECT ALL 2 + - 61 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT 73 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - ( + MAX( ALL + + 99 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5154
SELECT - ( + MAX ( ALL + + 99 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT + - SUM( DISTINCT - + 94 ) AS col1 FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + - SUM ( DISTINCT - + 94 ) AS col1 FROM tab0 cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 col1 FROM tab1 AS cor0 WHERE + 30 * - col1 >= NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT - 61 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 61 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 79 AS col2, - col1 FROM tab1
----
79
-14
79
-47
79
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT 85, + SUM( 98 ) col0 FROM tab0
----
85
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5160
SELECT 85, + SUM ( 98 ) col0 FROM tab0
----
85
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 35 * COUNT( * ) AS col1 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 35 * COUNT ( * ) AS col1 FROM tab0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + 73 + + 12 + + - COUNT( * ) AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + 73 + + 12 + + - COUNT ( * ) AS col0 FROM tab2
----
82

query I rowsort
SELECT + col2 - + 2 FROM tab1
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL + SUM( + col2 ) + + 61 AS col1 FROM tab1
----
284

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + SUM ( + col2 ) + + 61 AS col1 FROM tab1
----
284

query I rowsort
SELECT ALL + 94 * + - col1 + + col1 - col2 FROM tab0 AS cor0
----
-192
-1963
-7580

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - + 55 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5168
SELECT - + 55 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * 81 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - 11 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT 88 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT 88 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 * - 23 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) AS col2 FROM tab1 WHERE ( + col0 / 9 ) BETWEEN + 85 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col0 + 76 col2 FROM tab0
----
1291
173
1903

query III rowsort
SELECT * FROM tab2 WHERE col2 * 64 < NULL
----

query I rowsort
SELECT - col2 * + col0 FROM tab2 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + MIN( + 81 ) col1 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5177
SELECT + MIN ( + 81 ) col1 FROM tab1
----
81

query I rowsort
SELECT 53 + + col1 * + col1 AS col2 FROM tab1
----
2262
249
78

query I rowsort
SELECT col1 - 64 FROM tab2 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + 62 + - MAX( DISTINCT + col2 + col0 ) FROM tab1 WHERE NOT ( - 67 * 72 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 62 + - MAX ( DISTINCT + col2 + col0 ) FROM tab1 WHERE NOT ( - 67 * 72 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( ( col1 ) ) FROM tab2 WHERE col2 IN ( + col1 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col1 col0 FROM tab1
----
118
76
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 9 + - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN col0 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT ALL col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * 55 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * 55 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT ( col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ( col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - 85 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + MIN( ALL - col1 ) * - COUNT( * ) + + 11 AS col0 FROM tab0
----
254

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + MIN ( ALL - col1 ) * - COUNT ( * ) + + 11 AS col0 FROM tab0
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL COUNT( * ) * + 11 + COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL COUNT ( * ) * + 11 + COUNT ( * ) AS col0 FROM tab2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT 33 + + 81 DIV ( 84 + + col1 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT 33 + + 81 / ( 84 + + col1 ) AS col2 FROM tab1
----
33

query I rowsort
SELECT ALL - - 76 * 31 AS col1 FROM tab0 AS cor0
----
2356
2356
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( * ) + MAX( col2 ) AS col2 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( * ) + MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT - - col1 + - col1 DIV 90 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5199
SELECT - - col1 + - col1 / 90 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col2 ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col2 ) AND + col2
----
0

query I rowsort
SELECT + 76 + + 39 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - + col2 + 59 * col0 FROM tab0 cor0
----
5123
5624
838

query I rowsort
SELECT DISTINCT col0 + col1 * 67 FROM tab0 AS cor0
----
1494
164
5442

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - 55 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5206
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 55 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 8 * col0 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL SUM( DISTINCT + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL SUM ( DISTINCT + col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + COUNT( * ) + + 94 * - COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-5209
SELECT + COUNT ( * ) + + 94 * - COUNT ( * ) AS col0 FROM tab0
----
-279

query I rowsort
SELECT ALL + 51 FROM tab0 WHERE NULL IS NULL
----
51
51
51

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + + col0 ) <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT MIN( DISTINCT + - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5213
SELECT MIN ( DISTINCT + - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col0 - + - col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT - col1 - + - col2 DIV + col0 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-5215
SELECT - col1 - + - col2 / + col0 FROM tab1 AS cor0
----
-13
-47
-5

query I rowsort
SELECT ALL - 28 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL - COUNT( - 86 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - COUNT ( - 86 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5218
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT 76, col2 AS col1 FROM tab1 AS cor0
----
76
59
76
68
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT col1 + - CAST( 29 AS SIGNED ) FROM tab1 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * + 9 ) IS NOT NULL
----
-15
-24
18

skipif mysql # not compatible
query I rowsort label-5220
SELECT col1 + - CAST ( 29 AS INTEGER ) FROM tab1 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 9 ) IS NOT NULL
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 16 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 16 <= NULL
----
0

query I rowsort
SELECT DISTINCT + + col1 * 56 * - 99 + col0 * ( - col2 ) FROM tab0 cor0
----
-117294
-15147
-449769

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + + col1 * col0 BETWEEN NULL AND ( + col0 ) * 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * - + 1 col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - - COUNT( * ) * + + 84 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - COUNT ( * ) * + + 84 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT ALL + + MAX( + col0 ) DIV + + 60 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + + MAX ( + col0 ) / + + 60 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col1 + col0 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col1 + col0 * + col1 IS NOT NULL
----
3

query II rowsort
SELECT - ( - col1 ) AS col2, col0 * - col2 AS col1 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COUNT( * ) * + 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) * + 69 FROM tab2
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT col1 DIV + + col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5230
SELECT col1 / + + col1 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / - + 27 + + 22 / col2 NOT BETWEEN + col2 AND ( + 66 )
----

query II rowsort
SELECT - col0 * - col1, 6 * ( col0 ) * + ( col2 ) + - col1 AS col0 FROM tab1
----
425
30085
4277
37081
714
29362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) NOT BETWEEN + 59 * col1 AND - CAST( 52 AS SIGNED ) + col2 * 18
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) NOT BETWEEN + 59 * col1 AND - CAST ( 52 AS INTEGER ) + col2 * 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT COUNT( * ) * - ( - SUM( ALL + + 77 ) ) FROM tab0
----
693

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT COUNT ( * ) * - ( - SUM ( ALL + + 77 ) ) FROM tab0
----
693

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5235
SELECT + col1 * col2 AS col1 FROM tab2 WHERE NOT 33 + CAST( NULL AS DECIMAL ) / col0 IN ( + 99 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-5235
SELECT + col1 * col2 AS col1 FROM tab2 WHERE NOT 33 + CAST ( NULL AS REAL ) / col0 IN ( + 99 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 / + ( - + CAST( NULL AS SIGNED ) ) <= + col0
----

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 / + ( - + CAST ( NULL AS INTEGER ) ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - MIN( 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - MIN ( 39 ) FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT + 69 DIV 87 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + 69 / 87 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT col2 * - - col0 * - + col2 + + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-102363
-24306
-252291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT COUNT( * ) DIV + MAX( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT COUNT ( * ) / + MAX ( DISTINCT 51 ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 >= ( + - col0 / + col0 )
----

query I rowsort
SELECT col0 * 6 AS col0 FROM tab2
----
276
384
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL + COUNT( * ) FROM tab0 WHERE - CAST( + + 53 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - CAST ( + + 53 AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT ALL col0 + + 56 + + ( - col2 ) DIV + - col2 - - - 81 * col1 AS col0 FROM tab2
----
-4028
-5295
-6116

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL col0 + + 56 + + ( - col2 ) / + - col2 - - - 81 * col1 AS col0 FROM tab2
----
-4028
-5295
-6116

query I rowsort
SELECT 95 - - col2 FROM tab2
----
118
135
153

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( - + col2 )
----

query I rowsort
SELECT ALL col0 + - 45 - + col2 * + 99 + - 38 AS col1 FROM tab0
----
-4721
-9787
-986

query I rowsort
SELECT ALL - ( - - 83 ) + + 73 AS col0 FROM tab0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT DISTINCT + col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 - - col0 - + 22 + + ( ( - col1 ) ) * col1 >= col2 - + ( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 - - col0 - + 22 + + ( ( - col1 ) ) * col1 >= col2 - + ( + 22 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 6 AND + 42
----

query I rowsort
SELECT - 83 + + 81 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - 91 + - ( + 2 ) AS col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT ALL + col0 * - 82 - + 55 FROM tab0 AS cor0 WHERE NOT - col1 * + col1 > + col1 * - 1 - + col1 * - col0
----
-1285
-7189
-8009

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5260
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + + SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5261
SELECT + + SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * - col2 col2 FROM tab0 AS cor0
----
-2632
-5544
-560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 39 ) = + col2 - + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT ALL - + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - + AVG ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 49 AS col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT + + 50 AS col1 FROM tab2 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - col0 * 70 - + + 41 - + 59 * - 77 col2 FROM tab2 AS cor0
----
-111978
-131998
-79218

query I rowsort
SELECT ALL + 95 * - + 53 FROM tab0
----
-5035
-5035
-5035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + - COUNT( * ) * - - 82 AS col2 FROM tab2 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5271
SELECT + - COUNT ( * ) * - - 82 AS col2 FROM tab2 cor0
----
-246

query I rowsort
SELECT DISTINCT 71 FROM tab0 cor0 WHERE NOT col0 * + 81 IS NOT NULL
----

query I rowsort
SELECT ALL + + 11 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 54 IS NULL
----
506
704
825

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT COUNT( * ) * - 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-414

skipif mysql # not compatible
query I rowsort label-5274
SELECT COUNT ( * ) * - 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-414

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT 78 FROM tab0, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT - 24 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT - 24 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 + - col0 * - + 14 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + col0 - - col1 + + col1 FROM tab2 AS cor0
----
194
282
284

query I rowsort
SELECT ALL 32 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * - - col0 NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * - - col0 NOT BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT + 22 + + col2 AS col0 FROM tab2 AS cor0
----
45
62
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - ( - 58 ) ) + - 18 col1 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT ALL col1 + col2 * - 50 FROM tab0
----
-2269
-479
-4949

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT col2 DIV col0 * + 27 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT col2 / col0 * + 27 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 2 BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT + COUNT( * ) DIV + 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT + COUNT ( * ) / + 41 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - col0 ) + - - col2 + col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col1 col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col2 - + 36 FROM tab1
----
23
32
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT ALL * FROM tab2 WHERE NOT col2 - + 98 IN ( - - 51, col2 - + CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT ALL * FROM tab2 WHERE NOT col2 - + 98 IN ( - - 51, col2 - + CAST ( NULL AS INTEGER ), + col0 )
----

query I rowsort
SELECT 82 * - col0 * col0 AS col0 FROM tab1
----
-213282
-592450
-679042

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - MAX( ALL + + 95 ) AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-5294
SELECT - MAX ( ALL + + 95 ) AS col2 FROM tab2
----
-95

query II rowsort
SELECT col1 * + col0 * col2 AS col0, - 29 AS col0 FROM tab0
----
18270
-29
57105
-29
9603
-29

query I rowsort
SELECT DISTINCT col2 - 21 FROM tab2 AS cor0
----
19
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT + + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT col2 * + - 47 AS col0 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT ALL + + 19 AS col1 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col0 + + - 41 * + 28 AS col2 FROM tab2
----
-1073
-1084
-1102

query II rowsort
SELECT ALL col0 + + 59 AS col0, - col1 * - col2 FROM tab1
----
110
1344
144
295
150
3196

query I rowsort
SELECT - 86 - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-133
-185
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + MAX( ALL - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + MAX ( ALL - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5307
SELECT DISTINCT + col1 AS col1, + col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5307
SELECT DISTINCT + col1 AS col1, + col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT ( + MAX( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT ( + MAX ( ALL - col1 ) ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + ( + 74 ) + col2 + + col1 FROM tab2 AS cor0
----
148
191
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5310
SELECT - CAST( NULL AS DECIMAL ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - CAST ( NULL AS REAL ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + - col2 * + - col2 FROM tab0
----
110
2256
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5312
SELECT ALL 90 * 90 - + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5312
SELECT ALL 90 * 90 - + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) col0 FROM tab1
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT ALL 16 + + col0 DIV col0 * - 17 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL 16 + + col0 / col0 * - 17 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 14 * - col1 - - + col1 + - ( - col0 ) FROM tab0 cor0
----
-1038
-186
84

query I rowsort
SELECT DISTINCT + + ( + 82 ) * col2 * + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-131200
-275848
-43378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE col2 + - col1 = col0 + + ( + 31 ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5317
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE col2 + - col1 = col0 + + ( + 31 ) * - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 - 11 + + col1 col1 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5320
SELECT ALL - col1 DIV - col1 + - CAST( - ( + col2 ) AS SIGNED ) DIV + col2 AS col2, 87 * + + ( col2 ) FROM tab2 AS cor0
----
2
2001
2
3480
2
5046

skipif mysql # not compatible
query II rowsort label-5320
SELECT ALL - col1 / - col1 + - CAST ( - ( + col2 ) AS INTEGER ) / + col2 AS col2, 87 * + + ( col2 ) FROM tab2 AS cor0
----
2
2001
2
3480
2
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT + COUNT( * ) * + 93 + SUM( DISTINCT col1 ) FROM tab1
----
345

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT + COUNT ( * ) * + 93 + SUM ( DISTINCT col1 ) FROM tab1
----
345

query I rowsort
SELECT DISTINCT 16 + - col0 + - 54 AS col0 FROM tab0
----
-125
-135
-53

query I rowsort
SELECT ALL - 90 * + col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT + ( col0 ) * + + col1 * + - 14 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-5950
-59878
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - col1 / - col2 FROM tab2 WHERE NOT + - col1 / - 83 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 98 DIV + 87 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 98 / + 87 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5328
SELECT - col1 / + CAST( NULL AS SIGNED ) / + 18 * 82 * + - col0, - 0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5328
SELECT - col1 / + CAST ( NULL AS INTEGER ) / + 18 * 82 * + - col0, - 0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN + 15 + + col0 AND NULL
----

query I rowsort
SELECT - ( + + ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT 42, + col1 AS col2 FROM tab1 AS cor0
----
42
14
42
47
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL - 69 + + ( col2 ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - 69 + + ( col2 ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 27 + - + col2 AS col2 FROM tab0
----
-126
-37
-74

query I rowsort
SELECT ALL + 0 + - 41 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + ( + + col1 ) * - 87 AS col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT - + ( - 27 ) AS col1 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5337
SELECT + - 22 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT + - 22 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 81 - col0 FROM tab0 AS cor0
----
-178
-1788
-6576

query II rowsort
SELECT DISTINCT + + 13, + 53 AS col2 FROM tab0 AS cor0
----
13
53

onlyif mysql # DIV for integer division: 
query II rowsort label-5340
SELECT col1 DIV - + col2 - col0 AS col1, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-5340
SELECT col1 / - + col2 - col0 AS col1, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN + 5 + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL 64 * - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 33 * - - COUNT( ALL + col0 ) + - 28 - - - COUNT( * ) + COUNT( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 64 * - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 33 * - - COUNT ( ALL + col0 ) + - 28 - - - COUNT ( * ) + COUNT ( col0 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 89 * col1 ) BETWEEN + col0 AND + ( - + col0 )
----

query I rowsort
SELECT 52 + 26 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5345
SELECT DISTINCT + + col2 DIV + + 50 - col1 + + col0 + col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
98
1

skipif mysql # not compatible
query II rowsort label-5345
SELECT DISTINCT + + col2 / + + 50 - col1 + + col0 + col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
98
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + SUM( DISTINCT 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5347
SELECT + SUM ( DISTINCT 69 ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT DISTINCT 85 AS col2, MAX( DISTINCT - + col0 ) FROM tab1
----
85
-51

skipif mysql # not compatible
query II rowsort label-5348
SELECT DISTINCT 85 AS col2, MAX ( DISTINCT - + col0 ) FROM tab1
----
85
-51

query I rowsort
SELECT ALL col0 * 58 AS col0 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT col0 IN ( + col1, col0 * - 59 * col2 )
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - + 25 AS col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + 69 * + COUNT( + 36 ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + 69 * + COUNT ( + 36 ) AS col2 FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-5355
SELECT DISTINCT col2 DIV + + 1 AS col0, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-5355
SELECT DISTINCT col2 / + + 1 AS col0, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( - + col0 ) + + + 12 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 + - ( - + col0 ) + + + 12 <= NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5357
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT DISTINCT - COUNT( - - col0 ) col0, 12 col1 FROM tab0 AS cor0
----
-3
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5358
SELECT DISTINCT - COUNT ( - - col0 ) col0, 12 col1 FROM tab0 AS cor0
----
-3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + COUNT( + 11 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + COUNT ( + 11 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + 41 + + COUNT( * ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + 41 + + COUNT ( * ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT + col1 * + + 93 FROM tab0
----
1953
7533
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT ALL - SUM( - CAST( - col0 AS SIGNED ) ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT ALL - SUM ( - CAST ( - col0 AS INTEGER ) ) col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT 51 + + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 51 + + - COUNT ( * ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT 91 + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT 91 + - COUNT ( * ) FROM tab1
----
88

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL IN ( - col1 * - col2 + col0, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL 36 + + + col0 AS col1 FROM tab0
----
123
133
51

query I rowsort
SELECT col2 + + - ( + - 65 ) FROM tab0 AS cor0
----
112
164
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + + COUNT( * ) + + 39 AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5369
SELECT + + COUNT ( * ) + + 39 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + 46 + - - col0 AS col1 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5373
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col1 * - CAST( NULL AS SIGNED ), col2, 53 )
----

skipif mysql # not compatible
query III rowsort label-5373
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col1 * - CAST ( NULL AS INTEGER ), col2, 53 )
----

query I rowsort
SELECT DISTINCT - ( 48 ) AS col1 FROM tab0 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col0 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT ALL - - col1 * + col2 + 30 AS col1 FROM tab1 AS cor0
----
1374
3226
325

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
1
21
81

query II rowsort
SELECT + - 75 AS col2, + col2 + col0 * + - ( - - 75 ) * + col1 * - 26 AS col0 FROM tab1 AS cor0
----
-75
1392396
-75
828809
-75
8340218

query I rowsort
SELECT - - 77 AS col1 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + ( - - 49 ) AS col0 FROM tab2 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT + col0 * 54 FROM tab1
----
2754
4590
4914

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + + col1 NOT BETWEEN - + 51 * - col0 + col0 + + col0 - + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL ( - SUM( + - 78 ) ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL ( - SUM ( + - 78 ) ) FROM tab0
----
234

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT MAX( DISTINCT 82 ) AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT MAX ( DISTINCT 82 ) AS col2 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 18 * - 74 FROM tab0
----
1332

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + 59 ) NOT IN ( - 49 )
----

query I rowsort
SELECT - ( - + ( - - 23 ) ) * - 15 FROM tab2 AS cor0
----
-345
-345
-345

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 63, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
21
21
21

query I rowsort
SELECT - + 99 AS col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL MAX( DISTINCT - 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL MAX ( DISTINCT - 24 ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT + 46 * + - COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT + 46 * + - COUNT ( * ) FROM tab1
----
-138

query I rowsort
SELECT DISTINCT + 22 * - col2 AS col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT 0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT 0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + COUNT( * ) * + 28 AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5400
SELECT + COUNT ( * ) * + 28 AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL + + CAST( 47 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + + CAST ( 47 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + col0 * + col0 * + col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT 20 DIV COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5403
SELECT 20 / COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - col1, - col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * + 21 * col2 <= + col2
----

query I rowsort
SELECT ALL - - col0 + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT col0 + + col0 + + + 31 * - + col2 FROM tab2
----
-1112
-1648
-621

query I rowsort
SELECT - col0 + ( - + col0 ) FROM tab1
----
-102
-170
-182

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - 22 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT DISTINCT + - COUNT( * ) col0, COUNT( * ) + + 30 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5411
SELECT DISTINCT + - COUNT ( * ) col0, COUNT ( * ) + + 30 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) + 51 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5414
SELECT DISTINCT 64 * + + COUNT( * ) DIV 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT 64 * + + COUNT ( * ) / 55 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - COUNT( * ) + 35 * + + 73 FROM tab1
----
2552

skipif mysql # not compatible
query I rowsort label-5415
SELECT - COUNT ( * ) + 35 * + + 73 FROM tab1
----
2552

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 55 * - 65 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col1 FROM tab0 cor0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT COUNT( * ) col1, + MAX( ALL - ( - col1 ) ) FROM tab0
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5423
SELECT COUNT ( * ) col1, + MAX ( ALL - ( - col1 ) ) FROM tab0
----
3
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= + col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - 57 * + ( - - COUNT( * ) ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - 57 * + ( - - COUNT ( * ) ) FROM tab0
----
-171

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 * + col1, col1, + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT 63 + COUNT( * ) + + 82 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
145

skipif mysql # not compatible
query I rowsort label-5429
SELECT 63 + COUNT ( * ) + + 82 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
145

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab2 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - 75 * - COUNT( + col1 ) FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 75 * - COUNT ( + col1 ) FROM tab1 cor0
----
225

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT DISTINCT - - MAX( + 15 ), COUNT( * ) col0 FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5433
SELECT DISTINCT - - MAX ( + 15 ), COUNT ( * ) col0 FROM tab1 AS cor0
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - COUNT( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5434
SELECT - COUNT ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT col1 AS col1, + col2 + - + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
51
-28
67
-9
77
-37

skipif mysql # not compatible
query II rowsort label-5436
SELECT col1 AS col1, + col2 + - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
51
-28
67
-9
77
-37

query I rowsort
SELECT ALL + 51 + - col0 FROM tab1
----
-34
-40
0

query II rowsort
SELECT col2, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL 93 * - - 30 + MIN( + + 32 ) FROM tab0
----
2822

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 93 * - - 30 + MIN ( + + 32 ) FROM tab0
----
2822

query I rowsort
SELECT 86 - + col1 AS col1 FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT + COUNT( * ) - + 85 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT + COUNT ( * ) - + 85 FROM tab2
----
-82

query II rowsort
SELECT ALL col0, + col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col1 + - - col0 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 95 * 62 + col0 + - col0 FROM tab0 AS cor0
----
5890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT - 61 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT - 61 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + - 52 AS col1 FROM tab2
----
-110
-75
-92

query I rowsort
SELECT col2 * - 26 AS col0 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - + SUM( ALL col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5448
SELECT - + SUM ( ALL col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + SUM( 99 ) AS col1 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5449
SELECT + SUM ( 99 ) AS col1 FROM tab1 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT 85 * - + col1 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 91 / + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 43 + + ( - col2 ) * + col1 FROM tab2 AS cor0
----
-1130
-3037
-3843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT DISTINCT + MIN( + CAST( - 4 AS SIGNED ) ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + MIN ( + CAST ( - 4 AS INTEGER ) ) FROM tab0
----
-4

query I rowsort
SELECT ALL col1 * + 45 FROM tab0 AS cor0
----
3645
45
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 + - 32 col2 FROM tab1 AS cor0
----
106
33
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT - - col1 + - - col2 DIV col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5457
SELECT - - col1 + - - col2 / col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT + + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + 84 + 3 AS col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + + col0 * - - col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL COUNT( * ) * + 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL COUNT ( * ) * + 9 FROM tab0
----
27

query I rowsort
SELECT ALL col2 + + + 24 + - col2 + 81 + + + col2 * + col0 AS col0 FROM tab2
----
1163
2665
4455

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + 97 * - + col1 AS col0 FROM tab0
----
-1950
-7842
0

query I rowsort
SELECT DISTINCT + 28 + 16 AS col2 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL ( COUNT( ALL col0 ) ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL ( COUNT ( ALL col0 ) ) - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - MIN( + - 35 ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5467
SELECT - MIN ( + - 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT col2 - 13 AS col2 FROM tab1 AS cor0
----
46
55
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55, + 63 col2 FROM tab2
----
-55
63

query I rowsort
SELECT 78 AS col0 FROM tab0 WHERE NOT + + 19 IS NOT NULL
----

query I rowsort
SELECT ALL 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2 cor0
----
30

query I rowsort
SELECT DISTINCT ( + - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col0 * - 18 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-111475
-88179
-90355

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT DISTINCT - col2 DIV + col0 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - col2 / + col0 FROM tab0 cor0
----
-1
-3
0

query II rowsort
SELECT DISTINCT - - 61, 31 AS col2 FROM tab0 AS cor0
----
61
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col2, + col0 + + col0 FROM tab2 AS cor0
----
83
128
83
150
83
92

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE NOT - 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( + 80 ) ) FROM tab2
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col1 * - - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - SUM( - col2 ) + - 55 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5485
SELECT - SUM ( - col2 ) + - 55 AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL - col0 + - + 58 - - - CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-127
-162
-191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT ALL - col0 + - + 58 - - - CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-127
-162
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + MAX( DISTINCT - + col2 ) + + - 93 AS col0 FROM tab1 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-5487
SELECT + MAX ( DISTINCT - + col2 ) + + - 93 AS col0 FROM tab1 AS cor0
----
-152

query I rowsort
SELECT col0 + - 5 AS col2 FROM tab2
----
41
59
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT + COUNT( * ) * - 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + COUNT ( * ) * - 17 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + - col2 * + col2 - - - col2 + + col1 FROM tab2 cor0
----
-1563
-3355
-501

query I rowsort
SELECT ALL 68 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + COUNT( * ) - 35 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + COUNT ( * ) - 35 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL MIN( + 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MIN ( + 79 ) FROM tab0 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - col2 / + 53 + - col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT - COUNT( * ) * - 15 + + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT - COUNT ( * ) * - 15 + + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT - ( - 72 ) FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT ALL - + col0 AS col2, + ( col0 ) AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + ( - + ( - 75 ) ) * - col0 * 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT + col0 DIV 88 DIV - 48 - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5499
SELECT + col0 / 88 / - 48 - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5500
SELECT CAST( NULL AS DECIMAL ) - + col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT CAST ( NULL AS REAL ) - + col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT - ( + - 61 ) DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - ( + - 61 ) / - col2 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 47 * - + col0 col2 FROM tab0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + 83 * COUNT( * ) + COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + 83 * COUNT ( * ) + COUNT ( * ) FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT col1 / - - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT col1 / - - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL SUM( DISTINCT + ( + 31 ) ) FROM tab2 WHERE NULL <= - CAST( col1 AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL SUM ( DISTINCT + ( + 31 ) ) FROM tab2 WHERE NULL <= - CAST ( col1 AS INTEGER ) * 28
----
NULL

query I rowsort
SELECT ALL + 6 + col2 + - + 25 + - 14 AS col1 FROM tab2
----
-10
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT 86 * - COUNT( * ) + 4 FROM tab1
----
-254

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT 86 * - COUNT ( * ) + 4 FROM tab1
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL CAST( NULL AS SIGNED ) * - col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < - col2
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT COUNT( ALL + 61 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5514
SELECT COUNT ( ALL + 61 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 col2 FROM tab2 AS cor0 WHERE ( ( NOT + col0 + - + col2 IS NULL ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab2 AS cor0 WHERE ( ( NOT + col0 + - + col2 IS NULL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT col2 DIV + - col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT col2 / + - col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL MIN( ALL 97 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5518
SELECT ALL MIN ( ALL 97 ) col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 80 FROM tab0 cor0 WHERE NOT 19 IS NULL
----
80
80
80

query I rowsort
SELECT ALL + col0 * - - 62 * - - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - + 43 AS col0 FROM tab2 cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + col2 + - + col0 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL + COUNT( + 42 ) + - MAX( - col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + COUNT ( + 42 ) + - MAX ( - col1 ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT 8 + - col0 - + + ( + col1 ) * + + 27 FROM tab0
----
-116
-2194
-646

query I rowsort
SELECT + 61 + + ( + + col1 ) FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE - col1 * - col2 > NULL
----

query I rowsort
SELECT + + 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col2 + - 24 + + 60 FROM tab0
----
135
46
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT DISTINCT + + 57 - - + ( - MAX( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + + 57 - - + ( - MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 37 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5530
SELECT 37 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - ( + col1 ) + - 85 FROM tab2 AS cor0
----
-136
-152
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5532
SELECT DISTINCT + ( + 83 ) col0 FROM tab2 cor0 WHERE NOT + col0 IN ( + + col2 - + 66, col2 * + 10 + + col0 - + col0 * + col2, - 46, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT DISTINCT + ( + 83 ) col0 FROM tab2 cor0 WHERE NOT + col0 IN ( + + col2 - + 66, col2 * + 10 + + col0 - + col0 * + col2, - 46, CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + - 68 * - 1 * col0 FROM tab2 WHERE NOT 76 >= NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 89 * - col0 + 89 * 20 <= + - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 * + - 18 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 24 * + 98 + + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - CAST( + 86 AS SIGNED ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - CAST ( + 86 AS INTEGER ) FROM tab1
----
-86

query II rowsort
SELECT ALL col1 AS col0, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL ( - col1 ) * + + col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT 47 * + COUNT( * ) col1 FROM tab1
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT 47 * + COUNT ( * ) col1 FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + 86 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL col1 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL col1 / + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - - COUNT( - ( - 6 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5546
SELECT - - COUNT ( - ( - 6 ) ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST( + - 0 AS SIGNED ) AS col1 FROM tab1
----
9 values hashing to 417c288921895f31abb4f3fceeaa6fe1

skipif mysql # not compatible
query III rowsort label-5548
SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST ( + - 0 AS INTEGER ) AS col1 FROM tab1
----
9 values hashing to 417c288921895f31abb4f3fceeaa6fe1

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT DISTINCT 5 * - 2 DIV ( 35 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5549
SELECT DISTINCT 5 * - 2 / ( 35 ) col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 60 * 76 + - col0 AS col1 FROM tab0
----
4463
4473
4545

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5551
SELECT COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL - + col2 * - 93 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 <= - 45 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT + COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5554
SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL
----
0
0

query I rowsort
SELECT DISTINCT - - 88 * + 48 AS col2 FROM tab1 AS cor0
----
4224

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 52 * + 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + - - 83, col0 col0 FROM tab0 AS cor0
----
2
15
62
87
82
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 35 + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5558
SELECT 35 + COUNT ( * ) AS col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT + COUNT( * ) + + - 36 AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + COUNT ( * ) + + - 36 AS col1 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - ( - + 75 ) AS col1, - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0, 8 / col2, + col2 * + - 24, - 13, col1 )
----

query I rowsort
SELECT ALL col0 + + 55 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT col2 - + 72 FROM tab1 cor0
----
-13
-4
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT col1 - CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT col1 - CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 62 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT ALL - col0 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5567
SELECT - + COUNT( * ) - + MIN( - + col1 ) * + + COUNT( * ) * + 19 + - MIN( - col0 ) * + - CAST( NULL AS SIGNED ), + ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5567
SELECT - + COUNT ( * ) - + MIN ( - + col1 ) * + + COUNT ( * ) * + 19 + - MIN ( - col0 ) * + - CAST ( NULL AS INTEGER ), + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT + CAST( - + col0 AS SIGNED ) * col2 + + 20 FROM tab2
----
-1038
-2540
-4330

skipif mysql # not compatible
query I rowsort label-5568
SELECT + CAST ( - + col0 AS INTEGER ) * col2 + + 20 FROM tab2
----
-1038
-2540
-4330

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT MIN( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5569
SELECT MIN ( DISTINCT + - col2 ) AS col1 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - 15 ), - 68 col0 FROM tab2
----
-15
-68
-15
-68
-15
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 67 < + - col1 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL - col2 * - + CAST( NULL AS SIGNED ) / + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - col2 * - + CAST ( NULL AS INTEGER ) / + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 + ( + - 64 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL MIN( - col2 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL MIN ( - col2 ) AS col2 FROM tab2 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL + CAST( - COUNT( ALL - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + CAST ( - COUNT ( ALL - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5577
SELECT - COUNT( ALL CAST( NULL AS DECIMAL ) ) / - + CAST( NULL AS SIGNED ) + - + COUNT( * ) * + - ( - COUNT( * ) ) + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( ALL CAST ( NULL AS REAL ) ) / - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + - ( - COUNT ( * ) ) + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT COUNT( ( 11 ) ) * ( - COUNT( * ) ) + + + 2 + + ( - 13 ) DIV - 98 AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5578
SELECT COUNT ( ( 11 ) ) * ( - COUNT ( * ) ) + + + 2 + + ( - 13 ) / - 98 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT - 3 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 3 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + col1 * + + col2 - - col0 * + 27 + 91 AS col0, 11 * - 62 * 49 + + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
2681
-33508
2812
-33483
5744
-33556

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT col1 DIV 45 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5581
SELECT col1 / 45 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + + MIN( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + MIN ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - col1 + 20 AS col1 FROM tab0 AS cor0
----
-1
-61
19

query I rowsort
SELECT DISTINCT ( col2 ) + + - 7 - - col1 AS col0 FROM tab2
----
110
118
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT ALL + col2 DIV + 60 + + 62 FROM tab1
----
62
63
63

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL + col2 / + 60 + + 62 FROM tab1
----
62
63
63

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL + COUNT( + col0 ) + + - SUM( ALL - col2 ) col1 FROM tab2
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5587
SELECT ALL + COUNT ( + col0 ) + + - SUM ( ALL - col2 ) col1 FROM tab2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL COUNT( * ) + - 16 AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL COUNT ( * ) + - 16 AS col1 FROM tab2
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 * col1 * - - col1 + - 88 col1 FROM tab1 AS cor0
----
-59
1387
-68
150124
-96
18728

query I rowsort
SELECT DISTINCT + 74 * - 72 - 72 FROM tab2 AS cor0
----
-5400

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort