sqllogictest
Artifact Content
Not logged in

Artifact 309a4d01d9938e97f9b81550051e8e76a90c1628:


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 III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 91 ) * + 31 NOT IN ( - 44 * 94 )
----

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

skipif mysql # not compatible
query III rowsort label-2
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) = - 50 * - col2
----

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

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + col2 / + + 55 FROM tab0
----
0
1

query I rowsort
SELECT col1 * - 2 AS col2 FROM tab0
----
-162
-2
-42

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

query I rowsort
SELECT ALL + - 1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col1 + + - ( ( 78 ) ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-159
-79
-99

query II rowsort
SELECT ( - - ( + col2 ) ) AS col0, - col0 + - col2 + 38 FROM tab2
----
23
-31
40
-66
58
-95

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + 55 * COUNT( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-10
SELECT + 55 * COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
165

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-15
SELECT col0 AS col2, 31 AS col2, 50 DIV - col2 * - col1 - + ( + 27 ) FROM tab1
----
9 values hashing to 8cd35670126a70f07d4e760cc612419b

skipif mysql # not compatible
query III rowsort label-15
SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1
----
9 values hashing to 8cd35670126a70f07d4e760cc612419b

query II rowsort
SELECT col0, - col2 * col2 * + 18 * + + col0 FROM tab1
----
51
-8460288
85
-5325930
91
-7574112

query II rowsort
SELECT col0 AS col2, + col0 + - col1 * + col2 FROM tab0
----
15
-3792
87
-123
97
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-19
SELECT + COUNT( * ) AS col0, + 0 AS col2 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-19
SELECT + COUNT ( * ) AS col0, + 0 AS col2 FROM tab2
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT DISTINCT + col1 DIV + + 34 + + col2 + 37 AS col2 FROM tab1
----
106
133
96

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + col1 / + + 34 + + col2 + 37 AS col2 FROM tab1
----
106
133
96

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

query I rowsort
SELECT DISTINCT 92 * + - 96 + + - col2 FROM tab2 AS cor0
----
-8855
-8872
-8890

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

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

query I rowsort
SELECT DISTINCT - - col0 + 83 AS col1 FROM tab2 AS cor0
----
129
147
158

query I rowsort
SELECT + 92 + 6 - 89 * + col2 AS col0 FROM tab2
----
-1949
-3462
-5064

query I rowsort
SELECT - 58 * col2 + 35 AS col2 FROM tab0
----
-2691
-545
-5707

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

query I rowsort
SELECT DISTINCT - + 98 * - - 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5978

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT DISTINCT - ( - col1 ) DIV col2 * + col1 * 25 col2 FROM tab0
----
0
1050
2025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-29
SELECT DISTINCT - ( - col1 ) / col2 * + col1 * 25 col2 FROM tab0
----
0
1050
2025

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 = - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT - - COUNT( + col2 ) + + 42 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - - COUNT ( + col2 ) + + 42 FROM tab2 AS cor0
----
45

query I rowsort
SELECT - col2 * 1 - - col0 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE + ( + col0 ) / - ( - col0 ) * + + 87 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 98 - + col0 AS col1 FROM tab1
----
13
47
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 - + col1 col1 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-39
SELECT ALL - 16 + - COUNT( * ) DIV - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 16 + - COUNT ( * ) / - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
-18

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

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

query I rowsort
SELECT 24 + + 86 AS col1 FROM tab0
----
110
110
110

query I rowsort
SELECT ALL col2 * - 27 AS col1 FROM tab2
----
-1080
-1566
-621

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 17 * col0 AS col2 FROM tab0
----
1479
1649
255

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

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

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

query I rowsort
SELECT ALL - 8 + col1 AS col2 FROM tab0 AS cor0
----
-7
13
73

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

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

query I rowsort
SELECT + col1 * 94 FROM tab1 AS cor0
----
1316
4418
470

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

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

query I rowsort
SELECT col2 * + - 53 * - + 57 + - + col0 FROM tab2 AS cor0
----
120776
175143
69437

query I rowsort
SELECT ALL ( col1 ) + - col0 + - - col1 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT DISTINCT - - col1 * col1 + + 95 AS col2 FROM tab0 AS cor0
----
536
6656
96

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

query I rowsort
SELECT + ( col0 ) / - col2 FROM tab0 WHERE NOT - 37 * + + 28 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT COUNT( - col0 ) + - + MIN( - + 51 ) * - 91 FROM tab2
----
-4638

skipif mysql # not compatible
query I rowsort label-60
SELECT COUNT ( - col0 ) + - + MIN ( - + 51 ) * - 91 FROM tab2
----
-4638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT + col2 AS col0 FROM tab0 WHERE + col0 = - ( + col1 ) AND col0 <= + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-61
SELECT + col2 AS col0 FROM tab0 WHERE + col0 = - ( + col1 ) AND col0 <= + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT NULL <= 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-63
SELECT 41 + CAST( 92 AS SIGNED ), col1 col1 FROM tab2
----
133
51
133
67
133
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-63
SELECT 41 + CAST ( 92 AS INTEGER ), col1 col1 FROM tab2
----
133
51
133
67
133
77

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) > NULL
----

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

query I rowsort
SELECT ALL - 4 + + + col2 * 1 AS col2 FROM tab1 AS cor0
----
55
64
92

query I rowsort
SELECT - 61 AS col0 FROM tab1 AS cor0 WHERE 47 BETWEEN NULL AND + + 66
----

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

query II rowsort
SELECT DISTINCT col0 - + - col0 + ( + 14 ) AS col0, col1 + col0 AS col0 FROM tab0
----
188
108
208
98
44
96

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT - - col1 * 40 * + 44 + - + col1 - + + 92 * + ( + 80 ) * + col2 * - 69 + - col1 - 68 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT - - col1 * 40 * + 44 + - + col1 - + + 92 * + ( + 80 ) * + col2 * - 69 + - col1 - 68 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT 81 + + + 91 - - - 32 + - SUM( ALL + col2 ) - - 64 * + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-592

skipif mysql # not compatible
query I rowsort label-74
SELECT 81 + + + 91 - - - 32 + - SUM ( ALL + col2 ) - - 64 * + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-592

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT DISTINCT + 1 - + 33 AS col0, COUNT( * ) + 32 FROM tab0 cor0 WHERE + col1 IS NULL
----
-32
32

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT + 1 - + 33 AS col0, COUNT ( * ) + 32 FROM tab0 cor0 WHERE + col1 IS NULL
----
-32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT ALL CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) * + - 88 + - 27 + + ( 38 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) * + - 88 + - 27 + + ( 38 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 75 * - - col2 FROM tab0
----
3525
7425
750

query I rowsort
SELECT + col1 * - 62 * - col2 FROM tab0
----
13020
236034
6138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT - COUNT( * ) * 91 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - COUNT ( * ) * 91 FROM tab0 AS cor0
----
-273

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

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

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

query I rowsort
SELECT - col1 + + 80 FROM tab1
----
33
66
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col0 col1 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT col2 + - - col0 * - - col2 * - 1 FROM tab1 AS cor0
----
-4800
-4956
-6120

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

query I rowsort
SELECT - 95 * - 34 FROM tab2 AS cor0
----
3230
3230
3230

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + - + 83 = - + col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = col2 + - + 16 )
----

query I rowsort
SELECT DISTINCT - + col1 + col2 - - - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-95
SELECT ALL - COUNT( * ) DIV - + SUM( DISTINCT 32 ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-95
SELECT ALL - COUNT ( * ) / - + SUM ( DISTINCT 32 ) col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT CAST( - 30 AS SIGNED ) FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-96
SELECT CAST ( - 30 AS INTEGER ) FROM tab1
----
-30
-30
-30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT - 46 DIV + - col1 FROM tab1
----
0
3
9

skipif mysql # not compatible
query I rowsort label-98
SELECT - 46 / + - col1 FROM tab1
----
0
3
9

query III rowsort
SELECT * FROM tab1 WHERE - 1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - 17
----

query II rowsort
SELECT + 24 + col2, + 94 + col2 AS col0 FROM tab2 cor0
----
47
117
64
134
82
152

query II rowsort
SELECT 48 + + - 23, + 14 AS col2 FROM tab1 cor0
----
25
14
25
14
25
14

query I rowsort
SELECT ALL - 18 * - - 7 - + 64 + - - 58 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= - col1 * + - CAST( col1 AS SIGNED )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= - col1 * + - CAST ( col1 AS INTEGER )
----
85
5
59

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE - col2 <= + col2 * 17 * - ( 1 )
----

query I rowsort
SELECT DISTINCT - - 18 * + col1 FROM tab2 cor0
----
1206
1386
918

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, 92, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT DISTINCT - SUM( DISTINCT - + ( + 52 ) ) col2, 79 AS col2 FROM tab1 AS cor0
----
52
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-108
SELECT DISTINCT - SUM ( DISTINCT - + ( + 52 ) ) col2, 79 AS col2 FROM tab1 AS cor0
----
52
79

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT 93 DIV + col1 AS col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-109
SELECT 93 / + col1 AS col1 FROM tab1
----
1
18
6

query II rowsort
SELECT - col2 AS col1, ( col2 ) + + - col0 FROM tab2
----
-23
-23
-40
-24
-58
-17

query II rowsort
SELECT ALL + 58 AS col0, - col2 AS col2 FROM tab0
----
58
-10
58
-47
58
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT DISTINCT - 21 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - 21 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-113
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

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

skipif mysql # not compatible
query III rowsort label-114
SELECT * FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) < + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT ALL + col1 AS col2, 89 * - 97 * + 57 + CAST( + 5 AS SIGNED ) + col1 FROM tab1
----
14
-492062
47
-492029
5
-492071

skipif mysql # not compatible
query II rowsort label-116
SELECT ALL + col1 AS col2, 89 * - 97 * + 57 + CAST ( + 5 AS INTEGER ) + col1 FROM tab1
----
14
-492062
47
-492029
5
-492071

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

query II rowsort
SELECT + col0, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

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

onlyif mysql # DIV for integer division: 
query II rowsort label-120
SELECT ALL col1 DIV + col2 col2, col0 DIV - col2 + col2 FROM tab0 AS cor0
----
0
99
1
47
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-120
SELECT ALL col1 / + col2 col2, col0 / - col2 + col2 FROM tab0 AS cor0
----
0
99
1
47
2
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL col2 * CAST( + col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL col2 * CAST ( + col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT col2 AS col0, 31 AS col2 FROM tab1 AS cor0 WHERE col2 <= ( 55 * + col2 + ( - col1 ) )
----
59
31
68
31
96
31

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

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT + CAST ( - - 8 AS INTEGER ) + - 14 + col1 FROM tab0 AS cor0
----
-5
15
75

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT DISTINCT - col0 + + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
2

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - col0 + + col2 / + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
2

query II rowsort
SELECT DISTINCT - + col2 + ( + - col0 ) + col0 * + col2 AS col2, col1 * col0 AS col1 FROM tab0 cor0
----
643
1215
773
1827
9407
97

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 * - - 50 + col1 + col1 AS col1 FROM tab2 AS cor0
----
-127846
-217366
-52798

query II rowsort
SELECT - col1 + + col2 * - col1 AS col1, - col1 FROM tab0 AS cor0
----
-100
-1
-231
-21
-3888
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT 84 * + 66 + + COUNT( * ) FROM tab2
----
5547

skipif mysql # not compatible
query I rowsort label-129
SELECT 84 * + 66 + + COUNT ( * ) FROM tab2
----
5547

query II rowsort
SELECT - col1 + - col1 * col2 AS col1, + 66 AS col0 FROM tab1
----
-1358
66
-300
66
-3243
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-131
SELECT ALL 11 + col0 + - + col0 * col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-2059
NULL
-4021
NULL
-5539
NULL

skipif mysql # not compatible
query II rowsort label-131
SELECT ALL 11 + col0 + - + col0 * col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-2059
NULL
-4021
NULL
-5539
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-132
SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST( NULL AS SIGNED ) - - + col2 - + CAST( NULL AS DECIMAL ) * 8
----

skipif mysql # not compatible
query I rowsort label-132
SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST ( NULL AS INTEGER ) - - + col2 - + CAST ( NULL AS REAL ) * 8
----

query II rowsort
SELECT DISTINCT - col1 * - col2 + + 72 * - - ( + ( col1 ) ) + - + 59 * + - col0 AS col1, col2 AS col2 FROM tab2
----
12400
40
13135
58
7559
23

query III rowsort
SELECT * FROM tab1 WHERE ( 77 ) BETWEEN NULL AND - 35
----

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

query I rowsort
SELECT ALL col1 + - - 89 FROM tab2 AS cor0
----
140
156
166

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL + 82 - COUNT( * ) col2 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-138
SELECT ALL + 82 - COUNT ( * ) col2 FROM tab1
----
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= - - 83
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT - + col0 DIV - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-140
SELECT - + col0 / - 87 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT - 76 * + col1 * - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) * - + 89 FROM tab0 AS cor0
----
2982924
44378604
6764

skipif mysql # not compatible
query I rowsort label-141
SELECT - 76 * + col1 * - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) * - + 89 FROM tab0 AS cor0
----
2982924
44378604
6764

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

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

query I rowsort
SELECT ALL + - 24 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 19 - - col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
2384
2859
782

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + 72 * SUM( DISTINCT - + col1 ) * - + ( - COUNT( * ) ) * - - 71 + + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT + 72 * SUM ( DISTINCT - + col1 ) * - + ( - COUNT ( * ) ) * - - 71 + + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <= ( 35 )
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT 35 * + + col0 >= + + col0
----

query I rowsort
SELECT DISTINCT ( - col1 ) * - - col0 - + col1 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT ( + + 92 ) FROM tab2
----
92
92
92

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT DISTINCT + MIN( + + col1 ) * - 63 col1, + 69 FROM tab2
----
-3213
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-152
SELECT DISTINCT + MIN ( + + col1 ) * - 63 col1, + 69 FROM tab2
----
-3213
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col2 col1 FROM tab0
----
3995
8415
850

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) col0 FROM tab0
----
-1
-441
-6561

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

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

query I rowsort
SELECT ALL + col1 + col2 + + - 51 FROM tab0 AS cor0
----
-20
49
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - ( + + col2 ) ) + col1 + + 80 / + col2 * + + 33 + col2 + + + col2 + - - 20 BETWEEN + col1 + 99 - + 61 AND - col0 + - - col2
----

query I rowsort
SELECT DISTINCT - col2 - + - col1 * + col1 AS col2 FROM tab1 cor0
----
-34
100
2141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT SUM( DISTINCT 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-163
SELECT SUM ( DISTINCT 13 ) FROM tab1
----
13

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

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT col0 - + col2 + + ( col2 ) DIV + + 99 + + 6 AS col0 FROM tab0
----
-26
5
83

skipif mysql # not compatible
query I rowsort label-165
SELECT col0 - + col2 + + ( col2 ) / + + 99 + + 6 AS col0 FROM tab0
----
-26
5
83

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col1 AND - ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT - 49 DIV + col1 FROM tab0 AS cor0
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-168
SELECT - 49 / + col1 FROM tab0 AS cor0
----
-2
-49
0

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 NOT BETWEEN NULL AND - 6 * - + col0
----

query I rowsort
SELECT - col1 * + + 40 AS col0 FROM tab2 cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT 39 * - COUNT( * ) AS col2 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT 39 * - COUNT ( * ) AS col2 FROM tab1
----
-117

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

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

query I rowsort
SELECT ALL ( - - ( + + col2 ) ) AS col2 FROM tab1
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT + COUNT ( + 4 ) FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - MIN( + 68 ) + + + MIN( col0 ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT - MIN ( + 68 ) + + + MIN ( col0 ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

query I rowsort
SELECT + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * 56 IS NULL OR NOT + col0 / + col1 IS NULL
----
-51
-67
-77

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

query I rowsort
SELECT - 40 * + col0 FROM tab1 AS cor0
----
-2040
-3400
-3640

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT col2 DIV - 88 + - 31 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT col2 / - 88 + - 31 / col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-186
SELECT + + SUM( DISTINCT - CAST( + + col1 AS SIGNED ) ) + + CAST( + COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) + + - 26 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT + + SUM ( DISTINCT - CAST ( + + col1 AS INTEGER ) ) + + CAST ( + COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) + + - 26 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 25 * + ( - col1 ) - + - col2 + + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1321
1791
2005

query I rowsort
SELECT ALL 48 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - 50
----

query I rowsort
SELECT + 5 + - col1 FROM tab0 AS cor0
----
-16
-76
4

query I rowsort
SELECT - 10 + - + 11 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL + 78 - + ( - 91 ) - + - col1 FROM tab1
----
174
183
216

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 82 * - 49 col0 FROM tab0
----
349566
389746
60270

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

query I rowsort
SELECT ALL - 16 * - 36 FROM tab2
----
576
576
576

query I rowsort
SELECT ALL 89 * + - 12 AS col0 FROM tab0 WHERE - - ( 1 ) * - col0 + 96 * 4 * + 82 IS NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-198
SELECT - COUNT ( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + - 74 col1 FROM tab2
----
173604
364672
371850

query I rowsort
SELECT - 89 * - 4 AS col2 FROM tab0
----
356
356
356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT + + MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT + + MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col0, - 5 FROM tab2
----
-5
-5
-5
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE + 79 / - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col1 ) * + 15 FROM tab1
----
-210
-705
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT ALL - CAST( + SUM( ALL + - 72 ) AS SIGNED ) * + 49 + + 62 AS col0 FROM tab0
----
10646

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - CAST ( + SUM ( ALL + - 72 ) AS INTEGER ) * + 49 + + 62 AS col0 FROM tab0
----
10646

query I rowsort
SELECT DISTINCT 22 + + col2 AS col0 FROM tab0
----
121
32
69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT ALL + 86 FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST( - 65 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL + 86 FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST ( - 65 AS INTEGER ), col0 )
----

query II rowsort
SELECT + col2, 8 * + col1 * + + col2 FROM tab2 AS cor0
----
23
9384
40
24640
58
31088

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT + + 36 AS col1 FROM tab1 AS cor0 WHERE 51 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col0 * + col0 * - 41 FROM tab1
----
-106641
-296225
-339521

query I rowsort
SELECT - col2 + 39 FROM tab2
----
-1
-19
16

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

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

query I rowsort
SELECT + col2 + - + 19 FROM tab1
----
40
49
77

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-219
SELECT ALL - - CAST( NULL AS DECIMAL ) + SUM( 73 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - - CAST ( NULL AS REAL ) + SUM ( 73 ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + col1 * col0 col1 FROM tab2 AS cor0 WHERE + col1 > ( - 0 * 67 * - col0 - - + col2 )
----
113344
115575
53958

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-223
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE 28 + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE 28 + - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL 38 * + col0 AS col1 FROM tab1 AS cor0 WHERE 20 > + - CAST( NULL AS SIGNED ) * + ( - + 55 )
----

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL 38 * + col0 AS col1 FROM tab1 AS cor0 WHERE 20 > + - CAST ( NULL AS INTEGER ) * + ( - + 55 )
----

query I rowsort
SELECT ALL + col0 - + 74 FROM tab0 cor0
----
-59
13
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT col2 - + 2 * + - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-226
SELECT col2 - + 2 * + - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
177
204
288

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

query I rowsort
SELECT ALL col2 + + - 21 AS col1 FROM tab0
----
-11
26
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT + 63 * - 20 - - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT + 63 * - 20 - - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-230
SELECT - col1 - - col0 - CAST( NULL AS SIGNED ) AS col2, col0 DIV - + 13 + - col0 FROM tab1
----
NULL
-54
NULL
-91
NULL
-98

skipif mysql # not compatible
query II rowsort label-230
SELECT - col1 - - col0 - CAST ( NULL AS INTEGER ) AS col2, col0 / - + 13 + - col0 FROM tab1
----
NULL
-54
NULL
-91
NULL
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + ( + MAX( ALL col0 ) ) - - 9 AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-231
SELECT + ( + MAX ( ALL col0 ) ) - - 9 AS col0 FROM tab0
----
106

query I rowsort
SELECT - 54 * col0 + - col1 FROM tab1
----
-2768
-4595
-4961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 57, - col2 col2 FROM tab0 AS cor0
----
-57
-10
-57
-47
-57
-99

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

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

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col2 IN ( + 52 + col1, - col0 ) AND col2 / - col1 + 41 = + col2 / - - 95 + - col1
----

query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 > - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 > - CAST ( NULL AS INTEGER )
----
0

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

query II rowsort
SELECT - col2 AS col0, + 32 - + ( - col0 ) * - + col1 FROM tab2 AS cor0
----
-23
-2314
-40
-4896
-58
-4993

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT 21 AS col0, - col1 - + + col1 FROM tab0 AS cor0
----
21
-162
21
-2
21
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT 92 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-243
SELECT 92 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6

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

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

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

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

query II rowsort
SELECT col1 * + col0 * - col0 + + col0 * - - col0 AS col0, + col1 FROM tab0
----
-151380
21
-18000
81
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 WHERE 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 WHERE 62 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - 81 * col0 + 21 * col0 * - col0 FROM tab2 AS cor0
----
126960
245760
337500

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + ( - 46 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT 58 DIV - COUNT( * ) + + 2 - + 88 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-251
SELECT 58 / - COUNT ( * ) + + 2 - + 88 FROM tab2
----
-105

query I rowsort
SELECT DISTINCT + + col0 + - 53 FROM tab2 AS cor0
----
-7
11
22

query I rowsort
SELECT - 55 - col2 AS col1 FROM tab2 AS cor0 WHERE + col1 < - col2
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 90 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - COUNT( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - COUNT ( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 27 - - - col1 FROM tab0 AS cor0
----
-108
-28
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT 82 + + 15 + - col2 DIV 78 * - + col2 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-260
SELECT 82 + + 15 + - col2 / 78 * - + col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-261
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) * MIN( DISTINCT col1 ) + - 59 DIV 49 col0 FROM tab2 cor0
----
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) * MIN ( DISTINCT col1 ) + - 59 / 49 col0 FROM tab2 cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT + + COUNT( * ) * - - MAX( - col1 ) - ( + - COUNT( DISTINCT - + col1 ) ) AS col1 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + + COUNT ( * ) * - - MAX ( - col1 ) - ( + - COUNT ( DISTINCT - + col1 ) ) AS col1 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT - 41 + + col2 AS col0 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT ALL COUNT( * ) + + SUM( - col2 ) AS col1, + 25 FROM tab2 AS cor0
----
-118
25

skipif mysql # not compatible
query II rowsort label-264
SELECT ALL COUNT ( * ) + + SUM ( - col2 ) AS col1, + 25 FROM tab2 AS cor0
----
-118
25

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-265
SELECT + MAX ( DISTINCT + col1 ) FROM tab0
----
81

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT - - 10 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-268
SELECT - - 10 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT ALL + COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-269
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-270
SELECT DISTINCT + 75 AS col2, + 43 * col0 FROM tab1 WHERE + CAST( 59 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-270
SELECT DISTINCT + 75 AS col2, + 43 * col0 FROM tab1 WHERE + CAST ( 59 AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + SUM( DISTINCT - 0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT + SUM ( DISTINCT - 0 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 80 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-274
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) DIV + 16 col0 FROM tab0 AS cor0
----
0
5
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-274
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) / + 16 col0 FROM tab0 AS cor0
----
0
5
6

onlyif mysql # DIV for integer division: 
query II rowsort label-275
SELECT ALL - 25 AS col1, col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
-25
1
-25
1
-25
2

skipif mysql # not compatible
query II rowsort label-275
SELECT ALL - 25 AS col1, col1 / + col2 AS col1 FROM tab2 AS cor0
----
-25
1
-25
1
-25
2

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

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

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

query I rowsort
SELECT ALL - + 43 + + ( 92 ) + - - col1 AS col1 FROM tab2 cor0
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-279
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - CAST( NULL AS SIGNED ) * col1, + col2 )
----

skipif mysql # not compatible
query III rowsort label-279
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - CAST ( NULL AS INTEGER ) * col1, + col2 )
----

query I rowsort
SELECT ALL + 0 * - ( 96 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-281
SELECT CAST( - + col2 AS SIGNED ) DIV - 48 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-281
SELECT CAST ( - + col2 AS INTEGER ) / - 48 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-282
SELECT DISTINCT + 93 AS col1, COUNT( * ) DIV + 34 FROM tab1
----
93
0

skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT + 93 AS col1, COUNT ( * ) / + 34 FROM tab1
----
93
0

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

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT SUM ( ALL + col1 ) AS col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-284
SELECT DISTINCT - 34 col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-34
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-284
SELECT DISTINCT - 34 col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT DISTINCT COUNT( * ) * + 66 * + COUNT( * ) AS col0 FROM tab0
----
594

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT COUNT ( * ) * + 66 * + COUNT ( * ) AS col0 FROM tab0
----
594

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

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

query I rowsort
SELECT 82 + - - 12 AS col1 FROM tab2
----
94
94
94

query I rowsort
SELECT DISTINCT - 42 + + col0 AS col0 FROM tab0 AS cor0
----
-27
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-289
SELECT DISTINCT - 68 + - col0 AS col1, + ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
-119
NULL
-153
NULL
-159
NULL

skipif mysql # not compatible
query II rowsort label-289
SELECT DISTINCT - 68 + - col0 AS col1, + ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
-119
NULL
-153
NULL
-159
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 - - ( - 75 ) col0 FROM tab0 cor0
----
150
7494
9334

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT + col0 DIV + + col1 - + 83 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-32
-6

skipif mysql # not compatible
query I rowsort label-291
SELECT + col0 / + + col1 - + 83 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-32
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT + - SUM( DISTINCT + col2 ), 1 AS col1 FROM tab1 AS cor0
----
-223
1

skipif mysql # not compatible
query II rowsort label-292
SELECT + - SUM ( DISTINCT + col2 ), 1 AS col1 FROM tab1 AS cor0
----
-223
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT - MAX ( - - 44 ) col1 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = - col1
----

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

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

query I rowsort
SELECT + 89 * - 64 AS col2 FROM tab2 AS cor0
----
-5696
-5696
-5696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT + 37 + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - 21 * col1 BETWEEN + - col0 AND + - 44 + + 57
----
40

skipif mysql # not compatible
query I rowsort label-301
SELECT + 37 + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - 21 * col1 BETWEEN + - col0 AND + - 44 + + 57
----
40

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

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

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

query II rowsort
SELECT - - ( 12 ) AS col0, col2 AS col2 FROM tab2 cor0
----
12
23
12
40
12
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT ALL + - COUNT( * ) * + 94 * 35 + - + 38 * - + 29 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + - COUNT ( * ) * + 94 * 35 + - + 38 * - + 29 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - col2 * - col1 + - + col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col2 + + col2 col2 FROM tab1 AS cor0
----
1440
3264
354

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-308
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - + 48 col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT ALL 38 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL 38 / + - col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL col2 + + 95 + + 51 AS col1 FROM tab2 AS cor0
----
169
186
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT MIN( - + col1 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-25

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col0 + + col1 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + 1 + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 1 + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT - + 15 DIV col2 * - col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - + 15 / col2 * - col2 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - col2 col0 FROM tab0 AS cor0
----
198
20
94

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / + col2 * + - col0 = 18 + + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-323
SELECT + 22 DIV + CAST( 87 AS SIGNED ) col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-323
SELECT + 22 / + CAST ( 87 AS INTEGER ) col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 96 * + col0 FROM tab0 AS cor0
----
-1440
-8352
-9312

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-325
SELECT + - ( SUM ( ALL col2 ) ) col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE - 52 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + SUM( ALL + + 72 ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-327
SELECT + SUM ( ALL + + 72 ) FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - ( + + MAX( - col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - ( + + MAX ( - col0 ) ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ALL - MAX( DISTINCT - 66 ) * + 6 AS col2 FROM tab2
----
396

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - MAX ( DISTINCT - 66 ) * + 6 AS col2 FROM tab2
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT - 38 * - COUNT( * ) AS col1, + 25 FROM tab2
----
114
25

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT - 38 * - COUNT ( * ) AS col1, + 25 FROM tab2
----
114
25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT MAX( ALL col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT MAX ( ALL col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2 AS cor0
----
52

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

onlyif mysql # DIV for integer division: 
query II rowsort label-336
SELECT 62 DIV - + 88, 20 + + col1 col0 FROM tab2 AS cor0
----
0
71
0
87
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-336
SELECT 62 / - + 88, 20 + + col1 col0 FROM tab2 AS cor0
----
0
71
0
87
0
97

query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 19 + + col1 * + col2 IS NULL
----
4896
5015
6188

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 > NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 24 col2 FROM tab1
----
35
44
72

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-344
SELECT ALL - 48 + AVG ( + CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - 76 ) * col1 AND + + 87
----

query II rowsort
SELECT DISTINCT - 5 * - col2 AS col1, - col1 * col2 * ( - col0 ) AS col0 FROM tab1
----
295
25075
340
290836
480
68544

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

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

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

query I rowsort
SELECT col2 - - 12 * + col2 * + col0 AS col0 FROM tab1
----
58848
60239
74324

query I rowsort
SELECT ALL ( col2 ) + col0 * - 40 + - 73 AS col2 FROM tab2
----
-1890
-2593
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL + COUNT( * ) * - 64 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + COUNT ( * ) * - 64 FROM tab0
----
-192

query I rowsort
SELECT col0 + + + 73 AS col2 FROM tab1
----
124
158
164

query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0 WHERE + 87 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-354
SELECT - 21 / - CAST( - 75 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col1 = + col0 / - 75 * - - col0
----

skipif mysql # not compatible
query I rowsort label-354
SELECT - 21 / - CAST ( - 75 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col1 = + col0 / - 75 * - - col0
----

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

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

query I rowsort
SELECT - col0 * 19 AS col2 FROM tab1
----
-1615
-1729
-969

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

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

query I rowsort
SELECT ALL 81 * 19 FROM tab1 cor0
----
1539
1539
1539

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

query I rowsort
SELECT + - col0 * - 43 FROM tab1 AS cor0
----
2193
3655
3913

query I rowsort
SELECT col0 * + 89 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 < col1
----
6675

query I rowsort
SELECT ALL + col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - - ( - MAX( + ( - 86 ) ) ) AS col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-363
SELECT - - ( - MAX ( + ( - 86 ) ) ) AS col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - col1 * - 8 AS col0 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT DISTINCT col0 * + 65 * 3 * - col1 AS col2 FROM tab1
----
-139230
-82875
-834015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT DISTINCT - COUNT( * ) DIV 75 DIV 66 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - COUNT ( * ) / 75 / 66 AS col1 FROM tab1
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT DISTINCT COUNT( * ) DIV 89 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT COUNT ( * ) / 89 FROM tab0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT ALL - col0 DIV 21 * + 74 AS col1 FROM tab0
----
-296
-296
0

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - col0 / 21 * + 74 AS col1 FROM tab0
----
-296
-296
0

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

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

query I rowsort
SELECT + + ( - col2 ) * + col1 + + + 52 AS col1 FROM tab1 AS cor0
----
-1292
-243
-3144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT - + SUM( + col0 ) * + 98 AS col2 FROM tab2 AS cor0
----
-18130

skipif mysql # not compatible
query I rowsort label-375
SELECT - + SUM ( + col0 ) * + 98 AS col2 FROM tab2 AS cor0
----
-18130

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 NOT IN ( + col2, - col0, - 13 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT + ( + col1 ) * - col1 DIV - - col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-377
SELECT + ( + col1 ) * - col1 / - - col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - + 5 AS col0 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT - MAX( + ( - 27 ) ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - MAX ( + ( - 27 ) ) AS col0 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - - 4 + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - - 4 + - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + col0 * + - col2 + - col2 + - col0 + - 58 AS col1 FROM tab0 cor0
----
-1025
-825
-9857

onlyif mysql # DIV for integer division: 
query II rowsort label-382
SELECT - col0 DIV 21 + + 40 * + + ( - - col0 ) + + + 98 DIV + - col2, col0 FROM tab0 AS cor0
----
3467
87
3876
97
598
15

skipif mysql # not compatible
query II rowsort label-382
SELECT - col0 / 21 + + 40 * + + ( - - col0 ) + + + 98 / + - col2, col0 FROM tab0 AS cor0
----
3467
87
3876
97
598
15

onlyif mysql # DIV for integer division: 
query II rowsort label-383
SELECT ALL col0 DIV - col0 + - + col2, col1 AS col1 FROM tab1 AS cor0
----
-60
5
-69
47
-97
14

skipif mysql # not compatible
query II rowsort label-383
SELECT ALL col0 / - col0 + - + col2, col1 AS col1 FROM tab1 AS cor0
----
-60
5
-69
47
-97
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + - - 83 AS col1 FROM tab2 AS cor0
----
25
43
60

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + - - 83 AS col1 FROM tab2 AS cor0
----
25
43
60

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-385
SELECT col1 + + - col0, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + + MIN( col1 ) FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT + + MIN ( col1 ) FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL

query I rowsort
SELECT + 79 + - col2 AS col2 FROM tab2 cor0
----
21
39
56

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT col0 + col0 DIV - - col1 + ( + col0 ) FROM tab1
----
105
183
187

skipif mysql # not compatible
query I rowsort label-388
SELECT col0 + col0 / - - col1 + ( + col0 ) FROM tab1
----
105
183
187

query I rowsort
SELECT col0 + col0 + - - 29 FROM tab2
----
121
157
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * + col1 col0 FROM tab2
----
123200
225388
26979

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - - 96 <= NULL
----

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL >= + col1 - + + 12
----

query I rowsort
SELECT - 28 * 25 * - - ( - 80 ) FROM tab2 AS cor0
----
56000
56000
56000

query I rowsort
SELECT 57 AS col1 FROM tab1 AS cor0 WHERE + ( - col2 ) + + 63 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT - 41 - + COUNT( * ) * + 74 FROM tab0 cor0
----
-263

skipif mysql # not compatible
query I rowsort label-396
SELECT - 41 - + COUNT ( * ) * + 74 FROM tab0 cor0
----
-263

query I rowsort
SELECT + - 56 - - col0 FROM tab0 cor0
----
-41
31
41

query I rowsort
SELECT ALL + 47 - + col2 FROM tab2 cor0
----
-11
24
7

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-402
SELECT DISTINCT + 94 * - col0 AS col2 FROM tab2 WHERE NOT + col0 >= ( - CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + 94 * - col0 AS col2 FROM tab2 WHERE NOT + col0 >= ( - CAST ( col2 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT - MIN( ( - col0 ) ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - MIN ( ( - col0 ) ) AS col1 FROM tab1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL SUM( ALL col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL SUM ( ALL col2 ) FROM tab2
----
121

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-408
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE + col0 + 12 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 40 col2 FROM tab1
----
19
28
56

query I rowsort
SELECT DISTINCT - 28 + + col2 AS col2 FROM tab2
----
-5
12
30

query I rowsort
SELECT ( ( 37 ) ) FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT DISTINCT SUM( DISTINCT + col1 ) + + COUNT( + col1 + col1 * + col0 ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT SUM ( DISTINCT + col1 ) + + COUNT ( + col1 + col1 * + col0 ) AS col0 FROM tab0
----
106

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col0 > - col0
----

query I rowsort
SELECT 73 * 20 FROM tab2 WHERE NOT ( 12 + - 87 ) <> 35
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 13 * - col0 ) = NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( col1 * + 66 + col1 ) BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 11 + col0 / - 25 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT ALL + SUM( ALL 47 ) DIV - 43 col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT ALL + SUM ( ALL 47 ) / - 43 col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 44 + + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( + col0 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 38 ) NOT IN ( col0 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-424
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IN ( 90 )
----

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IN ( 90 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT DISTINCT + CAST( - MIN( ALL + 43 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-43

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + CAST ( - MIN ( ALL + 43 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-43

query III rowsort
SELECT * FROM tab0 WHERE 15 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

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

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

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) / + 58 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT DISTINCT col2 + - col0 DIV 66 AS col1 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT col2 + - col0 / 66 AS col1 FROM tab1 AS cor0
----
58
67
96

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

query I rowsort
SELECT DISTINCT - + ( 75 ) - + 22 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 52 / col1 ) < ( - col0 )
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col1 + - 11 * col0 FROM tab0 AS cor0
----
-1068
-246
-978

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT 1 - - col0 DIV 47 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-441
SELECT 1 - - col0 / 47 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT DISTINCT COUNT( - col1 ) - + COUNT( * ) FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col0 IN ( + ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT COUNT ( - col1 ) - + COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col0 IN ( + ( - col1 ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT + COUNT( 98 ) - 61 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-444
SELECT + COUNT ( 98 ) - 61 AS col1 FROM tab1
----
-58

query I rowsort
SELECT DISTINCT - 85 + col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN ( col0 ) AND col2 - col1
----
12

query I rowsort
SELECT ALL 43 - 48 FROM tab1
----
-5
-5
-5

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

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

query I rowsort
SELECT 62 * col0 - + 84 FROM tab2
----
2768
3884
4566

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL - SUM( 3 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - SUM ( 3 ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 13 col2 FROM tab2
----
-38
-54
-64

query I rowsort
SELECT - 28 + - col1 FROM tab1
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT DISTINCT + 38 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + 38 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
35

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT ALL 80 * + COUNT( * ) + 48 DIV + 61 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL 80 * + COUNT ( * ) + 48 / + 61 FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT + - SUM( DISTINCT 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + - SUM ( DISTINCT 23 ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + 29 * - col1 * 61 AS col1 FROM tab1 AS cor0
----
-24766
-83143
-8845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT + 2 FROM tab2 AS cor0 WHERE NOT ( + 68 ) NOT BETWEEN - col2 AND 77 / CAST( NULL AS SIGNED ) + 60
----

skipif mysql # not compatible
query I rowsort label-458
SELECT + 2 FROM tab2 AS cor0 WHERE NOT ( + 68 ) NOT BETWEEN - col2 AND 77 / CAST ( NULL AS INTEGER ) + 60
----

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + + 68 * - col0 ) AND NULL
----

query I rowsort
SELECT + col0 * + 51 * 65 + - 61 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
169004
281714
301604

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT - SUM( ALL - 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-461
SELECT - SUM ( ALL - 32 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 )
----
51

skipif mysql # not compatible
query I rowsort label-462
SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 )
----
51

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 36 FROM tab0 WHERE NOT ( NULL ) < - 95
----

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

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

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

query I rowsort
SELECT col0 * - 89 + - + col0 * - ( + col2 ) AS col1 FROM tab2
----
-2325
-3036
-3136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-471
SELECT * FROM tab1 WHERE NOT NULL <> 84 * - CAST( NULL AS SIGNED ) * - col1 - + 78
----

skipif mysql # not compatible
query III rowsort label-471
SELECT * FROM tab1 WHERE NOT NULL <> 84 * - CAST ( NULL AS INTEGER ) * - col1 - + 78
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 33 * + + col1 + + col1 + 17 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + + col1 + col0 - ( col2 ) - + 62 AS col0 FROM tab0 AS cor0
----
-13
-63
36

query II rowsort
SELECT DISTINCT + col1 * col1 AS col0, + 97 AS col2 FROM tab0 AS cor0
----
1
97
441
97
6561
97

query I rowsort
SELECT DISTINCT + + col1 + - 85 FROM tab2 AS cor0
----
-18
-34
-8

query I rowsort
SELECT + 76 * + + col0 FROM tab1 AS cor0
----
3876
6460
6916

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

query II rowsort
SELECT DISTINCT + - col0 + 67, col0 FROM tab0 AS cor0
----
-20
87
-30
97
52
15

query I rowsort
SELECT ALL ( - - 65 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 84 AND ( ( + 62 ) + - 60 )
----

query II rowsort
SELECT ALL - + col0 * - 64 + 75 AS col1, col1 FROM tab2 AS cor0
----
3019
51
4171
77
4875
67

query I rowsort
SELECT + 51 + - + 54 FROM tab1 AS cor0
----
-3
-3
-3

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

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

query I rowsort
SELECT + + col0 * + col0 + 17 + + + col0 FROM tab1 AS cor0
----
2669
7327
8389

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

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

query I rowsort
SELECT col0 + 98 AS col0 FROM tab2 AS cor0
----
144
162
173

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 61 BETWEEN 65 / - 16 AND NULL
----

query I rowsort
SELECT - 11 + 35 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT + 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT 40 + ( + 46 ) * + ( 6 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
316
316
316

query I rowsort
SELECT ALL + col0 / - col0 + - + 80 / + col0 / + col2 + col1 AS col0 FROM tab0 WHERE NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2, tab1 AS cor0
----
52

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

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

query I rowsort
SELECT DISTINCT 92 - + ( 65 ) AS col0 FROM tab2
----
27

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 41 ) * 30 * - col2 col0 FROM tab1
----
118080
72570
83640

query I rowsort
SELECT ALL - 66 * - col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT ( ( 11 ) ) DIV - SUM( 44 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT ( ( 11 ) ) / - SUM ( 44 ) FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT + 70 AS col2, col0 AS col1 FROM tab0 AS cor0
----
70
15
70
87
70
97

onlyif mysql # aggregate syntax: 
query II rowsort label-504
SELECT DISTINCT - - COUNT( * ) AS col0, 45 col2 FROM tab1 AS cor0
----
3
45

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

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

query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 WHERE - 12 <= col2
----
71
71
71

query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-22

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / + + col0 * 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - COUNT( * ) * + 62 AS col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) * + 62 AS col2 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT ALL - 88 * + + ( + col0 ) FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL ( - + SUM( ALL + 34 ) ) AS col0 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL ( - + SUM ( ALL + 34 ) ) AS col0 FROM tab2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT MIN( - col1 ) * 75 FROM tab1
----
-3525

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT MIN ( - col1 ) * 75 FROM tab1
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-515
SELECT + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( 94 ) + col1 * - col0 NOT BETWEEN 28 AND - + 83
----

query I rowsort
SELECT 27 * - + col1 * ( + + 27 ) AS col0 FROM tab0
----
-15309
-59049
-729

query I rowsort
SELECT DISTINCT col0 * + ( - 21 ) AS col0 FROM tab2
----
-1344
-1575
-966

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( NULL ) < ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-523
SELECT + COUNT( DISTINCT - + ( ( + col1 ) ) ) + 12, COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-523
SELECT + COUNT ( DISTINCT - + ( ( + col1 ) ) ) + 12, COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
15
NULL

query I rowsort
SELECT ALL + + 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + - 60 FROM tab2 AS cor0
----
-106
-124
-135

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

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

query I rowsort
SELECT 93 + - - 59 - col1 AS col1 FROM tab0
----
131
151
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * col2 col2 FROM tab0
----
1692
3564
360

query II rowsort
SELECT ( - - col1 ) * - col2 AS col1, col2 AS col1 FROM tab0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT + + col0 * 72 AS col1 FROM tab1 cor0
----
3672
6120
6552

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-536
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT - 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL + col1 * - col0 * + 2 AS col1 FROM tab0
----
-194
-2430
-3654

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL + MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT - SUM( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - SUM ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

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

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

query I rowsort
SELECT - 80 + + col2 AS col0 FROM tab2 cor0
----
-22
-40
-57

query I rowsort
SELECT col1 + + col0 - + col1 FROM tab0
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT ALL - 92 + - MAX( col0 ) AS col1, - ( 60 ) * MAX( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-550
SELECT ALL - 92 + - MAX ( col0 ) AS col1, - ( 60 ) * MAX ( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + 94 col2 FROM tab2
----
102
102
102

query I rowsort
SELECT ALL col2 * + 27 + + col2 AS col2 FROM tab2 cor0
----
1120
1624
644

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) * - col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 3 * + col1 + + - 14 + + - col0 * - col1 * + col2 FROM tab0 AS cor0
----
18193
56848
9586

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

query I rowsort
SELECT ALL ( - + 50 ) + - - col2 FROM tab0
----
-3
-40
49

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

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

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

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

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

query I rowsort
SELECT ALL + + 68 * col0 FROM tab0 AS cor0
----
1020
5916
6596

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 38 IS NULL
----

query I rowsort
SELECT ( - - col0 ) * + 79 - col1 AS col2 FROM tab1
----
4015
6710
7142

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

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

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

skipif mysql # not compatible
query I rowsort label-567
SELECT ( SUM ( ALL + col1 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT ALL + 33 + + col0 FROM tab1 AS cor0
----
118
124
84

query II rowsort
SELECT DISTINCT col2 + + 49 + - + col1 * - + 17 * - - 74 AS col1, col2 FROM tab0 AS cor0
----
101994
47
1406
99
26477
10

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

query III rowsort
SELECT * FROM tab2 WHERE 18 + 24 - - col1 IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT + 41 DIV 46 + COUNT( * ) col2 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT COUNT( * ) + - 63 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-579
SELECT COUNT ( * ) + - 63 AS col2 FROM tab1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 58 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 96 >= ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + col0 FROM tab1 WHERE NOT - + col1 BETWEEN - CAST ( NULL AS INTEGER ) AND ( - - col0 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT 13 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-588
SELECT 13 / col1 AS col1 FROM tab0 AS cor0
----
0
0
13

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

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

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

query I rowsort
SELECT ALL - 79 * + 65 FROM tab1
----
-5135
-5135
-5135

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - - 57 * col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 58 * - col0 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 88 IS NULL )
----

query I rowsort
SELECT DISTINCT - - col1 * - col0 * col1 + + 25 FROM tab1 cor0
----
-200994
-2100
-9971

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT + col1 DIV 86 col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-597
SELECT + col1 / 86 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + - ( + - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
198
229
250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-599
SELECT DISTINCT CAST( + + 17 AS SIGNED ) * + - 87 + - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1530
NULL
-1546
NULL
-1556
NULL

skipif mysql # not compatible
query II rowsort label-599
SELECT DISTINCT CAST ( + + 17 AS INTEGER ) * + - 87 + - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1530
NULL
-1546
NULL
-1556
NULL

query I rowsort
SELECT + 60 + + - col2 - col2 FROM tab2 AS cor0
----
-20
-56
14

query I rowsort
SELECT DISTINCT col2 + - - 40 AS col0 FROM tab1 AS cor0
----
108
136
99

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

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

query I rowsort
SELECT + 32 + + + col2 AS col1 FROM tab0 cor0
----
131
42
79

query I rowsort
SELECT ALL + col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - + 39 * + + 21 + COUNT( * ) * + 9 FROM tab2 AS cor0
----
-792

skipif mysql # not compatible
query I rowsort label-606
SELECT - + 39 * + + 21 + COUNT ( * ) * + 9 FROM tab2 AS cor0
----
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 70 col0 FROM tab0 AS cor0 WHERE col1 + - col1 * - col0 IS NOT NULL
----
-157
-167
-85

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-610
SELECT 0 AS col2, col1 DIV col2 * - col2 AS col1 FROM tab1
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-610
SELECT 0 AS col2, col1 / col2 * - col2 AS col1 FROM tab1
----
0
0
0
0
0
0

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

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - CAST ( NULL AS INTEGER ) + + 52 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col2 + 98 / - - CAST( NULL AS SIGNED ) / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-612
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + 98 / - - CAST ( NULL AS INTEGER ) / + col0 IS NOT NULL
----
0

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

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

query I rowsort
SELECT ALL + 73 + col2 AS col2 FROM tab2 AS cor0
----
113
131
96

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

query I rowsort
SELECT - 62 - + 87 FROM tab1 AS cor0
----
-149
-149
-149

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

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

query I rowsort
SELECT ALL + ( + 3 ) FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - + ( - SUM( + + col2 ) ) * - 72 FROM tab1 AS cor0
----
-16056

skipif mysql # not compatible
query I rowsort label-619
SELECT - + ( - SUM ( + + col2 ) ) * - 72 FROM tab1 AS cor0
----
-16056

query I rowsort
SELECT DISTINCT + 72 * col1 * + 71 AS col2 FROM tab2 AS cor0
----
260712
342504
393624

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 92 * - 29 FROM tab1
----
-2668

query I rowsort
SELECT + - col1 * + 15 FROM tab2 AS cor0
----
-1005
-1155
-765

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

skipif mysql # not compatible
query II rowsort label-629
SELECT DISTINCT + MIN ( DISTINCT col2 ), 41 AS col0 FROM tab1 AS cor0
----
59
41

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 24 + col0 FROM tab2
----
22
40
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col2 + - 7
----

query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( 95 ) - - CAST( NULL AS SIGNED ), col0 + + col1, + col0, - 41, - 13 - col0, + col1 + col1, + col2 + - 12 )
----

skipif mysql # not compatible
query I rowsort label-634
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( 95 ) - - CAST ( NULL AS INTEGER ), col0 + + col1, + col0, - 41, - 13 - col0, + col1 + col1, + col2 + - 12 )
----

query II rowsort
SELECT + col2, - col0 * - col0 * - - ( + col0 ) + + col2 FROM tab1 AS cor0
----
59
614184
68
753639
96
132747

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

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

skipif mysql # not compatible
query I rowsort label-637
SELECT COUNT ( DISTINCT - 89 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT COUNT( * ) col0 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-638
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT 97 - + - ( - COUNT( * ) ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT 97 - + - ( - COUNT ( * ) ) AS col2 FROM tab0
----
94

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

skipif mysql # not compatible
query I rowsort label-640
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + 11 - + + COUNT ( * ) * ( + COUNT ( DISTINCT - + col0 ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + ( - - 54 ) * - + ( + COUNT( * ) ) + - 59 AS col0 FROM tab1
----
-221

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + ( - - 54 ) * - + ( + COUNT ( * ) ) + - 59 AS col0 FROM tab1
----
-221

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT ALL + col2 DIV - + 76 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + col2 / - + 76 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * + col0 col2 FROM tab1
----
-132651
-614125
-753571

query I rowsort
SELECT 9 FROM tab1 WHERE ( col0 IS NOT NULL )
----
9
9
9

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

query I rowsort
SELECT - - col1 + - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT ALL + + 62 * col2 + + 20 AS col2 FROM tab0 AS cor0
----
2934
6158
640

query I rowsort
SELECT ALL - 37 FROM tab1 WHERE + col0 + + - col0 IS NOT NULL
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-649
SELECT 26 + - 39 + 54 - + - ( + + 56 ) + CAST( NULL AS DECIMAL ) - - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-649
SELECT 26 + - 39 + 54 - + - ( + + 56 ) + CAST ( NULL AS REAL ) - - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - - 14 FROM tab0 cor0
----
14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-654
SELECT + - 45 DIV 18 DIV - col0, + col1 DIV 38 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2

skipif mysql # not compatible
query II rowsort label-654
SELECT + - 45 / 18 / - col0, + col1 / 38 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2

query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) IS NULL
----
-48
-48
-48

query I rowsort
SELECT + 9 * col2 * 29 - col1 FROM tab1 cor0
----
15394
17701
25042

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

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT - - COUNT( ALL - col2 ) * + 24 AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-658
SELECT - - COUNT ( ALL - col2 ) * + 24 AS col0 FROM tab2 AS cor0
----
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77 col0, col0 * - 40 col2 FROM tab0 AS cor0
----
77
-3480
77
-3880
77
-600

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 # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT - ( - - COUNT( - 0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - ( - - COUNT ( - 0 ) ) FROM tab1
----
-3

query I rowsort
SELECT - col1 + + 39 FROM tab0
----
-42
18
38

query II rowsort
SELECT ALL col1, col1 + 36 FROM tab0
----
1
37
21
57
81
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-666
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-667
SELECT + - ( 29 ) col2, - col1 + + col1 * CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-667
SELECT + - ( 29 ) col2, - col1 + + col1 * CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL - + col1 DIV - col1 + + - 40 * - 71 FROM tab2 AS cor0
----
2841
2841
2841

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - + col1 / - col1 + + - 40 * - 71 FROM tab2 AS cor0
----
2841
2841
2841

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-669
SELECT DISTINCT + 66 AS col2, 14 * col2 - CAST( + - ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
66
1358
66
831
66
999

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT + 66 AS col2, 14 * col2 - CAST ( + - ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
66
1358
66
831
66
999

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT IN ( 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 - + - 36 col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query II rowsort label-673
SELECT ALL - col0 DIV - col1 + + 2 AS col0, 21 FROM tab0
----
2
21
6
21
99
21

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL - col0 / - col1 + + 2 AS col0, 21 FROM tab0
----
2
21
6
21
99
21

query I rowsort
SELECT 25 + ( - + col0 ) FROM tab1
----
-26
-60
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT + 8 + - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-676
SELECT + 8 + - COUNT ( * ) FROM tab1 AS cor0
----
5

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 - - + 64 AS col0 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT DISTINCT - col1 + - 56 + - 94 FROM tab0 AS cor0
----
-151
-171
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - 54 + COUNT( * ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-681
SELECT - 54 + COUNT ( * ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT ALL col0 + - col0 + col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT + MIN( 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-683
SELECT + MIN ( 5 ) FROM tab0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 - + 6 * col2 col0 FROM tab0
----
-214
-526
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT ALL - 41 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - 41 / + + col1 FROM tab2
----
0
0
0

query II rowsort
SELECT - 39 * - col1 - col0 + + col2, ( col2 ) FROM tab2 AS cor0
----
1966
23
2596
58
2979
40

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

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

query II rowsort
SELECT ALL - 8, + col2 FROM tab0 AS cor0
----
-8
10
-8
47
-8
99

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT ALL - ( col1 ) DIV col1 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT ALL - ( col1 ) / col1 col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + 75 * - col0 AS col0 FROM tab1 AS cor0
----
-3825
-6375
-6825

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT CAST( + col1 AS SIGNED ) * + + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-694
SELECT CAST ( + col1 AS INTEGER ) * + + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + - ( - COUNT( * ) ) * + + COUNT( * ) * 20 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-695
SELECT + - ( - COUNT ( * ) ) * + + COUNT ( * ) * 20 FROM tab2 AS cor0
----
180

query I rowsort
SELECT DISTINCT col1 * 49 + + col1 FROM tab2 cor0
----
2550
3350
3850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL + + MIN( ALL + + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + + MIN ( ALL + + col0 ) FROM tab2 cor0
----
46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT + SUM( + ( - col1 ) ) + 3 + - MAX( + - col1 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + SUM ( + ( - col1 ) ) + 3 + - MAX ( + - col1 ) FROM tab2 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 74 <= CAST( col2 AS SIGNED ) + - 17 - - - 50 / - col1
----

skipif mysql # not compatible
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 74 <= CAST ( col2 AS INTEGER ) + - 17 - - - 50 / - col1
----

query I rowsort
SELECT DISTINCT + + col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 BETWEEN NULL AND - ( + 83 ) / + 69 / + 77
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-708
SELECT + ( - - CAST( + col0 AS SIGNED ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2
----
0
95
0
95
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-708
SELECT + ( - - CAST ( + col0 AS INTEGER ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2
----
0
95
0
95
0
95

query I rowsort
SELECT ALL 32 - + col1 FROM tab2
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT 76 - - - COUNT( * ) + + MIN( ALL + col0 ) AS col2 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-710
SELECT 76 - - - COUNT ( * ) + + MIN ( ALL + col0 ) AS col2 FROM tab0
----
88

query I rowsort
SELECT DISTINCT col2 * - + 33 + + col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT - 78 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT + col2 + + 88 FROM tab0
----
135
187
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 8 col0 FROM tab1
----
104
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + 54 col0 FROM tab2
----
78
78
78

query II rowsort
SELECT DISTINCT - col0 - - + 5 AS col0, + col2 * col0 AS col0 FROM tab0
----
-10
705
-82
870
-92
9603

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

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

query I rowsort
SELECT DISTINCT - - 29 AS col0 FROM tab1 AS cor0
----
29

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

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

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

query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT - 53 IS NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL - AVG ( DISTINCT col2 ) * - - ( - ( + MAX( ALL + col2 ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - AVG ( DISTINCT col2 ) * - - ( - ( + MAX ( ALL + col2 ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 76 + col2 AS col0 FROM tab1 cor0
----
135
144
172

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT DISTINCT - - 92 DIV + col2 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - - 92 / + col2 FROM tab2 cor0
----
1
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT - + col2 DIV + - 41 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-729
SELECT - + col2 / + - 41 col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT + 46 DIV - col1 + + col1 FROM tab0 AS cor0
----
-45
19
81

skipif mysql # not compatible
query I rowsort label-730
SELECT + 46 / - col1 + + col1 FROM tab0 AS cor0
----
-45
19
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( - - col0 ) * CAST( NULL AS SIGNED ) NOT IN ( - + col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( - - col0 ) * CAST ( NULL AS INTEGER ) NOT IN ( - + col2, CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - 61 AS col1, col0 FROM tab1 WHERE NULL <= - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - SUM( DISTINCT + 79 ) FROM tab1 WHERE NULL = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT - SUM ( DISTINCT + 79 ) FROM tab1 WHERE NULL = + col0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 + + + col0 * - col1 + ( col0 ) FROM tab2 AS cor0
----
-2323
-4904
-5008

query I rowsort
SELECT DISTINCT + 42 + - col1 * - col2 FROM tab2 AS cor0
----
1215
3122
3928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 31 / - 26 + 30 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 31 / - 26 + 30 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL + MAX( DISTINCT - 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + MAX ( DISTINCT - 14 ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL 76 + + + SUM( DISTINCT + col2 ) + + COUNT( * ) FROM tab1 cor0
----
302

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL 76 + + + SUM ( DISTINCT + col2 ) + + COUNT ( * ) FROM tab1 cor0
----
302

query I rowsort
SELECT - 43 + + col2 + + 48 * + - 1 FROM tab2 AS cor0
----
-33
-51
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT + ( MAX( ALL col0 ) ) + + ( + 65 ) + - + 31 col0 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-740
SELECT DISTINCT + ( MAX ( ALL col0 ) ) + + ( + 65 ) + - + 31 col0 FROM tab1 AS cor0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - - COUNT( * ) + + MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-741
SELECT - - COUNT ( * ) + + MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
54

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

query I rowsort
SELECT + - 78 + - + col1 FROM tab2 AS cor0
----
-129
-145
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - MIN( DISTINCT col1 ) + - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - MIN ( DISTINCT col1 ) + - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-109

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + col0 * col2 * 0 + + + col2
----

query I rowsort
SELECT - col0 + - 87 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-133
-151
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT + SUM( DISTINCT - + 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + SUM ( DISTINCT - + 25 ) FROM tab2
----
-25

query II rowsort
SELECT DISTINCT 32 AS col2, + ( + - 11 ) FROM tab0
----
32
-11

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

query I rowsort
SELECT DISTINCT + 87 * - col0 * - - ( - col1 ) FROM tab2 AS cor0
----
204102
428736
437175

query I rowsort
SELECT ALL + col2 * - + 11 + - 89 FROM tab1 AS cor0
----
-1145
-738
-837

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

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

query I rowsort
SELECT DISTINCT - + 53 * col1 + - col1 + - + 4 AS col1 FROM tab1 AS cor0
----
-2542
-274
-760

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 80 * 82 * col2 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + SUM( ALL + 21 ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-759
SELECT + SUM ( ALL + 21 ) AS col0 FROM tab0
----
63

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab0 cor0 WHERE col1 + + 58 IS NOT NULL
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - 85 - - 27 AND col2 - + 40 * 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT - col1 DIV - 74 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - col1 / - 74 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + 87 AS col0, 8 FROM tab1
----
87
8
87
8
87
8

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

query I rowsort
SELECT col2 * + 82 * + 36 FROM tab2
----
118080
171216
67896

query I rowsort
SELECT ALL + col1 * + 27 AS col2 FROM tab0
----
2187
27
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-767
SELECT + MIN( + ( - col1 ) ) DIV COUNT( * ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-767
SELECT + MIN ( + ( - col1 ) ) / COUNT ( * ) AS col0 FROM tab2
----
-25

query I rowsort
SELECT DISTINCT 6 + - col1 FROM tab2
----
-45
-61
-71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 73 IS NULL AND NOT CAST( - ( - col0 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 73 IS NULL AND NOT CAST ( - ( - col0 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT 73 + + SUM( 55 ) FROM tab0 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT 73 + + SUM ( 55 ) FROM tab0 AS cor0
----
238

query I rowsort
SELECT DISTINCT col0 * + + col2 + - 3 FROM tab0 AS cor0
----
702
867
9600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 51 + + 21 )
----

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

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

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

query I rowsort
SELECT - col2 * - + 81 + + + 95 FROM tab2
----
1958
3335
4793

query I rowsort
SELECT col1 * 57 AS col2 FROM tab0
----
1197
4617
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - MAX( ALL + - 41 ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - MAX ( ALL + - 41 ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-781
SELECT col1, - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-781
SELECT col1, - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > - 33 + + - 96
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > - 33 + + - 96
----
0

query II rowsort
SELECT col0, col0 * + - ( - col1 ) FROM tab2
----
46
2346
64
4928
75
5025

query II rowsort
SELECT 80 AS col2, col0 + + - col0 * + 68 * - col1 FROM tab1
----
80
28985
80
290927
80
48603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1 * - col2 + + 87 + - 68 * + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + 18 = + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + 18 = + + 81
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - col0 + + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-361
-4162
-604

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + - 18 * - - 97 - + + 27 * - - COUNT( * ) * - COUNT( * ) * - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-181080

skipif mysql # not compatible
query I rowsort label-789
SELECT + - 18 * - - 97 - + + 27 * - - COUNT ( * ) * - COUNT ( * ) * - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-181080

query II rowsort
SELECT ALL - 59, + col2 FROM tab0
----
-59
10
-59
47
-59
99

query I rowsort
SELECT - 13 FROM tab1 AS cor0 WHERE NOT + col1 * - - 54 <> NULL
----

query II rowsort
SELECT + - col2 AS col2, 53 * - + col2 FROM tab2 AS cor0
----
-23
-1219
-40
-2120
-58
-3074

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

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - col2 * col2 * - - col1 DIV col1 + 98 AS col0 FROM tab1 AS cor0
----
-3383
-4526
-9118

skipif mysql # not compatible
query I rowsort label-794
SELECT - col2 * col2 * - - col1 / col1 + 98 AS col0 FROM tab1 AS cor0
----
-3383
-4526
-9118

query I rowsort
SELECT ALL + col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT - col1 DIV - col2 + - + 4 * col2 - - 78 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) * + col2 IS NOT NULL
----
-109
-318
40

skipif mysql # not compatible
query I rowsort label-796
SELECT - col1 / - col2 + - + 4 * col2 - - 78 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) * + col2 IS NOT NULL
----
-109
-318
40

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + COUNT( * ) + + COUNT( * ) + + 83 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-797
SELECT + COUNT ( * ) + + COUNT ( * ) + + 83 FROM tab1
----
89

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL NOT IN ( col2, 83 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 79 = NULL )
----

query I rowsort
SELECT DISTINCT 49 + - col0 AS col1 FROM tab2
----
-15
-26
3

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE + ( + + 70 ) < + 10 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT 50 + - COUNT( * ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-802
SELECT 50 + - COUNT ( * ) AS col1 FROM tab0
----
47

query I rowsort
SELECT col0 + + - 20 AS col2 FROM tab0
----
-5
67
77

query II rowsort
SELECT DISTINCT - - 12, col2 - - col1 AS col2 FROM tab0 AS cor0
----
12
100
12
128
12
31

query II rowsort
SELECT - 15, col2 FROM tab0 AS cor0
----
-15
10
-15
47
-15
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT ALL - ( - + col1 ) + + ( 51 ) AS col0, col1 FROM tab2 AS cor0 WHERE NOT + 39 * + col0 BETWEEN + col1 AND NULL
----

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

query II rowsort
SELECT + + col0, 86 + - col1 AS col1 FROM tab1 AS cor0
----
51
72
85
81
91
39

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL MIN( DISTINCT - 91 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL MIN ( DISTINCT - 91 ) FROM tab2
----
-91

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab2 WHERE NULL <= NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 57 + + 25 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT - - COUNT( DISTINCT 99 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-819
SELECT - - COUNT ( DISTINCT 99 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0

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

query I rowsort
SELECT - 79 * 1 AS col1 FROM tab1
----
-79
-79
-79

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

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL 94 * + - COUNT ( * ) FROM tab2
----
-282

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT - CAST( - ( - MIN( - col1 ) ) AS SIGNED ) + - + 92 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-824
SELECT - CAST ( - ( - MIN ( - col1 ) ) AS INTEGER ) + - + 92 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT COUNT( * ) * + - 2 + - COUNT( DISTINCT - 64 ) + + 79 + + 15 + - - COUNT( * ) * + 71 FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT COUNT ( * ) * + - 2 + - COUNT ( DISTINCT - 64 ) + + 79 + + 15 + - - COUNT ( * ) * + 71 FROM tab0 AS cor0
----
300

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

query I rowsort
SELECT ALL + + col1 * + 91 + - + col0 AS col1 FROM tab0 AS cor0
----
-6
1824
7356

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 96 / 2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-829
SELECT + - ( + - CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + COUNT( * ) * - 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + COUNT ( * ) * - 49 FROM tab0 AS cor0
----
-147

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

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

query I rowsort
SELECT + col2 * - 85 AS col2 FROM tab2
----
-1955
-3400
-4930

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT + 80 - + + 51 DIV + col2 FROM tab2
----
78
79
80

skipif mysql # not compatible
query I rowsort label-834
SELECT + 80 - + + 51 / + col2 FROM tab2
----
78
79
80

query I rowsort
SELECT ALL 58 * + 69 FROM tab0
----
4002
4002
4002

query I rowsort
SELECT + 46 + + col2 FROM tab2
----
104
69
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT + AVG ( ALL + - 95 ) + - CAST( NULL AS SIGNED ) - + + 1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT + AVG ( ALL + - 95 ) + - CAST ( NULL AS INTEGER ) - + + 1 FROM tab1
----
NULL

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

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

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

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

query II rowsort
SELECT ALL ( + 5 ) - - col0 + - + 60 AS col2, 48 AS col2 FROM tab0 AS cor0
----
-40
48
32
48
42
48

query I rowsort
SELECT DISTINCT - col2 - col0 * col0 FROM tab0
----
-272
-7579
-9508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT DISTINCT col0 - col1 AS col0, CAST( NULL AS SIGNED ) + + - 21 AS col2 FROM tab0
----
-66
NULL
66
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-843
SELECT DISTINCT col0 - col1 AS col0, CAST ( NULL AS INTEGER ) + + - 21 AS col2 FROM tab0
----
-66
NULL
66
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT SUM( ALL 95 ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT SUM ( ALL 95 ) FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT ALL - + COUNT( * ) AS col0, 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 12 IS NULL
----
-9
8

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL - + COUNT ( * ) AS col0, 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 12 IS NULL
----
-9
8

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

query I rowsort
SELECT ALL - + 89 FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL - COUNT( * ) * + ( MAX( ALL + col2 ) ) - MIN( ALL col1 ) col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-848
SELECT ALL - COUNT ( * ) * + ( MAX ( ALL + col2 ) ) - MIN ( ALL col1 ) col2 FROM tab2 AS cor0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-849
SELECT - - CAST( + - 59 AS SIGNED ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-849
SELECT - - CAST ( + - 59 AS INTEGER ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT + ( + - SUM( - 80 ) ) col0 FROM tab1 cor0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-850
SELECT + ( + - SUM ( - 80 ) ) col0 FROM tab1 cor0
----
240

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT - COUNT( * ) DIV SUM( - 6 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT - COUNT ( * ) / SUM ( - 6 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 33 / - + 5 FROM tab1 WHERE - 51 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-854
SELECT 90 * + - CAST( + + COUNT( + 12 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-854
SELECT 90 * + - CAST ( + + COUNT ( + 12 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
-270

query I rowsort
SELECT 15 * col2 FROM tab0 AS cor0
----
1485
150
705

query I rowsort
SELECT + 87 * + col0 AS col2 FROM tab1 AS cor0
----
4437
7395
7917

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

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

query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE col1 + + ( col2 + 87 * + 45 ) * + col1 <= NULL
----

query I rowsort
SELECT DISTINCT + 77 * - col1 AS col2 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT + col2 - + 12 * col2 FROM tab1
----
-1056
-649
-748

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

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

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

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

query I rowsort
SELECT ALL col0 * ( + 77 * 76 ) AS col2 FROM tab0
----
509124
567644
87780

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0 / + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT DISTINCT col1 - + CAST( - col2 AS SIGNED ) col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-865
SELECT DISTINCT col1 - + CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT col1 + - 53 AS col0 FROM tab2
----
-2
14
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-867
SELECT * FROM tab1 WHERE NOT - col2 * + col1 BETWEEN ( - col2 * col0 + - 84 ) AND ( + col1 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-867
SELECT * FROM tab1 WHERE NOT - col2 * + col1 BETWEEN ( - col2 * col0 + - 84 ) AND ( + col1 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - 65 * + col1 FROM tab0 WHERE - 41 + col2 * - 31 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE ( 82 + + col1 ) = col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NULL BETWEEN ( col2 * 21 ) AND col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-870
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NULL BETWEEN ( col2 * 21 ) AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT DISTINCT - CAST( + 9 AS SIGNED ) * 46 + + col1 AS col0 FROM tab2
----
-337
-347
-363

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT - CAST ( + 9 AS INTEGER ) * 46 + + col1 AS col0 FROM tab2
----
-337
-347
-363

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

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT COUNT( * ) * + 28 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-873
SELECT COUNT ( * ) * + 28 AS col0 FROM tab2
----
84

query I rowsort
SELECT ALL + 0 + col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 54 col2 FROM tab1
----
113
122
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT MIN( - col1 ) AS col0 FROM tab1 WHERE CAST( - col0 AS SIGNED ) NOT IN ( col1 )
----
-47

skipif mysql # not compatible
query I rowsort label-876
SELECT MIN ( - col1 ) AS col0 FROM tab1 WHERE CAST ( - col0 AS INTEGER ) NOT IN ( col1 )
----
-47

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 NOT BETWEEN + 43 AND 3
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 16 col2 FROM tab1
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT ALL - col0 DIV col1 + + col1 AS col2 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - col0 / col1 + + col1 AS col2 FROM tab0
----
-96
17
81

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

skipif mysql # not compatible
query I rowsort label-880
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( col0 + - col0 * + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 65 col0 FROM tab0
----
3055
6435
650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT + COUNT( DISTINCT 16 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-883
SELECT + COUNT ( DISTINCT 16 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col0 ) BETWEEN ( NULL ) AND + col0 / 11 - + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT - MIN( + 23 ) AS col0 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-885
SELECT - MIN ( + 23 ) AS col0 FROM tab1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 55 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 55 * - col0
----
NULL

query I rowsort
SELECT col0 - - 33 AS col2 FROM tab1 AS cor0
----
118
124
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-888
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / col0 + 61 >= col1 + - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-888
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / col0 + 61 >= col1 + - col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE col2 >= 5 + col0 * 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT DISTINCT 67 DIV + col1 + col0 col2 FROM tab0 AS cor0
----
15
164
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-890
SELECT DISTINCT 67 / + col1 + col0 col2 FROM tab0 AS cor0
----
15
164
90

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

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

query I rowsort
SELECT ALL 48 * 69 FROM tab0 AS cor0
----
3312
3312
3312

query I rowsort
SELECT - - 4 * + col0 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL - 54 * + col1 FROM tab1 AS cor0
----
-2538
-270
-756

query I rowsort
SELECT - 29 * + 34 AS col0 FROM tab2 AS cor0
----
-986
-986
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT + COUNT( * ) * - 40 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + COUNT ( * ) * - 40 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE - 42 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-899
SELECT MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

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

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

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

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + col1 / ( - 92 * col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col2 - + ( - col2 + + col0 ) FROM tab1 WHERE 91 NOT BETWEEN NULL AND col2
----
33
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-905
SELECT ALL MAX ( DISTINCT col1 ) col1 FROM tab2
----
77

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

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

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

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

skipif mysql # not compatible
query III rowsort label-908
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col1 + + col0 AND + col0 / col1 OR NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 + + 76 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT + COUNT( * ) * - + 68 * - 56 FROM tab1
----
11424

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + COUNT ( * ) * - + 68 * - 56 FROM tab1
----
11424

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-913
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 9 + col1 * col0 <> ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-913
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 9 + col1 * col0 <> ( CAST ( NULL AS REAL ) )
----

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

query I rowsort
SELECT 80 + col1 * + - 6 AS col1 FROM tab2
----
-226
-322
-382

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT COUNT( * ) * 23 - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT COUNT ( * ) * 23 - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-919
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST( 59 AS SIGNED ) / 37 + + col0 * 46
----

skipif mysql # not compatible
query III rowsort label-919
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST ( 59 AS INTEGER ) / 37 + + col0 * 46
----

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

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

query I rowsort
SELECT DISTINCT 60 + + - 8 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
532
604
828

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL IN ( - 17 + - col2 )
----

query I rowsort
SELECT DISTINCT + - col2 + 76 AS col0 FROM tab0 AS cor0
----
-23
29
66

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

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

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

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

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

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

query I rowsort
SELECT + 84 FROM tab2 WHERE NULL >= ( NULL ) AND NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 66 - - col2 - + col1 * + col0 FROM tab2
----
-2257
-4822
-4901

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

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( * ) + + - 0 AS col1 FROM tab0
----
3

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

query I rowsort
SELECT col2 + + 32 + - - col0 AS col2 FROM tab0
----
129
228
94

query III rowsort
SELECT * FROM tab1 WHERE - + 79 >= col2 * + col0
----

query I rowsort
SELECT 66 + 53 FROM tab0
----
119
119
119

query I rowsort
SELECT ALL - - col1 + - 19 AS col0 FROM tab2 cor0
----
32
48
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - 2 * - + COUNT( * ) + + 83 AS col2 FROM tab2 cor0 WHERE NOT col1 IN ( col1 )
----
83

skipif mysql # not compatible
query I rowsort label-938
SELECT - 2 * - + COUNT ( * ) + + 83 AS col2 FROM tab2 cor0 WHERE NOT col1 IN ( col1 )
----
83

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

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

query I rowsort
SELECT DISTINCT + 76 + col2 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-941
SELECT + + ( - MIN ( ALL col2 ) ) * - - MIN ( ALL - col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
1768

query I rowsort
SELECT DISTINCT - 97 * - col1 AS col2 FROM tab2 cor0
----
4947
6499
7469

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 63 = ( - - col1 + - + 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT ( 2 ) DIV - col2 * + col2 * + 27 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-944
SELECT ( 2 ) / - col2 * + col2 * + 27 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - SUM( DISTINCT - 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-945
SELECT - SUM ( DISTINCT - 54 ) FROM tab0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT 65 DIV COUNT( * ) * + 31 AS col1 FROM tab0
----
651

skipif mysql # not compatible
query I rowsort label-946
SELECT 65 / COUNT ( * ) * + 31 AS col1 FROM tab0
----
651

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

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT col0 DIV 20 * - col1 * - col0 AS col0, 44 AS col2 FROM tab0
----
0
44
388
44
7308
44

skipif mysql # not compatible
query II rowsort label-948
SELECT col0 / 20 * - col1 * - col0 AS col0, 44 AS col2 FROM tab0
----
0
44
388
44
7308
44

query II rowsort
SELECT ALL - col1 * - 0 AS col1, col2 - - - col2 FROM tab2
----
0
0
0
0
0
0

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab2 WHERE - + ( - - col2 ) < ( col0 )
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - col2 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT + 97 + + 14 * 73 AS col2 FROM tab0 WHERE NOT - 81 * - + CAST( NULL AS SIGNED ) <> + - col0 + - col0 + - col1 * + col2
----

skipif mysql # not compatible
query I rowsort label-953
SELECT + 97 + + 14 * 73 AS col2 FROM tab0 WHERE NOT - 81 * - + CAST ( NULL AS INTEGER ) <> + - col0 + - col0 + - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-954
SELECT DISTINCT 96 + + 7 AS col0, - COUNT( 9 ) FROM tab2
----
103
-3

skipif mysql # not compatible
query II rowsort label-954
SELECT DISTINCT 96 + + 7 AS col0, - COUNT ( 9 ) FROM tab2
----
103
-3

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

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

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

query I rowsort
SELECT + col0 * + col1 * + 6 * - col2 AS col0 FROM tab0 AS cor0
----
-109620
-342630
-57618

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-43

query III rowsort
SELECT * FROM tab0 WHERE 20 + - col0 * - ( col1 ) * col1 > ( col0 * col0 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE - col2 <= NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - - ( + 44 ) * col0 + - col0 FROM tab0 AS cor0
----
3762
4172
726

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + - col0 col1 FROM tab2 AS cor0
----
-70
-88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - + COUNT( DISTINCT + 47 ) + - 83 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-965
SELECT - + COUNT ( DISTINCT + 47 ) + - 83 FROM tab2 AS cor0
----
-84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 28 )
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( - 77 * col1 IN ( + 22 - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( - 77 * col1 IN ( + 22 - col1 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-969
SELECT col0 + - col1 AS col0, - col0, + ( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
9 values hashing to f7b80aa2bbb87eeb180b65159cd88e97

skipif mysql # not compatible
query III rowsort label-969
SELECT col0 + - col1 AS col0, - col0, + ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
9 values hashing to f7b80aa2bbb87eeb180b65159cd88e97

query I rowsort
SELECT ALL - 43 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-22
-42
38

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

skipif mysql # not compatible
query I rowsort label-971
SELECT + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT + 60 - + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT + 60 - + COUNT ( * ) FROM tab2
----
57

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

query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab2 WHERE + col0 < NULL
----

query II rowsort
SELECT ALL + - 74 AS col0, col1 * + 30 * - 55 AS col1 FROM tab1 WHERE NOT - 40 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 94, 30 col2 FROM tab0
----
-94
30

query I rowsort
SELECT 84 * col1 * + + col0 FROM tab1
----
35700
359268
59976

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

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

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

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

query I rowsort
SELECT col2 * col1 * col1 + - col2 FROM tab1 AS cor0
----
1416
150144
18720

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-984
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0

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

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

query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 5
----

query II rowsort
SELECT col1 * 38 * + + col0 - + col1, col0 FROM tab1 AS cor0
----
16145
85
162479
91
27118
51

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-989
SELECT ALL ( + - CAST ( NULL AS REAL ) ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + 16 col1, - 28 FROM tab1 AS cor0
----
1088
-28
1536
-28
944
-28

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

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

query I rowsort
SELECT DISTINCT ( + ( 6 ) ) * + + 92 - - - ( 14 ) AS col0 FROM tab0
----
538

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

query III rowsort
SELECT * FROM tab2 WHERE - col2 > col2
----

query I rowsort
SELECT + col2 * + 14 FROM tab0
----
1386
140
658

query I rowsort
SELECT col0 * + + 68 AS col0 FROM tab1 WHERE col0 * + col2 > + ( col1 ) * - - 85
----
3468
5780
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT + 87 DIV 9 * + 16 * - + col2 AS col0 FROM tab2
----
-3312
-5760
-8352

skipif mysql # not compatible
query I rowsort label-999
SELECT + 87 / 9 * + 16 * - + col2 AS col0 FROM tab2
----
-3312
-5760
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + SUM( DISTINCT + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-1000
SELECT + SUM ( DISTINCT + 56 ) FROM tab2
----
56

query I rowsort
SELECT ALL col2 + - + ( + - col1 ) FROM tab0 AS cor0
----
100
128
31

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * col0 BETWEEN NULL AND ( - 91 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - - MAX( ALL - 6 ) * - COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - - MAX ( ALL - 6 ) * - COUNT ( * ) FROM tab1 AS cor0
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + MIN( - 66 ) AS col1 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1008
SELECT + MIN ( - 66 ) AS col1 FROM tab0 cor0
----
-66

query I rowsort
SELECT ALL + 31 AS col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT 90 * col0 FROM tab0
----
1350
7830
8730

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

query I rowsort
SELECT ( - 2 ) * - 35 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT COUNT( * ) * - 89 * - 74 AS col1 FROM tab0
----
19758

skipif mysql # not compatible
query I rowsort label-1013
SELECT COUNT ( * ) * - 89 * - 74 AS col1 FROM tab0
----
19758

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - 38 * - COUNT( * ) * - MAX( + col1 ) AS col1 FROM tab2
----
-8778

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 38 * - COUNT ( * ) * - MAX ( + col1 ) AS col1 FROM tab2
----
-8778

query I rowsort
SELECT col0 * - + col1 FROM tab0
----
-1215
-1827
-97

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

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

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

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

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

query I rowsort
SELECT DISTINCT 46 * + - col2 * col2 AS col0 FROM tab0
----
-101614
-450846
-4600

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 * col0 < ( col2 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 99 * - col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 90 + 55 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 39 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT MAX( 34 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT MAX ( 34 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, ( + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT ALL col1 DIV - col1 + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL col1 / - col1 + col0 FROM tab2 AS cor0
----
45
63
74

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

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

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) + - + ( + col1 ) FROM tab0
----
-100
-128
-31

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

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

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

query I rowsort
SELECT 52 + col1 FROM tab1 WHERE - - col0 * - 16 <= - 39
----
57
66
99

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - col2 / - col1 FROM tab2 WHERE + col0 - - col0 IS NOT NULL
----
0

query II rowsort
SELECT col0 - - col1 AS col2, + col0 * 30 AS col1 FROM tab1
----
138
2730
65
1530
90
2550

query I rowsort
SELECT ALL col0 - + - 93 FROM tab0
----
108
180
190

query I rowsort
SELECT ALL - ( + - col1 ) + + 97 FROM tab0
----
118
178
98

query I rowsort
SELECT + col2 * + 87 + + col1 FROM tab1 AS cor0
----
5138
5963
8366

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT MIN( - col0 ) + - 28 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1043
SELECT MIN ( - col0 ) + - 28 FROM tab2 AS cor0
----
-103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT + 68 + + 14 - - CAST( - 47 AS SIGNED ) * + 6 FROM tab0 AS cor0
----
-200
-200
-200

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 68 + + 14 - - CAST ( - 47 AS INTEGER ) * + 6 FROM tab0 AS cor0
----
-200
-200
-200

query I rowsort
SELECT col0 * + 18 + + col1 FROM tab0 AS cor0
----
1587
1747
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-28
-37
-9

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 34 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 9, - 14 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 * + col1 + - - CAST( + 77 AS SIGNED ) * + col2 <= ( - col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 * + col1 + - - CAST ( + 77 AS INTEGER ) * + col2 <= ( - col0 * col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1055
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < 61
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT 7 * + MAX( + - col1 ) col0 FROM tab1
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1059
SELECT 7 * + MAX ( + - col1 ) col0 FROM tab1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT - 11 DIV - 16 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 11 / - 16 FROM tab0
----
0
0
0

query II rowsort
SELECT + 47 AS col0, 1 FROM tab1
----
47
1
47
1
47
1

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

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT MIN ( ALL 77 ) FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT DISTINCT + - 64 DIV + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + - 64 / + COUNT ( * ) FROM tab0 AS cor0
----
-21

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

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

query I rowsort
SELECT ALL + col1 + + + 97 AS col0 FROM tab2
----
148
164
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT - + 10 * - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT - + 10 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT DISTINCT + 28 * - col0 AS col1 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT COUNT( * ) + 81 col2 FROM tab1 AS cor0
----
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT 2 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0 + + ( - 3 ) + - col1 * - - ( - col1 ) * col1
----
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 2 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0 + + ( - 3 ) + - col1 * - - ( - col1 ) * col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col0 * - 79 col0 FROM tab1 AS cor0
----
-4043
-6720
-7236

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 >= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT - col2 DIV + - col0 + - col1 - - col2 AS col2 FROM tab1
----
21
54
83

skipif mysql # not compatible
query I rowsort label-1078
SELECT - col2 / + - col0 + - col1 - - col2 AS col2 FROM tab1
----
21
54
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( + 6 + - + 36 )
----

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

query I rowsort
SELECT DISTINCT - 45 + col0 AS col0 FROM tab0
----
-30
42
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1082
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 35 * CAST( NULL AS DECIMAL ) ) OR NOT + 23 * - - col1 = ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1082
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 35 * CAST ( NULL AS REAL ) ) OR NOT + 23 * - - col1 = ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + ( + col0 ) + - col2 AS col0, 10 AS col0 FROM tab0
----
-2
10
-32
10
77
10

query I rowsort
SELECT + 35 + + col0 AS col2 FROM tab2
----
110
81
99

query II rowsort
SELECT ALL col0 + - - col2 * 16, + col1 FROM tab0
----
1681
1
247
21
767
81

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1092
SELECT 77 DIV - SUM( + col2 ) AS col0 FROM tab0 cor0 WHERE 80 * + + col1 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT 77 / - SUM ( + col2 ) AS col0 FROM tab0 cor0 WHERE 80 * + + col1 + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT ALL - 10 - - - 75 + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-108
-125
-143

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - 10 - - - 75 + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-108
-125
-143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 * - + col2 NOT BETWEEN NULL AND col0 AND NULL > ( col0 / + ( + 67 ) / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + - COUNT( * ) - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1095
SELECT + - COUNT ( * ) - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT ALL - COUNT( DISTINCT col2 ) - COUNT( DISTINCT + col2 ) * + 45 DIV - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - COUNT ( DISTINCT col2 ) - COUNT ( DISTINCT + col2 ) * + 45 / - COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1097
SELECT - 71 + - + ( 46 ) AS col1, AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-1097
SELECT - 71 + - + ( 46 ) AS col1, AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
NULL

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

skipif mysql # not compatible
query III rowsort label-1098
SELECT ALL * FROM tab2 WHERE + + 42 * - ( CAST ( - + ( 30 ) AS INTEGER ) ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1103
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col0 / - + CAST( NULL AS SIGNED ) + + col0, - 37 )
----

skipif mysql # not compatible
query III rowsort label-1103
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col0 / - + CAST ( NULL AS INTEGER ) + + col0, - 37 )
----

query I rowsort
SELECT - ( - + col1 ) * col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT + MIN( DISTINCT 99 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT + MIN ( DISTINCT 99 ) AS col2 FROM tab1
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 34 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query II rowsort
SELECT ( + + col2 ) * + col0 * - - col0 - + col1, - col0 AS col2 FROM tab2
----
163763
-64
326183
-75
48617
-46

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2 WHERE - col2 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) / col0 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1112
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) / col0 IS NULL
----
51
85
91

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

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

query I rowsort
SELECT + 69 * col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
48726
60051
662608

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

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

query I rowsort
SELECT - 74 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
156584
303104
416250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT CAST( - - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( - - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT MAX( DISTINCT + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1119
SELECT MAX ( DISTINCT + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT + 35 FROM tab2 cor0
----
35
35
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT - COUNT( * ) * + - 72 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - COUNT ( * ) * + - 72 FROM tab0 AS cor0
----
216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 - - + col1, + ( col0 ) + - col1 AS col0 FROM tab0
----
0
-66
0
66
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT col1 - + ( CAST( col0 AS SIGNED ) ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-1125
SELECT col1 - + ( CAST ( col0 AS INTEGER ) ) FROM tab2
----
-8
13
5

query I rowsort
SELECT - col0 * - - 56 FROM tab1 WHERE ( NOT ( col1 + col2 IS NULL ) )
----
-2856
-4760
-5096

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

query I rowsort
SELECT ( - col0 ) * + - col0 * col1 + 83 + col2 + col2 FROM tab1
----
36326
36689
389426

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT - 10 + - - COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - 10 + - - COUNT ( * ) FROM tab0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ALL col2 DIV + - col0 - - - col2 * + col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL col2 / + - col0 - - - col2 * + col1 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - 83 - 32 AS col0, col0 AS col1 FROM tab1
----
-115
51
-115
85
-115
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1133
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 75 * - 69 / + CAST( - col0 AS DECIMAL ) = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1133
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 75 * - 69 / + CAST ( - col0 AS REAL ) = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT - MIN( + 5 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1135
SELECT - MIN ( + 5 ) FROM tab2
----
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col2 col1, - col0 * 23 + - col1 AS col0, + col0 col2 FROM tab2 AS cor0
----
9 values hashing to 062c86b8b6993bb29da94b37e7a1abfb

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

skipif mysql # not compatible
query I rowsort label-1138
SELECT - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1139
SELECT * FROM tab2 cor0 WHERE NOT ( + + 61 ) * col1 * + + CAST( col1 AS SIGNED ) * 82 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1139
SELECT * FROM tab2 cor0 WHERE NOT ( + + 61 ) * col1 * + + CAST ( col1 AS INTEGER ) * 82 + + col0 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 <> - col2 * col0 / - + 12 + + col0
----

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

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

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

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

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

query II rowsort
SELECT - 4 + + col1 AS col1, col1 * - + col0 FROM tab0 AS cor0 WHERE NOT 74 = ( + col2 * col0 )
----
-3
-97
17
-1827
77
-1215

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 26 + - col0 / + - col0 * + ( - 11 ) IS NULL
----

query I rowsort
SELECT ALL col0 + + col1 FROM tab1 WHERE NOT - col2 BETWEEN + - 53 * - col0 * 51 AND - 43 - + col0 + + col1 * + col0
----
138
65
90

query I rowsort
SELECT - 11 * - + col0 * + col2 FROM tab1 AS cor0
----
53856
55165
68068

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - SUM( - 54 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-1158
SELECT - SUM ( - 54 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE + col2 > - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE + col2 > - col1
----
-3

query I rowsort
SELECT DISTINCT - - 91 * 62 + 71 FROM tab2 AS cor0
----
5713

query I rowsort
SELECT ALL + - 68 * + - col2 * + 89 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
286653
60620
608949

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - - SUM( col1 ) + + + 7 col1 FROM tab2 AS cor0
----
202

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1162
SELECT - - SUM ( col1 ) + + + 7 col1 FROM tab2 AS cor0
----
202

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

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

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

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

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

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

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

query II rowsort
SELECT + col0, + col1 * - - 68 FROM tab2
----
46
3468
64
5236
75
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL 38 * COUNT( * ) + + 0 AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL 38 * COUNT ( * ) + + 0 AS col1 FROM tab2
----
114

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

query I rowsort
SELECT + col0 * col1 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT col2 DIV - 90 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT col2 / - 90 col2 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT 62 DIV - col1 AS col2 FROM tab0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT 62 / - col1 AS col2 FROM tab0
----
-2
-62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 70 - SUM( ALL col1 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1174
SELECT 70 - SUM ( ALL col1 ) AS col1 FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT - CAST( NULL AS SIGNED ) + - + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 18
----

skipif mysql # not compatible
query I rowsort label-1175
SELECT - CAST ( NULL AS INTEGER ) + - + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 18
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT 0 * - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT 0 * - col1 / - col2 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL + col0 DIV + 68 + + col0 FROM tab2 cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + col0 / + 68 + + col0 FROM tab2 cor0
----
46
64
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT SUM( + + col0 ) * COUNT( * ) AS col2 FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-1179
SELECT SUM ( + + col0 ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
555

query I rowsort
SELECT ALL 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query II rowsort
SELECT ALL + ( col1 ) * col0 AS col2, + col1 + - 45 AS col1 FROM tab2
----
2346
6
4928
32
5025
22

query I rowsort
SELECT DISTINCT + + 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 60 + + - col2 BETWEEN NULL AND + - col0 + col0
----

query I rowsort
SELECT DISTINCT + col1 * + - 64 * - ( + - 82 ) FROM tab2 AS cor0
----
-267648
-351616
-404096

query I rowsort
SELECT ALL + 37 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
10915
118252
49728

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

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

query I rowsort
SELECT ALL + - 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL col0 + + col1 * ( + col0 ) DIV 50 * + ( - 35 ) col0 FROM tab2
----
-1564
-3366
-3425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1190
SELECT ALL col0 + + col1 * ( + col0 ) / 50 * + ( - 35 ) col0 FROM tab2
----
-1564
-3366
-3425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT 2 + + SUM( col2 ) AS col2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT 2 + + SUM ( col2 ) AS col2 FROM tab1
----
225

query I rowsort
SELECT + col1 * - + 96 AS col2 FROM tab2
----
-4896
-6432
-7392

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

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

query I rowsort
SELECT ALL 0 + 44 AS col2 FROM tab0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT ALL - col1 DIV - 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - col1 / - 60 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + + COUNT( * ) + + + 44 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + - 9, + 99, - 32, - + 48, - col2 / + ( col1 ) )
----
44

skipif mysql # not compatible
query I rowsort label-1200
SELECT + + COUNT ( * ) + + + 44 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + - 9, + 99, - 32, - + 48, - col2 / + ( col1 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL - - COUNT( * ) + + 46 + 91 * 15 FROM tab2 cor0
----
1414

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL - - COUNT ( * ) + + 46 + 91 * 15 FROM tab2 cor0
----
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT 62 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1202
SELECT 62 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

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

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

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab0 cor0
----
-108
-96
-98

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

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

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

query I rowsort
SELECT DISTINCT - 14 * + col2 - 40 AS col1 FROM tab0 AS cor0
----
-1426
-180
-698

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2 AS cor0
----
-77

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

query I rowsort
SELECT + col1 - 29 * + col2 FROM tab2 AS cor0
----
-1083
-1615
-616

query I rowsort
SELECT 34 + + col2 + col2 FROM tab0
----
128
232
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT col1 DIV 54 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1213
SELECT col1 / 54 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT - - 99 + - col0 + + 87 FROM tab1 cor0 WHERE NOT ( + 26 ) * - col0 <> col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - + 64 * + + 9 * - COUNT( * ) FROM tab1 AS cor0
----
1728

skipif mysql # not compatible
query I rowsort label-1218
SELECT - + 64 * + + 9 * - COUNT ( * ) FROM tab1 AS cor0
----
1728

query I rowsort
SELECT DISTINCT - 43 * - ( - col1 ) * col1 + + col1 FROM tab0 AS cor0
----
-18942
-282042
-42

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 86 AND NULL
----

query I rowsort
SELECT ALL col1 * 97 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT - SUM( DISTINCT - 70 ) AS col2 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-1222
SELECT - SUM ( DISTINCT - 70 ) AS col2 FROM tab2 cor0
----
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT - col2 DIV ( col1 ) - - col1 + 4 DIV - 16 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - col2 / ( col1 ) - - col1 + 4 / - 16 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - + col0 + + 64 + + + 96 FROM tab1 AS cor0
----
109
69
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT - COUNT( * ) * 86 + + COUNT( * ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-1227
SELECT - COUNT ( * ) * 86 + + COUNT ( * ) FROM tab0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL - 87 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
-133
-151
-162

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - 87 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
-133
-151
-162

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN - col1 * - col0 AND col2
----
97
1
99

query II rowsort
SELECT col0 + - col0, + col0 FROM tab0
----
0
15
0
87
0
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 >= + 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + 99 - + - col2 NOT IN ( col1, col1 - - col2 * - col1 )
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT DISTINCT 42 * col2 DIV + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288
495
60

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT 42 * col2 / + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288
495
60

query II rowsort
SELECT + 46 + col0 AS col1, - 21 FROM tab0 AS cor0 WHERE ( col2 + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + ( + 67 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT - col0 DIV col0 * + - col2 * - - col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1236
SELECT - col0 / col0 * + - col2 * - - col1 FROM tab1
----
1344
295
3196

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col0 FROM tab0 WHERE NULL IS NOT NULL OR NOT 32 <> NULL
----

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

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

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

query I rowsort
SELECT ALL - 76 - - col0 * col0 FROM tab0 cor0
----
149
7493
9333

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT MIN( ALL - - 3 ) - + SUM( ALL - col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT MIN ( ALL - - 3 ) - + SUM ( ALL - col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
201

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1245
SELECT * FROM tab0 WHERE NOT CAST( - + 76 AS SIGNED ) * - - col0 + col0 >= + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1245
SELECT * FROM tab0 WHERE NOT CAST ( - + 76 AS INTEGER ) * - - col0 + col0 >= + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col2 + 89 - + col1 AS col1 FROM tab1 cor0 WHERE NOT + col0 * - + ( - col1 ) IN ( col1 + col1, col2, + - col0 / col2 )
----
110
143
171

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * - 29 - - - col2 ) = - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT + 68 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + 68 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE col0 <= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * col2 * - ( + + 93 ) FROM tab2
----
-109089
-286440
-361398

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL - COUNT( * ) * + MAX( 84 ) FROM tab0 AS cor0 WHERE NOT + 27 + - col1 IS NULL
----
-252

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - COUNT ( * ) * + MAX ( 84 ) FROM tab0 AS cor0 WHERE NOT + 27 + - col1 IS NULL
----
-252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT + MAX( ALL + - 80 ) FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + MAX ( ALL + - 80 ) FROM tab0 cor0
----
-80

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1255
SELECT col2 / - + col2 col0 FROM tab0 cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL col0 + 17 - - + 76 FROM tab2 AS cor0
----
139
157
168

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

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

query I rowsort
SELECT ALL + 45 * + 25 * 50 AS col0 FROM tab2
----
56250
56250
56250

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1261
SELECT SUM ( - col1 ) FROM tab0
----
-103

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

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

query II rowsort
SELECT ALL - col0, col1 + + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
-15
-1134
-87
-1806
-97
-96

query I rowsort
SELECT ALL + + 35 - col2 AS col0 FROM tab0 AS cor0
----
-12
-64
25

query I rowsort
SELECT 64 + - + col0 FROM tab0 AS cor0
----
-23
-33
49

query I rowsort
SELECT - ( + col0 ) * - + 10 + + - col1 + - - 22 FROM tab0 AS cor0
----
871
91
991

query I rowsort
SELECT + col2 + + 43 FROM tab0 cor0
----
142
53
90

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

query I rowsort
SELECT ALL 94 * + col2 FROM tab0
----
4418
9306
940

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - SUM( ALL + 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-351

skipif mysql # not compatible
query I rowsort label-1271
SELECT - SUM ( ALL + 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / COUNT( * ) * - MIN( 4 ) FROM tab0 WHERE ( NOT 72 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) * - MIN ( 4 ) FROM tab0 WHERE ( NOT 72 IS NULL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT COUNT( DISTINCT - col0 ) * MIN( + col2 ) - 97 AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( DISTINCT - col0 ) * MIN ( + col2 ) - 97 AS col1 FROM tab2 AS cor0
----
-28

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT MIN( 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1279
SELECT MIN ( 60 ) FROM tab1
----
60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT + col1 DIV - 20 AS col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1281
SELECT + col1 / - 20 AS col2 FROM tab0
----
-1
-4
0

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

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

query I rowsort
SELECT ALL - - 45 AS col1 FROM tab0 AS cor0
----
45
45
45

query II rowsort
SELECT DISTINCT col0 * + col0, col0 AS col0 FROM tab1
----
2601
51
7225
85
8281
91

query I rowsort
SELECT col2 * + 71 FROM tab1
----
4189
4828
6816

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 61 / + CAST ( NULL AS INTEGER ) - + 95 * + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT SUM( 45 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT SUM ( 45 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL - - 67 * - col0 - + - col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

query I rowsort
SELECT col0 + + 22 * - col0 FROM tab1
----
-1071
-1785
-1911

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 53
----

query I rowsort
SELECT 81 + + col1 AS col2 FROM tab2
----
132
148
158

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT - COUNT( * ) + 24 * + - COUNT( - 1 ) + + ( + SUM( ALL - 23 ) ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - COUNT ( * ) + 24 * + - COUNT ( - 1 ) + + ( + SUM ( ALL - 23 ) ) FROM tab1
----
-144

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

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

query I rowsort
SELECT ALL ( col0 ) * col0 + ( + - col1 ) + + col0 FROM tab1
----
2638
7305
8325

query I rowsort
SELECT - 18 * + col0 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT DISTINCT col2 + - 53 FROM tab0
----
-43
-6
46

query III rowsort
SELECT * FROM tab0 WHERE ( + + 80 ) IS NULL
----

query I rowsort
SELECT ALL 12 - - + col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1306
SELECT - 16 * + CAST( - + 67 AS SIGNED ) + + col1 + - 27 - + + 23 * + 56 * - + col1 * + - ( col1 ) * - + col2, - col0 / + CAST( NULL AS DECIMAL ) * - - 96 col2 FROM tab0 AS cor0
----
128558
NULL
397177822
NULL
5681146
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1306
SELECT - 16 * + CAST ( - + 67 AS INTEGER ) + + col1 + - 27 - + + 23 * + 56 * - + col1 * + - ( col1 ) * - + col2, - col0 / + CAST ( NULL AS REAL ) * - - 96 col2 FROM tab0 AS cor0
----
128558
NULL
397177822
NULL
5681146
NULL

query I rowsort
SELECT + 99 * - ( - 15 ) + + 19 AS col1 FROM tab2 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL col0 - + CAST( 15 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
72
82

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL col0 - + CAST ( 15 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
72
82

query II rowsort
SELECT - col2, + 96 AS col0 FROM tab1
----
-59
96
-68
96
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL - MAX( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - MAX ( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-35

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

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

skipif mysql # not compatible
query I rowsort label-1312
SELECT - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( + - 40 ) FROM tab2 WHERE NOT + ( + col0 ) * + col2 >= - 90 / - col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( + - 40 ) FROM tab2 WHERE NOT + ( + col0 ) * + col2 >= - 90 / - col1 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL MIN( ALL col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL MIN ( ALL col1 ) FROM tab2
----
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT MAX( col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1318
SELECT MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1319
SELECT + col1 + + 81 AS col2, col0 * - col0 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
102
NULL
162
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-1319
SELECT + col1 + + 81 AS col2, col0 * - col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
102
NULL
162
NULL
82
NULL

query I rowsort
SELECT - col1 * + + 88 + + 79 FROM tab1 AS cor0
----
-1153
-361
-4057

query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT 96 DIV - col1 FROM tab0
----
-1
-4
-96

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 96 / - col1 FROM tab0
----
-1
-4
-96

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

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

query I rowsort
SELECT ALL - ( + 89 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL + MIN( 88 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1325
SELECT ALL + MIN ( 88 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 41 / + 38 * - col1 * + - col2 + - col2
----

query I rowsort
SELECT DISTINCT col1 * 11 + + - 57 FROM tab0
----
-46
174
834

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * 11 col2 FROM tab0 AS cor0
----
253
253
253

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1336
SELECT CAST( - ( - 69 ) AS SIGNED ), col1 AS col2 FROM tab2 AS cor0
----
69
51
69
67
69
77

skipif mysql # not compatible
query II rowsort label-1336
SELECT CAST ( - ( - 69 ) AS INTEGER ), col1 AS col2 FROM tab2 AS cor0
----
69
51
69
67
69
77

query I rowsort
SELECT DISTINCT + 50 * + col0 FROM tab1
----
2550
4250
4550

query I rowsort
SELECT col0 * - - 44 - - col0 AS col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT ALL 53 * - col0 + - - 15 FROM tab2
----
-2423
-3377
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 46 - MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-505

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 46 - MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-505

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1343
SELECT ALL col2 - - - col0 * + col0 + + 63 AS col1, col2 * col1 DIV - col1 FROM tab1 AS cor0
----
-2442
-96
-7103
-59
-8150
-68

skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL col2 - - - col0 * + col0 + + 63 AS col1, col2 * col1 / - col1 FROM tab1 AS cor0
----
-2442
-96
-7103
-59
-8150
-68

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

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

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

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

query II rowsort
SELECT DISTINCT - + col1 AS col0, col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT - + col2 * + - col2 + col0 AS col2 FROM tab2 AS cor0
----
1664
3439
575

query I rowsort
SELECT - + col0 * - 15 AS col2 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT ALL - 30 * 46 * - col2 AS col1 FROM tab1 cor0
----
132480
81420
93840

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1351
SELECT + MIN ( DISTINCT + 49 ) col0 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT ALL - + COUNT( * ) DIV - + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - + COUNT ( * ) / - + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT COUNT( * ) FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( * ) FROM tab0, tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 col2, col2 FROM tab0
----
98
10
98
47
98
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col2 / + col0 / - col2 - col0 - + col1 + - col1 * col0 * + - 68 * + - col1 * + 51 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 10 * + col1 * - 35 FROM tab0
----
28350
350
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT SUM( 68 ) + + + 78 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-1358
SELECT SUM ( 68 ) + + + 78 FROM tab0
----
282

query I rowsort
SELECT 65 * + col1 AS col0 FROM tab0
----
1365
5265
65

query I rowsort
SELECT DISTINCT - col1 * - - ( - 98 ) * - col0 * - 85 FROM tab0
----
10120950
15218910
808010

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1361
SELECT + 72 / + CAST( NULL AS DECIMAL ) * + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 72 / + CAST ( NULL AS REAL ) * + + COUNT ( * ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT + col0 DIV + ( - col0 ) col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1363
SELECT + col0 / + ( - col0 ) col1 FROM tab0 AS cor0
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT + col0 AS col0, col2, - ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
9 values hashing to ff7ca66775ef856852310661dba65470

query I rowsort
SELECT + - 19 * 73 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 0d1e451daf6ee4f38f88b73cc0f6931f

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT COUNT( ( col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT COUNT ( ( col0 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1368
SELECT - + CAST( NULL AS SIGNED ) + COUNT( * ), 20 AS col0 FROM tab2 cor0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-1368
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( * ), 20 AS col0 FROM tab2 cor0
----
NULL
20

query I rowsort
SELECT DISTINCT + col1 * + + col1 + - - 92 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + col1 )
----

query I rowsort
SELECT + - 80 + - col1 FROM tab0 AS cor0
----
-101
-161
-81

query I rowsort
SELECT + + col2 + - - col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col0 + - 33 + + + 85 + + - 6 + 45 FROM tab1 AS cor0 WHERE - col1 - col0 + + + col0 IS NOT NULL
----
142
176
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - ( + 41 ) col0 FROM tab0 AS cor0
----
-40
20
40

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 * + + col0 * - 31 FROM tab0
----
234726
291776
6990

query I rowsort
SELECT + + col0 * col0 + - col2 AS col2 FROM tab1 WHERE + 53 * + col1 IS NOT NULL
----
2505
7166
8213

query II rowsort
SELECT col0 AS col2, + col1 * + col1 FROM tab0
----
15
6561
87
441
97
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT MIN( DISTINCT + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1380
SELECT MIN ( DISTINCT + col0 ) FROM tab2
----
46

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 54 * + 23 <> NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1384
SELECT SUM( ALL + col0 ) DIV 52 AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1384
SELECT SUM ( ALL + col0 ) / 52 AS col1 FROM tab1
----
4

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 98
----

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab1 cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab1 WHERE - col2 * - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT CAST( - 54 AS SIGNED ) * + col0 - - - col2 FROM tab2
----
-2507
-3496
-4108

skipif mysql # not compatible
query I rowsort label-1393
SELECT CAST ( - 54 AS INTEGER ) * + col0 - - - col2 FROM tab2
----
-2507
-3496
-4108

query I rowsort
SELECT ALL - 41 + col1 FROM tab1
----
-27
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - COUNT( * ) * + + 69 AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1395
SELECT - COUNT ( * ) * + + 69 AS col1 FROM tab2
----
-207

query I rowsort
SELECT ALL + col0 * - + 46 AS col0 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT COUNT( * ) * - 56 * COUNT( * ) AS col1 FROM tab1
----
-504

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT COUNT ( * ) * - 56 * COUNT ( * ) AS col1 FROM tab1
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL - COUNT( * ) * 38 AS col1 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - COUNT ( * ) * 38 AS col1 FROM tab1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT + COUNT( * ) * + - 92 AS col1 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT + COUNT ( * ) * + - 92 AS col1 FROM tab1
----
-276

query I rowsort
SELECT DISTINCT 67 FROM tab0 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT ALL col0 DIV - 51 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3
-32
76

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL col0 / - 51 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3
-32
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT ALL + - col0 DIV 56 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + - col0 / 56 AS col1 FROM tab0 AS cor0
----
-1
-1
0

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

query II rowsort
SELECT + ( - col0 ) * - 34 AS col0, - col0 * - 30 * - col2 FROM tab0 AS cor0 WHERE col2 + - + 85 BETWEEN - 38 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * + col2 IS NULL
----
-3

query I rowsort
SELECT 44 * col0 + + - col2 FROM tab0 AS cor0
----
3818
4169
613

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

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

query III rowsort
SELECT * FROM tab1 WHERE + ( col0 ) + + 80 <= 98
----

query I rowsort
SELECT DISTINCT + col0 * + col2 - 63 + col0 FROM tab1
----
4884
5037
6216

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, + col1 FROM tab2 AS cor0 WHERE col0 + - col2 NOT BETWEEN col0 AND col0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT COUNT( col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1412
SELECT COUNT ( col0 ) FROM tab0 cor0
----
3

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT col2 * - + col2 + - col0 + + col2 * - CAST( col2 AS SIGNED ) * - 85 - - col0 + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
134336
282501
44390

skipif mysql # not compatible
query I rowsort label-1418
SELECT col2 * - + col2 + - col0 + + col2 * - CAST ( col2 AS INTEGER ) * - 85 - - col0 + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
134336
282501
44390

query I rowsort
SELECT col2 + 17 AS col0 FROM tab1
----
113
76
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col2 <> - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1422
SELECT + + ( col1 ), + ( - 87 ) - + - CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1422
SELECT + + ( col1 ), + ( - 87 ) - + - CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 23 ) + - 99 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - + 2 FROM tab1 cor0
----
-2
-2
-2

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - COUNT ( ALL + 86 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT - 76, + 44 * col0 AS col0 FROM tab2 AS cor0
----
-76
2024
-76
2816
-76
3300

query II rowsort
SELECT + 75 AS col1, - 0 AS col2 FROM tab0 AS cor0
----
75
0
75
0
75
0

query II rowsort
SELECT ALL + col1, - ( - col1 ) * 35 AS col0 FROM tab1 AS cor0
----
14
490
47
1645
5
175

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

query I rowsort
SELECT DISTINCT + 75 * - - col1 FROM tab0 AS cor0
----
1575
6075
75

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1432
SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) - + + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

query I rowsort
SELECT 16 + - col0 + - + 72 FROM tab0
----
-143
-153
-71

query I rowsort
SELECT ALL - col1 * - col2 + 51 + - - col0 AS col1 FROM tab0
----
247
348
3873

query I rowsort
SELECT col2 + - 29 + col1 AS col1 FROM tab1
----
35
81
86

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

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

query II rowsort
SELECT DISTINCT - col2 * col1 AS col2, + 92 + + col0 FROM tab0
----
-210
179
-3807
107
-99
189

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

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - SUM ( col1 ) AS col0 FROM tab2
----
-195

query II rowsort
SELECT - col1 * col0, col2 AS col1 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT ALL + 79 DIV + MIN( ALL + + col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + 79 / + MIN ( ALL + + col0 ) FROM tab2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + ( COUNT( + col1 ) ) * + 61 col0 FROM tab2 AS cor0
----
183

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

query II rowsort
SELECT - ( - 62 ) - - col2 * - col0 + - col2 + 51 AS col1, col0 * - col1 + - 90 * - - 73 AS col2 FROM tab0
----
-639
-7785
-767
-8397
-9589
-6667

query I rowsort
SELECT + col2 - + col1 + + col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT - COUNT( DISTINCT + - col0 ) + 50 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT - COUNT ( DISTINCT + - col0 ) + 50 FROM tab0 AS cor0
----
47

query I rowsort
SELECT col1 + 67 AS col0 FROM tab0 AS cor0
----
148
68
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1452
SELECT + - col1 * + col2 + ( + CAST( + - 72 AS SIGNED ) ) * col0 AS col1, 23 - + - col1 - + 80 FROM tab2 AS cor0
----
-4485
-6
-7688
20
-9286
10

skipif mysql # not compatible
query II rowsort label-1452
SELECT + - col1 * + col2 + ( + CAST ( + - 72 AS INTEGER ) ) * col0 AS col1, 23 - + - col1 - + 80 FROM tab2 AS cor0
----
-4485
-6
-7688
20
-9286
10

query I rowsort
SELECT - 84 AS col2 FROM tab2 WHERE NOT - - col0 <> - col1 + - + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 22, col2 * + ( + col2 ) col1 FROM tab1
----
22
3481
22
4624
22
9216

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

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

query I rowsort
SELECT 56 * - 44 FROM tab1
----
-2464
-2464
-2464

query I rowsort
SELECT col1 * - col2 * - col0 * col0 AS col0 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT ALL CAST( col1 AS SIGNED ) col0 FROM tab1
----
14
47
5

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

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

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

query I rowsort
SELECT col0 * 87 FROM tab2
----
4002
5568
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + 40 * - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-3880

skipif mysql # not compatible
query I rowsort label-1462
SELECT + 40 * - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-3880

query I rowsort
SELECT ( - 90 ) FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 81 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT - COUNT( * ) + + + 70 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - COUNT ( * ) + + + 70 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
64

query II rowsort
SELECT DISTINCT col1 AS col1, + 97 * - + 30 * 70 AS col0 FROM tab0
----
1
-203700
21
-203700
81
-203700

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

query I rowsort
SELECT - 71 AS col1 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT COUNT( - 70 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1470
SELECT COUNT ( - 70 ) FROM tab0
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 51 AND - - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 51 AND - - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT 35 * - col0 AS col0 FROM tab0
----
-3045
-3395
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 49 * 2 - + COUNT( * ) FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 49 * 2 - + COUNT ( * ) FROM tab2
----
-101

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - 63 + - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT DISTINCT - COUNT( * ) * + ( + 35 ) AS col0 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - COUNT ( * ) * + ( + 35 ) AS col0 FROM tab1
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT col1 / 17 - 98 * - col1 FROM tab0 WHERE col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1477
SELECT col1 / 17 - 98 * - col1 FROM tab0 WHERE col1 IN ( CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1478
SELECT - COUNT ( * ) / 5 col2 FROM tab0
----
0

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

query I rowsort
SELECT + col1 * - 65 + col2 AS col0 FROM tab0
----
-1355
-5218
34

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

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

query I rowsort
SELECT ALL - col1 / 88 AS col2 FROM tab2 WHERE NULL NOT IN ( + 32 )
----

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

query I rowsort
SELECT + ( 31 ) * col0 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
2697
3007
465

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 84 * + col1 ) >= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT CAST( 86 AS SIGNED ) + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1486
SELECT CAST ( 86 AS INTEGER ) + COUNT ( * ) FROM tab0
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT + COUNT( 61 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1488
SELECT + COUNT ( 61 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL - 57 + COUNT( * ) FROM tab0 WHERE NOT + col2 + 78 * - 8 <> col0 * - 37
----
-57

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 57 + COUNT ( * ) FROM tab0 WHERE NOT + col2 + 78 * - 8 <> col0 * - 37
----
-57

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT ( + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1491
SELECT CAST( + ( 39 ) AS SIGNED ) DIV - 23 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( + ( 39 ) AS INTEGER ) / - 23 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT ALL 28 DIV + ( COUNT( * ) ) FROM tab0 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL 67 * + MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
3417

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 67 * + MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
3417

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL + MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE 69 IN ( ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE 69 IN ( ( col1 ) )
----
NULL

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

query I rowsort
SELECT + 60 * col2 AS col1 FROM tab0 cor0
----
2820
5940
600

query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) < col1
----
138
65
90

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

query I rowsort
SELECT + + 84 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1955
3400
4930

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

query I rowsort
SELECT + col0 + + 9 AS col1 FROM tab0 AS cor0
----
106
24
96

query I rowsort
SELECT + 25 + - col0 * - 67 FROM tab0 AS cor0
----
1030
5854
6524

query I rowsort
SELECT - 22 + 97 FROM tab0 AS cor0 WHERE - col1 IN ( + 9 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * col2 BETWEEN + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1506
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND 69 + CAST( - 32 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1506
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND 69 + CAST ( - 32 AS INTEGER )
----

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

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

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

query I rowsort
SELECT ALL - 79 + - 98 AS col0 FROM tab1
----
-177
-177
-177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1510
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN + CAST( NULL AS SIGNED ) - 79 AND + ( col0 ) + + col1
----

skipif mysql # not compatible
query III rowsort label-1510
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) - 79 AND + ( col0 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + ( COUNT( * ) ) * - 89 AS col1 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + ( COUNT ( * ) ) * - 89 AS col1 FROM tab1
----
-267

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

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT + MIN ( DISTINCT + ( ( + CAST ( NULL AS INTEGER ) ) ) ) * + 31 + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL 20 + - + COUNT( - col2 ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 20 + - + COUNT ( - col2 ) AS col2 FROM tab0
----
17

query III rowsort
SELECT ALL * FROM tab1 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - ( + SUM( ALL col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - ( + SUM ( ALL col1 ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT MAX( col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1517
SELECT MAX ( col1 ) FROM tab2 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT - col2 / + CAST( NULL AS SIGNED ) - - 6 * + col0 FROM tab0 AS cor0 WHERE col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-1518
SELECT - col2 / + CAST ( NULL AS INTEGER ) - - 6 * + col0 FROM tab0 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT DISTINCT + + 81 AS col0 FROM tab0 AS cor0
----
81

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

query I rowsort
SELECT ALL - + 51 * + ( - col1 ) FROM tab2 AS cor0
----
2601
3417
3927

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

query I rowsort
SELECT ALL + - col1 * - 3 AS col1 FROM tab1 cor0
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL 92 + MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT + col2 / - col1 = - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 92 + MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT + col2 / - col1 = - 75
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( ( col0 ) ) AND + ( + col1 )
----
75
67
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL - 14 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 14 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT - + COUNT( * ) DIV - 23 AS col2 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT - + COUNT ( * ) / - 23 AS col2 FROM tab2 WHERE NULL >= NULL
----
0

query I rowsort
SELECT - 27 + 92 + col0 - - col0 * - 59 AS col0 FROM tab1 AS cor0
----
-2893
-4865
-5213

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT MAX( + 25 ) FROM tab1 AS cor0 WHERE NOT col1 <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT MAX ( + 25 ) FROM tab1 AS cor0 WHERE NOT col1 <= + col0
----
NULL

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 + + + col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL OR NULL > - 49
----

query I rowsort
SELECT + 55 FROM tab1 AS cor0 WHERE NOT + col0 * 17 NOT IN ( + col1 )
----

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

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

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

query II rowsort
SELECT - 91 * col0 AS col2, col2 AS col0 FROM tab1
----
-4641
96
-7735
59
-8281
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - COUNT( * ) * ( 26 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1539
SELECT - COUNT ( * ) * ( 26 ) FROM tab2
----
-78

query I rowsort
SELECT DISTINCT 38 * + 63 AS col0 FROM tab1
----
2394

query I rowsort
SELECT ALL + col1 * + + ( + 19 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
266
893
95

query I rowsort
SELECT + ( - col0 ) * + 10 AS col1 FROM tab2
----
-460
-640
-750

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( - ( + col1 ) ) FROM tab1 AS cor0
----
66

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

query I rowsort
SELECT DISTINCT 48 + - + col0 AS col0 FROM tab2 AS cor0
----
-16
-27
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT - col2 + col1 DIV - 67 - - col2 + + col0 * col0 AS col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-1547
SELECT - col2 + col1 / - 67 - - col2 + + col0 * col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( 67 ) + SUM( ALL - + col0 ) - 98 * - 40 AS col2 FROM tab0
----
3724

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( 67 ) + SUM ( ALL - + col0 ) - 98 * - 40 AS col2 FROM tab0
----
3724

query I rowsort
SELECT col2 * - col0 + - col0 * - ( col1 ) AS col2 FROM tab2
----
1288
2368
675

query I rowsort
SELECT ALL + 79 + - col1 FROM tab1
----
32
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 69 / - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 69 / - CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL ( col2 ) * + + 69 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT - 29 * + 91 + - - col0 FROM tab1 cor0
----
-2548
-2554
-2588

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT - col1 DIV + + col0 + - ( + 10 ) FROM tab0 cor0
----
-10
-15

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - col1 / + + col0 + - ( + 10 ) FROM tab0 cor0
----
-10
-15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT DISTINCT - col2 DIV + - 27 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - col2 / + - 27 AS col1 FROM tab0 AS cor0
----
0
1
3

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT + 0 + - + SUM( 11 ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 0 + - + SUM ( 11 ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - MIN( ALL - - 18 ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1563
SELECT - MIN ( ALL - - 18 ) FROM tab1 cor0
----
-18

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + col1 * - col1 <> ( - col1 - ( - col0 ) )
----
97
1
99

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col2 NOT IN ( - 71 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT 70 DIV 41 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1566
SELECT 70 / 41 FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT ALL col2 + + + 98 * - - col2 FROM tab2
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - MAX( ALL - 86 ) + - ( - + MIN( ALL + + 2 ) ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - MAX ( ALL - 86 ) + - ( - + MIN ( ALL + + 2 ) ) FROM tab1
----
88

query I rowsort
SELECT + 62 - + col0 + + ( - col1 ) AS col0 FROM tab2
----
-35
-79
-80

query I rowsort
SELECT - col0 FROM tab1 WHERE col0 * + col2 - + 31 > - col1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1572
SELECT * FROM tab1 WHERE + - 13 - + col1 * col0 - - CAST( 61 AS SIGNED ) + - col2 / 56 >= + col2 * col1 + + 61
----

skipif mysql # not compatible
query III rowsort label-1572
SELECT * FROM tab1 WHERE + - 13 - + col1 * col0 - - CAST ( 61 AS INTEGER ) + - col2 / 56 >= + col2 * col1 + + 61
----

query I rowsort
SELECT ALL + ( col2 ) + + - col1 AS col0 FROM tab2 cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - 59 col2, - col2 col0 FROM tab1 AS cor0 WHERE + 31 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 * + col2 + + 80 / + col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1576
SELECT + col1 DIV col2 + col0 AS col0 FROM tab0 AS cor0 WHERE 26 + - CAST( NULL AS SIGNED ) IS NULL
----
16
89
97

skipif mysql # not compatible
query I rowsort label-1576
SELECT + col1 / col2 + col0 AS col0 FROM tab0 AS cor0 WHERE 26 + - CAST ( NULL AS INTEGER ) IS NULL
----
16
89
97

query I rowsort
SELECT - + 69 + col0 * - - col1 AS col1 FROM tab0 cor0
----
1146
1758
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT DISTINCT SUM( ( col1 ) ) col0 FROM tab2 AS cor0
----
195

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT - col2 * col1 DIV + + col0 col1 FROM tab2 AS cor0
----
-25
-48
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1579
SELECT - col2 * col1 / + + col0 col1 FROM tab2 AS cor0
----
-25
-48
-51

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1582
SELECT DISTINCT col1 * - - col0 + CAST( 6 AS DECIMAL ) AS col0 FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT col1 * - - col0 + CAST ( 6 AS REAL ) AS col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 14 FROM tab1 WHERE col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 44 FROM tab0 cor0
----
44
44
44

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - + COUNT( * ) FROM tab2 WHERE NOT + col1 < + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-1590
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT + col1 < + - col2
----
-3

query I rowsort
SELECT + col1 * - col2 * - col2 AS col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - 74 * + 91 AS col0 FROM tab2
----
-6734
-6734
-6734

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

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

query I rowsort
SELECT DISTINCT + col0 * - + col0 + 86 AS col2 FROM tab2 AS cor0
----
-2030
-4010
-5539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 + 7 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1598
SELECT DISTINCT ( MAX( + - col1 ) ) DIV 29 AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-1598
SELECT DISTINCT ( MAX ( + - col1 ) ) / 29 AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
-3

query I rowsort
SELECT - - ( - 6 ) + + col2 + - ( - 62 ) FROM tab1 AS cor0
----
115
124
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1600
SELECT + - col2 * col2 + col2 * - - CAST( NULL AS SIGNED ), - 53 AS col0 FROM tab0 cor0
----
NULL
-53
NULL
-53
NULL
-53

skipif mysql # not compatible
query II rowsort label-1600
SELECT + - col2 * col2 + col2 * - - CAST ( NULL AS INTEGER ), - 53 AS col0 FROM tab0 cor0
----
NULL
-53
NULL
-53
NULL
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT DISTINCT - + 90 DIV - col1 AS col2 FROM tab1 cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - + 90 / - col1 AS col2 FROM tab1 cor0
----
1
18
6

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

query I rowsort
SELECT ALL col2 + + 91 AS col1 FROM tab1 AS cor0
----
150
159
187

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

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

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

query I rowsort
SELECT - 29 FROM tab0 WHERE ( col2 ) IN ( 39 - - col1 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + - col1 - + 40 <= - + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT SUM( col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1611
SELECT SUM ( col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT - col0 FROM tab2 WHERE + + col0 BETWEEN NULL AND + + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL + SUM( - + ( + + col0 ) ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + SUM ( - + ( + + col0 ) ) AS col1 FROM tab0 cor0
----
-199

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, col0 * 67 FROM tab2 AS cor0
----
23
3082
40
4288
58
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT 15 DIV col1 col2 FROM tab1
----
0
1
3

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

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

query I rowsort
SELECT + 46 AS col1 FROM tab1 WHERE NOT - - col0 + 14 IS NOT NULL
----

query I rowsort
SELECT - 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL - COUNT( * ) - - ( 19 ) - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - COUNT ( * ) - - ( 19 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1627
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 cor0
----
3

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - 64 ) col2 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT col2 * + col2 DIV + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1631
SELECT col2 * + col2 / + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT - COUNT( ALL 34 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - COUNT ( ALL 34 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 68 * col1 FROM tab1
----
3196
340
952

query I rowsort
SELECT 78 * + ( - 50 ) FROM tab2
----
-3900
-3900
-3900

query I rowsort
SELECT DISTINCT - + col0 + + col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 83 * 79 AS col1 FROM tab0
----
6557

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

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

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

query II rowsort
SELECT DISTINCT - ( + 52 ), - 47 AS col2 FROM tab2 AS cor0
----
-52
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT DISTINCT - SUM( + col0 ) AS col0, + SUM( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185
-185

skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT - SUM ( + col0 ) AS col0, + SUM ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185
-185

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT col2 / + col2 AS col2 FROM tab1 WHERE NULL BETWEEN - col1 AND + CAST ( - col2 AS INTEGER ) * - col1 * + - 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT CAST( 56 AS SIGNED ) * + - COUNT( * ) col1 FROM tab0 WHERE - ( - col1 ) IN ( - col2 + col1 + col0 - - - col1 - 38 * col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT CAST ( 56 AS INTEGER ) * + - COUNT ( * ) col1 FROM tab0 WHERE - ( - col1 ) IN ( - col2 + col1 + col0 - - - col1 - 38 * col1 )
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col2
----
51
67
77

query II rowsort
SELECT + - ( - 29 ) * 53 AS col2, 67 FROM tab1 AS cor0
----
1537
67
1537
67
1537
67

query I rowsort
SELECT + col2 * + col2 + - - col2 + col1 + ( - + col2 ) * + + col2 FROM tab2 cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * - - 6 * + col2 * + col2 col2 FROM tab2 AS cor0
----
-1836744
-288834
-873600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL 36 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 36 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-108

query I rowsort
SELECT ( - col2 ) + 88 FROM tab2
----
30
48
65

query I rowsort
SELECT DISTINCT + 74 * + - col0 FROM tab2
----
-3404
-4736
-5550

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + + - col0 IN ( col2, ( 62 ) - + col1 )
----

query I rowsort
SELECT DISTINCT 90 + - col0 FROM tab0
----
-7
3
75

query I rowsort
SELECT DISTINCT 79 * - - col1 + col1 FROM tab0
----
1680
6480
80

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

query II rowsort
SELECT ALL col2 + 95 AS col0, 68 FROM tab2
----
118
68
135
68
153
68

query I rowsort
SELECT ALL col2 - + 50 + col0 FROM tab0 AS cor0
----
12
146
47

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 95 + + 99 ) NOT BETWEEN col2 AND 13 + + 78 + + col1
----

query II rowsort
SELECT + ( + col0 ) AS col1, - 38 - col2 FROM tab2 AS cor0
----
46
-61
64
-78
75
-96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1667
SELECT col0 DIV - ( + 20 ) AS col2, + 2 AS col1 FROM tab0 AS cor0
----
-4
2
-4
2
0
2

skipif mysql # not compatible
query II rowsort label-1667
SELECT col0 / - ( + 20 ) AS col2, + 2 AS col1 FROM tab0 AS cor0
----
-4
2
-4
2
0
2

query I rowsort
SELECT ALL - - col2 * - 99 + + ( - - ( - col0 ) ) + - col1 - - 89 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

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

query II rowsort
SELECT - + 39 AS col1, - 96 FROM tab1 cor0
----
-39
-96
-39
-96
-39
-96

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT + SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT DISTINCT + - 65 AS col0 FROM tab1 WHERE + col2 NOT BETWEEN - 71 AND CAST( - - 67 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + - 65 AS col0 FROM tab1 WHERE + col2 NOT BETWEEN - 71 AND CAST ( - - 67 AS INTEGER )
----
-65

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE + - 39 = - 55
----

query II rowsort
SELECT ALL col0 AS col1, col2 AS col2 FROM tab0 WHERE - + 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - SUM( + 10 ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - SUM ( + 10 ) AS col1 FROM tab1
----
-30

query I rowsort
SELECT 55 * - 20 FROM tab0
----
-1100
-1100
-1100

query I rowsort
SELECT + col0 * + col0 * + + col2 FROM tab2 AS cor0
----
163840
326250
48668

query II rowsort
SELECT DISTINCT + col0, 43 AS col2 FROM tab0 AS cor0
----
15
43
87
43
97
43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 IS NULL )
----

query I rowsort
SELECT ALL + 62 + 42 AS col0 FROM tab1
----
104
104
104

query I rowsort
SELECT ALL - 46 * 45 * ( col1 ) FROM tab0 cor0
----
-167670
-2070
-43470

query I rowsort
SELECT col1 + + 54 + col0 + col2 * + col1 AS col2 FROM tab0 cor0
----
251
372
3957

query I rowsort
SELECT ALL + - ( + + 55 ) - + - 59 FROM tab1 AS cor0
----
4
4
4

query II rowsort
SELECT - + col1 + + - 65, col1 - + col1 AS col1 FROM tab0 AS cor0
----
-146
0
-66
0
-86
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 23 * - 10 + + - 17, col0 * + col1 + + - 72 col0 FROM tab1 AS cor0
----
213
353
213
4205
213
642

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * - 11 col1 FROM tab0 cor0
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT - col0 DIV - 3 FROM tab0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-1691
SELECT - col0 / - 3 FROM tab0
----
29
32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT - ( - + ( MIN( + col0 ) ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1692
SELECT - ( - + ( MIN ( + col0 ) ) ) FROM tab2
----
46

query II rowsort
SELECT + 36, + 93 AS col0 FROM tab2
----
36
93
36
93
36
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT ALL - + col2 * - col2 DIV col2 + - - col0 * - col2 * + 21 col0 FROM tab0 WHERE - col0 DIV + + 86 - - - 24 IS NOT NULL
----
-14758
-18260
-201564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1694
SELECT ALL - + col2 * - col2 / col2 + - - col0 * - col2 * + 21 col0 FROM tab0 WHERE - col0 / + + 86 - - - 24 IS NOT NULL
----
-14758
-18260
-201564

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT DISTINCT - 36, - COUNT( * ) AS col2 FROM tab1
----
-36
-3

skipif mysql # not compatible
query II rowsort label-1695
SELECT DISTINCT - 36, - COUNT ( * ) AS col2 FROM tab1
----
-36
-3

query I rowsort
SELECT ALL + ( col1 ) * col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT DISTINCT + ( - col0 ) DIV + 80 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + ( - col0 ) / + 80 FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 * + - ( - col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ALL - col0 DIV - col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - col0 / - col1 AS col2 FROM tab1
----
1
17
3

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

query II rowsort
SELECT - 6 * 20 AS col1, - col2 - col2 AS col2 FROM tab0
----
-120
-198
-120
-20
-120
-94

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT CAST( - 66 AS SIGNED ) col2 FROM tab0
----
-66
-66
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT CAST ( - 66 AS INTEGER ) col2 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + col2 + col0 / + 99 * + col2 FROM tab0 AS cor0 WHERE NOT NULL = col2 + + col2
----

query I rowsort
SELECT 32 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 - + col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab1 AS cor0 WHERE NOT ( - 35 * col2 ) < 32
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT + 15 * 25 + + col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + - 13 + col2 AS col2 FROM tab1
----
131
134
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + ( SUM( DISTINCT - ( - col1 ) ) ) + 37 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + ( SUM ( DISTINCT - ( - col1 ) ) ) + 37 FROM tab1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT 52 * + MAX( - col1 ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 52 * + MAX ( - col1 ) AS col0 FROM tab0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 38 col0 FROM tab1
----
1938
3230
3458

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1716
SELECT * FROM tab0 AS cor0 WHERE - + col1 * - 90 + - CAST( + col1 AS SIGNED ) IS NULL AND - CAST( NULL AS DECIMAL ) * + + 85 + + - col0 * + + col0 / - - col1 * - + 94 - + col0 > - + col1
----

skipif mysql # not compatible
query III rowsort label-1716
SELECT * FROM tab0 AS cor0 WHERE - + col1 * - 90 + - CAST ( + col1 AS INTEGER ) IS NULL AND - CAST ( NULL AS REAL ) * + + 85 + + - col0 * + + col0 / - - col1 * - + 94 - + col0 > - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + COUNT( * ) + + ( + 63 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1717
SELECT + COUNT ( * ) + + ( + 63 ) FROM tab2 AS cor0
----
66

query I rowsort
SELECT + + 15 + + col0 AS col2 FROM tab1 AS cor0
----
100
106
66

query I rowsort
SELECT - + col2 + + 40 FROM tab0 AS cor0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT DISTINCT COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT DISTINCT - - COUNT( + - 2 ) col0, + 57 FROM tab2 AS cor0
----
3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1721
SELECT DISTINCT - - COUNT ( + - 2 ) col0, + 57 FROM tab2 AS cor0
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL - MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
NULL

query I rowsort
SELECT ALL col1 - - 73 FROM tab2 cor0
----
124
140
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT - col0 - + + CAST( col2 AS SIGNED ) - + + col0 FROM tab1 AS cor0
----
-198
-229
-250

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - col0 - + + CAST ( col2 AS INTEGER ) - + + col0 FROM tab1 AS cor0
----
-198
-229
-250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 BETWEEN - - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) + 43 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) + 43 FROM tab0 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + ( - 60 ) AS col2 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab1 WHERE NOT ( col0 ) * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT 26 * + ( + MIN( 92 ) ) + 21 AS col1 FROM tab2 WHERE 43 IS NOT NULL
----
2413

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT 26 * + ( + MIN ( 92 ) ) + 21 AS col1 FROM tab2 WHERE 43 IS NOT NULL
----
2413

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 97 * col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT 22 - ( + 87 ) * COUNT( * ) + SUM( DISTINCT + col1 ) * 72 * AVG ( ALL - col0 ) FROM tab2 WHERE NOT 2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT 22 - ( + 87 ) * COUNT ( * ) + SUM ( DISTINCT + col1 ) * 72 * AVG ( ALL - col0 ) FROM tab2 WHERE NOT 2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 86 ) col1 FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1735
SELECT - COUNT( DISTINCT + + 74 ), + COUNT( * ) DIV - 39 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-1735
SELECT - COUNT ( DISTINCT + + 74 ), + COUNT ( * ) / - 39 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT 12 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT 12 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 45 * + col2 AS col0 FROM tab0
----
2115
4455
450

query I rowsort
SELECT DISTINCT + - ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 97 * - 92 * - 33 + col0 AS col1 FROM tab1 AS cor0
----
294543
294577
294583

query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 85 + - ( - 16 ) + - - col0 * + 70 FROM tab1 AS cor0
----
3501
5881
6301

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT + MIN( DISTINCT - + ( - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + MIN ( DISTINCT - + ( - col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT 17 FROM tab0, tab1 cor0
----
17

query III rowsort
SELECT * FROM tab2 WHERE - + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT - col0 + + - 43 DIV 31 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-1745
SELECT - col0 + + - 43 / 31 FROM tab1
----
-52
-86
-92

query I rowsort
SELECT DISTINCT - 42 * + 65 + + 34 FROM tab2
----
-2696

query I rowsort
SELECT ALL col0 + - 90 FROM tab2
----
-15
-26
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1748
SELECT DISTINCT + + 72, col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + CAST( NULL AS SIGNED ) - - + col2
----

skipif mysql # not compatible
query II rowsort label-1748
SELECT DISTINCT + + 72, col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + CAST ( NULL AS INTEGER ) - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL - ( - MAX( ALL - col1 ) ) col0 FROM tab1 AS cor0 WHERE NOT 49 >= - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1749
SELECT ALL - ( - MAX ( ALL - col1 ) ) col0 FROM tab1 AS cor0 WHERE NOT 49 >= - col0
----
NULL

query I rowsort
SELECT DISTINCT + + 41 FROM tab2 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT COUNT( * ) + - - 60 col1 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT COUNT ( * ) + - - 60 col1 FROM tab1
----
63

query I rowsort
SELECT ALL - col2 - + col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + MAX( ALL + + 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + MAX ( ALL + + 22 ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT COUNT( + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( + col1 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col1, 87 AS col0 FROM tab2
----
51
87
67
87
77
87

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COUNT( ALL - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1758
SELECT COUNT ( ALL - + col2 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT col2, ( + col1 ) AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT MAX( ALL + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1760
SELECT MAX ( ALL + - col1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + - 76 FROM tab2 WHERE NULL BETWEEN - col2 AND - col1 OR NOT col0 + + col1 * - 49 + + col1 IS NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT col0 * + - CAST( 97 AS SIGNED ) AS col0 FROM tab2
----
-4462
-6208
-7275

skipif mysql # not compatible
query I rowsort label-1762
SELECT col0 * + - CAST ( 97 AS INTEGER ) AS col0 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT + 78 * - 89 FROM tab2 AS cor0
----
-6942

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + - ( - COUNT( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1764
SELECT + - ( - COUNT ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT - COUNT ( * ) col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL 40 * + COUNT( col2 ) * 89 FROM tab2
----
10680

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL 40 * + COUNT ( col2 ) * 89 FROM tab2
----
10680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT - CAST( NULL AS SIGNED ) + col2 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT - CAST ( NULL AS INTEGER ) + col2 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + - col0 + + - col2 + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-195
-76
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1770
SELECT + COUNT( * ) DIV COUNT( * ) AS col1, CAST( + - 89 AS SIGNED ) FROM tab1 AS cor0
----
1
-89

skipif mysql # not compatible
query II rowsort label-1770
SELECT + COUNT ( * ) / COUNT ( * ) AS col1, CAST ( + - 89 AS INTEGER ) FROM tab1 AS cor0
----
1
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col1 FROM tab2 cor0
----
85
85
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + ( SUM( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1773
SELECT + ( SUM ( col0 ) ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1774
SELECT * FROM tab1 cor0 WHERE 42 / - CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1774
SELECT * FROM tab1 cor0 WHERE 42 / - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 > + - col1 + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - 20 col0 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT + COUNT( * ) + + 11 AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + COUNT ( * ) + + 11 AS col2 FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT CAST( NULL AS SIGNED ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT CAST ( NULL AS INTEGER ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - MIN( - 61 ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - MIN ( - 61 ) FROM tab2 cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE NOT + 50 * - ( - CAST( NULL AS SIGNED ) ) + + col1 BETWEEN - col2 AND - col1
----

skipif mysql # not compatible
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE NOT + 50 * - ( - CAST ( NULL AS INTEGER ) ) + + col1 BETWEEN - col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT + MIN( ALL - col1 ) AS col2 FROM tab1 WHERE - 54 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT + MIN ( ALL - col1 ) AS col2 FROM tab1 WHERE - 54 <= NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( 6 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - SUM( - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - SUM ( - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + ( MIN( ALL + 85 ) ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + ( MIN ( ALL + 85 ) ) FROM tab0 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + COUNT( * ) * - - MAX( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( * ) * - - MAX ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
288

query I rowsort
SELECT - - 46 * + col2 FROM tab1 AS cor0
----
2714
3128
4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + col2 ) ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT MIN( ALL + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT MIN ( ALL + col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 + - col2 = + - 81 - - col0 + + 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - + 81 >= + - col0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT 51 * + + MAX( - + 90 ) + 80 FROM tab2 AS cor0
----
-4510

skipif mysql # not compatible
query I rowsort label-1796
SELECT 51 * + + MAX ( - + 90 ) + 80 FROM tab2 AS cor0
----
-4510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + + 22 AS col2 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT + 58 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT - COUNT( * ) col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1800
SELECT - COUNT ( * ) col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT + ( col2 ) + - - col2 * - 44 AS col0, 21 - + 99 * - ( + + 87 ) FROM tab2 AS cor0
----
-1720
8634
-2494
8634
-989
8634

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col0 / - 57 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT COUNT( + col2 ) FROM tab2 AS cor0 WHERE ( - - 92 + + + 8 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( + col2 ) FROM tab2 AS cor0 WHERE ( - - 92 + + + 8 > NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > NULL
----

query II rowsort
SELECT ALL col2 + + - col2 AS col0, - col0 - + col1 AS col1 FROM tab2
----
0
-141
0
-142
0
-97

query I rowsort
SELECT ALL col2 + + 22 FROM tab1
----
118
81
90

query II rowsort
SELECT 81 * + col2, + col1 FROM tab2
----
1863
51
3240
77
4698
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT DISTINCT col0 DIV - 68 + col0 * + col2 col2 FROM tab0
----
705
869
9602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT DISTINCT col0 / - 68 + col0 * + col2 col2 FROM tab0
----
705
869
9602

query I rowsort
SELECT ALL col0 - - + 94 + - 16 FROM tab2
----
124
142
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1811
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ), MAX( + col1 ) AS col1 FROM tab1
----
3
47

skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), MAX ( + col1 ) AS col1 FROM tab1
----
3
47

query I rowsort
SELECT + - 77 AS col2 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ( - + col1 ) * - 47 + + 96 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - + MIN( DISTINCT + ( + - 45 ) ) + + 48 AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - + MIN ( DISTINCT + ( + - 45 ) ) + + 48 AS col1 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE - - 42 IS NULL AND NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE - - 42 IS NULL AND NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - ( col2 )
----

query I rowsort
SELECT ALL col1 * 36 AS col1 FROM tab0
----
2916
36
756

query I rowsort
SELECT DISTINCT + + 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
89

query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT 52 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT 52 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1821
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 * - col2 BETWEEN - 98 + + CAST( NULL AS SIGNED ) AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1821
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 * - col2 BETWEEN - 98 + + CAST ( NULL AS INTEGER ) AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - COUNT( * ) * + 87 FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - COUNT ( * ) * + 87 FROM tab0 cor0
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT ALL + COUNT( + col2 ) AS col1, + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL + COUNT ( + col2 ) AS col1, + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

query I rowsort
SELECT + 87 AS col2 FROM tab1 WHERE NOT - 8 * + 22 * 79 IS NULL
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT - col0 * - - col0 DIV col0 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1825
SELECT - col0 * - - col0 / col0 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT COUNT( - col2 ) DIV + 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT COUNT ( - col2 ) / + 97 FROM tab0
----
0

query I rowsort
SELECT - 45 * + col2 * - col2 FROM tab1
----
156645
208080
414720

query I rowsort
SELECT DISTINCT - + 38 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT ( + SUM( DISTINCT - 8 ) ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT ( + SUM ( DISTINCT - 8 ) ) FROM tab2
----
-8

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - 93 = ( + 89 )
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - col1 ) * - 23 + col1 AND NULL
----

query I rowsort
SELECT + 74 + - - 71 AS col2 FROM tab2 cor0
----
145
145
145

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + ( + + col0 ) IN ( + col2 + - - col0 * + - 23 / + + col2 * - col2 * - - col1, 12 )
----

query I rowsort
SELECT 48 + 99 * + col2 FROM tab2
----
2325
4008
5790

query III rowsort
SELECT * FROM tab2 WHERE + - ( + - col0 ) NOT IN ( - ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + COUNT( * ) + + - 57 AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + COUNT ( * ) + + - 57 AS col1 FROM tab2
----
-54

query I rowsort
SELECT ALL + 27 AS col0 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - 44 * + COUNT( * ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 44 * + COUNT ( * ) FROM tab1 AS cor0
----
-132

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT ALL + + ( 28 ) * + + 78, COUNT( * ) col1 FROM tab2 AS cor0
----
2184
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1841
SELECT ALL + + ( 28 ) * + + 78, COUNT ( * ) col1 FROM tab2 AS cor0
----
2184
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < col2
----

query I rowsort
SELECT - col0 - + - 88 FROM tab2 cor0
----
13
24
42

query III rowsort
SELECT * FROM tab0 WHERE - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ( - - COUNT( * ) ) - - - ( + + 79 ) AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-1845
SELECT ( - - COUNT ( * ) ) - - - ( + + 79 ) AS col1 FROM tab0
----
-76

query I rowsort
SELECT - 86 * - col2 - - col1 AS col2 FROM tab1
----
5079
5895
8270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1847
SELECT DISTINCT - col1 * + col0 * + - col2 + + + 25 AS col0, 47 * - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
18295
NULL
57130
NULL
9628
NULL

skipif mysql # not compatible
query II rowsort label-1847
SELECT DISTINCT - col1 * + col0 * + - col2 + + + 25 AS col0, 47 * - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
18295
NULL
57130
NULL
9628
NULL

query I rowsort
SELECT 42 - - 82 + + - 5 AS col2 FROM tab2
----
119
119
119

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab2, tab2 cor0
----
64

query I rowsort
SELECT 50 + + col2 AS col0 FROM tab0
----
149
60
97

query I rowsort
SELECT col0 + + - col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE + + col1 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1853
SELECT ALL + - CAST( NULL AS SIGNED ) - + 34 + ( - col0 ) / - 89 * - col2 AS col1, + 55 * 92 FROM tab2 cor0
----
NULL
5060
NULL
5060
NULL
5060

skipif mysql # not compatible
query II rowsort label-1853
SELECT ALL + - CAST ( NULL AS INTEGER ) - + 34 + ( - col0 ) / - 89 * - col2 AS col1, + 55 * 92 FROM tab2 cor0
----
NULL
5060
NULL
5060
NULL
5060

query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
10903
14163
8581

query I rowsort
SELECT ALL - col2 - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 IN ( + ( + - col1 ), col1 + - + 58, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT DISTINCT - col0 * + col2 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - col0 * + col2 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < 15 + + + 13 * - col1
----

query I rowsort
SELECT - 98 AS col0 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT 11 * - col1 + - col2 FROM tab0 AS cor0
----
-110
-241
-938

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1862
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 89 / ( - col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 89 / ( - col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT DISTINCT + + col2 DIV - + col2 + + 78 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + + col2 / - + col2 + + 78 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL + col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + MAX( DISTINCT + ( - - 79 ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-1865
SELECT + MAX ( DISTINCT + ( - - 79 ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + COUNT( * ) - + + 19 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-19

skipif mysql # not compatible
query I rowsort label-1866
SELECT + COUNT ( * ) - + + 19 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-19

query I rowsort
SELECT 52 AS col2 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - ( - ( ( - 45 ) ) ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT - - ( - 94 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT + 30 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 30 / + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 43 * - 14 FROM tab0
----
602
602
602

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT MIN( ALL + + 27 ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1873
SELECT MIN ( ALL + + 27 ) AS col0 FROM tab0
----
27

query I rowsort
SELECT ALL ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + ( + + MIN( ALL 43 ) ) AS col0 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-1875
SELECT + ( + + MIN ( ALL 43 ) ) AS col0 FROM tab2 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT ALL + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1877
SELECT - MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 92 <> + - col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT + 94 FROM tab1 AS cor0 WHERE 44 + + col0 + + col0 * - CAST( NULL AS SIGNED ) IS NULL
----
94
94
94

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 94 FROM tab1 AS cor0 WHERE 44 + + col0 + + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
94
94
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 6 - - + 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + col1 + ( + - col0 ) AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + COUNT( * ) + + - 8 AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1883
SELECT + COUNT ( * ) + + - 8 AS col2 FROM tab2 AS cor0
----
-5

query II rowsort
SELECT DISTINCT 86 * + 92 AS col1, + col0 * + col2 FROM tab0 AS cor0
----
7912
705
7912
870
7912
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - COUNT( ALL 94 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - COUNT ( ALL 94 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT 70 * + - col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT MAX( DISTINCT - - col2 ) * - 80 AS col2 FROM tab0
----
-7920

skipif mysql # not compatible
query I rowsort label-1888
SELECT MAX ( DISTINCT - - col2 ) * - 80 AS col2 FROM tab0
----
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT - + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 WHERE + - 93 <= + 67 * - + CAST( - - ( ( + col0 ) ) AS SIGNED ) * col2 * + 26 * + - col0 + - + 24
----
-1

skipif mysql # not compatible
query I rowsort label-1889
SELECT - + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 WHERE + - 93 <= + 67 * - + CAST ( - - ( ( + col0 ) ) AS INTEGER ) * col2 * + 26 * + - col0 + - + 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + MIN( DISTINCT col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT + MIN ( DISTINCT col1 ) col2 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1891
SELECT ALL - COUNT( * ) DIV + - 50 + ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - COUNT ( * ) / + - 50 + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT DISTINCT col1 * + - col0 + + col1 DIV - - 5 AS col2 FROM tab1
----
-424
-4268
-712

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT col1 * + - col0 + + col1 / - - 5 AS col2 FROM tab1
----
-424
-4268
-712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1894
SELECT DISTINCT - MAX( + + col2 ) + + + CAST( NULL AS SIGNED ) col1, + 11 FROM tab1 AS cor0
----
NULL
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1894
SELECT DISTINCT - MAX ( + + col2 ) + + + CAST ( NULL AS INTEGER ) col1, + 11 FROM tab1 AS cor0
----
NULL
11

query I rowsort
SELECT ALL - 88 * col1 AS col2 FROM tab2 AS cor0
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - col1 ) * - - col0 - col0 FROM tab1
----
-4368
-510
-765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 26, - col2 col2 FROM tab0 AS cor0
----
26
-10
26
-47
26
-99

query I rowsort
SELECT DISTINCT + 44 * + col2 AS col1 FROM tab2 AS cor0
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT + - col2 * + CAST( NULL AS SIGNED ) + 60 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1900
SELECT + - col2 * + CAST ( NULL AS INTEGER ) + 60 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT - ( - 94 ) FROM tab0 AS cor0
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT DISTINCT - - col2 DIV + col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - - col2 / + col0 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT + col0 AS col2, 99 FROM tab1 AS cor0
----
51
99
85
99
91
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1904
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1904
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT ALL + 48 AS col2, COUNT( * ) * + 8 FROM tab2 AS cor0
----
48
24

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL + 48 AS col2, COUNT ( * ) * + 8 FROM tab2 AS cor0
----
48
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 93 col1, + ( - - 38 ) * + col0 * + + col1 FROM tab1 AS cor0
----
93
16150
93
162526
93
27132

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1907
SELECT - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL ( - 51 ) AS col2 FROM tab0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT + 58 * + COUNT( * ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + 58 * + COUNT ( * ) AS col2 FROM tab2
----
174

query I rowsort
SELECT ALL col0 * + 6 * 39 + col0 FROM tab0
----
20445
22795
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * + col2 col0 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + MAX( - + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1912
SELECT + MAX ( - + col2 ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL NOT IN ( - col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1914
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND + - 12 / + col0 - ( - + col2 ) * + + ( 22 )
----

skipif mysql # not compatible
query III rowsort label-1914
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - 12 / + col0 - ( - + col2 ) * + + ( 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT CAST( NULL AS SIGNED ) / 91 / col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 91 / col2 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL SUM( DISTINCT 82 ) AS col0 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL SUM ( DISTINCT 82 ) AS col0 FROM tab2 cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT - 11 DIV + 16 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 11 / + 16 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT + ( col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 81 * + - col2 + col1 + - 62 AS col0 FROM tab0
----
-3788
-8080
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-1921
SELECT - - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1921
SELECT - - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 + 87 * - ( - col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1923
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 + 87 * - ( - col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - + ( - - 34 ) FROM tab1 AS cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT + + 58 DIV + - col2 - 20 AS col2 FROM tab2 AS cor0
----
-21
-21
-22

skipif mysql # not compatible
query I rowsort label-1927
SELECT + + 58 / + - col2 - 20 AS col2 FROM tab2 AS cor0
----
-21
-21
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1928
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1928
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 - col1 + - 32 col2 FROM tab0 AS cor0
----
-145
-35
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1930
SELECT CAST( + + 51 AS SIGNED ) - - 87, + col0 * - col2 AS col1 FROM tab1 AS cor0
----
138
-4896
138
-5015
138
-6188

skipif mysql # not compatible
query II rowsort label-1930
SELECT CAST ( + + 51 AS INTEGER ) - - 87, + col0 * - col2 AS col1 FROM tab1 AS cor0
----
138
-4896
138
-5015
138
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + COUNT( * ) + - + 6 AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1931
SELECT + COUNT ( * ) + - + 6 AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col0 >= col0 * 12
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + ( - - MIN( + col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1934
SELECT + ( - - MIN ( + col2 ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 19 + - 31 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT * FROM tab1 WHERE NOT - CAST( - 21 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT * FROM tab1 WHERE NOT - CAST ( - 21 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT - CAST( - 74 AS SIGNED ) FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1938
SELECT - CAST ( - 74 AS INTEGER ) FROM tab1 AS cor0
----
74
74
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1, + 1 AS col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

query I rowsort
SELECT - 76 * - col0 AS col0 FROM tab2 AS cor0
----
3496
4864
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL + MAX( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + MAX ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - MIN( ( - ( + 51 ) ) ) FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1943
SELECT - MIN ( ( - ( + 51 ) ) ) FROM tab0 cor0
----
51

query I rowsort
SELECT ALL + ( - 56 ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1945
SELECT * FROM tab2 WHERE NOT col0 + - 10 NOT BETWEEN - - CAST( + col0 AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-1945
SELECT * FROM tab2 WHERE NOT col0 + - 10 NOT BETWEEN - - CAST ( + col0 AS INTEGER ) AND + col0
----

query I rowsort
SELECT ALL + ( col2 ) + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + col0 * + - col2 * + 35 * + 31 AS col2 FROM tab0
----
-10419255
-764925
-943950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT COUNT( * ) * - - CAST( + - 73 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT COUNT ( * ) * - - CAST ( + - 73 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT - col0 DIV - - 24 + - col1 FROM tab2
----
-52
-70
-79

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - col0 / - - 24 + - col1 FROM tab2
----
-52
-70
-79

query I rowsort
SELECT ( + 35 ) FROM tab0
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL CAST( + SUM( DISTINCT 75 ) AS SIGNED ) col0 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT ALL CAST ( + SUM ( DISTINCT 75 ) AS INTEGER ) col0 FROM tab1
----
75

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( col2 + - col2 + - + col1, - ( + col2 ) - + col0 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - 75 ) FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + MAX( DISTINCT col0 ) * - MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
1455

skipif mysql # not compatible
query I rowsort label-1955
SELECT + MAX ( DISTINCT col0 ) * - MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
1455

query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + COUNT( * ) * - + 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 6 + + + 73 IS NULL
----
-477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1957
SELECT + COUNT ( * ) * - + 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 6 + + + 73 IS NULL
----
-477

query I rowsort
SELECT col1 + - ( + col1 ) + - - 77 AS col0 FROM tab1
----
77
77
77

query I rowsort
SELECT + - col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + + col2 + - col0 + - + col0 * - CAST( NULL AS SIGNED ) + - 5 + + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT + + col2 + - col0 + - + col0 * - CAST ( NULL AS INTEGER ) + - 5 + + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 - 87 AS col0 FROM tab1 AS cor0
----
-19
-28
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----

query I rowsort
SELECT + 45 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + ( - + MAX( 9 ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1964
SELECT + ( - + MAX ( 9 ) ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT ALL + - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1966
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - 87 + 75 * - ( + col2 ) NOT BETWEEN NULL AND + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT DISTINCT + COUNT( * ) AS col1, 68 * + 42 FROM tab0
----
3
2856

skipif mysql # not compatible
query II rowsort label-1969
SELECT DISTINCT + COUNT ( * ) AS col1, 68 * + 42 FROM tab0
----
3
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT + MAX( DISTINCT + 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + MAX ( DISTINCT + 52 ) FROM tab2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT - col0 DIV col1 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1971
SELECT - col0 / col1 col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1972
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL + COUNT( * ) * + 27 AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + COUNT ( * ) * + 27 AS col1 FROM tab2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT + COUNT( * ) DIV CAST( - CAST( 39 AS SIGNED ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + COUNT ( * ) / CAST ( - CAST ( 39 AS INTEGER ) AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( + 20 ) FROM tab0
----
20

query III rowsort
SELECT ALL * FROM tab0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + - COUNT( DISTINCT + ( + 51 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT + - COUNT ( DISTINCT + ( + 51 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1978
SELECT DISTINCT + 79 AS col0, col0 + col1 DIV - col0 * col1 FROM tab1 AS cor0
----
79
51
79
85
79
91

skipif mysql # not compatible
query II rowsort label-1978
SELECT DISTINCT + 79 AS col0, col0 + col1 / - col0 * col1 FROM tab1 AS cor0
----
79
51
79
85
79
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1979
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 - CAST( + + CAST( + 58 AS SIGNED ) AS SIGNED ) > - CAST( NULL AS SIGNED ) * - + 26
----

skipif mysql # not compatible
query III rowsort label-1979
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 - CAST ( + + CAST ( + 58 AS INTEGER ) AS INTEGER ) > - CAST ( NULL AS INTEGER ) * - + 26
----

query I rowsort
SELECT 70 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL MAX( ALL col0 ) + - COUNT( * ) col1 FROM tab1 WHERE NOT ( + col0 * 15 + + col0 * - col1 ) IS NULL
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT ALL MAX ( ALL col0 ) + - COUNT ( * ) col1 FROM tab1 WHERE NOT ( + col0 * 15 + + col0 * - col1 ) IS NULL
----
88

query I rowsort
SELECT ALL - col1 * 78 AS col2 FROM tab1 WHERE NOT NULL = - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + MAX( + 6 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1983
SELECT + MAX ( + 6 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT col2 * 57 AS col0 FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
3363
3876
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT ALL CAST( 68 AS SIGNED ) FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL CAST ( 68 AS INTEGER ) FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT 45 + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 * - col0 IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-1986
SELECT 45 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 * - col0 IS NOT NULL
----
45

query I rowsort
SELECT DISTINCT 82 - + col0 AS col2 FROM tab0 WHERE NULL BETWEEN + col2 + + 4 AND NULL
----

query I rowsort
SELECT ALL + col1 - col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - 5 + col2 AS col0 FROM tab2
----
18
35
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT DISTINCT - ( - 76 ) - + 8 DIV col2 AS col1 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - ( - 76 ) - + 8 / col2 AS col1 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) = col1 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) = col1 * + col2
----
0

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + 29 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 WHERE - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL - COUNT( * ) * 42 FROM tab0 WHERE ( - 83 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - COUNT ( * ) * 42 FROM tab0 WHERE ( - 83 ) <> NULL
----
0

query I rowsort
SELECT DISTINCT col2 + 68 FROM tab2
----
108
126
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col1 NOT BETWEEN 37 + col1 AND 91 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT col2 + 15 * - col0 AS col2 FROM tab0
----
-1295
-1356
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - 62 > col0
----
3

skipif mysql # not compatible
query I rowsort label-2000
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 62 > col0
----
3

query I rowsort
SELECT - col1 + - col0 FROM tab1 WHERE NULL <= 83 + col0 * + 24
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 87 ) IN ( + col0 * - 20 + + 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT + 15 AS col1 FROM tab2 WHERE col2 < CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-2003
SELECT + 15 AS col1 FROM tab2 WHERE col2 < CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT MIN( DISTINCT 7 ) * 58 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT MIN ( DISTINCT 7 ) * 58 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col2 / + col2 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 < + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 + 84 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2009
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT SUM( ALL col0 ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT SUM ( ALL col0 ) col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 92 * 28 AS col0 FROM tab1
----
-2576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT DISTINCT + COUNT( * ) - SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + COUNT ( * ) - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + 99 * - 38 AS col0 FROM tab1
----
-3715
-3748
-3757

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - 11 * - COUNT( - 87 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 11 * - COUNT ( - 87 ) FROM tab1
----
33

query I rowsort
SELECT 2 * col0 + - 85 AS col2 FROM tab2
----
43
65
7

query I rowsort
SELECT + 0 * ( + col0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL - col1 * - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 5 * + 4 IN ( + 94 * + 69 + 4 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - col1 * - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 5 * + 4 IN ( + 94 * + 69 + 4 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL 13 * + MIN( ALL - 21 ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 13 * + MIN ( ALL - 21 ) FROM tab0 AS cor0
----
-273

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 44
----

query I rowsort
SELECT col1 + 46 FROM tab2 AS cor0
----
113
123
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - 46 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT - 46 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 71 * - col2 AS col1 FROM tab1 AS cor0
----
-4189
-4828
-6816

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( + 5 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 89 FROM tab0 AS cor0 CROSS JOIN tab2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2026
SELECT ALL * FROM tab1 WHERE NOT NULL = CAST( - 72 AS DECIMAL ) + 59
----

skipif mysql # not compatible
query III rowsort label-2026
SELECT ALL * FROM tab1 WHERE NOT NULL = CAST ( - 72 AS REAL ) + 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 16 col0 FROM tab1
----
21
30
63

query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT - - COUNT( * ) - COUNT( - col0 + 66 / col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - - COUNT ( * ) - COUNT ( - col0 + 66 / col0 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col1 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - col0 col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + - COUNT( * ) * 60 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2033
SELECT + - COUNT ( * ) * 60 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-183

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( 60 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT + SUM( ALL - 87 ) + ( + COUNT( * ) - 8 / AVG ( - 43 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT + SUM ( ALL - 87 ) + ( + COUNT ( * ) - 8 / AVG ( - 43 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT - 30 * ( 7 * ( + col2 ) ) FROM tab1 AS cor0
----
-12390
-14280
-20160

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT + col1 * + col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 WHERE NOT ( 70 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT + col1 * + col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 WHERE NOT ( 70 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 * + ( - col0 ) AS col2 FROM tab2
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 80 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT DISTINCT MAX( - - CAST( col2 AS SIGNED ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT MAX ( - - CAST ( col2 AS INTEGER ) ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2042
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2042
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - - 65 FROM tab1
----
-3055
-325
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab2 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 5 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN 54 AND ( col0 )
----

query I rowsort
SELECT ALL + 79 * + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5eabfbd605886d82b38cfe1f2a749b90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 46
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) >= NULL
----

query I rowsort
SELECT - 20 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col0 FROM tab0
----
74
74
74

query I rowsort
SELECT ALL - - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT 15 FROM tab1 AS cor0 WHERE NOT col0 + - col2 <> - col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + - MAX( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + - MAX ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 38 * 72 + + col0 FROM tab2 AS cor0
----
2782
2800
2811

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + + COUNT( * ) + - - 94 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2056
SELECT + + COUNT ( * ) + - - 94 FROM tab2 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 > ( col1 )
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 13 + col2 + col0 col2 FROM tab2 cor0
----
-594
-738
-897

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * - col1 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + CAST( NULL AS SIGNED ) + ( - 50 ) - ( - col1 + col1 * - ( col0 ) ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + CAST ( NULL AS INTEGER ) + ( - 50 ) - ( - col1 + col1 * - ( col0 ) ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL - - COUNT( col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - - COUNT ( col0 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - 2 ) * - ( + col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2065
SELECT ALL + 92 * 43 + + - col1 + ( - CAST( - col1 AS SIGNED ) ) DIV + col1 AS col0 FROM tab1 AS cor0
----
3910
3943
3952

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + 92 * 43 + + - col1 + ( - CAST ( - col1 AS INTEGER ) ) / + col1 AS col0 FROM tab1 AS cor0
----
3910
3943
3952

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT + 14 AS col0 FROM tab1
----
14
14
14

query I rowsort
SELECT ALL - 89 * + col1 * - 18 FROM tab2 AS cor0
----
107334
123354
81702

query I rowsort
SELECT + + 89 * + col1 AS col2 FROM tab0 AS cor0
----
1869
7209
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 33 )
----

query I rowsort
SELECT ALL - - col0 * + col2 * col1 + - 54 - col0 FROM tab2 AS cor0
----
197002
291321
53858

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + 33 + + SUM( DISTINCT - + 71 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT + 33 + + SUM ( DISTINCT - + 71 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 + - col0 - col1, + 79 + + col1 AS col2 FROM tab2
----
-143
130
-205
156
-217
146

query I rowsort
SELECT col1 + + col0 + + col1 + + col0 AS col1 FROM tab1
----
130
180
276

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 48 * - + MAX( - col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2079
SELECT 48 * - + MAX ( - col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT ALL + - 4 FROM tab1 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT + ( 13 ) * + col0 * + + col0 AS col2 FROM tab2 AS cor0
----
27508
53248
73125

query I rowsort
SELECT DISTINCT - col0 * - 53 AS col2 FROM tab0 AS cor0
----
4611
5141
795

query I rowsort
SELECT ALL + - col2 * + 98 AS col2 FROM tab0 cor0
----
-4606
-9702
-980

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= - col0 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= - col0 * 92
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 * + + 28 FROM tab2 AS cor0
----
-14812
-44800
-94192

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT + col1 DIV - col1 FROM tab1 WHERE NOT + + 4 * + col2 IN ( - col1 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2089
SELECT + col1 / - col1 FROM tab1 WHERE NOT + + 4 * + col2 IN ( - col1 )
----
-1
-1
-1

query I rowsort
SELECT ALL 56 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col0, - col1 AS col2 FROM tab0
----
-26
-1
-26
-21
-26
-81

query I rowsort
SELECT ALL + 67 AS col1 FROM tab2
----
67
67
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT + 53 * 61 DIV COUNT( * ) FROM tab0
----
1077

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 53 * 61 / COUNT ( * ) FROM tab0
----
1077

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + MIN( ALL + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2094
SELECT + MIN ( ALL + 44 ) FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + 27, ( + 51 ) * + - col1 + ( - col2 ) * + 23 col0 FROM tab0
----
-2349
-1301
-2619
-2328
-405
-5212

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED ) * + - col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER ) * + - col2 * + col0
----

query I rowsort
SELECT DISTINCT - 11 * + 33 AS col1 FROM tab1 AS cor0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT COUNT( * ) + 96 AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT COUNT ( * ) + 96 AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT 92 * col2 + col0 FROM tab2
----
2162
3744
5411

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT SUM( ALL col2 ) + - + COUNT( * ) col1 FROM tab1
----
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT DISTINCT SUM ( ALL col2 ) + - + COUNT ( * ) col1 FROM tab1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + COUNT( * ) * - - COUNT( * ) + + 56 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) + + 56 FROM tab0
----
65

query III rowsort
SELECT * FROM tab2 WHERE - 86 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT ALL - col0 * 3 + + col0 DIV - col1 FROM tab1 cor0
----
-156
-272
-274

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - col0 * 3 + + col0 / - col1 FROM tab1 cor0
----
-156
-272
-274

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL - SUM( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - SUM ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - MIN( DISTINCT + col2 ) + ( - - 37 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - MIN ( DISTINCT + col2 ) + ( - - 37 ) FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL 6 DIV - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 6 / - COUNT ( * ) FROM tab0
----
-2

query I rowsort
SELECT ALL + col1 * - - 15 + + - 84 * - col2 AS col2 FROM tab2
----
2697
4515
5877

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT - col0 DIV + + col1 + - ( col2 ) AS col0 FROM tab1
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-2111
SELECT - col0 / + + col1 + - ( col2 ) AS col0 FROM tab1
----
-69
-76
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 84 + - - col0 AS col2 FROM tab1
----
135
169
175

query III rowsort
SELECT * FROM tab0 WHERE - 27 NOT BETWEEN + col0 / col0 * - col1 / col1 + - + col0 * col0 AND ( NULL )
----

query I rowsort
SELECT 13 AS col1 FROM tab1 cor0 WHERE 36 IN ( col1 / 12 - col2 + + col1 )
----

query I rowsort
SELECT ALL 36 * - col2 - - 67 * 50 * 89 AS col2 FROM tab1 AS cor0
----
294694
295702
296026

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 89 NOT BETWEEN 79 AND + ( - 4 ) + + - col0 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2119
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2120
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + 49, + 20 * + 85 * - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) + 4 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-2120
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + 49, + 20 * + 85 * - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) + 4 * + col0 )
----

query I rowsort
SELECT + - 12 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT ALL - + 16 AS col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL + col0 + - - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + col0 + - - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2125
SELECT COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT - 44 * + + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - 44 * + + col2 / + col2 AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT - SUM( DISTINCT - - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - SUM ( DISTINCT - - col2 ) FROM tab1
----
-223

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 <> NULL
----

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + col1 * + + 63 AS col0 FROM tab1
----
2961
315
882

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 66 * - 27 FROM tab1
----
1782
1782
1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT 72 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT 72 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2137
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV - ( col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT CAST ( col1 AS INTEGER ) / - ( col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT 9 * - col1 + - + 74, col0 FROM tab2 AS cor0
----
-533
46
-677
75
-767
64

query I rowsort
SELECT DISTINCT + - 22 AS col2 FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2140
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2140
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - + COUNT( ALL + + 15 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - + COUNT ( ALL + + 15 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * + 17 + - col0 * + ( + 81 ) * + 53 * - 58 + - 6 - col0 AS col1 FROM tab2
----
11454488
15936362
18675285

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL - - 96 AS col2, col2 AS col0 FROM tab1 AS cor0
----
96
59
96
68
96
96

query I rowsort
SELECT DISTINCT - 7 * + col0 + col0 * + 98 + + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
4604
7655
8237

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT MIN( - + col1 ) * 66 + + SUM( + 12 ) - 7 * COUNT( * ) DIV - - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
-5314

skipif mysql # not compatible
query I rowsort label-2148
SELECT MIN ( - + col1 ) * 66 + + SUM ( + 12 ) - 7 * COUNT ( * ) / - - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
-5314

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col1 / + - 68 * col1
----

query I rowsort
SELECT - + col1 + - 12 FROM tab1 AS cor0
----
-17
-26
-59

query I rowsort
SELECT 3 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2343
-4925
-5022

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT + ( + 80 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + ( + 80 ) / + col2 AS col2 FROM tab0 AS cor0
----
0
1
8

query II rowsort
SELECT DISTINCT - + col2 AS col0, 73 * + col1 * - 30 AS col2 FROM tab1 AS cor0
----
-59
-10950
-68
-102930
-96
-30660

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( ( ( col0 ) NOT BETWEEN NULL AND + 16 ) )
----
1
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2155
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST( + + col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST ( + + col1 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT DISTINCT + col0 DIV + + 25 + - col1 AS col1 FROM tab2
----
-50
-64
-75

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + col0 / + + 25 + - col1 AS col1 FROM tab2
----
-50
-64
-75

query I rowsort
SELECT ALL - col1 * - col2 + + 89 AS col0 FROM tab1
----
1433
3285
384

query I rowsort
SELECT + 62 AS col1 FROM tab1 WHERE NULL < + col0
----

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL MAX( col1 ) + 92 FROM tab2 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL MAX ( col1 ) + 92 FROM tab2 AS cor0
----
169

query I rowsort
SELECT col2 * - - 48 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= + 54 + - 87
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT + COUNT( * ) AS col0, 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
6

skipif mysql # not compatible
query II rowsort label-2163
SELECT + COUNT ( * ) AS col0, 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
6

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab1 AS cor0 WHERE + col1 * + - col1 NOT IN ( 90 + + col0 )
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( col0 + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( col0 + 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL + col0 AS col0, + col2 FROM tab0 cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2, - 46 col1 FROM tab2 AS cor0
----
23
-46
40
-46
58
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT + + 47, - CAST( + 61 AS SIGNED ) * + + 7 + - + col0 AS col1 FROM tab0 AS cor0
----
47
-442
47
-514
47
-524

skipif mysql # not compatible
query II rowsort label-2169
SELECT + + 47, - CAST ( + 61 AS INTEGER ) * + + 7 + - + col0 AS col1 FROM tab0 AS cor0
----
47
-442
47
-514
47
-524

query I rowsort
SELECT - 21 * col2 * 98 FROM tab0
----
-203742
-20580
-96726

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - COUNT( * ) * + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2171
SELECT - COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-27

query I rowsort
SELECT DISTINCT 9 * + ( + col2 ) AS col2 FROM tab1
----
531
612
864

query II rowsort
SELECT ALL - 32 * col0 AS col2, + ( - col0 ) FROM tab0
----
-2784
-87
-3104
-97
-480
-15

query I rowsort
SELECT DISTINCT 36 * - col1 FROM tab0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - 23 * - MIN( col1 ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 23 * - MIN ( col1 ) AS col1 FROM tab0
----
23

query I rowsort
SELECT + 55 * + + ( 41 ) FROM tab1
----
2255
2255
2255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col1 * - - 78 * 90 + + + col1 + 23 FROM tab0 AS cor0
----
147464
568724
7044

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT + 59 + - ( - 30 ) AS col0, + col0 AS col1 FROM tab2
----
89
46
89
64
89
75

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL + CAST( - - 54 AS SIGNED ) FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + CAST ( - - 54 AS INTEGER ) FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + - COUNT( * ) * - 31 + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2188
SELECT + - COUNT ( * ) * - 31 + + COUNT ( * ) FROM tab0 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - + 13 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL + - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + - COUNT ( * ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + + ( - - 89 ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - 63 + + col2 + - 87 AS col0 FROM tab1 AS cor0
----
-54
-82
-91

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE 35 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + 94 + + COUNT( * ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 94 + + COUNT ( * ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT * FROM tab0 WHERE + col2 = - + CAST( 13 AS SIGNED ) / - 20 * - 75
----

skipif mysql # not compatible
query III rowsort label-2195
SELECT * FROM tab0 WHERE + col2 = - + CAST ( 13 AS INTEGER ) / - 20 * - 75
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2196
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + 60 + - 40 + 42 + + 29 * - 79 * 38 * + col1 AS col0 FROM tab0
----
-1828156
-7051636
-86996

query I rowsort
SELECT ALL + col0 + + - col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE + 19 * + 47 / + 76 IS NULL
----

query I rowsort
SELECT + + 79 AS col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - - ( ( - - col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 77 col1 FROM tab1 AS cor0
----
3927
6545
7007

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( + - 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2206
SELECT ALL * FROM tab2 WHERE NOT + - 52 BETWEEN - col1 AND - + col0 * - col0 + - CAST( NULL AS SIGNED )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-2206
SELECT ALL * FROM tab2 WHERE NOT + - 52 BETWEEN - col1 AND - + col0 * - col0 + - CAST ( NULL AS INTEGER )
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT + col1 DIV 78 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT + col1 / 78 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + ( - 42 ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT ALL - CAST( + 44 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - CAST ( + 44 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - - col2 < + col1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 3 col2 FROM tab2
----
43
61
72

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0
----
29

query I rowsort
SELECT + col0 * - 71 AS col2 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT - - MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - MAX ( + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT - - CAST( + col0 AS SIGNED ) * + col1 * col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2218
SELECT - - CAST ( + col0 AS INTEGER ) * + col1 * col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 0 col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 cor0 WHERE ( NULL ) <> + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 33 / + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 33 / + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 64 + + + col1 AS col0 FROM tab1
----
111
69
78

query II rowsort
SELECT ALL col2 * 1 * - col2, 71 AS col2 FROM tab2
----
-1600
71
-3364
71
-529
71

query I rowsort
SELECT col2 * col1 * + col0 * - col2 FROM tab0
----
-182700
-2683935
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT col0 DIV - 69 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT col0 / - 69 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - 88 * - + 23 * + col2 AS col0 FROM tab2
----
117392
46552
80960

query I rowsort
SELECT ALL - col2 * ( + + col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL 10 DIV col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL 10 / col0 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 * + - col1 col0 FROM tab0
----
15
-6561
87
-441
97
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * 35 IS NOT NULL
----

query I rowsort
SELECT + 92 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT DISTINCT - col0 DIV + col2 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - col0 / + col2 FROM tab2 cor0
----
-1
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT + - 19 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT + - 19 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - - 86 AS col1 FROM tab1 AS cor0
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2243
SELECT ALL col1 + - + CAST( NULL AS DECIMAL ) 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-2243
SELECT ALL col1 + - + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2244
SELECT + + COUNT( DISTINCT + col1 ) DIV COUNT( * ) * + 24 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-2244
SELECT + + COUNT ( DISTINCT + col1 ) / COUNT ( * ) * + 24 FROM tab0 cor0
----
24

query I rowsort
SELECT col2 * + col0 * - col1 AS col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT DISTINCT - col2 * - - col2 + CAST( + col1 AS SIGNED ) FROM tab1
----
-3476
-4577
-9202

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - col2 * - - col2 + CAST ( + col1 AS INTEGER ) FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - 54 * + col1 + - col0 FROM tab0
----
-1221
-151
-4389

query I rowsort
SELECT - + col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab1
----
77
77
77

query I rowsort
SELECT ALL - col2 + - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - COUNT( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT - COUNT ( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT - COUNT( * ) + - + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-2253
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0
----
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT + 32 + - - SUM( 79 ) AS col1 FROM tab2
----
269

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + 32 + - - SUM ( 79 ) AS col1 FROM tab2
----
269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT - - 72 FROM tab2 WHERE ( - - col0 ) <= col2 + - 34 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2255
SELECT - - 72 FROM tab2 WHERE ( - - col0 ) <= col2 + - 34 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 - + - col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 76 - + col2 FROM tab1 AS cor0
----
-20
17
8

query I rowsort
SELECT ALL - col1 - - 57 FROM tab1 AS cor0
----
10
43
52

query I rowsort
SELECT DISTINCT + - col2 - - 69 FROM tab0 AS cor0
----
-30
22
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL col2 * + - col0 - + - CAST( NULL AS SIGNED ) - - 57 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL col2 * + - col0 - + - CAST ( NULL AS INTEGER ) - - 57 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT COUNT( * ) - - 64 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2262
SELECT COUNT ( * ) - - 64 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL - col0 - + - col2 + col0 * + col0 * col0 FROM tab2 AS cor0
----
262120
421858
97313

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL + SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT - + 33 IS NOT NULL
----

query I rowsort
SELECT ALL - 25 AS col0 FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2267
SELECT DISTINCT - COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-2267
SELECT DISTINCT - COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
-9
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT COUNT( * ) DIV + + MIN( + + 71 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT COUNT ( * ) / + + MIN ( + + 71 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 * - - 14 + col2 * + + col1 AS col2 FROM tab0 AS cor0
----
113
4941
504

query I rowsort
SELECT ALL 63 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 4 * + 92 * - col1 * + ( - col2 ) FROM tab1 AS cor0
----
-108560
-1176128
-494592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT - 95 DIV - - 91 + + col2 + - col1 - + 88 * 86 FROM tab0 AS cor0
----
-7471
-7580
-7603

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - 95 / - - 91 + + col2 + - col1 - + 88 * 86 FROM tab0 AS cor0
----
-7471
-7580
-7603

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT CAST( NULL AS SIGNED ) * 28 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 28 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - 72 IS NULL )
----
-3
3

skipif mysql # not compatible
query II rowsort label-2276
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - 72 IS NULL )
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL - SUM( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - SUM ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - - 74 DIV - 91 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT - - 74 / - 91 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2279
SELECT DISTINCT col2 AS col1, col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT col2 AS col1, col0 / - col0 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query II rowsort
SELECT 75 + - 14 - + col2 AS col2, - col0 FROM tab1 AS cor0
----
-35
-51
-7
-91
2
-85

query I rowsort
SELECT ( col2 ) + - + col0 * - col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 31 < + + col0
----

query I rowsort
SELECT + col1 * + + col2 - + - 4 + col1 AS col0 FROM tab0 AS cor0
----
104
235
3892

query I rowsort
SELECT col2 FROM tab1 WHERE - - 15 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE + 79 IS NULL OR - + 62 IN ( ( col2 ) )
----

query II rowsort
SELECT + col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ( + - 11 ) * + col2 * 74 AS col2 FROM tab0
----
-38258
-80586
-8140

query I rowsort
SELECT ALL - col1 + + 31 AS col2 FROM tab0
----
-50
10
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2289
SELECT - 50 AS col1, - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-50
9

skipif mysql # not compatible
query II rowsort label-2289
SELECT - 50 AS col1, - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-50
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - SUM( 46 ) AS col2 FROM tab0 AS cor0 WHERE col2 * 60 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT - SUM ( 46 ) AS col2 FROM tab0 AS cor0 WHERE col2 * 60 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2291
SELECT - 22 DIV - + 33 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2291
SELECT - 22 / - + 33 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - col2 + + + 11 FROM tab1
----
-48
-57
-85

query I rowsort
SELECT + 58 * 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af386fdd423e5cb6a51133a34e7fb39b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * - col2 + col1 + col2 * - col2 NOT BETWEEN col2 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + + 66 AS col0, + col0 AS col1 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * 82 / - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2299
SELECT DISTINCT - ( + - 66 ) AS col0, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2299
SELECT DISTINCT - ( + - 66 ) AS col0, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
66
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 24 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT COUNT( * ) + - SUM( + + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT COUNT ( * ) + - SUM ( + + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 col1 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + - 34 FROM tab2 cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - MIN( DISTINCT + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2304
SELECT - MIN ( DISTINCT + col0 ) FROM tab2
----
-46

query I rowsort
SELECT + col2 * + - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + col0 * + - 10 FROM tab2
----
-460
-640
-750

query II rowsort
SELECT col0 AS col0, col1 + col2 AS col0 FROM tab1
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL COUNT( * ) * MAX( + - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL COUNT ( * ) * MAX ( + - col2 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT SUM( + + 61 ) col0 FROM tab1
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT DISTINCT SUM ( + + 61 ) col0 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT DISTINCT COUNT( * ), COUNT( * ) + - + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + - + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
3
0

query II rowsort
SELECT ALL col1 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL col0 * + 28 AS col1 FROM tab0 cor0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE + 95 * ( - col2 ) / - + col2 + - + col1 + - 75 IS NULL
----

query I rowsort
SELECT 64 * - col0 AS col0 FROM tab0 AS cor0
----
-5568
-6208
-960

query I rowsort
SELECT DISTINCT col2 + + - 78 - + col1 FROM tab1 AS cor0
----
-24
-57
4

query I rowsort
SELECT + - 99 AS col1 FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT 59 DIV + col1 FROM tab0
----
0
2
59

skipif mysql # not compatible
query I rowsort label-2320
SELECT 59 / + col1 FROM tab0
----
0
2
59

query I rowsort
SELECT DISTINCT 23 + + 81 + + col0 - col2 * - col2 * col0 AS col0 FROM tab0
----
33254
8891
950898

query I rowsort
SELECT + col2 * + col1 - + col0 FROM tab1 WHERE - 12 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2323
SELECT - COUNT( * ) + + COUNT( + col0 ), - 27 AS col0 FROM tab2
----
0
-27

skipif mysql # not compatible
query II rowsort label-2323
SELECT - COUNT ( * ) + + COUNT ( + col0 ), - 27 AS col0 FROM tab2
----
0
-27

onlyif mysql # DIV for integer division: 
query III rowsort label-2324
SELECT ALL + 93 AS col1, - col0 DIV col0 col1, - col0 FROM tab1
----
9 values hashing to 981c90a1b8834e4ccd4b164f847aa592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2324
SELECT ALL + 93 AS col1, - col0 / col0 col1, - col0 FROM tab1
----
9 values hashing to 981c90a1b8834e4ccd4b164f847aa592

query I rowsort
SELECT col0 FROM tab2 WHERE - 25 NOT BETWEEN 10 AND NULL
----
46
64
75

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2327
SELECT DISTINCT * FROM tab0 WHERE - - 7 * + - 20 NOT IN ( col0 * - - CAST( col2 AS SIGNED ) / + + col1 - - 8, col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2327
SELECT DISTINCT * FROM tab0 WHERE - - 7 * + - 20 NOT IN ( col0 * - - CAST ( col2 AS INTEGER ) / + + col1 - - 8, col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 23 + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query III rowsort label-2329
SELECT 8, COUNT( * ) * - COUNT( - col2 ) col1, COUNT( * ) col1 FROM tab1 AS cor0
----
8
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2329
SELECT 8, COUNT ( * ) * - COUNT ( - col2 ) col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
8
-9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2330
SELECT + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 90 * + col1 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) IS NULL
----
1260
4230
450

query I rowsort
SELECT ALL + ( + 41 ) AS col0 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT + + COUNT( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2333
SELECT + + COUNT ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + - ( + + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + - ( + + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT DISTINCT - - 51 AS col0, MAX( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
51
58

skipif mysql # not compatible
query II rowsort label-2335
SELECT DISTINCT - - 51 AS col0, MAX ( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
51
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1 cor0 WHERE NOT NULL >= 36 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - + SUM( DISTINCT - - 8 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - + SUM ( DISTINCT - - 8 ) FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2338
SELECT + CAST( + 38 AS SIGNED ) AS col1, + 53 + - - COUNT( + - 43 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
38
59

skipif mysql # not compatible
query II rowsort label-2338
SELECT + CAST ( + 38 AS INTEGER ) AS col1, + 53 + - - COUNT ( + - 43 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
38
59

query I rowsort
SELECT DISTINCT 41 * - 77 AS col2 FROM tab1
----
-3157

query I rowsort
SELECT ALL 80 * col1 FROM tab2
----
4080
5360
6160

query II rowsort
SELECT - ( - col0 ), 47 * col0 AS col2 FROM tab0
----
15
705
87
4089
97
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT - SUM( DISTINCT + + ( col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - SUM ( DISTINCT + + ( col0 ) ) AS col2 FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col0 - + col1 + - + col1 + - 47 - - col1 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + ( - col2 ) col0 FROM tab0
----
1287
130
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col2 FROM tab2
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - + ( + 1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + - MIN( DISTINCT + 99 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-2349
SELECT + - MIN ( DISTINCT + 99 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab0 WHERE + + col0 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT - + ( + + col2 ) * 50 + 59 - col2 + + + 36 DIV - col1 + col2 AS col2 FROM tab1 AS cor0
----
-2898
-3341
-4743

skipif mysql # not compatible
query I rowsort label-2353
SELECT - + ( + + col2 ) * 50 + 59 - col2 + + + 36 / - col1 + col2 AS col2 FROM tab1 AS cor0
----
-2898
-3341
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT - + 58 * + SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-9048

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - + 58 * + SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-9048

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT COUNT( * ) * - - MIN( - + 2 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT COUNT ( * ) * - - MIN ( - + 2 ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT col2 + + - col1 + + col2 AS col1 FROM tab2
----
-5
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( * ) * 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( * ) * 20 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + + 28 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT ALL 85 + + 44 DIV - 62 AS col0 FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL 85 + + 44 / - 62 AS col0 FROM tab0
----
85
85
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2361
SELECT * FROM tab2 WHERE - col2 * CAST( NULL AS DECIMAL ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2361
SELECT * FROM tab2 WHERE - col2 * CAST ( NULL AS REAL ) NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2362
SELECT ALL col2 * col0 - col1 + - 73 AS col2, - col1 + + col2 DIV + ( + - col1 ) col2 FROM tab2
----
2410
-77
4210
-67
934
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2362
SELECT ALL col2 * col0 - col1 + - 73 AS col2, - col1 + + col2 / + ( + - col1 ) col2 FROM tab2
----
2410
-77
4210
-67
934
-51

query I rowsort
SELECT DISTINCT - 99 + + col0 + - col2 AS col0 FROM tab2
----
-75
-76
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - COUNT( * ) * + COUNT( + 68 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2364
SELECT - COUNT ( * ) * + COUNT ( + 68 ) AS col2 FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + - + 86 NOT BETWEEN - 73 AND - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 82 - - col1 - col0 AS col0 FROM tab1 AS cor0
----
2
38
45

query I rowsort
SELECT + - col2 - 31 FROM tab2 AS cor0
----
-54
-71
-89

query I rowsort
SELECT DISTINCT - col0 * col1 - + + 75 FROM tab1 AS cor0
----
-4352
-500
-789

query I rowsort
SELECT ALL col2 * + 13 * + col0 AS col0 FROM tab1 AS cor0
----
63648
65195
80444

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT + 15 + + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + 15 + + COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - - ( - + col1 ), + col2, + col2 + - - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 31 AS col0, + col2 FROM tab0 cor0
----
31
10
31
47
31
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 13
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT DISTINCT - 92 DIV MIN( ALL - 45 ) * - 12 col1 FROM tab0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2378
SELECT DISTINCT - 92 / MIN ( ALL - 45 ) * - 12 col1 FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab2
----
-46

query II rowsort
SELECT col0 AS col2, col1 - + col0 AS col1 FROM tab2
----
46
5
64
13
75
-8

query II rowsort
SELECT - 93, + ( col0 ) AS col2 FROM tab0
----
-93
15
-93
87
-93
97

query II rowsort
SELECT ALL col0, col1 * - 47 FROM tab1
----
51
-658
85
-235
91
-2209

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT col1 * - col2 + + col2 * col0 - - col0 FROM tab0 cor0
----
-3087
747
9601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT CAST( + 42 AS SIGNED ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT CAST ( + 42 AS INTEGER ) FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT + COUNT( * ) + + 56 AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2387
SELECT + COUNT ( * ) + + 56 AS col0 FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2388
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) + + col2 <> - 77
----

skipif mysql # not compatible
query III rowsort label-2388
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) + + col2 <> - 77
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - - 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col1 FROM tab0 WHERE + 40 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 WHERE + 40 IS NULL
----

query I rowsort
SELECT DISTINCT - 37 + col2 FROM tab1 AS cor0
----
22
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + ( - + col1 ) * + ( - - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + col2 - + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-31
-70
31

onlyif mysql # DIV for integer division: 
query II rowsort label-2395
SELECT ALL - 57 DIV - col0 + + + col2, col2 * col0 AS col1 FROM tab0
----
10
870
50
705
99
9603

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL - 57 / - col0 + + + col2, col2 * col0 AS col1 FROM tab0
----
10
870
50
705
99
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - 96 + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2396
SELECT - 96 + COUNT ( * ) FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT - - ( + col2 ) / - ( + - col0 ) * ( + - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE 59 + 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - - ( + col2 ) / - ( + - col0 ) * ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE 59 + 51 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT ALL - MAX( DISTINCT + + col1 ) + COUNT( * ) + - MAX( + CAST( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - MAX ( DISTINCT + + col1 ) + COUNT ( * ) + - MAX ( + CAST ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL ( 59 ) + COUNT( * ) AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL ( 59 ) + COUNT ( * ) AS col0 FROM tab2
----
62

query III rowsort
SELECT * FROM tab1 WHERE - + 73 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 76 + + col2 + ( + col1 ) * - 7 * + col1 AS col2 FROM tab2
----
-18108
-31289
-41387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL 16 + - col0 + col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1143
3032
3827

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 16 + - col0 + col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1143
3032
3827

query I rowsort
SELECT ALL 82 + 22 FROM tab2
----
104
104
104

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT ALL - - col1 - + - ( - - 30 ) + col1 + + col0 DIV - 43 + 63 FROM tab0 AS cor0
----
133
255
93

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - - col1 - + - ( - - 30 ) + col1 + + col0 / - 43 + 63 FROM tab0 AS cor0
----
133
255
93

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
16

query I rowsort
SELECT ALL + + 25 * - - col0 + + - col2 * 92 - col0 FROM tab0 AS cor0
----
-3964
-6780
1168

query I rowsort
SELECT DISTINCT - col1 * ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT DISTINCT - col0 DIV - 70 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - col0 / - 70 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col2 * - 56 + col0 AS col1 FROM tab2 AS cor0
----
-1242
-2176
-3173

query II rowsort
SELECT ( - - col0 ) AS col2, - 76 FROM tab1 AS cor0
----
51
-76
85
-76
91
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL - 32 DIV - col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT ALL - 32 / - col0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - 59 ) AS col0 FROM tab1
----
-59
-59
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 NOT BETWEEN - 73 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + ( - - col0 ) NOT BETWEEN + col2 + - + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT ( + - COUNT( * ) ) * - - COUNT( * ), 80 AS col1 FROM tab1 AS cor0
----
-9
80

skipif mysql # not compatible
query II rowsort label-2418
SELECT ( + - COUNT ( * ) ) * - - COUNT ( * ), 80 AS col1 FROM tab1 AS cor0
----
-9
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT + + ( + col1 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT + + ( + col1 ) / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2420
SELECT COUNT ( * ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT ALL 23 * + col2 + - col2 FROM tab2
----
1276
506
880

query I rowsort
SELECT 42 + - 56 FROM tab0
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 72 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) - + 47 * - 73 AS col0 FROM tab2 AS cor0
----
3434

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) - + 47 * - 73 AS col0 FROM tab2 AS cor0
----
3434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE ( + 29 ) BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2427
SELECT + 7 + + 40 + - col2 DIV CAST( + 73 AS SIGNED ) + - col0, col2 FROM tab0 AS cor0
----
-40
10
-51
99
32
47

skipif mysql # not compatible
query II rowsort label-2427
SELECT + 7 + + 40 + - col2 / CAST ( + 73 AS INTEGER ) + - col0, col2 FROM tab0 AS cor0
----
-40
10
-51
99
32
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT - + col1 + - 65 - - col1 * - CAST( - - col0 AS SIGNED ) + - - ( col2 ) AS col0 FROM tab1 cor0
----
-4321
-436
-697

skipif mysql # not compatible
query I rowsort label-2429
SELECT - + col1 + - 65 - - col1 * - CAST ( - - col0 AS INTEGER ) + - - ( col2 ) AS col0 FROM tab1 cor0
----
-4321
-436
-697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 1 * - + col1 + 87 FROM tab2 WHERE NOT ( col2 / + col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 1 * - + col1 + 87 FROM tab2 WHERE NOT ( col2 / + col0 IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 col0, 17 AS col1 FROM tab0 WHERE + + 7 / + - col0 IS NOT NULL
----
-34
17
-34
17
-34
17

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + ( COUNT( * ) ) AS col2 FROM tab2 WHERE + 89 >= + col0
----
3

skipif mysql # not compatible
query I rowsort label-2434
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2 WHERE + 89 >= + col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2436
SELECT 36 - - MAX( DISTINCT + 29 ) + + SUM( ALL + - col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2436
SELECT 36 - - MAX ( DISTINCT + 29 ) + + SUM ( ALL + - col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-56
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT - 97 * + + COUNT( - 63 ) * - + SUM( - - col2 ) + - 30 FROM tab1 AS cor0
----
64863

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - 97 * + + COUNT ( - 63 ) * - + SUM ( - - col2 ) + - 30 FROM tab1 AS cor0
----
64863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col0 FROM tab2 cor0 WHERE NOT + 66 + - + col2 + - - col2 * - + 64 * col1 IS NULL
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL + ( - ( + + 64 ) ) * 68 + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4355

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + ( - ( + + 64 ) ) * 68 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4355

query I rowsort
SELECT DISTINCT 35 FROM tab2 WHERE NOT NULL IS NOT NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT - COUNT( * ) * - MAX( + 13 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2442
SELECT - COUNT ( * ) * - MAX ( + 13 ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT 98 * - COUNT( * ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 98 * - COUNT ( * ) FROM tab2
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT ALL col2 * - - 27 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL col2 * - - 27 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 49 * - col2 AS col0 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT COUNT( - - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2446
SELECT COUNT ( - - col1 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - ( + + 20 ) FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + ( + + col0 ) + col2 - - col0 AS col0 FROM tab0 cor0
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT - COUNT( * ) * + - 76 AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - COUNT ( * ) * + - 76 AS col1 FROM tab0
----
228

query III rowsort
SELECT ALL * FROM tab0 WHERE + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + 77 * - COUNT( * ) AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-2453
SELECT + 77 * - COUNT ( * ) AS col1 FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - col1 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT MIN( DISTINCT ( - col2 ) ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT DISTINCT MIN ( DISTINCT ( - col2 ) ) col0 FROM tab1
----
-96

query II rowsort
SELECT ALL 31 + + + col2 * 89 * col1 AS col2, ( - + col1 ) AS col1 FROM tab1
----
119647
-14
26286
-5
284475
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT DISTINCT + 28 + + COUNT( * ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + 28 + + COUNT ( * ) AS col0 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 87 BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 87 BETWEEN NULL AND col1
----
0

query I rowsort
SELECT + - col1 + col2 + - 94 AS col0 FROM tab1 AS cor0
----
-12
-40
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT CAST( - col0 AS SIGNED ) + - - col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-2460
SELECT CAST ( - col0 AS INTEGER ) + - - col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query I rowsort
SELECT ALL col0 + - col1 - - - 91 AS col2 FROM tab1
----
-11
-47
-54

query I rowsort
SELECT DISTINCT + - 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 12 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 < 22 + + + col2 + + col0 / - col0
----

query I rowsort
SELECT DISTINCT - col0 - col1 - + col1 FROM tab0 AS cor0
----
-129
-177
-99

query I rowsort
SELECT col1 - 88 FROM tab1 AS cor0
----
-41
-74
-83

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab2 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT + 94 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
94
94
94

query I rowsort
SELECT 35 - - col2 AS col1 FROM tab1 AS cor0
----
103
131
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - + 93 * + 4 - - + 16 + + COUNT( * ) AS col2 FROM tab1 cor0
----
-353

skipif mysql # not compatible
query I rowsort label-2471
SELECT - + 93 * + 4 - - + 16 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-353

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + COUNT( + col1 ) - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + COUNT ( + col1 ) - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + col2 * + col0, col2 * + col0 / + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + col2 * + col0, col2 * + col0 / + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + 15 col0 FROM tab1
----
4911
5030
6203

query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + 11 FROM tab1
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT MAX( + 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT MAX ( + 39 ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL MIN( col0 ) * + COUNT( * ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL MIN ( col0 ) * + COUNT ( * ) AS col2 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2480
SELECT * FROM tab1 WHERE NOT - CAST( 21 AS SIGNED ) * + col2 + 99 BETWEEN 93 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2480
SELECT * FROM tab1 WHERE NOT - CAST ( 21 AS INTEGER ) * + col2 + 99 BETWEEN 93 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 95 * col1 FROM tab0
----
1995
7695
95

query II rowsort
SELECT DISTINCT 68 AS col1, - col0 + + + col2 AS col2 FROM tab2
----
68
-17
68
-23
68
-24

query I rowsort
SELECT DISTINCT + col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + MIN ( col1 ) FROM tab1 AS cor0
----
5

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL < NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 23 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT ALL + 69 DIV + + 67 - + 51 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 69 / + + 67 - + 51 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2488
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2488
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 60 * - col2 AS col0 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT 61 DIV 27 + + 86 * + + 86 FROM tab1 AS cor0
----
7398
7398
7398

skipif mysql # not compatible
query I rowsort label-2490
SELECT 61 / 27 + + 86 * + + 86 FROM tab1 AS cor0
----
7398
7398
7398

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT 96 + + - COUNT( ALL - col2 ) FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-2491
SELECT 96 + + - COUNT ( ALL - col2 ) FROM tab0 cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 44 < col1 + + col1
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - ( - - COUNT( * ) ) + + 67 AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2493
SELECT - ( - - COUNT ( * ) ) + + 67 AS col2 FROM tab1 AS cor0
----
64

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE + 35 * - - 45 * col2 >= col0 - - - 83 - + col0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col1 * - - 37 FROM tab0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT 92 * COUNT( * ) - - - 2 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
274

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 92 * COUNT ( * ) - - - 2 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
274

query I rowsort
SELECT ALL - col2 * col1 * - col2 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 37 col0 FROM tab2 cor0
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2500
SELECT + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + - 55 col1 FROM tab0 AS cor0
----
34

query I rowsort
SELECT + - col1 * + 88 AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - + MIN( - 53 ) AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - + MIN ( - 53 ) AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2504
SELECT col0 * CAST( - CAST( NULL AS DECIMAL ) / col1 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT col0 * CAST ( - CAST ( NULL AS REAL ) / col1 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - 99 + - CAST( ( col1 ) + col2 AS SIGNED ) * 97
----

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - 99 + - CAST ( ( col1 ) + col2 AS INTEGER ) * 97
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE ( + 62 ) NOT IN ( - col0 )
----
59
68
96

query I rowsort
SELECT - col1 * + 44 AS col1 FROM tab1
----
-2068
-220
-616

query I rowsort
SELECT col0 * 61 AS col1 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT DISTINCT + col1 DIV 75 + col1 FROM tab0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + col1 / 75 + col1 FROM tab0
----
1
21
82

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL >= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL CAST( NULL AS SIGNED ) / + 22 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL CAST ( NULL AS INTEGER ) / + 22 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - col2 FROM tab0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + COUNT( * ) * 10 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + COUNT ( * ) * 10 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + MIN( + col2 ) + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + MIN ( + col2 ) + COUNT ( * ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - COUNT( * ) * 91 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-2516
SELECT - COUNT ( * ) * 91 FROM tab2
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2517
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) >= CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2517
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) >= CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL = 76 / col1
----

query I rowsort
SELECT + col2 * - 64 FROM tab0
----
-3008
-6336
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT - 16 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - 16 / col0 FROM tab2
----
0

query I rowsort
SELECT - col1 * + 61 - - 44 AS col0 FROM tab2
----
-3067
-4043
-4653

query I rowsort
SELECT - col2 FROM tab2 WHERE ( col2 + + col1 * col2 ) NOT IN ( - 10 * col0 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT MIN( DISTINCT - col0 ) * + 67 FROM tab1
----
-6097

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + 67 FROM tab1
----
-6097

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 54 * ( col2 ) + col0 AS col2 FROM tab1
----
3271
3763
5235

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT col2 DIV col0 + - 58 DIV + col1 FROM tab1
----
-1
-11
-3

skipif mysql # not compatible
query I rowsort label-2527
SELECT col2 / col0 + - 58 / + col1 FROM tab1
----
-1
-11
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2528
SELECT * FROM tab1 WHERE - ( - 6 ) + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2528
SELECT * FROM tab1 WHERE - ( - 6 ) + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 25 AS col0 FROM tab0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2530
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT + 91 AS col2 FROM tab1
----
91
91
91

query I rowsort
SELECT - 2 FROM tab2 WHERE - col0 >= ( NULL )
----

query I rowsort
SELECT ALL 96 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 92 + - col0 AS col2 FROM tab2
----
17
28
46

query I rowsort
SELECT ALL + 3 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 73 - - col2 FROM tab0 AS cor0 WHERE 96 BETWEEN + col1 * col0 AND + 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + - SUM( 70 ) FROM tab0 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - SUM ( 70 ) FROM tab0 cor0
----
-210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col2 * 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab2 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL - 39 + - COUNT( * ) * SUM( DISTINCT 70 ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 39 + - COUNT ( * ) * SUM ( DISTINCT 70 ) FROM tab1 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 / + col1 + col2 col0 FROM tab1 AS cor0 WHERE 24 * - col2 > 54 * 92
----

query I rowsort
SELECT col0 + + 85 FROM tab0 cor0 WHERE ( + col2 * + 76 ) >= NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) + 96 FROM tab0 AS cor0
----
111
183
193

query III rowsort
SELECT * FROM tab2 cor0 WHERE 16 * + col0 < col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2547
SELECT + - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab1
----
39
39
39

query I rowsort
SELECT DISTINCT col0 * + col2 * - ( - col0 ) FROM tab0
----
10575
75690
931491

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <= - col2 - - 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL BETWEEN col0 * + col1 + col1 * CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL BETWEEN col0 * + col1 + col1 * CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + SUM( - col1 ) + - COUNT( * ) col2 FROM tab1
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2553
SELECT + SUM ( - col1 ) + - COUNT ( * ) col2 FROM tab1
----
-69

query I rowsort
SELECT 61 * 93 FROM tab0 WHERE ( 39 ) BETWEEN + 25 AND col2 * - col2
----

query I rowsort
SELECT + col0 - - 44 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL COUNT( - col1 ) + 37 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL COUNT ( - col1 ) + 37 FROM tab0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * - 69 col1 FROM tab0
----
-3162
-669
-6830

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT MIN( - - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT MIN ( - - col2 ) FROM tab2
----
23

query I rowsort
SELECT ALL - col1 + 42 FROM tab0
----
-39
21
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL COUNT( DISTINCT 78 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL COUNT ( DISTINCT 78 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2562
SELECT + ( CAST( + col1 AS SIGNED ) ) + 59 DIV + col1 FROM tab0 AS cor0
----
23
60
81

skipif mysql # not compatible
query I rowsort label-2562
SELECT + ( CAST ( + col1 AS INTEGER ) ) + 59 / + col1 FROM tab0 AS cor0
----
23
60
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT COUNT( * ) * COUNT( 61 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2563
SELECT COUNT ( * ) * COUNT ( 61 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT ALL col2 * + col2 * col0 + col0 FROM tab2
----
102464
24380
252375

query III rowsort
SELECT * FROM tab2 WHERE ( ( - ( col2 ) ) NOT BETWEEN NULL AND col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - ( COUNT( * ) ) * 23 FROM tab0 WHERE ( - ( col1 ) * col1 ) IN ( - col1 )
----
-23

skipif mysql # not compatible
query I rowsort label-2567
SELECT - ( COUNT ( * ) ) * 23 FROM tab0 WHERE ( - ( col1 ) * col1 ) IN ( - col1 )
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 * 64 FROM tab1 AS cor0 WHERE NOT + 1 <> + 48
----

query I rowsort
SELECT - + 15 * - ( + 3 ) FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2 cor0 WHERE NOT - 27 * + col2 * col2 IS NULL
----
34

query I rowsort
SELECT + 96 * + col1 * + - col1 FROM tab0 AS cor0
----
-42336
-629856
-96

query II rowsort
SELECT DISTINCT - col2 AS col0, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT + col2 * 5 + - col0 * + col0 FROM tab2 AS cor0 WHERE NOT ( 7 + + 4 ) IN ( 58 * col1 )
----
-2001
-3896
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + - COUNT( - + 47 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT ALL + - COUNT ( - + 47 ) col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 36
----

query I rowsort
SELECT ALL col2 * - + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT ( - col1 ) * - - col1 + + ( - col1 ) AS col2 FROM tab1
----
-210
-2256
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * ( - - col2 ) col1 FROM tab1
----
5369
6188
8736

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + MAX( ALL + col2 ) + 68 col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( + col2 )
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2581
SELECT + MAX ( ALL + col2 ) + 68 col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( + col2 )
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2582
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST( NULL AS DECIMAL ) * 36 - ( 71 ) )
----

skipif mysql # not compatible
query I rowsort label-2582
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST ( NULL AS REAL ) * 36 - ( 71 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2583
SELECT ALL 96 DIV - COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 96 / - COUNT ( * ) FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - col1 ) NOT IN ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT 39 + + col0 * - 85 FROM tab0 AS cor0 WHERE NOT + col2 >= + - 57 * - - ( CAST( NULL AS SIGNED ) ) / + col1 + col0 * + col0
----

skipif mysql # not compatible
query I rowsort label-2585
SELECT 39 + + col0 * - 85 FROM tab0 AS cor0 WHERE NOT + col2 >= + - 57 * - - ( CAST ( NULL AS INTEGER ) ) / + col1 + col0 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 17 + - - col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 71 + col0 col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-1404
-5736
26

query I rowsort
SELECT ( - 39 ) FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL - SUM( ALL + 47 ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - SUM ( ALL + 47 ) FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT + SUM( - - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + SUM ( - - col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2591
SELECT + + 11 + + COUNT( * ) * ( - - COUNT( DISTINCT - col0 ) ) DIV + 69 AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2591
SELECT + + 11 + + COUNT ( * ) * ( - - COUNT ( DISTINCT - col0 ) ) / + 69 AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT col2 + + + col0 + - - 51 AS col2 FROM tab2 AS cor0
----
120
155
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col0 * + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col0 * + - col1 IS NULL
----

query I rowsort
SELECT + col2 + - - 60 AS col1 FROM tab0 AS cor0
----
107
159
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - COUNT( * ) + 73 AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2595
SELECT - COUNT ( * ) + 73 AS col1 FROM tab1 AS cor0
----
70

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col0 / + col0 + - 65 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL ( + - col0 ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - 24 + + - 4 IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 3 FROM tab2 WHERE + col2 IS NOT NULL
----
3
3
3

query I rowsort
SELECT DISTINCT + col2 * - - col2 + - col2 FROM tab2
----
1560
3306
506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2603
SELECT + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2603
SELECT + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2604
SELECT ALL * FROM tab2 WHERE NULL = - CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-2604
SELECT ALL * FROM tab2 WHERE NULL = - CAST ( NULL AS INTEGER ) + - col2
----

query I rowsort
SELECT ALL - 17 - - col1 * - col2 FROM tab0
----
-116
-227
-3824

query I rowsort
SELECT DISTINCT + col2 * + ( - ( col2 ) ) AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT - MIN( - 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2607
SELECT - MIN ( - 5 ) FROM tab0
----
5

query II rowsort
SELECT ALL - 12 AS col0, col1 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-12
1344
-12
295
-12
3196

query I rowsort
SELECT ( ( - - 8 ) ) - - col1 * - col0 FROM tab1 cor0
----
-417
-4269
-706

query I rowsort
SELECT - 20 + + 71 * - 7 AS col1 FROM tab1 AS cor0
----
-517
-517
-517

query II rowsort
SELECT + 66 AS col0, + 18 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 26ce52f4c742287a4293ad701193406e

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - + 28 IS NULL
----

query I rowsort
SELECT ALL - + ( + col1 ) * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL 74 * - + MAX( ALL ( col1 ) ) FROM tab0 AS cor0
----
-5994

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL 74 * - + MAX ( ALL ( col1 ) ) FROM tab0 AS cor0
----
-5994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2615
SELECT ALL - col0 * - col2 col1, + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2615
SELECT ALL - col0 * - col2 col1, + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( + col0 + col1 * - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( + col0 + col1 * - col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( ( + col0 ) ) + col2 col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT col1 / col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + - 62 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ( + - COUNT( * ) ) FROM tab0 WHERE NOT col1 + + - ( + col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2621
SELECT ( + - COUNT ( * ) ) FROM tab0 WHERE NOT col1 + + - ( + col2 ) IS NULL
----
-3

query II rowsort
SELECT + col1 AS col0, + col2 + + 17 AS col1 FROM tab0
----
1
116
21
27
81
64

query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + + col2 * 76 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + + col2 * 76 IS NOT NULL
----
0

query I rowsort
SELECT + col1 * - + 3 * - 30 * - col0 AS col2 FROM tab1
----
-38250
-384930
-64260

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - + 25 ) + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT col0 DIV 25 AS col0 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2627
SELECT col0 / 25 AS col0 FROM tab1
----
2
3
3

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL COUNT( DISTINCT + 78 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL COUNT ( DISTINCT + 78 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL MAX( DISTINCT col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT - 92 * + COUNT( * ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - 92 * + COUNT ( * ) FROM tab2 AS cor0
----
-276

query I rowsort
SELECT ALL + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT col1 + + + col1 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col2 col2, 20 FROM tab2
----
116
20
46
20
80
20

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT + 54 + - CAST( NULL AS SIGNED ) - + - 87 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT + 54 + - CAST ( NULL AS INTEGER ) - + - 87 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 46 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 + + ( + 93 ) )
----

query I rowsort
SELECT DISTINCT - + 80 AS col0 FROM tab1 cor0
----
-80

query I rowsort
SELECT + col0 * - col0 * - 99 AS col0 FROM tab2 AS cor0
----
209484
405504
556875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( 24 * + 13, 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT + MAX( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 70 + 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 95 * + col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 36 * col1 + + col2 * + col0 FROM tab0
----
1626
3621
9639

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT col0 DIV 41 * - 3 DIV - col0 * 38 + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2651
SELECT col0 / 41 * - 3 / - col0 * 38 + col2 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT COUNT( * ) + - ( + + 21 ) + + 79 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT COUNT ( * ) + - ( + + 21 ) + + 79 FROM tab2
----
61

query II rowsort
SELECT ALL - col2, - ( - - col2 ) AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - + 61 * + - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - + 61 * + - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - col0 DIV - + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - col0 / - + col1 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2656
SELECT col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2656
SELECT col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - 13 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> + ( + 63 )
----
-13

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 13 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> + ( + 63 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2658
SELECT - CAST( + + 37 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2658
SELECT - CAST ( + + 37 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2659
SELECT ALL - COUNT( * ) AS col0, 25 AS col1 FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-2659
SELECT ALL - COUNT ( * ) AS col0, 25 AS col1 FROM tab1 AS cor0
----
-3
25

query I rowsort
SELECT ALL 4 AS col2 FROM tab2 cor0 WHERE + 38 NOT IN ( col2 + col2 )
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT ALL + COUNT( + + 92 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL + COUNT ( + + 92 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT - + 38, + col1 FROM tab2 cor0
----
-38
51
-38
67
-38
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 86 FROM tab2 WHERE NULL IS NULL
----
-86
-86
-86

query II rowsort
SELECT ALL col0 * - col2, + ( + col0 ) AS col0 FROM tab0
----
-705
15
-870
87
-9603
97

query II rowsort
SELECT - 48, 67 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48
67
-48
67
-48
67

query I rowsort
SELECT DISTINCT - ( ( - + 10 ) ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2668
SELECT DISTINCT - - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2668
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - + col0 ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE - ( col1 ) + col2 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2670
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE - ( col1 ) + col2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 56 + - col0 AS col2 FROM tab1 AS cor0
----
-107
-141
-147

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT DISTINCT + + COUNT( * ), - COUNT( * ) AS col2 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2675
SELECT DISTINCT + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 cor0
----
3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT MIN( ALL - 12 ) * + 88 + + + 22 DIV - - 59 AS col1 FROM tab0 AS cor0
----
-1056

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT MIN ( ALL - 12 ) * + 88 + + + 22 / - - 59 AS col1 FROM tab0 AS cor0
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - COUNT( DISTINCT 74 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT DISTINCT - COUNT ( DISTINCT 74 ) col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 93 * - - 90 + + + 89
----

query I rowsort
SELECT DISTINCT - col0 + - + col1 AS col0 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL - col1 * + 53 + + + col2 + + + col0 + + col0 * col1 FROM tab1
----
119
1945
304

query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT MAX( ALL col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2682
SELECT MAX ( ALL col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT 19 - - 66 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT - 22 - 17 * + col0 + + col2 * 80 FROM tab2
----
1036
2090
3343

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 22 - - - col1 AS col0 FROM tab1
----
-27
-36
-69

query I rowsort
SELECT ALL - 66 AS col2 FROM tab0 AS cor0 WHERE - 36 BETWEEN - col2 + + - col1 AND + ( col2 )
----
-66
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 91 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2692
SELECT DISTINCT + 37 AS col2, + COUNT( - - col0 ) FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-2692
SELECT DISTINCT + 37 AS col2, + COUNT ( - - col0 ) FROM tab2 AS cor0
----
37
3

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2695
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col0 col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - - 26 FROM tab0 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT SUM( 27 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2699
SELECT SUM ( 27 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT 51 * col1 AS col1 FROM tab1
----
2397
255
714

query I rowsort
SELECT DISTINCT 0 * + 58 * col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT 92 * + + col0 * - + ( col2 ) AS col0 FROM tab1
----
-450432
-461380
-569296

query II rowsort
SELECT col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT 23 AS col1, col0 AS col0 FROM tab0
----
23
15
23
87
23
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2705
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IN ( + CAST( NULL AS SIGNED ) * col2, col1 + - col0, - 25 + col0 )
----

skipif mysql # not compatible
query III rowsort label-2705
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IN ( + CAST ( NULL AS INTEGER ) * col2, col1 + - col0, - 25 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col2, 65, + 15 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2707
SELECT ALL + MIN( DISTINCT + - 42 ) * + 18 * COUNT( - CAST( NULL AS DECIMAL ) ) * + + 53 * - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + MIN ( DISTINCT + - 42 ) * + 18 * COUNT ( - CAST ( NULL AS REAL ) ) * + + 53 * - COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2709
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col2, CAST( + + MIN( DISTINCT + col1 ) AS SIGNED ) col2 FROM tab0
----
-97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2709
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2, CAST ( + + MIN ( DISTINCT + col1 ) AS INTEGER ) col2 FROM tab0
----
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT DISTINCT + + 7 * - - CAST( - - 38 AS SIGNED ) * - col0 - + + 39 AS col2 FROM tab2 AS cor0
----
-12275
-17063
-19989

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + + 7 * - - CAST ( - - 38 AS INTEGER ) * - col0 - + + 39 AS col2 FROM tab2 AS cor0
----
-12275
-17063
-19989

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2711
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT - col1 * col2 - - col1 FROM tab1 cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL - col2 * + col0 - - col1 - col0 AS col2 FROM tab0 AS cor0
----
-639
-936
-9699

query I rowsort
SELECT ALL - 26 * 82 AS col1 FROM tab2 AS cor0
----
-2132
-2132
-2132

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col2 + - + col2 <= NULL AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 > col0
----

query I rowsort
SELECT col2 + 6 FROM tab1
----
102
65
74

query II rowsort
SELECT 12 * - col0 * + col1 AS col1, - 64 AS col2 FROM tab2 WHERE ( NOT - col2 + - 83 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) * + - col1 AS col2 FROM tab2 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT ALL + 97 * + 62 * + 84 + + + col2 AS col1 FROM tab2
----
505199
505216
505234

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) >= + 95 )
----

query I rowsort
SELECT DISTINCT - - col0 * - ( + - col1 ) FROM tab0 WHERE + 95 IS NULL
----

query I rowsort
SELECT - col1 * col2 + + - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL + ( 4 ) AS col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL ( - 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2728
SELECT - ( + + CAST( - col1 AS SIGNED ) ) * - 62, + col1 FROM tab1 AS cor0
----
-2914
47
-310
5
-868
14

skipif mysql # not compatible
query II rowsort label-2728
SELECT - ( + + CAST ( - col1 AS INTEGER ) ) * - 62, + col1 FROM tab1 AS cor0
----
-2914
47
-310
5
-868
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT COUNT( * ) DIV - + 46 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT COUNT ( * ) / - + 46 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + col2 + col2 * + col1 FROM tab0 cor0
----
230
297
3901

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 39 BETWEEN - - 83 * + + ( - col0 ) + - col2 AND NULL
----

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL + 28 + + col0 FROM tab1
----
113
119
79

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT + + col0 + 12 NOT IN ( + col2, col1 * + col1 + + - 42 + - col2, + col1, - col2, + - 65 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 45 * - 25 * - 16 col1 FROM tab0
----
1566000
1746000
270000

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - MIN( ALL + 54 ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2738
SELECT - MIN ( ALL + 54 ) AS col2 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT + CAST( 6 AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
126
486
6

skipif mysql # not compatible
query I rowsort label-2739
SELECT + CAST ( 6 AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT - col2 * + + 42 FROM tab1 cor0
----
-2478
-2856
-4032

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT - + col2 DIV - - 35 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT - + col2 / - - 35 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT COUNT( * ) * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT COUNT ( * ) * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 66 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + col0 * col2 + - - col2 AS col1 FROM tab1
----
4992
5074
6256

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 51 AND NULL
----

query I rowsort
SELECT DISTINCT + 50 + + + ( col0 ) FROM tab1
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT + 97 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-873

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + 97 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-873

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 17 - + + col2 FROM tab0 AS cor0
----
-30
-82
7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT + COUNT( * ) DIV 80 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + COUNT ( * ) / 80 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + - - 63 >= - + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 22 + - col1 AS col0 FROM tab2
----
-73
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT 2 * - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT 2 * - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT - ( - CAST( + COUNT( * ) AS SIGNED ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2757
SELECT DISTINCT - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT NULL < - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2759
SELECT - col0 DIV + 9 col2, col1 AS col1 FROM tab1
----
-10
47
-5
14
-9
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2759
SELECT - col0 / + 9 col2, col1 AS col1 FROM tab1
----
-10
47
-5
14
-9
5

query I rowsort
SELECT - ( + ( - col0 ) ) * - 36 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL CAST( + 20 AS SIGNED ) AS col1 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL CAST ( + 20 AS INTEGER ) AS col1 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2762
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT - 87 * - - 3 FROM tab1
----
-261
-261
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT col2 DIV + + col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2764
SELECT col2 / + + col1 FROM tab1
----
1
11
6

query II rowsort
SELECT - col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT ALL + - col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT col2 + + + CAST( NULL AS SIGNED ) * + - col0 * - 87 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT col2 + + + CAST ( NULL AS INTEGER ) * + - col0 * - 87 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT ALL CAST( 83 AS SIGNED ) + - col1 + - - col1 + col0 DIV 14 FROM tab1
----
86
89
89

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL CAST ( 83 AS INTEGER ) + - col1 + - - col1 + col0 / 14 FROM tab1
----
86
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT SUM( 93 ) col2, - 98 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2770
SELECT SUM ( 93 ) col2, - 98 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL - col0 * + ( - col1 ) + CAST( + col1 AS SIGNED ) FROM tab0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - col0 * + ( - col1 ) + CAST ( + col1 AS INTEGER ) FROM tab0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - ( - + MIN( + - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2772
SELECT - ( - + MIN ( + - col0 ) ) FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT 90 DIV + col0 + col0 FROM tab0
----
21
88
97

skipif mysql # not compatible
query I rowsort label-2773
SELECT 90 / + col0 + col0 FROM tab0
----
21
88
97

query II rowsort
SELECT - ( - col1 ) AS col2, + col1 AS col1 FROM tab2 WHERE NULL <= col0
----

query I rowsort
SELECT ALL + - 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26

query II rowsort
SELECT + col1 + 30 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
107
64
81
46
97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + COUNT( * ) + - MIN( + col2 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2777
SELECT + COUNT ( * ) + - MIN ( + col2 ) FROM tab0 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * - col0 col2 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2779
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) * 34 + - 17 - col2 * col0 col0, col0 * + - ( - ( - col1 ) ) col2 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2779
SELECT ALL + col2 * CAST ( NULL AS REAL ) * 34 + - 17 - col2 * col0 col0, col0 * + - ( - ( - col1 ) ) col2 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 - - + ( 82 ) col1 FROM tab2
----
165
165
165

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT DISTINCT col0 + - - 97 + - col1 + - ( - - col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
134
140
176

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT col0 + - - 97 + - col1 + - ( - - col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
134
140
176

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 * - + col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - COUNT( * ) - - + 41 * 38 - + 5 AS col2 FROM tab1 AS cor0
----
1550

skipif mysql # not compatible
query I rowsort label-2783
SELECT - COUNT ( * ) - - + 41 * 38 - + 5 AS col2 FROM tab1 AS cor0
----
1550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - - - col2 col2 FROM tab0 cor0
----
-98
431
6514

query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( + col0 - - col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT DISTINCT - + COUNT( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT - + COUNT ( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0
----
-3
4

query I rowsort
SELECT - 91 + 86 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - COUNT( * ) * 62 AS col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - COUNT ( * ) * 62 AS col2 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT - col0 * - - 17 * - + col1 * + col0 FROM tab2 AS cor0
----
1834572
5361664
6406875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - - SUM( col0 ) FROM tab1 AS cor0 WHERE NOT - col0 + + + col2 * + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT - - SUM ( col0 ) FROM tab1 AS cor0 WHERE NOT - col0 + + + col2 * + - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2792
SELECT ALL col2 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * ( col1 ), col2 * + + 7 AS col2 FROM tab1 AS cor0
----
NULL
413
NULL
476
NULL
672

skipif mysql # not compatible
query II rowsort label-2792
SELECT ALL col2 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * ( col1 ), col2 * + + 7 AS col2 FROM tab1 AS cor0
----
NULL
413
NULL
476
NULL
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 18 col2 FROM tab0
----
1494
1494
1494

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL COUNT( ALL col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL COUNT ( ALL col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 * 13 AS col0 FROM tab1
----
1105
1183
663

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 31 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - 91 AS col0 FROM tab1
----
-5369
-6188
-8736

query I rowsort
SELECT - + col2 - - 64 * - - ( + - col1 ) * col0 * - col1 + + - col0 FROM tab1 WHERE NOT NULL >= + - col0
----

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 WHERE NOT + col1 < + col0
----
-2346
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2800
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( * ) * + - CAST( - + SUM( DISTINCT + col0 ) AS SIGNED ), 78 AS col2 FROM tab0 AS cor0
----
-1791
78

skipif mysql # not compatible
query II rowsort label-2800
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + - CAST ( - + SUM ( DISTINCT + col0 ) AS INTEGER ), 78 AS col2 FROM tab0 AS cor0
----
-1791
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT - 86 * 18 - + 32 col0 FROM tab1 AS cor0 WHERE NULL <> col1 * + col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT DISTINCT - 86 * 18 - + 32 col0 FROM tab1 AS cor0 WHERE NULL <> col1 * + col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2802
SELECT ALL + ( col1 ) * col2 + + + col1 AS col1, + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1358
1
300
1
3243
1

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + ( col1 ) * col2 + + + col1 AS col1, + col0 / col0 AS col1 FROM tab1 AS cor0
----
1358
1
300
1
3243
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT DISTINCT + col2 DIV + col0 + + + 99 FROM tab0 AS cor0
----
100
102
99

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + col2 / + col0 + + + 99 FROM tab0 AS cor0
----
100
102
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2804
SELECT col1, - 90 DIV 11 DIV col1 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-2804
SELECT col1, - 90 / 11 / col1 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL + col2 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + col2 / - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + - SUM( + + 86 ) AS col2 FROM tab2 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + - SUM ( + + 86 ) AS col2 FROM tab2 cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2808
SELECT ALL + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - ( 97 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2812
SELECT CAST( NULL AS SIGNED ) + + 80 AS col2, + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2812
SELECT CAST ( NULL AS INTEGER ) + + 80 AS col2, + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2813
SELECT DISTINCT 81 DIV + CAST( 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT 81 / + CAST ( 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - + col2 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 * + + 55 + 96 FROM tab2 AS cor0
----
-2434
-3424
-4029

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + + COUNT( * ) * + + 38 * + - 37 + - ( COUNT( * ) ) FROM tab2 cor0
----
-4221

skipif mysql # not compatible
query I rowsort label-2817
SELECT + + COUNT ( * ) * + + 38 * + - 37 + - ( COUNT ( * ) ) FROM tab2 cor0
----
-4221

query I rowsort
SELECT ALL col0 + + 27 + - col0 * + - 11 FROM tab2
----
579
795
927

onlyif mysql # DIV for integer division: 
query II rowsort label-2819
SELECT + 79 AS col0, + col1 DIV + + 33 AS col2 FROM tab2 WHERE - - col1 IS NOT NULL
----
79
1
79
2
79
2

skipif mysql # not compatible
query II rowsort label-2819
SELECT + 79 AS col0, + col1 / + + 33 AS col2 FROM tab2 WHERE - - col1 IS NOT NULL
----
79
1
79
2
79
2

query I rowsort
SELECT + col2 * col1 * ( + + col2 ) * + + col1 FROM tab2
----
1375929
15100996
9486400

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT ALL col0 DIV + 82 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL col0 / + 82 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( + - 53 ) FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT + - CAST( NULL AS SIGNED ) * SUM( - 15 ) * + 91 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT + - CAST ( NULL AS INTEGER ) * SUM ( - 15 ) * + 91 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - ( + - col2 ) FROM tab0 AS cor0 WHERE 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - 36 )
----
0

query I rowsort
SELECT DISTINCT - ( 97 ) AS col1 FROM tab1 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2829
SELECT ALL - 27 * + ( COUNT( * ) ) - 57 AS col1, COUNT( * ) AS col2 FROM tab0
----
-138
3

skipif mysql # not compatible
query II rowsort label-2829
SELECT ALL - 27 * + ( COUNT ( * ) ) - 57 AS col1, COUNT ( * ) AS col2 FROM tab0
----
-138
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( DISTINCT - - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( DISTINCT - - col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2832
SELECT ALL col1 - - CAST( NULL AS DECIMAL ) AS col2, col0 + + + 93 AS col1 FROM tab2 AS cor0
----
NULL
139
NULL
157
NULL
168

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL col1 - - CAST ( NULL AS REAL ) AS col2, col0 + + + 93 AS col1 FROM tab2 AS cor0
----
NULL
139
NULL
157
NULL
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT col0 + - col2 * 2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-16
-41
0

query II rowsort
SELECT ( + + col2 ) AS col0, col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT - - MAX( ALL 77 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2836
SELECT - - MAX ( ALL 77 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - MAX( ALL col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2837
SELECT - MAX ( ALL col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2838
SELECT CAST( NULL AS DECIMAL ) * CAST( + col2 AS SIGNED ) + + + col1 col0 FROM tab0 WHERE NOT - col0 = + + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2838
SELECT CAST ( NULL AS REAL ) * CAST ( + col2 AS INTEGER ) + + + col1 col0 FROM tab0 WHERE NOT - col0 = + + col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 89 / col1 * - col0 * col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * + - col1 col1 FROM tab2
----
-2652
-3484
-4004

query II rowsort
SELECT ALL - col2, + col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2842
SELECT + COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 + 60 AND + 7
----

query II rowsort
SELECT DISTINCT col2, col0 + + 11 + - - col1 * - col2 + + - col0 * - - col0 AS col2 FROM tab2 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 + + ( - - ( + col2 ) ) AS col0 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL MAX( + 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL MAX ( + 72 ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 18 IS NULL )
----

query I rowsort
SELECT DISTINCT + 34 * + col2 FROM tab1 AS cor0
----
2006
2312
3264

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( ( NOT NULL = - 98 + - col1 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2851
SELECT - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT + col2 + + 3 AS col2 FROM tab2
----
26
43
61

query II rowsort
SELECT ALL col1 + - 11 AS col0, - col1 FROM tab2
----
40
-51
56
-67
66
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT 81 + + ( + col0 ) DIV + 10 FROM tab0
----
82
89
90

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT 81 + + ( + col0 ) / + 10 FROM tab0
----
82
89
90

query III rowsort
SELECT * FROM tab1 WHERE - + 40 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT DISTINCT + 84 DIV + col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + 84 / + col0 FROM tab0
----
0
5

query I rowsort
SELECT - - 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT DISTINCT + SUM( + ( col2 ) ) AS col0, + COUNT( * ) FROM tab1
----
223
3

skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT + SUM ( + ( col2 ) ) AS col0, + COUNT ( * ) FROM tab1
----
223
3

query I rowsort
SELECT 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL + SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + SUM ( ALL col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL - + 62 + + + 18 FROM tab2 AS cor0 WHERE + col1 * - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2864
SELECT ALL + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col1 AS col0, + 12 + col2 FROM tab0 AS cor0
----
1
111
21
22
81
59

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col2 * + - col0 / col1 + + col2 AND + - col2 + + 12
----

query I rowsort
SELECT + ( - 6 ) AS col1 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT - + ( CAST( + - col0 AS SIGNED ) ) * + 82 FROM tab1 cor0
----
4182
6970
7462

skipif mysql # not compatible
query I rowsort label-2868
SELECT - + ( CAST ( + - col0 AS INTEGER ) ) * + 82 FROM tab1 cor0
----
4182
6970
7462

query I rowsort
SELECT - ( + - 35 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT col0, col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + + ( - 67 ) AS col2 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT + - 78 * col1 AS col2 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 + + - 28 AS col1, - col0 AS col1 FROM tab0 WHERE NOT col1 * + col2 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 3 FROM tab2 WHERE NOT - - col2 * + col0 * + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + - 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab0 cor0
----
8
8
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 BETWEEN - 35 AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 42 - + + 85 * - - col0 IS NULL
----

query II rowsort
SELECT ALL - col0 + + + 41 - - col0, - col0 AS col0 FROM tab0 AS cor0
----
41
-15
41
-87
41
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + + COUNT( * ) + ( - 67 ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2881
SELECT + + COUNT ( * ) + ( - 67 ) AS col1 FROM tab2 AS cor0
----
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 94 + - - 66 + - - ( + - 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL - MAX( - + col0 ) + - 81 + COUNT( col0 ) col1 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT ALL - MAX ( - + col0 ) + - 81 + COUNT ( col0 ) col1 FROM tab0
----
-63

query I rowsort
SELECT ALL col2 + + + 92 AS col2 FROM tab2
----
115
132
150

query I rowsort
SELECT + 95 AS col1 FROM tab0 WHERE NULL IS NULL
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1 WHERE col1 - + - 79 * + col0 + - 21 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1 WHERE col1 - + - 79 * + col0 + - 21 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE ( col1 + + 64 IS NOT NULL )
----
51
67
77

query I rowsort
SELECT DISTINCT col1 * + col0 - + 63 FROM tab1
----
362
4214
651

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2889
SELECT ALL + MAX( col2 ) + - 83 - + CAST( NULL AS DECIMAL ) * + MAX( - col2 ) * - - 62, + ( COUNT( * ) ) AS col1, 80 AS col2 FROM tab2
----
NULL
3
80

skipif mysql # not compatible
query III rowsort label-2889
SELECT ALL + MAX ( col2 ) + - 83 - + CAST ( NULL AS REAL ) * + MAX ( - col2 ) * - - 62, + ( COUNT ( * ) ) AS col1, 80 AS col2 FROM tab2
----
NULL
3
80

query II rowsort
SELECT ALL col1 AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + col1 - col0 * + 48 FROM tab1 cor0
----
-2434
-4075
-4321

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT - + col0 DIV col2 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-2892
SELECT - + col0 / col2 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + + COUNT( ALL col0 ) + + - 30 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2893
SELECT + + COUNT ( ALL col0 ) + + - 30 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2894
SELECT * FROM tab2 WHERE NOT + + ( + col2 ) * col0 * - CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2894
SELECT * FROM tab2 WHERE NOT + + ( + col2 ) * col0 * - CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 77, 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 10 AS col0 FROM tab1 AS cor0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - + COUNT( * ) * + MIN( ALL + 64 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - + COUNT ( * ) * + MIN ( ALL + 64 ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT col1 * - 89 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN + - 66 AND col0
----
-1869

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( - col2 ) + - 21 * + col1 AND NULL
----

query II rowsort
SELECT ALL - 85 AS col1, col0 AS col2 FROM tab1
----
-85
51
-85
85
-85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col0 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT 26 AS col0, col2 AS col1 FROM tab1
----
26
59
26
68
26
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 ) + + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT - ( + + 90 ) * COUNT( * ) AS col2, + 35 FROM tab1
----
-270
35

skipif mysql # not compatible
query II rowsort label-2906
SELECT - ( + + 90 ) * COUNT ( * ) AS col2, + 35 FROM tab1
----
-270
35

query I rowsort
SELECT ALL 28 * + 8 AS col2 FROM tab1
----
224
224
224

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - 29 * - COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 29 * - COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT - + CAST( NULL AS SIGNED ) + col0 * + CAST( - col0 AS SIGNED ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT - + CAST ( NULL AS INTEGER ) + col0 * + CAST ( - col0 AS INTEGER ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT COUNT( DISTINCT col2 ) + - 17 AS col1, - 79 FROM tab1 AS cor0
----
-14
-79

skipif mysql # not compatible
query II rowsort label-2913
SELECT COUNT ( DISTINCT col2 ) + - 17 AS col1, - 79 FROM tab1 AS cor0
----
-14
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT 1 + - ( + - MAX( DISTINCT - 31 ) ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT 1 + - ( + - MAX ( DISTINCT - 31 ) ) FROM tab2
----
-30

query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE ( - col0 ) - + + col1 >= + - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + SUM( - - col2 ) + COUNT( * ) * - MAX( + ( + col2 ) ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + SUM ( - - col2 ) + COUNT ( * ) * - MAX ( + ( + col2 ) ) FROM tab1
----
-65

query I rowsort
SELECT ALL - + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT + - 62 AS col1 FROM tab2 WHERE NULL = 73 * 18 * + - col2 + + + 72
----

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) FROM tab1 cor0
----
-10
-28
-94

query II rowsort
SELECT ALL - - ( - 20 ) AS col0, + 13 * 78 - - col0 * + 45 * col0 FROM tab2 AS cor0
----
-20
185334
-20
254139
-20
96234

query I rowsort
SELECT - col0 - - - col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT col0 - - + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT ALL ( - 56 ) + + col0 AS col1, 44 + + col2 FROM tab2
----
-10
67
19
102
8
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT 34 + COUNT( * ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT 34 + COUNT ( * ) AS col2 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - COUNT( * ) + - 54 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-2925
SELECT - COUNT ( * ) + - 54 FROM tab1
----
-57

query I rowsort
SELECT 49 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
49
49
49

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + + ( col1 ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT COUNT( * ) + + 42 AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT COUNT ( * ) + + 42 AS col0 FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 * + col2 col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL - COUNT( col1 ) - - 75 AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - COUNT ( col1 ) - - 75 AS col1 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - MAX( - col2 ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT - MAX ( - col2 ) col0 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, 9 + - + 36 + - + col1 + + - ( + 8 ) - + col1 col2 FROM tab1 AS cor0
----
51
-63
85
-45
91
-129

query I rowsort
SELECT ALL 8 * 10 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2934
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + 38 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2934
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + 38 AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 52 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - ( + - col0 ) * col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col0 * - col1 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
383670
4625505
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2939
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT ALL - - col1 DIV col1 + + + col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - - col1 / col1 + + + col0 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT - - ( + 64 ) * + - 11 + - COUNT( * ) FROM tab0 AS cor0
----
-707

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - - ( + 64 ) * + - 11 + - COUNT ( * ) FROM tab0 AS cor0
----
-707

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2943
SELECT 70 AS col2, CAST( + 66 AS SIGNED ) * - + col2 + + col2 * - + 59 FROM tab2 AS cor0
----
70
-2875
70
-5000
70
-7250

skipif mysql # not compatible
query II rowsort label-2943
SELECT 70 AS col2, CAST ( + 66 AS INTEGER ) * - + col2 + + col2 * - + 59 FROM tab2 AS cor0
----
70
-2875
70
-5000
70
-7250

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT COUNT( + + 44 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT COUNT ( + + 44 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - 86 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - 86 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT - COUNT( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2946
SELECT - COUNT ( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL SUM( DISTINCT 31 ) FROM tab2, tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL SUM ( DISTINCT 31 ) FROM tab2, tab1 cor0
----
31

query II rowsort
SELECT + col2 * + col2 AS col1, 90 AS col1 FROM tab2 AS cor0
----
1600
90
3364
90
529
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT 32 DIV MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT 32 / MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + - 37 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2950
SELECT + - 37 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT - - col2 * - 97 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL + + 19 AS col0 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT ALL + COUNT( * ) + - CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + COUNT ( * ) + - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 29 ) + + 2 col2 FROM tab2
----
31
31
31

query I rowsort
SELECT col0 + - + 35 AS col1 FROM tab2
----
11
29
40

query I rowsort
SELECT DISTINCT - col0 + + 40 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL + MAX( + 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + MAX ( + 25 ) FROM tab0
----
25

query I rowsort
SELECT DISTINCT + 24 * 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1536

query I rowsort
SELECT + 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT MAX( - col2 ) + - + COUNT( * ) AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2960
SELECT MAX ( - col2 ) + - + COUNT ( * ) AS col1 FROM tab0
----
-13

query I rowsort
SELECT 91 + + col0 AS col1 FROM tab1 AS cor0
----
142
176
182

query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT 70, 16 + - - ( ( 61 ) ) AS col0 FROM tab2 cor0
----
70
77
70
77
70
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2965
SELECT * FROM tab1 AS cor0 WHERE 35 / - - col0 * - - ( - 97 ) NOT IN ( CAST( NULL AS DECIMAL ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-2965
SELECT * FROM tab1 AS cor0 WHERE 35 / - - col0 * - - ( - 97 ) NOT IN ( CAST ( NULL AS REAL ), - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2967
SELECT + 27 + + + col1 DIV col1, col1 FROM tab2 WHERE NULL IS NULL
----
28
51
28
67
28
77

skipif mysql # not compatible
query II rowsort label-2967
SELECT + 27 + + + col1 / col1, col1 FROM tab2 WHERE NULL IS NULL
----
28
51
28
67
28
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - MIN( ALL - + ( + + ( - ( col2 ) ) ) ) + - 12 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - MIN ( ALL - + ( + + ( - ( col2 ) ) ) ) + - 12 FROM tab2
----
-35

query I rowsort
SELECT col2 - - 37 + 74 AS col0 FROM tab1
----
170
179
207

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + COUNT( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 17 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT + COUNT ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 17 < NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2972
SELECT ALL - + col0 / + - CAST( NULL AS SIGNED ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT - 10 + - CAST( NULL AS SIGNED ) * COUNT( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT - 10 + - CAST ( NULL AS INTEGER ) * COUNT ( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT MIN( DISTINCT + 74 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT MIN ( DISTINCT + 74 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT DISTINCT + 73 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
9

skipif mysql # not compatible
query II rowsort label-2975
SELECT DISTINCT + 73 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
9

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT CAST( - col1 AS SIGNED ) * + col1 * col1 * - col1 FROM tab2 cor0
----
20151121
35153041
6765201

skipif mysql # not compatible
query I rowsort label-2977
SELECT CAST ( - col1 AS INTEGER ) * + col1 * col1 * - col1 FROM tab2 cor0
----
20151121
35153041
6765201

query II rowsort
SELECT - col0 * - - ( + - 75 ) + + col2, col2 * + 49 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col1 * + col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2980
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2981
SELECT ALL + + col2 DIV + + CAST( col0 AS SIGNED ) + + 83 AS col1 FROM tab1 AS cor0
----
83
83
84

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + + col2 / + + CAST ( col0 AS INTEGER ) + + 83 AS col1 FROM tab1 AS cor0
----
83
83
84

query I rowsort
SELECT ALL col1 + + col2 + - 62 AS col2 FROM tab0
----
-31
38
66

query II rowsort
SELECT + 85 AS col2, col1 AS col0 FROM tab2
----
85
51
85
67
85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT MIN( - + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2984
SELECT MIN ( - + col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT - ( + col1 ) + 16 AS col2 FROM tab0
----
-5
-65
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2987
SELECT DISTINCT + 65 DIV + col1 col1, col0 FROM tab1 cor0
----
1
91
13
85
4
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2987
SELECT DISTINCT + 65 / + col1 col1, col0 FROM tab1 cor0
----
1
91
13
85
4
51

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - - col2 <> + col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 col2 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + - CAST( NULL AS SIGNED ) ) * - col0 BETWEEN NULL AND - + col2
----

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + - CAST ( NULL AS INTEGER ) ) * - col0 BETWEEN NULL AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT 58 + - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2993
SELECT 58 + - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
67

query I rowsort
SELECT + - 22 * + + col1 - col0 - col1 AS col2 FROM tab2 AS cor0
----
-1219
-1616
-1835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2995
SELECT - - MIN( ALL - - col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT - - MIN ( ALL - - col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - 97 * + COUNT( * ) + + - ( - + 96 ) AS col2 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 97 * + COUNT ( * ) + + - ( - + 96 ) AS col2 FROM tab1 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( + 64 ) col2 FROM tab2 AS cor0
----
-13
13
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + + col0 + - ( - col1 ) col0 FROM tab2 AS cor0
----
118
119
74

query I rowsort
SELECT DISTINCT - 59 FROM tab1 WHERE NOT NULL IN ( + + col1, + col1 - - col0 - + col2, + 92 )
----

query I rowsort
SELECT col1 * - col0 + - + col1 FROM tab0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + SUM( ALL + col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3001
SELECT ALL + SUM ( ALL + col0 ) col2 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - 22 * 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * - col2, col0 col2 FROM tab0
----
210
87
3807
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3004
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * 38 + - col2 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-3004
SELECT DISTINCT - - CAST ( NULL AS REAL ) * 38 + - col2 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL ( - 15 ) + - 9 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT + 89 AS col2 FROM tab1
----
89
89
89

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( ( ( 22 ) ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 21 ) col0 FROM tab0
----
-21

query III rowsort
SELECT * FROM tab0 WHERE + 31 - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 37 / 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 31 ) AS col2 FROM tab2
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3012
SELECT ALL + 5 FROM tab1 WHERE NOT col1 + CAST( - col0 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 5 FROM tab1 WHERE NOT col1 + CAST ( - col0 AS REAL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 12 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + SUM( col1 ) FROM tab0 WHERE NOT ( - col1 / - col0 ) = col0 + - col2
----
103

skipif mysql # not compatible
query I rowsort label-3014
SELECT + SUM ( col1 ) FROM tab0 WHERE NOT ( - col1 / - col0 ) = col0 + - col2
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT + col1 AS col2 FROM tab1 WHERE 14 <> col1 * ( - ( - CAST( col0 AS SIGNED ) ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3015
SELECT + col1 AS col2 FROM tab1 WHERE 14 <> col1 * ( - ( - CAST ( col0 AS INTEGER ) ) )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT 34 + COUNT( * ) FROM tab1 WHERE NOT ( col0 * 1 ) <= ( + CAST( NULL AS SIGNED ) - - 80 )
----
34

skipif mysql # not compatible
query I rowsort label-3016
SELECT 34 + COUNT ( * ) FROM tab1 WHERE NOT ( col0 * 1 ) <= ( + CAST ( NULL AS INTEGER ) - - 80 )
----
34

query I rowsort
SELECT + 36 + - col0 AS col2 FROM tab1
----
-15
-49
-55

query I rowsort
SELECT ALL 1 AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE 84 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 92 + 42 AS col0 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL BETWEEN col2 AND col1 - 67
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL BETWEEN col2 AND col1 - 67
----
0

query I rowsort
SELECT - ( col0 ) * 36 AS col0 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT + 26 * CAST( 62 AS SIGNED ) AS col0 FROM tab1
----
1612
1612
1612

skipif mysql # not compatible
query I rowsort label-3023
SELECT + 26 * CAST ( 62 AS INTEGER ) AS col0 FROM tab1
----
1612
1612
1612

query I rowsort
SELECT + ( - col0 ) * - col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col0 * + col1 FROM tab0 WHERE NOT + col0 BETWEEN 94 AND NULL
----
1215
1827

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + 57 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT col0 + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT col0 + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT MAX( - col2 ) + 50 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3033
SELECT MAX ( - col2 ) + 50 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT ( COUNT( * ) ) + - 74 AS col0 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT ( COUNT ( * ) ) + - 74 AS col0 FROM tab0
----
-71

query I rowsort
SELECT 41 + - ( - ( - 89 ) ) * - col1 FROM tab1
----
1287
4224
486

query I rowsort
SELECT - col1 * - col1 + col1 FROM tab2
----
2652
4556
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + + col1 col0 FROM tab2
----
140
156
166

query I rowsort
SELECT 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + MIN( ALL + col1 ) - + 59 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + MIN ( ALL + col1 ) - + 59 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT 39 - 19 AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3041
SELECT + + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT + + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( + 25 * + col0 ) NOT BETWEEN 54 * + 43 + - 67 AND col0 / col0 - col1
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT ALL - col2 * - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT - - MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - - MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT + col1 - col1 < + col2 * col1
----

query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( col2 ) AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 29 + + col1 ) < + 11 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( + CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - 10 * - SUM( ALL col2 ) * ( + 14 + - 92 ) FROM tab2
----
-94380

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 10 * - SUM ( ALL col2 ) * ( + 14 + - 92 ) FROM tab2
----
-94380

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT ( - ( col1 ) / + ( col1 ) ) NOT IN ( + col2 * + 55 ) OR + 40 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - MAX( ALL 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - MAX ( ALL 83 ) FROM tab2 AS cor0
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3058
SELECT DISTINCT CAST( - col2 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 15 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 15 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - 62 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
62

query I rowsort
SELECT + ( + + 38 ) * + + col2 AS col2 FROM tab0
----
1786
3762
380

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT - - 66 DIV - ( 86 ) - - 52 * + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83db751d2ecf26e3c328a824fdf73985

skipif mysql # not compatible
query I rowsort label-3061
SELECT - - 66 / - ( 86 ) - - 52 * + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83db751d2ecf26e3c328a824fdf73985

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT * FROM tab2 WHERE NOT + + col1 + + 52 > + col1 * + col2 + 75 * - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3062
SELECT * FROM tab2 WHERE NOT + + col1 + + 52 > + col1 * + col2 + 75 * - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3063
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT col2 - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3064
SELECT col2 - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT COUNT( 83 ) FROM tab2 WHERE NOT ( NOT col2 IN ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT COUNT ( 83 ) FROM tab2 WHERE NOT ( NOT col2 IN ( col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT MIN( DISTINCT - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-3066
SELECT MIN ( DISTINCT - 53 ) FROM tab2
----
-53

query II rowsort
SELECT DISTINCT 97 AS col0, col0 FROM tab1
----
97
51
97
85
97
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - col1 * + col1 AS col1 FROM tab2 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + - MAX( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3071
SELECT + - MAX ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - ( - - col0 ) + + 53 AS col0 FROM tab0 AS cor0
----
-34
-44
38

query I rowsort
SELECT + col1 + - 21 + + col2 FROM tab2
----
104
53
96

query I rowsort
SELECT ALL + col2 + - + col0 AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query II rowsort label-3075
SELECT col2 + + 74 AS col1, col0 DIV - col0 + - col2 FROM tab2
----
114
-41
132
-59
97
-24

skipif mysql # not compatible
query II rowsort label-3075
SELECT col2 + + 74 AS col1, col0 / - col0 + - col2 FROM tab2
----
114
-41
132
-59
97
-24

query I rowsort
SELECT ALL + col1 + - 9 AS col2 FROM tab0
----
-8
12
72

query I rowsort
SELECT DISTINCT + ( - + 96 ) + + col1 + + - col2 * - col0 AS col2 FROM tab0
----
690
795
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT DISTINCT + 42 + 29 DIV - col1 + col1 - col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + 42 + 29 / - col1 + col1 - col1 FROM tab2
----
42

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( - + 59 * - col0 * + 61 + col2 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT col1 + - 41 + + 12 AS col2 FROM tab0
----
-28
-8
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT DISTINCT + - col2 + + + 35 - 83 + + - col0 + - 32 DIV col2 AS col0 FROM tab1 cor0
----
-192
-195
-207

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + - col2 + + + 35 - 83 + + - col0 + - 32 / col2 AS col0 FROM tab1 cor0
----
-192
-195
-207

query I rowsort
SELECT ALL + 6 - - col1 * - 72 * + - 98 * 28 FROM tab1 AS cor0
----
2765958
9285702
987846

query I rowsort
SELECT ALL - 37 * - - 62 + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2212
-2240
-2273

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - MIN( + + col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT - MIN ( + + col2 ) col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - 68 * - col1 FROM tab1 AS cor0
----
3196
340
952

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) IN ( 97 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 col1 FROM tab1 AS cor0
----
8
8
8

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT + - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( - 53 - 2 )
----

query I rowsort
SELECT DISTINCT - col0 * - ( + col0 ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT ALL + + 52 DIV col1 + + + col0 + - - ( ( 41 ) ) AS col0 FROM tab1 AS cor0
----
133
136
95

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + + 52 / col1 + + + col0 + - - ( ( 41 ) ) AS col0 FROM tab1 AS cor0
----
133
136
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + col2 AND - col1
----
6

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + col2 AND - col1
----
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( col1 / col2 / - 12 + + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 * 35 AS col1 FROM tab1
----
1400
1400
1400

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL IN ( + ( 37 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT DISTINCT col1 DIV col2 * - col1 col2 FROM tab0
----
-42
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3098
SELECT DISTINCT col1 / col2 * - col1 col2 FROM tab0
----
-42
-81
0

query I rowsort
SELECT 48 * - col2 FROM tab0
----
-2256
-4752
-480

query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NULL OR NOT 91 BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * 73 FROM tab0 AS cor0 WHERE 6 BETWEEN + col1 AND + col0 - - col1 * - 66
----
7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL ( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT DISTINCT col0 + - ( - CAST( - col0 AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT col0 + - ( - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT ALL + 36 + 14 - + 77 FROM tab2 WHERE ( NULL ) IN ( + 94 + col2 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + COUNT( * ) * + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT + COUNT ( * ) * + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL + SUM( - 52 ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + SUM ( - 52 ) AS col0 FROM tab1 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 36
----

query I rowsort
SELECT DISTINCT 3 + + col0 FROM tab1 AS cor0 WHERE 79 / ( 48 ) IS NOT NULL
----
54
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT + CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT ( - ( 9 ) < - ( 64 ) + col1 )
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT DISTINCT + CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( - ( 9 ) < - ( 64 ) + col1 )
----
-59
-68
-96

query I rowsort
SELECT - col2 + - + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-203
-227
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT COUNT( * ) + MIN( ALL - + col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT COUNT ( * ) + MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - col1 <= 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL + COUNT( DISTINCT 65 ) AS col0 FROM tab2 WHERE ( 44 - - 23 + + 94 / + col1 ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL + COUNT ( DISTINCT 65 ) AS col0 FROM tab2 WHERE ( 44 - - 23 + + 94 / + col1 ) IN ( - col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + SUM( - + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3117
SELECT + SUM ( - + col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL COUNT( * ) + - 65 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN 77 AND ( - col1 )
----
-62

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) + - 65 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN 77 AND ( - col1 )
----
-62

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT + MAX( - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3120
SELECT + MAX ( - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + COUNT( - col1 ) - - 96 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3121
SELECT + COUNT ( - col1 ) - - 96 FROM tab2 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 26 AS col0 FROM tab2 AS cor0
----
-1040
-1508
-598

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 >= + - 67 * 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3128
SELECT ALL + + 11 DIV - col2 + col2 DIV + col2 AS col0, + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1
141
1
142
1
97

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL + + 11 / - col2 + col2 / + col2 AS col0, + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1
141
1
142
1
97

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN + 57 * + 87 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0, col1 * 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT - + SUM( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 / + col0 + - - 42 <> - + col2 + - 44
----
-66

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - + SUM ( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 / + col0 + - - 42 <> - + col2 + - 44
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT COUNT( * ) * 2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT COUNT ( * ) * 2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL - - MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - - MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT + 71 * + 20 AS col2 FROM tab2 AS cor0
----
1420
1420
1420

query I rowsort
SELECT ( col0 ) * + ( col2 ) FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col2 ) + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL MIN( ALL + - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL MIN ( ALL + - col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT + COUNT( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + COUNT ( + col1 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> + col1 * - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL - - 80 + CAST( + - MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab1 cor0
----
171

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - - 80 + CAST ( + - MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab1 cor0
----
171

onlyif mysql # DIV for integer division: 
query II rowsort label-3144
SELECT DISTINCT + + col0 col2, - col2 - col2 DIV - col0 + + + ( - + col1 ) * + 84 AS col1 FROM tab2 AS cor0
----
46
-4307
64
-6508
75
-5686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3144
SELECT DISTINCT + + col0 col2, - col2 - col2 / - col0 + + + ( - + col1 ) * + 84 AS col1 FROM tab2 AS cor0
----
46
-4307
64
-6508
75
-5686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1, + col1 + 39 col2, - + 80 - + + col1 FROM tab1 AS cor0
----
9 values hashing to 05e3ce5080916fa40fd3a893df0cbf23

query I rowsort
SELECT - + 81 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT + col1 AS col0, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT ALL - 52 AS col0, 59 * 9 FROM tab1
----
-52
531
-52
531
-52
531

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( + + col2, - 22, - + col2, col2 + + 45 )
----

query I rowsort
SELECT 87 - + 94 AS col2 FROM tab2 AS cor0
----
-7
-7
-7

query II rowsort
SELECT ALL col0, - col2 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
15
57105
87
18270
97
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + col2 col1 FROM tab1 AS cor0
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + + MIN( - 88 ) col2 FROM tab2 cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3154
SELECT ALL + + MIN ( - 88 ) col2 FROM tab2 cor0
----
-88

query I rowsort
SELECT + col2 + col0 - - - 65 FROM tab0 AS cor0
----
-3
131
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT 3 * + 44 + - - MAX( DISTINCT + + col2 ) * + SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
21924

skipif mysql # not compatible
query I rowsort label-3156
SELECT 3 * + 44 + - - MAX ( DISTINCT + + col2 ) * + SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
21924

query I rowsort
SELECT DISTINCT + col0 + - 49 FROM tab1 AS cor0
----
2
36
42

query II rowsort
SELECT DISTINCT 88 + - col1 AS col1, ( col2 ) FROM tab0
----
67
10
7
47
87
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT - COUNT( * ) + + ( - ( - 22 ) ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - COUNT ( * ) + + ( - ( - 22 ) ) FROM tab0
----
19

query III rowsort
SELECT * FROM tab0 WHERE col0 <> 19 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 17 - - col1 FROM tab0 AS cor0
----
18
38
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT + col1 * - CAST( - - 26 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-1280
-1667
-1938

skipif mysql # not compatible
query I rowsort label-3164
SELECT + col1 * - CAST ( - - 26 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-1280
-1667
-1938

query I rowsort
SELECT ALL - 2 + + 36 AS col2 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL 70 - - + col0 + + col0 AS col0 FROM tab2 AS cor0
----
162
198
220

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - 84 - + 5 * col2 IN ( col2, - col1 * - col2 * - col1 * col2 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT + - CAST( NULL AS SIGNED ) * + - 95 - + MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT + - CAST ( NULL AS INTEGER ) * + - 95 - + MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col2 AS col1, - 43 FROM tab0
----
-10
-43
-47
-43
-99
-43

query I rowsort
SELECT - 63 AS col2 FROM tab1 cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL + MIN( - col0 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3171
SELECT ALL + MIN ( - col0 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1 )
----
NULL

query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT - 84 AS col1, COUNT( * ) col0 FROM tab0 AS cor0
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3173
SELECT - 84 AS col1, COUNT ( * ) col0 FROM tab0 AS cor0
----
-84
3

query I rowsort
SELECT DISTINCT col1 * + col1 - - - col2 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 7 * + col2 AS col0 FROM tab2
----
161
280
406

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 21 * + - col0 + 74 - 83 ) = col2 * - - 44 * + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - col0 * + + col2 col1 FROM tab1
----
-63648
-65195
-80444

query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 AS col2 FROM tab0
----
1000
103823
970299

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - 47 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT col1 + col1 + + 59 FROM tab1
----
153
69
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3183
SELECT ALL - CAST( NULL AS DECIMAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - CAST ( NULL AS REAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) + - col0 col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT col1 + + 61 + col1 - + - CAST( NULL AS SIGNED ) / - col1 * - - ( - 68 ) * + col2 * - + col2 * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT col1 + + 61 + col1 - + - CAST ( NULL AS INTEGER ) / - col1 * - - ( - 68 ) * + col2 * - + col2 * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - + COUNT( * ) + - 48 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3186
SELECT - + COUNT ( * ) + - 48 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT MIN( ALL col2 ) * - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058

skipif mysql # not compatible
query I rowsort label-3187
SELECT MIN ( ALL col2 ) * - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3188
SELECT - ( MIN( + + col0 ) ) FROM tab2 cor0 WHERE ( col0 ) * 86 * - CAST( - col1 AS DECIMAL ) - 65 + - col1 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-3188
SELECT - ( MIN ( + + col0 ) ) FROM tab2 cor0 WHERE ( col0 ) * 86 * - CAST ( - col1 AS REAL ) - 65 + - col1 IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + + COUNT( DISTINCT - - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + COUNT ( DISTINCT - - col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 1 * + col2 + - + col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + 74 + + + col2 FROM tab1
----
133
142
170

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 99 + + col2 AS col1 FROM tab1
----
158
167
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT ALL col2 * + + col0 + + CAST( - + col1 AS SIGNED ) AS col2, 60 FROM tab0
----
624
60
849
60
9602
60

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL col2 * + + col0 + + CAST ( - + col1 AS INTEGER ) AS col2, 60 FROM tab0
----
624
60
849
60
9602
60

query I rowsort
SELECT DISTINCT + 80 + col0 AS col2 FROM tab0
----
167
177
95

query I rowsort
SELECT ALL - 47 - - col0 AS col1 FROM tab2
----
-1
17
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) - 11 * + COUNT( ALL + - col1 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3198
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) - 11 * + COUNT ( ALL + - col1 ) FROM tab1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT - - col1 * - ( + col2 ) * + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT - - col1 * - ( + col2 ) * + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + + col0 DIV - ( - 52 ) FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3202
SELECT + + col0 / - ( - 52 ) FROM tab1 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT + + col2 * + col0 * + CAST( NULL AS SIGNED ) * + - col0 + 89 + col0 * col0 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - 48 ) - - 9 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT + + col2 * + col0 * + CAST ( NULL AS INTEGER ) * + - col0 + 89 + col0 * col0 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - 48 ) - - 9 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3204
SELECT col2 DIV col2, CAST( NULL AS SIGNED ) * - 50 * 80 col1 FROM tab0 AS cor0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3204
SELECT col2 / col2, CAST ( NULL AS INTEGER ) * - 50 * 80 col1 FROM tab0 AS cor0
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT DISTINCT 11 * 53 * + + col0 * - 94 AS col0 FROM tab2 AS cor0
----
-2520892
-3507328
-4110150

query I rowsort
SELECT ALL - 1 * - 61 + - 66 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL ( - + 4 ) AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query II rowsort
SELECT DISTINCT - col1 AS col1, + col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + col1 + col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 90 + + + col1 FROM tab0
----
111
171
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3212
SELECT - CAST( NULL AS DECIMAL ) * + col1 / - ( - - col2 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT - CAST ( NULL AS REAL ) * + col1 / - ( - - col2 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3213
SELECT col1 AS col1, - CAST( NULL AS SIGNED ) * - + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3213
SELECT col1 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT COUNT( * ) * + 91 * - + ( 50 ) + + SUM( 22 ) AS col1 FROM tab0
----
-13584

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT COUNT ( * ) * + 91 * - + ( 50 ) + + SUM ( 22 ) AS col1 FROM tab0
----
-13584

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col2 * + + col1 + - col2 BETWEEN NULL AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - - MIN( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT - - MIN ( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 71 + COUNT( * ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 71 + COUNT ( * ) AS col1 FROM tab1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT DISTINCT ( + col1 ) DIV + ( col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT ( + col1 ) / + ( col2 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 17 - - ( + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT - 43 + col0 DIV col2 * + col2 AS col1 FROM tab0 AS cor0
----
-43
-43
37

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 43 + col0 / col2 * + col2 AS col1 FROM tab0 AS cor0
----
-43
-43
37

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - 23 * + COUNT( * ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 23 * + COUNT ( * ) AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3224
SELECT DISTINCT 10 + + COUNT( * ) DIV ( + 42 ), MAX( DISTINCT - col1 ) * - - 35 * 42 * + COUNT( * ) AS col2 FROM tab0
----
10
-4410

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT 10 + + COUNT ( * ) / ( + 42 ), MAX ( DISTINCT - col1 ) * - - 35 * 42 * + COUNT ( * ) AS col2 FROM tab0
----
10
-4410

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3226
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + col0 AS col1, 85 FROM tab0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-3226
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + col0 AS col1, 85 FROM tab0
----
NULL
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + + 88 + + + col0 * col1 AS col1 FROM tab2 AS cor0
----
2434
5016
5113

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + + COUNT( * ) + - 79 + - COUNT( * ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3230
SELECT + + COUNT ( * ) + - 79 + - COUNT ( * ) FROM tab2 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * col1 col1 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + COUNT( * ) + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + COUNT ( * ) + 44 FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( 31 ) NOT IN ( - 49, col1, + - col2 + + - 71 )
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 31 ) NOT IN ( - 49, col1, + - col2 + + - 71 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - SUM( - 11 ) + COUNT( * ) col1 FROM tab2, tab1 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-3235
SELECT - SUM ( - 11 ) + COUNT ( * ) col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL - col0, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL + - ( ( COUNT( + 51 ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + - ( ( COUNT ( + 51 ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3238
SELECT + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3241
SELECT + col1 col1, - ( - col0 ) + - 5 DIV + - 46 * + 85 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3241
SELECT + col1 col1, - ( - col0 ) + - 5 / + - 46 * + 85 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col2 col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT - col1 * + - col1 * + 39 + col2 DIV - 43 FROM tab2 AS cor0
----
101439
175070
231231

skipif mysql # not compatible
query I rowsort label-3243
SELECT - col1 * + - col1 * + 39 + col2 / - 43 FROM tab2 AS cor0
----
101439
175070
231231

query I rowsort
SELECT col0 + + + 96 AS col2 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT + col0 + - 85 DIV + + ( + col1 ) FROM tab1 AS cor0
----
45
68
90

skipif mysql # not compatible
query I rowsort label-3245
SELECT + col0 + - 85 / + + ( + col1 ) FROM tab1 AS cor0
----
45
68
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - ( - col2 ) col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + - col0 + - - col2 + col2 FROM tab0 AS cor0
----
-67
101
79

query II rowsort
SELECT ( col1 ), 7 AS col1 FROM tab1
----
14
7
47
7
5
7

query II rowsort
SELECT + ( col0 ) * + + 61 AS col1, col2 FROM tab1 WHERE NOT + - col1 * - col0 < col2
----
3111
96
5185
59
5551
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 30 * 36, + 53 col0 FROM tab1
----
1080
53

query I rowsort
SELECT col0 * + 2 AS col0 FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT CAST( - - col0 AS SIGNED ) * - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( - - col0 AS INTEGER ) * - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 col1, col1 + col0 * col0 AS col2 FROM tab2 cor0
----
102
2167
134
5692
154
4173

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col0 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 7 + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3258
SELECT + 10 * + col0 AS col2 FROM tab2 WHERE - + 28 NOT IN ( + 67, col2, col1, + + CAST( NULL AS DECIMAL ) * col2 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 10 * + col0 AS col2 FROM tab2 WHERE - + 28 NOT IN ( + 67, col2, col1, + + CAST ( NULL AS REAL ) * col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT MIN( DISTINCT + 94 ) - MAX( col2 ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT MIN ( DISTINCT + 94 ) - MAX ( col2 ) AS col1 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - MAX( ALL + 55 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3260
SELECT - MAX ( ALL + 55 ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT - col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT 95 * + col0 * col1 + + + col1 AS col0 FROM tab0 AS cor0
----
115506
173586
9216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3263
SELECT + - CAST( + col2 AS SIGNED ) * col0 DIV col1 AS col1, - col1 FROM tab2 AS cor0
----
-20
-51
-33
-77
-64
-67

skipif mysql # not compatible
query II rowsort label-3263
SELECT + - CAST ( + col2 AS INTEGER ) * col0 / col1 AS col1, - col1 FROM tab2 AS cor0
----
-20
-51
-33
-77
-64
-67

query II rowsort
SELECT + 83 AS col0, - col1 * - 52 AS col2 FROM tab2 AS cor0
----
83
2652
83
3484
83
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - MIN( DISTINCT ( + 44 ) ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - MIN ( DISTINCT ( + 44 ) ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT 62 * + 52 AS col2 FROM tab0 AS cor0
----
3224

query I rowsort
SELECT DISTINCT ( - col0 ) * - 72 + + + 25 * + 62 FROM tab2 cor0
----
4862
6158
6950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN 0 AND + - CAST( col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN 0 AND + - CAST ( col1 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT ( - - ( + col0 ) ) DIV - - 18 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3270
SELECT ( - - ( + col0 ) ) / - - 18 FROM tab1
----
2
4
5

query I rowsort
SELECT + ( ( col1 ) ) FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + 34 ) IS NOT NULL )
----

query I rowsort
SELECT col1 * 52 AS col0 FROM tab0
----
1092
4212
52

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 6 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 63 + + + col0 = 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 57 * + + col0 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT + col0 DIV - - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3277
SELECT + col0 / - - col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3278
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1
----
-3

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT SUM( + + col0 ) - - 39 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
238

skipif mysql # not compatible
query I rowsort label-3280
SELECT SUM ( + + col0 ) - - 39 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
238

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - ( + + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3282
SELECT - ( + + COUNT ( * ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 99 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * - col0 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT COUNT( * ) + 60 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT COUNT ( * ) + 60 AS col2 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT + col2 + col1 + - CAST( + col1 AS SIGNED ) * - col0 AS col0 FROM tab2
----
2420
5045
5150

skipif mysql # not compatible
query I rowsort label-3286
SELECT + col2 + col1 + - CAST ( + col1 AS INTEGER ) * - col0 AS col0 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT 91 + - col2 * - - col1 AS col1 FROM tab0
----
-119
-3716
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL - COUNT( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - COUNT ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT DISTINCT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 * - + CAST( NULL AS SIGNED ) + + + 87 * + ( 9 ) IN ( + - 93, 15 )
----

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 * - + CAST ( NULL AS INTEGER ) + + + 87 * + ( 9 ) IN ( + - 93, 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, + col1, - col1, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT DISTINCT + + CAST( - 81 AS SIGNED ) * + + 17 + + col1 FROM tab2 AS cor0
----
-1300
-1310
-1326

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + + CAST ( - 81 AS INTEGER ) * + + 17 + + col1 FROM tab2 AS cor0
----
-1300
-1310
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + - col0 - - - 55 AS col1 FROM tab2 AS cor0
----
-101
-119
-130

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + col2 > + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL + SUM( + - col2 ) * - 29 AS col1 FROM tab1 AS cor0
----
6467

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + SUM ( + - col2 ) * - 29 AS col1 FROM tab1 AS cor0
----
6467

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3297
SELECT ALL - col0 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - col0 * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT COUNT( * ) * + 73 * + COUNT( * ) AS col1 FROM tab2 cor0
----
657

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT COUNT ( * ) * + 73 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
657

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3300
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST( + 67 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3300
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST ( + 67 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL MAX( ALL + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL MAX ( ALL + col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT - + col1 + + 79 AS col0 FROM tab1 WHERE NOT - 80 IS NULL
----
32
65
74

query I rowsort
SELECT ALL col0 * ( col1 ) AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 88 ) BETWEEN NULL AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL - CAST( 60 AS SIGNED ) * MIN( + 15 ) FROM tab2 AS cor0
----
-900

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - CAST ( 60 AS INTEGER ) * MIN ( + 15 ) FROM tab2 AS cor0
----
-900

query I rowsort
SELECT ALL - col1 + - - col1 FROM tab1 cor0 WHERE ( NOT ( NOT 30 IS NULL ) )
----

query I rowsort
SELECT ALL col2 * - 26 AS col1 FROM tab2 AS cor0 WHERE NULL >= 54
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - + 55 BETWEEN NULL AND + col1 + + col1
----

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT 63 + - col0 AS col2 FROM tab1 AS cor0
----
-22
-28
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + MAX( + 72 ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + MAX ( + 72 ) AS col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE - 20 IN ( col2, col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT - - MAX( DISTINCT 58 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - - MAX ( DISTINCT 58 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab0 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 8 - - col0 FROM tab2
----
38
56
67

query I rowsort
SELECT DISTINCT 46 * + 38 + - + 16 FROM tab2
----
1732

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + 12 AND NULL
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT DISTINCT - CAST( + ( - COUNT( * ) ) AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT DISTINCT - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 35 col0 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT DISTINCT ( ( + 71 ) ) FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) < col2 - - col1 + - - col1
----
71

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT ( ( + 71 ) ) FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) < col2 - - col1 + - - col1
----
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col0 * + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3324
SELECT DISTINCT - col1, CAST( 44 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-14
30
-47
-3
-5
39

skipif mysql # not compatible
query II rowsort label-3324
SELECT DISTINCT - col1, CAST ( 44 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-14
30
-47
-3
-5
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3325
SELECT COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3325
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3326
SELECT + 34 AS col1, ( CAST( - col2 AS SIGNED ) ) + 99 FROM tab2 cor0
----
34
41
34
59
34
76

skipif mysql # not compatible
query II rowsort label-3326
SELECT + 34 AS col1, ( CAST ( - col2 AS INTEGER ) ) + 99 FROM tab2 cor0
----
34
41
34
59
34
76

query I rowsort
SELECT ALL + + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE + col2 <> - col2 * - col0 * - col0 + + 50
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT - 17 FROM tab0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT + col1 DIV - 8 AS col2 FROM tab2
----
-6
-8
-9

skipif mysql # not compatible
query I rowsort label-3330
SELECT + col1 / - 8 AS col2 FROM tab2
----
-6
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT MIN( - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3331
SELECT MIN ( - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT - MIN( - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - MIN ( - col1 ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 75 * col0 * + + 88 AS col1, - 67 col2 FROM tab1
----
-336600
-67
-561000
-67
-600600
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - COUNT( * ) * - - ( - + 66 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) * - - ( - + 66 ) FROM tab0
----
198

query I rowsort
SELECT DISTINCT - - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT + MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0 AS col1, col0 FROM tab2 cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT - CAST( + 76 AS SIGNED ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 97 + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 + - col1 col2, - ( 5 ) AS col2 FROM tab0
----
-29
-5
31
-5
51
-5

query I rowsort
SELECT ALL 62 * - 55 - col1 FROM tab0
----
-3411
-3431
-3491

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT - 44 DIV + + col1 - + - ( - - col2 ) + 13 - - + col2 * col1 FROM tab2
----
1209
3133
3957

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - 44 / + + col1 - + - ( - - col2 ) + 13 - - + col2 * col1 FROM tab2
----
1209
3133
3957

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT + + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3346
SELECT + + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT DISTINCT + col2 * - col0 - + col2 * - 39 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + col2 * - col0 - + col2 * - 39 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col0 * + col1, - col0 AS col0 FROM tab1 AS cor0
----
-425
-85
-4277
-91
-714
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT COUNT( * ) * - 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-3349
SELECT COUNT ( * ) * - 83 FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + SUM( ALL - - 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + SUM ( ALL - - 80 ) FROM tab0
----
240

query I rowsort
SELECT ALL + + col2 * + col2 FROM tab1 WHERE - - 23 BETWEEN - + col0 AND col0
----
3481
4624
9216

query I rowsort
SELECT + ( 53 ) + - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT MAX( col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT MAX ( col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL 9 * 40 FROM tab2 AS cor0
----
360
360
360

query I rowsort
SELECT ALL ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT - - col1 AS col2, 34 FROM tab1 AS cor0
----
14
34
47
34
5
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3357
SELECT - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + - COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3358
SELECT + - COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3360
SELECT ALL CAST( - col0 AS SIGNED ) - + col2 AS col1, - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
-196
-100
-62
-128
-97
-31

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL CAST ( - col0 AS INTEGER ) - + col2 AS col1, - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
-196
-100
-62
-128
-97
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT + 87 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 87 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST ( + + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - COUNT( * ) * + 11 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3362
SELECT - COUNT ( * ) * + 11 FROM tab1
----
-33

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL 31 * 19 FROM tab0 AS cor0
----
589
589
589

query II rowsort
SELECT DISTINCT + col1, + 27 + - - col1 FROM tab2 AS cor0
----
51
78
67
94
77
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3366
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + SUM( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3367
SELECT + SUM ( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - 54 AS col1 FROM tab1 cor0
----
-54
-54
-54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 / - + 87 + + col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 * + col0, ( - 25 ) AS col0 FROM tab1
----
4896
-25
5015
-25
6188
-25

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL > + ( - col0 ) * + col2 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + - col0 + 30 col2 FROM tab2 AS cor0
----
-4064
-5666
-6645

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - + COUNT( ALL col0 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3373
SELECT - + COUNT ( ALL col0 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL 89 * - col2 + col0 - + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-362
-8713
2393

query II rowsort
SELECT + col2 * - col2, 28 * + + col0 AS col2 FROM tab0 AS cor0
----
-100
2436
-2209
420
-9801
2716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT ALL + + col1 + + 46 - col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + + col1 + + 46 - col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + - COUNT( - ( + 6 ) ) + + 56 AS col1 FROM tab0 WHERE - + 92 BETWEEN + col1 AND NULL
----
56

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + - COUNT ( - ( + 6 ) ) + + 56 AS col1 FROM tab0 WHERE - + 92 BETWEEN + col1 AND NULL
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3378
SELECT CAST( NULL AS DECIMAL ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3378
SELECT CAST ( NULL AS REAL ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + col2 - - col1 + - + col2 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE 19 * + + col0 + - 99 * - - 50 < NULL
----

query I rowsort
SELECT ALL + ( + - col1 ) - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + - COUNT( * ) - - - 72 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3382
SELECT + - COUNT ( * ) - - - 72 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + - 37 * col2 + col1 FROM tab0 AS cor0
----
-1658
-349
-3662

query II rowsort
SELECT ALL - + 59, + col0 AS col0 FROM tab2 AS cor0
----
-59
46
-59
64
-59
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - col2 IS NOT NULL
----

query II rowsort
SELECT + ( + - 88 ), 7 AS col2 FROM tab1
----
-88
7
-88
7
-88
7

query I rowsort
SELECT + + ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + MAX( - - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + MAX ( - - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 27 NOT BETWEEN + col0 * 47 + + - col2 + + col0 * + + col2 AND + col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 86 FROM tab2 cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col0 + + col0
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT ALL + 10 col2, COUNT( DISTINCT col2 ) * - COUNT( * ) * - 38 FROM tab0
----
10
342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3396
SELECT ALL + 10 col2, COUNT ( DISTINCT col2 ) * - COUNT ( * ) * - 38 FROM tab0
----
10
342

query I rowsort
SELECT col0 * - col0 * + - col2 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3398
SELECT CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT DISTINCT COUNT( * ), - 6 + - COUNT( * ) AS col2 FROM tab0
----
3
-9

skipif mysql # not compatible
query II rowsort label-3399
SELECT DISTINCT COUNT ( * ), - 6 + - COUNT ( * ) AS col2 FROM tab0
----
3
-9

query I rowsort
SELECT col2 * - 59 AS col1 FROM tab0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT - ( 42 ) FROM tab0
----
-42

query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT - SUM( - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - SUM ( - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - 54 + - + col1 FROM tab2 AS cor0
----
-105
-121
-131

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT IN ( + 17 - - col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 8 + + 65 FROM tab1
----
73

query I rowsort
SELECT DISTINCT - col2 * col0 + + 10 FROM tab0
----
-695
-860
-9593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3408
SELECT - - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3408
SELECT - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT - 79 - col2 AS col0 FROM tab1 AS cor0
----
-138
-147
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT 82 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT 82 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT - - 17 - - 63 FROM tab1 AS cor0 WHERE NULL > 20
----

query II rowsort
SELECT ALL + - col2 * - col0, + col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT ( - col1 ) + + 43 FROM tab2
----
-24
-34
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT ( - col0 ) + + - col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT - 99 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col2 * 53 + + col2 AS col0 FROM tab2
----
1242
2160
3132

query II rowsort
SELECT + col0 * col1 + col2 AS col1, col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - col1 + - col2 + + + col1 + + - col1 + col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT MAX( ALL + col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3420
SELECT MAX ( ALL + col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + + ( + - 78 ) * COUNT( * ) + 23 AS col0 FROM tab2 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + + ( + - 78 ) * COUNT ( * ) + 23 AS col0 FROM tab2 AS cor0
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - COUNT( * ) * ( - 61 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT - COUNT ( * ) * ( - 61 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
549

query I rowsort
SELECT DISTINCT ( 97 ) FROM tab1
----
97

query I rowsort
SELECT ALL - + 58 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - MAX( - 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - MAX ( - 52 ) FROM tab2 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col2 FROM tab1 cor0
----
14
51
47
91
5
85

query II rowsort
SELECT + col2 AS col0, + 82 FROM tab0 AS cor0
----
10
82
47
82
99
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3428
SELECT + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3429
SELECT + ( ( CAST( NULL AS DECIMAL ) ) ) AS col2, col1 + - col0 FROM tab1 AS cor0
----
NULL
-37
NULL
-44
NULL
-80

skipif mysql # not compatible
query II rowsort label-3429
SELECT + ( ( CAST ( NULL AS REAL ) ) ) AS col2, col1 + - col0 FROM tab1 AS cor0
----
NULL
-37
NULL
-44
NULL
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - + COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - + COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT ALL + col1 DIV 24 + - 95 FROM tab1 AS cor0
----
-94
-95
-95

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + col1 / 24 + - 95 FROM tab1 AS cor0
----
-94
-95
-95

query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT col1 DIV col2 * - col1 FROM tab2
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-3436
SELECT col1 / col2 * - col1 FROM tab2
----
-102
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 BETWEEN NULL AND - - col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3439
SELECT DISTINCT COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL 65 * COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 65 * COUNT ( * ) FROM tab1 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT - 26 DIV + 17 + - + 64 * SUM( - col2 ) FROM tab1 AS cor0
----
14271

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 26 / + 17 + - + 64 * SUM ( - col2 ) FROM tab1 AS cor0
----
14271

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT MAX( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3442
SELECT MAX ( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL MIN ( + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * + col1 NOT IN ( - col0 * + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3445
SELECT ALL + 12 * + - col2 * - col0, - ( col1 ) * - + 1 + - - 37 DIV col2 AS col0 FROM tab2 AS cor0
----
12696
52
30720
77
52200
67

skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL + 12 * + - col2 * - col0, - ( col1 ) * - + 1 + - - 37 / col2 AS col0 FROM tab2 AS cor0
----
12696
52
30720
77
52200
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3446
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL CAST( - col2 AS SIGNED ) * - 29 FROM tab2 AS cor0
----
1160
1682
667

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL CAST ( - col2 AS INTEGER ) * - 29 FROM tab2 AS cor0
----
1160
1682
667

query I rowsort
SELECT DISTINCT - ( - + 68 ) * - 42 + - - col0 AS col0 FROM tab1 AS cor0
----
-2765
-2771
-2805

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - 47 NOT BETWEEN NULL AND + 60 * + col2 + + 34 - 48 * - - ( - col0 ) * - col2
----

query I rowsort
SELECT ALL - ( - - 13 ) + + 71 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT + col0 + - + col0 + - col2 * col2 + - + 31 + - col1 AS col1 FROM tab2
----
-1708
-3462
-611

query I rowsort
SELECT col1 - col1 + 13 AS col0 FROM tab0
----
13
13
13

query II rowsort
SELECT DISTINCT col2 AS col2, - 87 FROM tab1
----
59
-87
68
-87
96
-87

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT - ( - - col0 ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + 70 * + col2 FROM tab2
----
1610
2800
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3457
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col2 AS col2, col2 * - col1 FROM tab2 AS cor0
----
-23
-1173
-40
-3080
-58
-3886

query I rowsort
SELECT ALL 87 * + col1 FROM tab2 AS cor0
----
4437
5829
6699

query I rowsort
SELECT DISTINCT + 32 * - - 10 * - ( + 46 ) * - + col2 AS col2 FROM tab1 AS cor0
----
1000960
1413120
868480

query II rowsort
SELECT ALL + col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT 21 * - 1 AS col1, MAX( + col1 ) AS col2 FROM tab0
----
-21
81

skipif mysql # not compatible
query II rowsort label-3462
SELECT 21 * - 1 AS col1, MAX ( + col1 ) AS col2 FROM tab0
----
-21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + MAX( DISTINCT - col2 ) * - - 66 * + COUNT( * ) FROM tab1
----
-11682

skipif mysql # not compatible
query I rowsort label-3463
SELECT + MAX ( DISTINCT - col2 ) * - - 66 * + COUNT ( * ) FROM tab1
----
-11682

query I rowsort
SELECT ALL + col1 * + - 44 * - - col2 FROM tab2
----
-135520
-170984
-51612

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT MIN( DISTINCT col0 ) * - 20 FROM tab0
----
-300

skipif mysql # not compatible
query I rowsort label-3465
SELECT MIN ( DISTINCT col0 ) * - 20 FROM tab0
----
-300

query I rowsort
SELECT ALL + - 41 * + - col0 + col1 AS col1 FROM tab0 AS cor0
----
3588
3978
696

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ( - - SUM( - 29 ) ) AS col2 FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3467
SELECT ( - - SUM ( - 29 ) ) AS col2 FROM tab2 cor0
----
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3469
SELECT - col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - - ( - col0 ) NOT BETWEEN - + 38 - - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3469
SELECT - col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - - ( - col0 ) NOT BETWEEN - + 38 - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT - MAX( DISTINCT + col0 ) * 57 FROM tab1 AS cor0 WHERE + col2 * + col0 * + + 44 / + + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - MAX ( DISTINCT + col0 ) * 57 FROM tab1 AS cor0 WHERE + col2 * + col0 * + + 44 / + + col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT - 59 + + + 70 * col0 FROM tab2 AS cor0
----
3161
4421
5191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab2 WHERE ( col0 * - col1 * + - 76 ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 WHERE ( col0 * - col1 * + - 76 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 * col2 + + - col0 FROM tab2
----
-1664
-3439
-575

query II rowsort
SELECT - col2 AS col0, + 38 * - - 49 FROM tab2
----
-23
1862
-40
1862
-58
1862

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL col0 + - 14 FROM tab1
----
37
71
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3477
SELECT ALL col2 * 88 * + 32 AS col2, 40 DIV - - 26 + 89 AS col2 FROM tab0
----
132352
90
278784
90
28160
90

skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL col2 * 88 * + 32 AS col2, 40 / - - 26 + 89 AS col2 FROM tab0
----
132352
90
278784
90
28160
90

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col2 + + col2 FROM tab0
----
-2162
-90
-9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT ALL col0 DIV - - 57 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL col0 / - - 57 AS col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - + SUM( 15 ) * 61 FROM tab0 AS cor0
----
-2745

skipif mysql # not compatible
query I rowsort label-3482
SELECT - + SUM ( 15 ) * 61 FROM tab0 AS cor0
----
-2745

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col0 <> - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 77 * 11
----

query I rowsort
SELECT ALL - col2 * 2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT CAST( col1 AS SIGNED ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3487
SELECT CAST ( col1 AS INTEGER ) col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - col0 < ( NULL )
----

query I rowsort
SELECT col1 FROM tab2 WHERE col2 BETWEEN - col2 AND col0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT col1 DIV + ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT col1 / + ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 * 51 FROM tab2 WHERE NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3493
SELECT col2 * + ( ( + CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT col2 * + ( ( + CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT + col2 DIV + ( - 45 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + col2 / + ( - 45 ) FROM tab2
----
-1
0

query I rowsort
SELECT 52 * col1 AS col1 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT MAX( DISTINCT 39 ) * - ( 89 ) AS col0 FROM tab0
----
-3471

skipif mysql # not compatible
query I rowsort label-3496
SELECT MAX ( DISTINCT 39 ) * - ( 89 ) AS col0 FROM tab0
----
-3471

query III rowsort
SELECT * FROM tab1 WHERE ( - 80 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT ALL SUM( DISTINCT - 7 ) DIV - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL SUM ( DISTINCT - 7 ) / - 99 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 18 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 3 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT + AVG ( col1 ) * - AVG ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3502
SELECT + AVG ( col1 ) * - AVG ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + 13 * - col1 AS col0 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT 39 * col1 FROM tab2 WHERE NOT 80 >= col0 * 79
----
1989
2613
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT - 5 DIV + 70 + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3505
SELECT - 5 / + 70 + col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT MIN( + 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3506
SELECT MIN ( + 49 ) FROM tab1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT ALL SUM( - 75 ) DIV - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 DIV 52 ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL SUM ( - 75 ) / - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 / 52 ) IS NULL
----
75

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL + col0 + 39 AS col1 FROM tab0 cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( 43 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT SUM( 55 ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3511
SELECT SUM ( 55 ) FROM tab0 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + col0 ) NOT IN ( - col2 + 11 * col2 )
----

query I rowsort
SELECT ALL - 90 * + col0 FROM tab2 cor0
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT + COUNT( * ) + COUNT( col2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3516
SELECT + COUNT ( * ) + COUNT ( col2 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 18 * + col0 ) >= - col0 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3519
SELECT 31 * + CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT 31 * + CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT + - SUM( 60 ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3520
SELECT + - SUM ( 60 ) FROM tab0 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT + COUNT( * ) * - 33 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col1 + + col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT + COUNT ( * ) * - 33 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col1 + + col0 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL ( COUNT( * ) ) + - 85 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL ( COUNT ( * ) ) + - 85 FROM tab1
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 1 ) col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT 97 + COUNT( * ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT 97 + COUNT ( * ) AS col2 FROM tab0
----
100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 - - 22 AS col1 FROM tab2 AS cor0
----
-1
-18
-36

query I rowsort
SELECT ALL - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - - 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT col0 FROM tab2 WHERE NULL BETWEEN NULL AND - + 94
----

query I rowsort
SELECT ALL + ( - - 97 ) + - col1 FROM tab2
----
20
30
46

query I rowsort
SELECT DISTINCT col1 - + + col1 + - - 56 + + 65 FROM tab0 AS cor0
----
121

query II rowsort
SELECT - 60 AS col1, - col0 + - col1 * + 16 FROM tab0 AS cor0
----
-60
-113
-60
-1311
-60
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + COUNT( - CAST( + 30 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3533
SELECT + COUNT ( - CAST ( + 30 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 33 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 col1 FROM tab1 AS cor0
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 27 * + col2 + col0 > col1 + 2 * - 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3538
SELECT DISTINCT 23 AS col2, - CAST( NULL AS SIGNED ) * ( SUM( DISTINCT 37 ) ) FROM tab1 cor0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT 23 AS col2, - CAST ( NULL AS INTEGER ) * ( SUM ( DISTINCT 37 ) ) FROM tab1 cor0
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3539
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 + - 70 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 72 ) * + col0 + + - 35 * col1 AS col0 FROM tab1
----
-4162
-6295
-8197

query I rowsort
SELECT ALL - col1 * - col2 + + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL 23 AS col0 FROM tab2
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ( MAX( ALL + 3 ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT ( MAX ( ALL + 3 ) ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + 82 NOT IN ( - + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + 82 NOT IN ( - + CAST ( + col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND 75 / col0
----

query I rowsort
SELECT + 67 * - 17 AS col2 FROM tab0
----
-1139
-1139
-1139

query I rowsort
SELECT + 0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT CAST( - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3551
SELECT CAST ( - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - ( - col1 ) * - 97 FROM tab2 WHERE NOT ( 14 ) IS NULL
----
-4947
-6499
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab2 cor0
----
-6
-6
-6

query II rowsort
SELECT ALL + col1 * 55 AS col1, - col2 FROM tab1 AS cor0
----
2585
-68
275
-59
770
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 / col2 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL ( - + COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT ALL ( - + COUNT ( * ) ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + ( + - CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + ( + - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - + col1 + + - col2 / + 2 * - 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3561
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3561
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT DISTINCT + 30 * MAX( DISTINCT - 44 ) * - 3 + + CAST( - COUNT( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
3957

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + 30 * MAX ( DISTINCT - 44 ) * - 3 + + CAST ( - COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
3957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + 73 - - - 80 col2, + col1 * - col1 * col2 FROM tab2 AS cor0
----
-53
-59823
-71
-237160
-82
-260362

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE - - ( + col2 ) >= ( + - col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT + 93 + + ( - + 15 ) AS col0 FROM tab1
----
78

query I rowsort
SELECT DISTINCT + 92 * + - col1 + - col2 + + col0 + 30 FROM tab0
----
-1825
-64
-7454

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT - 49 + - - COUNT( * ) + + 24 col0 FROM tab1
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT DISTINCT - 49 + - - COUNT ( * ) + + 24 col0 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT col1 + - ( + col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT - 67 * - CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3570
SELECT - 67 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col2 = NULL
----

query I rowsort
SELECT - col1 + + + col2 FROM tab1
----
21
54
82

query I rowsort
SELECT col0 + - col2 + - 28 * col0 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-2359
-2718
-452

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + + 40 * + + 46 + - - 27 / col0 / col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 54 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( 41 + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col0 - + 72 ) IS NULL
----

query I rowsort
SELECT - - col0 * - 37 AS col0 FROM tab0 WHERE - col2 / - 92 + + col1 IS NOT NULL
----
-3219
-3589
-555

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 + - 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 25 * COUNT( ALL - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 25 * COUNT ( ALL - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - col2 * + - 36 + - col1 AS col1 FROM tab2 AS cor0
----
1363
2021
777

query I rowsort
SELECT DISTINCT - + col1 * + ( + col0 ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - 60 * + col0 AS col2 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT col2 * - 22 - - 94 AS col2 FROM tab0
----
-126
-2084
-940

query I rowsort
SELECT 20 + - ( + 50 - + col2 * - col2 ) AS col1 FROM tab1 WHERE 67 NOT BETWEEN - + ( - 44 ) + - col1 AND + - col0 * col1 + - col2
----
-3511
-4654
-9246

query I rowsort
SELECT ALL + col2 * - + 34 - + + 24 AS col0 FROM tab0
----
-1622
-3390
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL MIN( col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL MIN ( col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 * col2
----

query I rowsort
SELECT - - ( - 14 ) * + - col2 FROM tab2 AS cor0
----
322
560
812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - MAX( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - MAX ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + - 39 AS col1 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3597
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT - col1 * + - ( - - col1 ) FROM tab0
----
1
441
6561

query II rowsort
SELECT 25 AS col1, - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
25
-15
25
-87
25
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3600
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3600
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 NOT BETWEEN 50 * col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT IN ( - col1, - col2 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL ( - COUNT ( * ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( 25, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT - COUNT( * ) col0, 54 FROM tab1
----
-3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT - COUNT ( * ) col0, 54 FROM tab1
----
-3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - - col1 * - col0 / col2 * - 51 * + - col0 * 54 + - col0 - col2 * col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - - col1 * - col0 / col2 * - 51 * + - col0 * 54 + - col0 - col2 * col2 ) <> NULL
----
0

query II rowsort
SELECT ALL - col1 AS col2, + 78 FROM tab2 AS cor0
----
-51
78
-67
78
-77
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT + MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - 88 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - 88 > NULL )
----
NULL

query I rowsort
SELECT + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - ( + MAX( ALL - + col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - ( + MAX ( ALL - + col2 ) ) AS col0 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + ( + 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT col0 * col1 + col2 + - 28 * + col1 FROM tab0 AS cor0
----
-1006
1249
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT - COUNT( * ) + + 35 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3614
SELECT - COUNT ( * ) + + 35 / + - COUNT ( * ) FROM tab1 AS cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 22 * + col0 <> + - col1
----

query I rowsort
SELECT DISTINCT + + 33 FROM tab1 cor0
----
33

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( - col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT * FROM tab2 WHERE + + col1 + col0 NOT IN ( + - col2 * + + col2 - CAST( - + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3620
SELECT * FROM tab2 WHERE + + col1 + col0 NOT IN ( + - col2 * + + col2 - CAST ( - + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL + col0 + CAST( NULL AS SIGNED ) - + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) - + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3623
SELECT ALL + 82 AS col1 FROM tab0 WHERE - CAST( + - col2 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 82 AS col1 FROM tab0 WHERE - CAST ( + - col2 AS REAL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 75 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 12 )
----

query I rowsort
SELECT - col0 * + + col0 * + 61 - + 24 AS col1 FROM tab2
----
-129100
-249880
-343149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL + ( + col1 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + ( + col1 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 65 + + - col0 + 15 AS col2 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT ALL - col1 - col2 + + col1 + - + ( - - 27 ) * + 66 FROM tab0 cor0
----
-1792
-1829
-1881

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3630
SELECT * FROM tab2 AS cor0 WHERE ( 99 + - 89 ) <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3630
SELECT * FROM tab2 AS cor0 WHERE ( 99 + - 89 ) <> ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 10 * + 22 FROM tab0
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3632
SELECT + SUM( CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT + SUM ( CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3633
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3633
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab2
----
NULL
3

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + + ( col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query II rowsort
SELECT - 7 AS col0, col2 FROM tab1
----
-7
59
-7
68
-7
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3637
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * - col0 col1 FROM tab1 AS cor0
----
-3468
-5780
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT - 28 * 44 * + COUNT( * ) FROM tab1 cor0
----
-3696

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - 28 * 44 * + COUNT ( * ) FROM tab1 cor0
----
-3696

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( 88 AS SIGNED ) IN ( col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( 88 AS INTEGER ) IN ( col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 20 / + col0 + - 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3645
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3645
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( - - ( + col0 ) * col2 - ( ( - + 46 ) ) + - col0 + 20 + - - col0 / col2 ) <> col0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3647
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN 88 * + + 41 + + col1 AND + CAST( + - 57 AS SIGNED ) * + col1 + - + CAST( - + col0 AS DECIMAL ) + - + 44 + + col2 * - col2 + - col0
----

skipif mysql # not compatible
query III rowsort label-3647
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN 88 * + + 41 + + col1 AND + CAST ( + - 57 AS INTEGER ) * + col1 + - + CAST ( - + col0 AS REAL ) + - + 44 + + col2 * - col2 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3648
SELECT ALL + ( - COUNT( * ) ), 89 DIV 3 col0 FROM tab1
----
-3
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3648
SELECT ALL + ( - COUNT ( * ) ), 89 / 3 col0 FROM tab1
----
-3
29

query I rowsort
SELECT - + col1 AS col0 FROM tab2 WHERE NOT ( NOT NULL = - col2 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3651
SELECT - CAST( NULL AS DECIMAL ) / - MAX( - ( 22 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - CAST ( NULL AS REAL ) / - MAX ( - ( 22 ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 NOT IN ( - 38 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 41 ) * - 65 col0 FROM tab2
----
-2665

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col0 - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3657
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + 73 * COUNT( col0 ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-3658
SELECT + 73 * COUNT ( col0 ) FROM tab2
----
219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + ( - 11 ) AS col1 FROM tab1
----
1001
561
935

query I rowsort
SELECT + 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + - COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT + + CAST( NULL AS SIGNED ) + + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + + CAST ( NULL AS INTEGER ) + + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col0 * + - 53 + - col0
----

query I rowsort
SELECT ALL + col1 * - col1 * + 2 FROM tab2 AS cor0
----
-11858
-5202
-8978

query II rowsort
SELECT DISTINCT col0 * col2, + col1 FROM tab1
----
4896
14
5015
5
6188
47

query I rowsort
SELECT 56 + - col2 - ( 73 ) + + col0 FROM tab1
----
-62
6
9

query I rowsort
SELECT ALL col0 + + 2 AS col2 FROM tab0
----
17
89
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT DISTINCT 46 * - CAST( NULL AS SIGNED ) * - 70 - + - SUM( ALL + - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT 46 * - CAST ( NULL AS INTEGER ) * - 70 - + - SUM ( ALL + - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 71 + + + 72 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 + - col1 * col2 + + col1 FROM tab2 WHERE NULL <> + ( - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 - + - 25 col0 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT DISTINCT - - ( ( + + col0 ) ) - - + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + col0 * + ( 22 ) AS col2 FROM tab2 cor0
----
1012
1408
1650

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT col1 * + - 95 * col1 * col1 + - col1 FROM tab0 AS cor0
----
-50486976
-879816
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL 20 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL 20 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 25, - col0 + + + col2 AS col0 FROM tab0 AS cor0
----
25
-77
25
2
25
32

query I rowsort
SELECT col2 * + 1 + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT 67 * + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, - col1 )
----

query II rowsort
SELECT + col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL + ( 67 ) FROM tab2 WHERE NOT ( col1 * + + col0 ) IS NULL
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - COUNT( ALL col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - COUNT ( ALL col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT 18 + - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT 18 + - COUNT ( * ) FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + MAX( DISTINCT + 30 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + MAX ( DISTINCT + 30 ) AS col2 FROM tab1
----
30

query I rowsort
SELECT DISTINCT - 38 * col1 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT DISTINCT + col1 * - 11 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL COUNT( * ) + - COUNT( DISTINCT - col2 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3691
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT - col2 ) col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 + col0 ) <> col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + 52 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 52 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3694
SELECT AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col0 + 95 AS col1 FROM tab2
----
141
159
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + 45 col0, - col1 FROM tab2
----
103
-67
68
-51
85
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT col2 DIV 3 + + + col0 + + col1 AS col0 FROM tab0
----
111
111
131

skipif mysql # not compatible
query I rowsort label-3698
SELECT col2 / 3 + + + col0 + + col1 AS col0 FROM tab0
----
111
111
131

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col1
----

query II rowsort
SELECT - - 56 + 2 AS col2, + col2 + 84 * + col2 FROM tab0 AS cor0
----
58
3995
58
8415
58
850

query I rowsort
SELECT - + col2 * - - 61 FROM tab0 AS cor0
----
-2867
-6039
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT 11 - COUNT( - 26 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT 11 - COUNT ( - 26 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 - + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 48 * + + col2 + - col2 AND + - 17 * col2 * + col0 * + 91 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( * ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT - - ( COUNT( * ) ) * + 20 FROM tab0 AS cor0 WHERE + col1 - + 86 * + CAST( - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT - - ( COUNT ( * ) ) * + 20 FROM tab0 AS cor0 WHERE + col1 - + 86 * + CAST ( - col2 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL + ( + MAX( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + ( + MAX ( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - col1 + - - col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT col2 * - 92 - - + 83 DIV 69 FROM tab0
----
-4323
-9107
-919

skipif mysql # not compatible
query I rowsort label-3709
SELECT col2 * - 92 - - + 83 / 69 FROM tab0
----
-4323
-9107
-919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + + col0 col1 FROM tab0
----
-23
49
59

query I rowsort
SELECT + + col2 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT 94 - col1 AS col2 FROM tab2
----
17
27
43

query I rowsort
SELECT DISTINCT col0 + - ( + col1 ) + - col0 - + col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3714
SELECT - 94 DIV - col0 - + col1 + + CAST( - + col1 AS SIGNED ) + + col2 * - + 53 FROM tab0
----
-2647
-5249
-571

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 94 / - col0 - + col1 + + CAST ( - + col1 AS INTEGER ) + + col2 * - + 53 FROM tab0
----
-2647
-5249
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ( + MAX( + col1 ) ) - - - 28 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3715
SELECT ( + MAX ( + col1 ) ) - - - 28 FROM tab1
----
19

query I rowsort
SELECT + AVG ( ALL + ( + 8 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 51 <> + 3 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT + COUNT( * ) * - 46 AS col2 FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + COUNT ( * ) * - 46 AS col2 FROM tab2 cor0
----
-138

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col1 + + 68 + + ( 32 ) * - col2 <= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 96 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - col2 IN ( - + col2, + col0 + + col0, ( + - col2 ) )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - - COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3723
SELECT - - COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT ALL - CAST( + col1 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - CAST ( + col1 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 col1 FROM tab0 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL COUNT( * ) * 17 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL COUNT ( * ) * 17 FROM tab0
----
51

query I rowsort
SELECT ALL + 77 + 57 + + col2 AS col2 FROM tab0
----
144
181
233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) * + 97 + + - col0 + + col0 col1 FROM tab2
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT + 28 * - - col0 AS col1 FROM tab2
----
1288
1792
2100

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + 88 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT + col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT COUNT( * ) + + 57 DIV - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-3733
SELECT COUNT ( * ) + + 57 / - COUNT ( * ) FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT + 95 + col1 + + col0 DIV - col2 FROM tab0
----
108
176
96

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 95 + col1 + + col0 / - col2 FROM tab0
----
108
176
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 + + - col1 col2 FROM tab0
----
1134
1806
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + 10 + - ( SUM( ALL col0 ) ) * - COUNT( * ) * 57 FROM tab0 AS cor0
----
34039

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 10 + - ( SUM ( ALL col0 ) ) * - COUNT ( * ) * 57 FROM tab0 AS cor0
----
34039

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 86 ) + + col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 + - + 1 FROM tab0
----
14
86
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 9 * - col0 col2 FROM tab1
----
-363
-706
-751

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3741
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3741
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST ( - + col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - col1 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT + MAX( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3746
SELECT DISTINCT - CAST( NULL AS SIGNED ), + ( + 32 ) AS col0 FROM tab1 AS cor0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-3746
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + ( + 32 ) AS col0 FROM tab1 AS cor0
----
NULL
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT 86 DIV - 24 + - 92 + - - MAX( + col2 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT 86 / - 24 + - 92 + - - MAX ( + col2 ) FROM tab0
----
4

query I rowsort
SELECT col1 + + ( + + 21 ) - col1 * + - col2 FROM tab1
----
1379
321
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL ( - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL ( - COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - 24 FROM tab1 cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 / col2 / - 69 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 77 AS col0 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab1 cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT ALL - col0 DIV + 99 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - col0 / + 99 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - MAX( ALL - - ( + col2 ) ) AS col2 FROM tab1 WHERE NOT col0 / - col0 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - MAX ( ALL - - ( + col2 ) ) AS col2 FROM tab1 WHERE NOT col0 / - col0 IS NULL
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL + CAST( - 35 AS SIGNED ) FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + CAST ( - 35 AS INTEGER ) FROM tab0
----
-35
-35
-35

query I rowsort
SELECT 82 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + - 43 + - col1 FROM tab0 cor0 WHERE NOT col1 + ( + - col0 ) * col0 * + + col1 * + - col2 <= + 53
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT + col0 * + CAST( NULL AS SIGNED ) - + col2 + 65 / 24 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT + col0 * + CAST ( NULL AS INTEGER ) - + col2 + 65 / 24 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 4 AS col2, - 79 FROM tab2 AS cor0
----
-4
-79

query I rowsort
SELECT + + 52 + - 58 FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT 22 DIV + - 92 + - + 87 FROM tab2 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-3763
SELECT 22 / + - 92 + - + 87 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT ALL - 19 AS col0, + 43 + + 64 FROM tab1 AS cor0
----
-19
107
-19
107
-19
107

query I rowsort
SELECT ALL 39 + - 22 AS col0 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL - 43 + + col0 FROM tab0
----
-28
44
54

query I rowsort
SELECT - col2 FROM tab0 WHERE - col0 + + - 23 + - col2 * - 38 IS NULL
----

query I rowsort
SELECT - col1 * + col0 * - + col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT ALL + + 77 + - 74 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab1 WHERE - + col1 - + + col0 > NULL
----

query I rowsort
SELECT ALL + col0 - - 44 FROM tab2 AS cor0
----
108
119
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 78 IS NULL
----

query I rowsort
SELECT 94 * + col1 AS col0 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT 74 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) * 4 FROM tab0 AS cor0
----
15228
396
840

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL - - col2 DIV + 78 - - col0 FROM tab0 cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - - col2 / + 78 - - col0 FROM tab0 cor0
----
15
87
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT COUNT( * ) AS col2, 69 FROM tab0
----
3
69

skipif mysql # not compatible
query II rowsort label-3780
SELECT COUNT ( * ) AS col2, 69 FROM tab0
----
3
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT MAX( - - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3782
SELECT MAX ( - - col1 ) AS col1 FROM tab2
----
77

query II rowsort
SELECT DISTINCT col2, 89 AS col0 FROM tab0
----
10
89
47
89
99
89

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT - MAX( DISTINCT + col0 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-3785
SELECT - MAX ( DISTINCT + col0 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT DISTINCT ( + - col2 ) DIV - col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3787
SELECT DISTINCT ( + - col2 ) / - col1 col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3788
SELECT ALL + 50 AS col2, - col0 DIV + col2 FROM tab1
----
50
-1
50
-1
50
0

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + 50 AS col2, - col0 / + col2 FROM tab1
----
50
-1
50
-1
50
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT - COUNT( * ) AS col1, 59 FROM tab0
----
-3
59

skipif mysql # not compatible
query II rowsort label-3789
SELECT - COUNT ( * ) AS col1, 59 FROM tab0
----
-3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3790
SELECT MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ( + 92 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - 68 AS col2 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT + + 49 * - ( - ( COUNT( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
441

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + + 49 * - ( - ( COUNT ( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
441

query I rowsort
SELECT - 37 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 21 FROM tab0 AS cor0 WHERE NOT col2 = + + ( - - col2 ) / + col0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - MAX( DISTINCT - - col0 ) - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 85 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - MAX ( DISTINCT - - col0 ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 85 + 50
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col0, 18 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + + col0, - 57 * + + col1 * - 45 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 IS NULL
----

query I rowsort
SELECT ( + - ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3800
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - + col0 NOT BETWEEN + + 78 / + col0 * + + col2 + + col0 / CAST( NULL AS SIGNED ) AND - CAST( NULL AS SIGNED ) * - ( col1 ) - + col1
----

skipif mysql # not compatible
query III rowsort label-3800
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - + col0 NOT BETWEEN + + 78 / + col0 * + + col2 + + col0 / CAST ( NULL AS INTEGER ) AND - CAST ( NULL AS INTEGER ) * - ( col1 ) - + col1
----

query II rowsort
SELECT DISTINCT col1, + ( - col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT - ( - - 75 ) * + COUNT( * ) * 73 + COUNT( ALL - col0 ) AS col2 FROM tab0
----
-16422

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - ( - - 75 ) * + COUNT ( * ) * 73 + COUNT ( ALL - col0 ) AS col2 FROM tab0
----
-16422

query II rowsort
SELECT col2 + col0 * 26, + col1 + + col1 AS col1 FROM tab2
----
1219
102
1704
154
2008
134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3804
SELECT ALL + 82 DIV + + 31 + - - 10 col2, CAST( + col2 AS SIGNED ) FROM tab0
----
12
10
12
47
12
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3804
SELECT ALL + 82 / + + 31 + - - 10 col2, CAST ( + col2 AS INTEGER ) FROM tab0
----
12
10
12
47
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT 88 + - ( - COUNT( * ) ) - + 80 AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 88 + - ( - COUNT ( * ) ) - + 80 AS col2 FROM tab2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT 15 DIV - col2 + + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3806
SELECT 15 / - col2 + + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT - CAST( COUNT( * ) AS SIGNED ) + 11 col2 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + 11 col2 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - 3 + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT - 3 + COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + 45 + - 74 col1 FROM tab0
----
10
10
10

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL - COUNT( * ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT ALL - COUNT ( * ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - - 85 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT DISTINCT col0 + + ( + + 89 ) * - 97 AS col0 FROM tab2 AS cor0
----
-8558
-8569
-8587

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL + 62 + - + SUM( - col0 ) FROM tab1 AS cor0
----
289

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + 62 + - + SUM ( - col0 ) FROM tab1 AS cor0
----
289

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 12 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 40 - - col0 AS col1 FROM tab1
----
125
131
91

query I rowsort
SELECT DISTINCT + 20 - - col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT + - col0 + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT + 21 * - + col1 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT ALL - 92 * - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1288
-4324
-460

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - 92 * - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT 29 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT 29 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT + col1 * + 37 + - 46 FROM tab1 cor0
----
139
1693
472

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 54 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT 54 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT - 3 DIV + 5 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - 3 / + 5 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + COUNT( * ) * - MAX( + col1 ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( * ) * - MAX ( + col1 ) AS col2 FROM tab0
----
-243

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 + + - 79 * + col1 AS col2 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + COUNT( ALL - 81 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( ALL - 81 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT ( + ( - SUM( ALL - ( + col0 ) ) ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT ( + ( - SUM ( ALL - ( + col0 ) ) ) ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - + COUNT( * ) + 6 - - MAX( ALL + + 93 ) AS col0 FROM tab0 WHERE NOT + + 99 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - + COUNT ( * ) + 6 - - MAX ( ALL + + 93 ) AS col0 FROM tab0 WHERE NOT + + 99 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT + COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 13 * 92 AS col2 FROM tab2
----
1196

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - ( SUM( CAST( col0 AS SIGNED ) ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - ( SUM ( CAST ( col0 AS INTEGER ) ) ) FROM tab2
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - 19 + - col2, + ( - col0 ) + - ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT COUNT( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL > + 35 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT COUNT ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL > + 35 * + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3837
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * + - col0 + col1 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 77 NOT BETWEEN 8 AND NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + + 80 * - - col1 FROM tab2 AS cor0
----
-246400
-310880
-93840

query I rowsort
SELECT - ( + col1 ) + - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - + ( col2 ) + + 76 + - col0 + ( - + col1 ) + - col2 * + ( - ( + 29 ) ) AS col0 FROM tab0 AS cor0
----
1296
248
2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3844
SELECT DISTINCT - 48 + + + MIN( DISTINCT + ( + + col0 ) ) col2, CAST( - ( MIN( DISTINCT 71 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-33
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3844
SELECT DISTINCT - 48 + + + MIN ( DISTINCT + ( + + col0 ) ) col2, CAST ( - ( MIN ( DISTINCT 71 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-33
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ( + 66 ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IN ( col2 )
----
66

skipif mysql # not compatible
query I rowsort label-3845
SELECT ( + 66 ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IN ( col2 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3846
SELECT + MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT + ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3849
SELECT ALL col2 + - col2 AS col2, CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL col2 + - col2 AS col2, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL COUNT( * ) + + + 37 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL COUNT ( * ) + + + 37 AS col2 FROM tab0
----
40

query I rowsort
SELECT ALL col2 - + 85 + - + col1 + - 85 AS col0 FROM tab1
----
-116
-149
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT MIN( DISTINCT col2 ) - + ( - + COUNT( * ) ) + 34 AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT MIN ( DISTINCT col2 ) - + ( - + COUNT ( * ) ) + 34 AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 49 - MAX( + col1 ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3853
SELECT 49 - MAX ( + col1 ) FROM tab2 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT + + 8 * - - COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + + 8 * - - COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
24

query III rowsort
SELECT * FROM tab1 WHERE - 2 IS NULL
----

query I rowsort
SELECT + ( - 31 ) AS col0 FROM tab2
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT + COUNT( * ) AS col1, + COUNT( * ) * + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
234

skipif mysql # not compatible
query II rowsort label-3858
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) * + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
234

query II rowsort
SELECT - col1 AS col0, - 4 FROM tab1
----
-14
-4
-47
-4
-5
-4

query II rowsort
SELECT + col0, col2 + - 72 AS col1 FROM tab1 AS cor0
----
51
24
85
-13
91
-4

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * + + 85 col1 FROM tab1 AS cor0
----
7990
7990
7990

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL - - 13, - COUNT( * ) col1 FROM tab0 cor0
----
13
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3863
SELECT ALL - - 13, - COUNT ( * ) col1 FROM tab0 cor0
----
13
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT - + MIN( ALL + 83 ) * - 51 + 82 AS col2 FROM tab0 AS cor0
----
4315

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - + MIN ( ALL + 83 ) * - 51 + 82 AS col2 FROM tab0 AS cor0
----
4315

query I rowsort
SELECT - col2 * + col0 * + 71 + col2 - + + 97 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-356833
-359584
-444001

query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT col0 * - - 12 AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
1020
1092
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab1
----
-73
-73
-73

query II rowsort
SELECT col1 * + 94, + col1 FROM tab1
----
1316
14
4418
47
470
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT col2 DIV + + col1 col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3870
SELECT col2 / + + col1 col2 FROM tab1
----
1
11
6

query I rowsort
SELECT DISTINCT col1 * + 40 FROM tab0
----
3240
40
840

query II rowsort
SELECT col2 * col2, col2 AS col1 FROM tab1
----
3481
59
4624
68
9216
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT - 36 * - COUNT( * ) AS col1, COUNT( + col0 ) + COUNT( * ) * + 23 FROM tab0
----
108
72

skipif mysql # not compatible
query II rowsort label-3873
SELECT - 36 * - COUNT ( * ) AS col1, COUNT ( + col0 ) + COUNT ( * ) * + 23 FROM tab0
----
108
72

query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL + + 42 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-25
-35
-9

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + + 42 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-25
-35
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT + COUNT( * ) * - - ( CAST( NULL AS SIGNED ) ) + - 42 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + COUNT ( * ) * - - ( CAST ( NULL AS INTEGER ) ) + - 42 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3877
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + + col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT ALL + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 9 AS col2 FROM tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT col2 * + 5 FROM tab0 AS cor0 WHERE - col2 * + ( 78 ) + - - CAST( - CAST( - 62 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3881
SELECT col2 * + 5 FROM tab0 AS cor0 WHERE - col2 * + ( 78 ) + - - CAST ( - CAST ( - 62 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3882
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3882
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - col2 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL - + SUM( + - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - + SUM ( + - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT - col2 * CAST( - 93 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
5428
6256
8832

skipif mysql # not compatible
query I rowsort label-3886
SELECT - col2 * CAST ( - 93 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT ALL - - col2 + 80 AS col0 FROM tab0 AS cor0
----
127
179
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT + - col1 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3888
SELECT + - col1 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 82 + + COUNT( * ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3889
SELECT 82 + + COUNT ( * ) AS col0 FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + ( col0 ) col0 FROM tab1
----
141
175
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 + + col0 col0 FROM tab2
----
1664
3439
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 30 col2 FROM tab0
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT COUNT( * ) + 20 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT COUNT ( * ) + 20 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + - 9 col0 FROM tab1
----
22
22
22

query I rowsort
SELECT col2 + - + col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 col0, 63 FROM tab1
----
-57
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + col2, col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col0 IN ( - - 65, - col1, + 35 * - col1 * + + 25, + col2, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - - 43 FROM tab2 cor0
----
43

query II rowsort
SELECT ALL + col1 AS col1, 1 FROM tab1 AS cor0
----
14
1
47
1
5
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 26 * + 91 FROM tab0 AS cor0
----
-2366
-2366
-2366

query I rowsort
SELECT - - col1 * + + col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col0 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col0 + + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - ( + 76 ) FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - MIN( - + 63 ) * + 67 FROM tab1 AS cor0
----
4221

skipif mysql # not compatible
query I rowsort label-3912
SELECT - MIN ( - + 63 ) * + 67 FROM tab1 AS cor0
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3913
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT + col0 * - + 12 * + col0 * - col0 + - col2 DIV + - ( 5 ) col2 FROM tab2 AS cor0
----
1168036
3145736
5062511

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3914
SELECT + col0 * - + 12 * + col0 * - col0 + - col2 / + - ( 5 ) col2 FROM tab2 AS cor0
----
1168036
3145736
5062511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col2 + + ( - col1 ) FROM tab0
----
-10
-11
-47
-34
-99
98

query II rowsort
SELECT 99 AS col2, 67 FROM tab2
----
99
67
99
67
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL MAX ( + + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( ALL + - col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT ALL + COUNT ( ALL + - col2 ) col2 FROM tab2
----
3

query II rowsort
SELECT - - 27 AS col1, - col1 - + ( - - col1 ) * 43 * col2 AS col1 FROM tab0 AS cor0
----
27
-163782
27
-4258
27
-9051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 96 col2 FROM tab0 AS cor0
----
-4512
-9504
-960

query II rowsort
SELECT - col1 AS col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT - col0 + - - col0 - - col0 * + 38 - - + col1 * + + 36 FROM tab1 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + MIN( DISTINCT + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-3923
SELECT + MIN ( DISTINCT + col2 ) FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab1 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3925
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV - 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / - 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3926
SELECT DISTINCT 73 / CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3926
SELECT DISTINCT 73 / CAST ( NULL AS REAL ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col0 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 1 * 32 * - col2 AS col2 FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT - 61 * - - col0 * - col1 FROM tab1 AS cor0
----
25925
260897
43554

query I rowsort
SELECT DISTINCT - 9 + col1 FROM tab1 AS cor0
----
-4
38
5

query I rowsort
SELECT + 77 * + col2 + - - 85 * 46 FROM tab2 AS cor0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT DISTINCT - - 22 * - - 90 * + + col1 AS col2 FROM tab1 cor0
----
27720
93060
9900

query II rowsort
SELECT - 1, + col0 FROM tab2 WHERE col2 <= + + ( - + 11 ) * - col1 * + - col1
----

query I rowsort
SELECT ALL col0 - 20 FROM tab1
----
31
65
71

query I rowsort
SELECT + 58 - col1 FROM tab1
----
11
44
53

query I rowsort
SELECT ALL - col0 + - 81 FROM tab1
----
-132
-166
-172

query I rowsort
SELECT ALL col0 - - 98 + - col0 - + + 4 * + col2 AS col2 FROM tab0
----
-298
-90
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT - MIN( - col2 ) + 50 FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - MIN ( - col2 ) + 50 FROM tab0
----
149

query I rowsort
SELECT + ( col0 ) * + col2 + + - col1 + - - col2 AS col2 FROM tab2 AS cor0
----
1030
2523
4341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col2 + - col2 col1 FROM tab0 AS cor0
----
-13
-197
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + - - col2 + - col2 AND + 52
----

query I rowsort
SELECT col0 * + - 77 FROM tab1
----
-3927
-6545
-7007

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0, + 13, - + 99 + + col1 * - - 12, + + ( + col1 ) )
----

query II rowsort
SELECT DISTINCT + 79 AS col0, 54 AS col0 FROM tab2
----
79
54

query II rowsort
SELECT + - col1 AS col2, col0 + + 8 FROM tab1 AS cor0
----
-14
59
-47
99
-5
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + - ( - MIN( DISTINCT 95 ) ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3948
SELECT + - ( - MIN ( DISTINCT 95 ) ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 AS cor0 WHERE - 85 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col0, - col2 * + 5 FROM tab1 AS cor0
----
-14
-480
-47
-340
-5
-295

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab2 cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT ALL col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT DISTINCT - + COUNT( * ), - ( COUNT( * ) ) FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - + COUNT ( * ), - ( COUNT ( * ) ) FROM tab1 cor0
----
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 27 AND NULL
----

query II rowsort
SELECT ALL - col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT + col2 AS col1 FROM tab1 WHERE NOT CAST( 78 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3956
SELECT + col2 AS col1 FROM tab1 WHERE NOT CAST ( 78 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT col2 DIV + ( + 84 ) + ( - col2 ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3957
SELECT DISTINCT col2 / + ( + 84 ) + ( - col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT COUNT( * ) + + 26 AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT COUNT ( * ) + + 26 AS col1 FROM tab1
----
29

query II rowsort
SELECT ALL + - col1, + col0 FROM tab1 WHERE + - col0 + + + 31 IS NOT NULL
----
-14
51
-47
91
-5
85

query I rowsort
SELECT col2 * - 54 + - col2 FROM tab1
----
-3245
-3740
-5280

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
15
87
97

query I rowsort
SELECT - col2 + 96 AS col2 FROM tab2 AS cor0
----
38
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - SUM( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - SUM ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL - - COUNT( * ) + - - MIN( DISTINCT 7 ) AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - - COUNT ( * ) + - - MIN ( DISTINCT 7 ) AS col2 FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3965
SELECT col1 AS col1, 45 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3965
SELECT col1 AS col1, 45 + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - 33 * - COUNT( col2 ) - - + 80 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - 33 * - COUNT ( col2 ) - - + 80 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
176

query I rowsort
SELECT ALL - 99 * + col1 * + col0 * 24 * col2 - 13 AS col1 FROM tab0 AS cor0
----
-135681493
-22816741
-43409533

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND - + ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT - - col2 + + ( + 60 ) + - + CAST( NULL AS SIGNED ) + - + col0 * - - col0 / + 13 * 72 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT - - col2 + + ( + 60 ) + - + CAST ( NULL AS INTEGER ) + - + col0 * - - col0 / + 13 * 72 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 2 + + + col2 - + - col2 AS col1 FROM tab2 AS cor0
----
114
44
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + ( + + 96 ) * + col2 FROM tab2
----
2208
3840
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT CAST( NULL AS SIGNED ) + - 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT CAST ( NULL AS INTEGER ) + - 42 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 61 + + + 31 AS col2 FROM tab1
----
3630
4179
5887

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT SUM( DISTINCT + ( + 64 ) ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3976
SELECT SUM ( DISTINCT + ( + 64 ) ) AS col2 FROM tab2
----
64

query I rowsort
SELECT 90 * 9 * 14 FROM tab2
----
11340
11340
11340

query I rowsort
SELECT DISTINCT - 40 * col0 + - col1 AS col2 FROM tab2
----
-1891
-2637
-3067

query I rowsort
SELECT ALL - + ( 93 ) AS col1 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( ( - CAST( - - col2 AS SIGNED ) ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( ( - CAST ( - - col2 AS INTEGER ) ) AS REAL ) IS NULL
----

query II rowsort
SELECT DISTINCT - - col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT + 49 AS col2, col0 * col1 AS col1 FROM tab1 cor0
----
49
425
49
4277
49
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
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-3983
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT + col1, ( col0 ) AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3988
SELECT MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + SUM( ALL - 73 ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + SUM ( ALL - 73 ) FROM tab2 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ( - + ( - + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3991
SELECT ( - + ( - + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT 57 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
57
57
57

query I rowsort
SELECT ALL - ( + col2 ) + 88 AS col1 FROM tab2
----
30
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - - COUNT( * ) * - + 90 FROM tab0 AS cor0 WHERE ( + 62 BETWEEN + - 65 AND - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT - - COUNT ( * ) * - + 90 FROM tab0 AS cor0 WHERE ( + 62 BETWEEN + - 65 AND - 15 )
----
0

query I rowsort
SELECT + 72 * 90 FROM tab0 AS cor0
----
6480
6480
6480

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 / - col1 + + 13 IN ( - - col1 + + - col1, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + col1 * + - col1 + + col0 - + - col0 FROM tab1 AS cor0
----
-2027
-94
145

query I rowsort
SELECT ALL + + 54 * + col0 FROM tab2 AS cor0
----
2484
3456
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 95 + + - 10 + + 42
----

query I rowsort
SELECT + - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + col1 * + + col1 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col1 AND 93 + col1
----

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab2 WHERE 35 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - ( - - 26 ) AS col0 FROM tab2
----
-26
-26
-26

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 40 * + col2 + - + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 30 + + col2 FROM tab0
----
129
40
77

query III rowsort
SELECT * FROM tab1 WHERE ( 36 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT - col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + 77 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + 77 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col0 - 68 * 82 AS col0 FROM tab2 WHERE - ( col2 ) + - 79 * 28 IS NOT NULL
----
-5622
-5640
-5651

query I rowsort
SELECT - ( + 44 ) AS col0 FROM tab2
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col2 + - ( 12 ) AS col0 FROM tab1
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - SUM( 47 ) AS col1 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-4016
SELECT - SUM ( 47 ) AS col1 FROM tab0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4017
SELECT ALL * FROM tab2 WHERE NULL <> ( 31 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4017
SELECT ALL * FROM tab2 WHERE NULL <> ( 31 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 97 ) + + 99 FROM tab1
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - ( - COUNT( DISTINCT + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4019
SELECT - ( - COUNT ( DISTINCT + col0 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - ( col1 ) * 45 + col1 AS col2 FROM tab0
----
-3564
-44
-924

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( CAST( - 43 AS SIGNED ) ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( CAST ( - 43 AS INTEGER ) ) <= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col0 ) + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT 6 + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4026
SELECT 6 + + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT col1 + 86 AS col1 FROM tab0
----
107
167
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT MIN( + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4028
SELECT MIN ( + 91 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT ALL - COUNT( * ) DIV 84 + + 18 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - COUNT ( * ) / 84 + + 18 FROM tab2
----
18

query III rowsort
SELECT * FROM tab2 WHERE + 58 NOT IN ( - 1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( 89 * col2 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 90 col1 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT 17 * + 73 AS col0 FROM tab0
----
1241
1241
1241

query I rowsort
SELECT DISTINCT col2 * 26 AS col1 FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL ( 26 ) FROM tab1
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 13 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - 91 + col2 AS col1 FROM tab2
----
-33
-51
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - MAX( col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4041
SELECT - MAX ( col2 ) FROM tab0
----
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab1 AS cor0 WHERE col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL + 86 * + COUNT( * ) FROM tab1 cor0
----
258

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + 86 * + COUNT ( * ) FROM tab1 cor0
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 58 col0 FROM tab2 AS cor0
----
104
122
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT MAX( DISTINCT col1 ) - 33 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT MAX ( DISTINCT col1 ) - 33 FROM tab1 cor0
----
14

query I rowsort
SELECT DISTINCT ( - 40 ) * 10 AS col2 FROM tab0 AS cor0
----
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT CAST( 9 AS SIGNED ) FROM tab1 AS cor0 WHERE - col0 <= 3
----
9

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT CAST ( 9 AS INTEGER ) FROM tab1 AS cor0 WHERE - col0 <= 3
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - + 48 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4050
SELECT - + 48 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT 39 + col1 * col2 AS col1 FROM tab0 AS cor0
----
138
249
3846

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + - COUNT( DISTINCT ( - col2 ) ) * + 96 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4053
SELECT + - COUNT ( DISTINCT ( - col2 ) ) * + 96 FROM tab2 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + + 8 DIV - col1 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT + + 8 / - col1 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + ( - + 7 ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT COUNT( ALL - 94 ) * MAX( ALL col1 + col1 * 25 ) FROM tab0
----
6318

skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( ALL - 94 ) * MAX ( ALL col1 + col1 * 25 ) FROM tab0
----
6318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL - CAST( - col1 AS SIGNED ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4057
SELECT ALL - CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT ALL col0 * - + 91 AS col0 FROM tab1
----
-4641
-7735
-8281

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 72 * ( - col2 ) FROM tab2 AS cor0
----
-1656
-2880
-4176

query I rowsort
SELECT ALL ( - 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + col0 IN ( + 52 )
----
-51
-85
-91

query I rowsort
SELECT ALL + - ( - col2 ) * 91 FROM tab1 AS cor0
----
5369
6188
8736

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 97 AND NULL
----

query I rowsort
SELECT - ( + 64 ) - 71 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * + 21 IS NULL
----
-135
-135
-135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4068
SELECT ALL - CAST( NULL AS DECIMAL ) + - - 62 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - CAST ( NULL AS REAL ) + - - 62 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN ( - col2 ) AND - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT DISTINCT - - col1 DIV + 49 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - - col1 / + 49 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + 2 * + 79 IN ( - col2 * - 72 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + - MAX( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + - MAX ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1 AS cor0 WHERE ( - col0 ) < + col2 / - 83 + 27
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - - MAX( - 64 ) col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4078
SELECT - - MAX ( - 64 ) col0 FROM tab0 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE - + col0 >= ( - ( - 74 ) )
----

query I rowsort
SELECT ALL 13 + + 10 AS col2 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT + 40 + + 1 FROM tab2
----
41

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE col0 / + 30 - + ( + col2 ) IS NULL
----

query I rowsort
SELECT 19 * + col1 AS col2 FROM tab2
----
1273
1463
969

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT - col1 DIV col0 * + col0 FROM tab2
----
-46
-64
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - col1 / col0 * + col0 FROM tab2
----
-46
-64
0

query I rowsort
SELECT ALL + - ( + - col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 56 - + - 72 * ( col1 ) - - col0 AS col0 FROM tab2 AS cor0
----
3662
4843
5552

query I rowsort
SELECT - col1 + + 76 AS col0 FROM tab1 cor0
----
29
62
71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT col0 + + ( - 31 ) DIV col2 * col2 col2 FROM tab0 AS cor0
----
15
57
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT col0 + + ( - 31 ) / col2 * col2 col2 FROM tab0 AS cor0
----
15
57
97

query I rowsort
SELECT ALL - col1 + ( col1 ) - - 90 AS col0 FROM tab1
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT ALL 35 * - + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 35 * - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 59 - - col0 AS col2 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT + col1 * 40 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT DISTINCT ( + + MIN( col1 ) ), + 46 AS col1 FROM tab1 AS cor0
----
5
46

skipif mysql # not compatible
query II rowsort label-4097
SELECT DISTINCT ( + + MIN ( col1 ) ), + 46 AS col1 FROM tab1 AS cor0
----
5
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * col2 / - - 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 NOT IN ( + 22 + + - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 - - 15 ) NOT BETWEEN ( + 47 ) AND NULL AND NOT col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT + COUNT( + ( CAST( 90 AS SIGNED ) ) ) * MIN( ALL - 39 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-117

skipif mysql # not compatible
query I rowsort label-4101
SELECT + COUNT ( + ( CAST ( 90 AS INTEGER ) ) ) * MIN ( ALL - 39 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-117

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4103
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - 36 AS col2, + 85 FROM tab2
----
-36
85
-36
85
-36
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT - COUNT( * ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT 21 * + col0 FROM tab1 WHERE NOT ( NULL >= col2 * + 98 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL NOT BETWEEN - + col1 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( * ) * - + 52 AS col2 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( * ) * - + 52 AS col2 FROM tab1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT CAST( + - col1 AS SIGNED ) * 20 AS col1 FROM tab1
----
-100
-280
-940

skipif mysql # not compatible
query I rowsort label-4109
SELECT CAST ( + - col1 AS INTEGER ) * 20 AS col1 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT ALL - col0 * - col0 * + - 43 AS col1 FROM tab0
----
-325467
-404587
-9675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL + - 61 * - 22 + - col0 AS col1 FROM tab0 AS cor0
----
1245
1255
1327

query II rowsort
SELECT ALL col2 AS col2, + 24 * + - col1 AS col1 FROM tab2 AS cor0
----
23
-1224
40
-1848
58
-1608

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + + COUNT( * ) + + - MIN( - + 2 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + + COUNT ( * ) + + - MIN ( - + 2 ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT 95 FROM tab0 WHERE ( + col0 / col0 + 87 * + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT ( - ( + 71 ) ), + MIN( - + 19 ) AS col1 FROM tab0
----
-71
-19

skipif mysql # not compatible
query II rowsort label-4118
SELECT ( - ( + 71 ) ), + MIN ( - + 19 ) AS col1 FROM tab0
----
-71
-19

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + + 45 * + + col2 - + col2 - 54 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
2385
3564
522

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 14 + - 46 NOT IN ( - col1 + + + col0 ) )
----

query I rowsort
SELECT ALL - + 74 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT 43 * + - 22 + + ( + 28 ) AS col2 FROM tab1
----
-918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT + CAST( NULL AS SIGNED ) * 79 + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT + CAST ( NULL AS INTEGER ) * 79 + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 81 + + - col0 FROM tab2
----
17
35
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + - 51 AS col0 FROM tab2
----
-109
-74
-91

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + - 51 AS col0 FROM tab2
----
-109
-74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT COUNT( * ) + - 3 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT COUNT ( * ) + - 3 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4128
SELECT * FROM tab0 WHERE CAST( col2 AS SIGNED ) BETWEEN - 33 AND ( col1 / + - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4128
SELECT * FROM tab0 WHERE CAST ( col2 AS INTEGER ) BETWEEN - 33 AND ( col1 / + - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT ALL 91 AS col0, SUM( ALL + + col1 ) FROM tab1
----
91
66

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL 91 AS col0, SUM ( ALL + + col1 ) FROM tab1
----
91
66

query II rowsort
SELECT ALL - 56 + - ( + col1 ) AS col2, - 58 FROM tab1
----
-103
-58
-61
-58
-70
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + - col0 - + 49 FROM tab2 AS cor0
----
-113
-124
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col2 + - col0 IS NULL )
----

query I rowsort
SELECT - - 25 FROM tab2 cor0
----
25
25
25

query II rowsort
SELECT 20 AS col2, - col1 / - col0 AS col1 FROM tab2 cor0 WHERE NOT 69 * - col1 * - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4138
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 61 * 88 FROM tab0 AS cor0
----
5368
5368
5368

query II rowsort
SELECT ALL col2 * + col0 AS col2, col1 AS col0 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 col0 FROM tab1 AS cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE - 30 IN ( + - 83 * - col0 * + - col1 * - col1 + - col0 * - 90 * 67 ) OR NOT NULL IS NOT NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE - 30 IN ( + - 83 * - col0 * + - col1 * - col1 + - col0 * - 90 * 67 ) OR NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT 12 * - + col0 AS col1 FROM tab1 cor0
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT 72 * - - COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-4144
SELECT 72 * - - COUNT ( * ) FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT COUNT( * ) * 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4145
SELECT COUNT ( * ) * 2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1
----
-13

query I rowsort
SELECT 20 * - col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + 95 / - - col0 + + 61 NOT IN ( + - col0, - 9 )
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT + 90 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT - MIN( + - 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-4151
SELECT - MIN ( + - 62 ) FROM tab0
----
62

query I rowsort
SELECT + - 83 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - ( 25 ) AS col2 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT MIN( - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4154
SELECT MIN ( - + col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL MIN( ALL - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT - 62 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 62 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + 21 AS col0 FROM tab1
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + MIN( ( - - col1 ) ) + - 40 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-4158
SELECT + MIN ( ( - - col1 ) ) + - 40 FROM tab1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT - 34 DIV col0 * - ( + - ( col0 ) ) DIV - col0 - + + col0 + - 28 FROM tab0 AS cor0
----
-115
-125
-41

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 34 / col0 * - ( + - ( col0 ) ) / - col0 - + + col0 + - 28 FROM tab0 AS cor0
----
-115
-125
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT CAST( + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT CAST ( + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 40 + 88 FROM tab0 AS cor0
----
128
128
128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 * + col2 ) = NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT - - 51, 26 AS col0 FROM tab1 AS cor0
----
51
26

query I rowsort
SELECT + col0 * 14 AS col1 FROM tab0 AS cor0
----
1218
1358
210

query I rowsort
SELECT col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT col0, - ( + - 30 ) AS col0 FROM tab1 AS cor0
----
51
30
85
30
91
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 + - 40 col0 FROM tab2 cor0
----
51
6
67
35
77
24

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 FROM tab2 WHERE ( ( + + 26 ) NOT IN ( - - col1 ) )
----
102
134
154

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - 94 - - col2 AS col2 FROM tab0
----
-47
-84
5

query I rowsort
SELECT DISTINCT + 95 + col1 * - col0 * + + col0 AS col2 FROM tab0
----
-158854
-18130
-9314

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT - 33 DIV - col2 - - 29 + - col0 * - col1 * - col1 AS col2 FROM tab2
----
-119616
-336646
-379427

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - 33 / - col2 - - 29 + - col0 * - col1 * - col1 AS col2 FROM tab2
----
-119616
-336646
-379427

query I rowsort
SELECT ALL - + col1 / + - ( - ( + ( - - col1 ) ) ) * - - col0 + - - 73 + - + col0 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT + 73 - + 5 DIV - col1 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 73 - + 5 / - col1 FROM tab2
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE + col2 + - 62 <= - 41
----
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE + col2 + - 62 <= - 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT + col2 DIV + col1 - - 69 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-4178
SELECT + col2 / + col1 - - 69 FROM tab2
----
69
69
69

query II rowsort
SELECT ALL - + col1 * + col2 AS col1, - col1 + col0 FROM tab0 AS cor0
----
-210
66
-3807
-66
-99
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT DISTINCT - ( 78 ) + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - ( 78 ) + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT 43 AS col2, 36 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
43
33

skipif mysql # not compatible
query II rowsort label-4182
SELECT 43 AS col2, 36 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
43
33

query II rowsort
SELECT - col2 AS col2, col1 + - 64 FROM tab0 AS cor0
----
-10
-43
-47
17
-99
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE col0 / - col2 NOT IN ( + col1, col1 )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT 65 + + col2 + + + col1 - col0 AS col0 FROM tab1 cor0 WHERE ( + CAST( NULL AS SIGNED ) + col2 - col0 NOT IN ( - 23 * + + col1 - - ( col0 ) ) )
----

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT 65 + + col2 + + + col1 - col0 AS col0 FROM tab1 cor0 WHERE ( + CAST ( NULL AS INTEGER ) + col2 - col0 NOT IN ( - 23 * + + col1 - - ( col0 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT - - col0 DIV - col0 + col1 * - + col0 FROM tab0 AS cor0
----
-1216
-1828
-98

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - - col0 / - col0 + col1 * - + col0 FROM tab0 AS cor0
----
-1216
-1828
-98

query II rowsort
SELECT DISTINCT 41, 59 AS col2 FROM tab0 AS cor0
----
41
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 18 FROM tab0 WHERE NOT - ( - ( + col2 ) ) / + + ( col0 ) * col0 BETWEEN + 36 AND - + col1 + + col1 + col2 * + - 75
----
18
18
18

query I rowsort
SELECT ALL col1 + 62 FROM tab1 WHERE NOT NULL IS NOT NULL
----
109
67
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT col0 DIV + CAST( 34 AS SIGNED ) FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT col0 / + CAST ( 34 AS INTEGER ) FROM tab1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL - col1 + + 16 FROM tab0 WHERE NOT 34 * + col0 * + col1 NOT BETWEEN NULL AND - 5
----

query I rowsort
SELECT DISTINCT + ( - 62 ) FROM tab0
----
-62

query I rowsort
SELECT + 65 * - col0 AS col2 FROM tab1
----
-3315
-5525
-5915

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - + 66 / - + 43 + - ( - col1 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 26 * col2 + + + col0 FROM tab0 AS cor0
----
1237
2671
347

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4203
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - CAST( NULL AS SIGNED ) <= - + 15 + - 70 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4203
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - CAST ( NULL AS INTEGER ) <= - + 15 + - 70 - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4204
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT + SUM( DISTINCT col0 ) * - + 52 AS col2 FROM tab1 AS cor0
----
-11804

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + SUM ( DISTINCT col0 ) * - + 52 AS col2 FROM tab1 AS cor0
----
-11804

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - - 74 + + - COUNT( ALL - 18 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4206
SELECT - - 74 + + - COUNT ( ALL - 18 ) FROM tab0 AS cor0
----
71

query I rowsort
SELECT + 6 + + + col2 FROM tab1 cor0
----
102
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT col2 + - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT col2 + - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + col1 + + col0 FROM tab1 WHERE NOT 12 IS NULL
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL 18 * + COUNT( + col1 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 18 * + COUNT ( + col1 ) FROM tab0
----
54

query I rowsort
SELECT + col2 + + 41 FROM tab2
----
64
81
99

query II rowsort
SELECT - 42 AS col0, - 17 * - + col2 FROM tab1
----
-42
1003
-42
1156
-42
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL 90 - + COUNT( * ) + + 64 * 44 AS col0 FROM tab0
----
2903

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL 90 - + COUNT ( * ) + + 64 * 44 AS col0 FROM tab0
----
2903

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT + + COUNT( * ) * + 99 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + + COUNT ( * ) * + 99 FROM tab1 AS cor0
----
297

query II rowsort
SELECT ALL - ( - 40 ), col2 FROM tab1 AS cor0
----
40
59
40
68
40
96

query I rowsort
SELECT DISTINCT 42 * - col2 AS col1 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT MAX( - 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4217
SELECT MAX ( - 79 ) FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 34 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL MIN( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL MIN ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * col0 col1 FROM tab0 cor0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query II rowsort label-4221
SELECT DISTINCT + + col0 DIV col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

skipif mysql # not compatible
query II rowsort label-4221
SELECT DISTINCT + + col0 / col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) <= - 38
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + MIN( ALL 60 ) AS col1 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-4223
SELECT + MIN ( ALL 60 ) AS col1 FROM tab1 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE col1 < 91
----
-3

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE col1 < 91
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + MAX( ALL - + 6 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4225
SELECT + MAX ( ALL - + 6 ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL - col1 * - 76 * + col2 + + col1 + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - col1 * - 76 * + col2 + + col1 + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 IN ( 77 + 38 + + - col1 * + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4228
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV - col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / - col2 FROM tab0
----
-1

query I rowsort
SELECT - col1 * + ( + col0 ) FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT ALL - col1, + col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT ( + ( + col1 ) IS NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT - ( - + COUNT( col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4232
SELECT - ( - + COUNT ( col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT SUM( - - 60 ) + - COUNT( * ) + + 23 AS col0 FROM tab1
----
200

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT SUM ( - - 60 ) + - COUNT ( * ) + + 23 AS col0 FROM tab1
----
200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - COUNT( * ) * + COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4236
SELECT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT ( - MAX( ALL - - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT ( - MAX ( ALL - - col1 ) ) FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT 53 * col2 AS col1 FROM tab1 AS cor0
----
3127
3604
5088

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT ALL - + col2 DIV + 25 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - + col2 / + 25 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL - 74 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT + 17 * - - col2 FROM tab1
----
1003
1156
1632

query I rowsort
SELECT ALL - + 33 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4246
SELECT - col0 DIV - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4246
SELECT - col0 / - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * - 44 FROM tab0 cor0
----
-3564
-44
-924

query I rowsort
SELECT DISTINCT 0 + + col0 + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 99 AS col0 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL - col2 + + 58 AS col0 FROM tab1
----
-1
-10
-38

query I rowsort
SELECT col0 + 80 AS col1 FROM tab1
----
131
165
171

query I rowsort
SELECT 42 + col2 FROM tab2
----
100
65
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + MIN( col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4254
SELECT + MIN ( col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL + 86 * 84 + - + 87 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7140

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + 86 * 84 + - + 87 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7140

query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - 59 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 59 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - col0 * - col2 NOT BETWEEN col2 AND 42
----
-10
-47
-99

query I rowsort
SELECT ALL 79 * 71 * col0 FROM tab1 AS cor0
----
286059
476765
510419

query II rowsort
SELECT DISTINCT + 44 AS col2, + col0 - + col0 FROM tab2 cor0
----
44
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT + 24 + + - col2 DIV + - col2 + 22 * col0 FROM tab2
----
1037
1433
1675

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 24 + + - col2 / + - col2 + 22 * col0 FROM tab2
----
1037
1433
1675

onlyif mysql # DIV for integer division: 
query II rowsort label-4265
SELECT ALL col1, + ( 19 ) DIV + - 71 + - col2 FROM tab1 WHERE NOT col0 DIV - - 82 + 48 + + col2 IS NULL
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL col1, + ( 19 ) / + - 71 + - col2 FROM tab1 WHERE NOT col0 / - - 82 + 48 + + col2 IS NULL
----
14
-96
47
-68
5
-59

query I rowsort
SELECT DISTINCT 51 + + 76 FROM tab2
----
127

query II rowsort
SELECT ALL - 67 + 4 AS col0, col0 AS col0 FROM tab2
----
-63
46
-63
64
-63
75

query I rowsort
SELECT DISTINCT col1 * - 44 * - col1 * - col1 AS col1 FROM tab0
----
-23383404
-407484
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 56 + - MAX( - col1 ) AS col1 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-4269
SELECT 56 + - MAX ( - col1 ) AS col1 FROM tab1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL 92 * COUNT( * ) AS col1 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 92 * COUNT ( * ) AS col1 FROM tab0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT 64 + + - 79 + + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4272
SELECT 64 + + - 79 + + COUNT ( * ) FROM tab2
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) < 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4274
SELECT ALL - col1 + - col2 + - + CAST( NULL AS SIGNED ), col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL - col1 + - col2 + - + CAST ( NULL AS INTEGER ), col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + COUNT( + + ( + 63 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4275
SELECT + COUNT ( + + ( + 63 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + COUNT( - + 78 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4276
SELECT + COUNT ( - + 78 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT MAX( ALL + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4277
SELECT MAX ( ALL + col1 ) FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4278
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, MIN( - + 70 ) * 25 + - 54 AS col2 FROM tab2 AS cor0
----
NULL
-1804

skipif mysql # not compatible
query II rowsort label-4278
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, MIN ( - + 70 ) * 25 + - 54 AS col2 FROM tab2 AS cor0
----
NULL
-1804

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + 81, - col0 - - col1, + - col2 + - col1 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 72 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL 40 AS col2, 14 * col2 AS col0 FROM tab1 AS cor0
----
40
1344
40
826
40
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT - SUM( 18 ) + + 92 * + 70 FROM tab0 AS cor0
----
6386

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - SUM ( 18 ) + + 92 * + 70 FROM tab0 AS cor0
----
6386

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT col2 DIV col1 * col1 FROM tab1
----
47
55
84

skipif mysql # not compatible
query I rowsort label-4283
SELECT col2 / col1 * col1 FROM tab1
----
47
55
84

onlyif mysql # DIV for integer division: 
query II rowsort label-4284
SELECT 47 DIV + - col1 AS col0, - 87 * - + ( - col1 ) FROM tab1
----
-1
-4089
-3
-1218
-9
-435

skipif mysql # not compatible
query II rowsort label-4284
SELECT 47 / + - col1 AS col0, - 87 * - + ( - col1 ) FROM tab1
----
-1
-4089
-3
-1218
-9
-435

query I rowsort
SELECT DISTINCT + 34 * - + ( - col1 ) AS col1 FROM tab1
----
1598
170
476

onlyif mysql # DIV for integer division: 
query II rowsort label-4286
SELECT col0 DIV col1 AS col1, col0 + col1 AS col0 FROM tab1
----
1
138
17
90
3
65

skipif mysql # not compatible
query II rowsort label-4286
SELECT col0 / col1 AS col1, col0 + col1 AS col0 FROM tab1
----
1
138
17
90
3
65

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL = - col0 )
----

query I rowsort
SELECT col1 * - - ( + 44 ) AS col1 FROM tab0
----
3564
44
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 * - - col1, col1 * col0 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-36125
425
-36414
714
-389207
4277

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + - MIN( ALL col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4292
SELECT + - MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT - COUNT( * ) + + ( 88 ) AS col0, SUM( ALL - col1 ) FROM tab1 AS cor0
----
85
-66

skipif mysql # not compatible
query II rowsort label-4294
SELECT - COUNT ( * ) + + ( 88 ) AS col0, SUM ( ALL - col1 ) FROM tab1 AS cor0
----
85
-66

query I rowsort
SELECT - col1 + + 52 AS col2 FROM tab2 cor0
----
-15
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + - - col0 - col1 AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT DISTINCT - - CAST( - MIN( CAST( col0 AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - - CAST ( - MIN ( CAST ( col0 AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - col1 ) <= col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + - ( - + MAX( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4300
SELECT + - ( - + MAX ( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL col2 + col2 * 25 * - col1 - + col0 FROM tab2 AS cor0
----
-29348
-77024
-97167

query III rowsort
SELECT * FROM tab0 WHERE col2 + - + col0 + col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT 76 * + 47 + - COUNT( * ) FROM tab1
----
3569

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT 76 * + 47 + - COUNT ( * ) FROM tab1
----
3569

query III rowsort
SELECT * FROM tab1 WHERE - + col1 <= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 25 + 72 FROM tab1
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + COUNT( * ) * - COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4306
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col0 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-4307
SELECT ALL - col1 + + col0 col1, + 74 DIV + col0 col2 FROM tab1
----
37
1
44
0
80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4307
SELECT ALL - col1 + + col0 col1, + 74 / + col0 col2 FROM tab1
----
37
1
44
0
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL MAX( ALL - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL MAX ( ALL - col0 ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col2 col0 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 58 * - col1 + 80 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4311
SELECT - COUNT( * ), - COUNT( * ) DIV - CAST( + 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4311
SELECT - COUNT ( * ), - COUNT ( * ) / - CAST ( + 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT + 78 + ( + 85 ) - + col2 FROM tab1 AS cor0
----
104
67
95

query III rowsort
SELECT * FROM tab2 WHERE 60 NOT BETWEEN - col0 * + - col1 AND + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + col0 col1 FROM tab1
----
107
113
73

query I rowsort
SELECT col0 * - + col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 13 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + col1 * - - col2 + - - col2 AND - - 19
----

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4319
SELECT ALL + 42 AS col2, 77 DIV 7 + + 2 AS col1 FROM tab1
----
42
13
42
13
42
13

skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL + 42 AS col2, 77 / 7 + + 2 AS col1 FROM tab1
----
42
13
42
13
42
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT ALL col1 DIV + - 71 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL col1 / + - 71 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT + 24 DIV + 16 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + 24 / + 16 FROM tab2
----
1

query I rowsort
SELECT 18 * + col0 * - - col0 FROM tab2
----
101250
38088
73728

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4323
SELECT 53 DIV CAST( - 96 AS SIGNED ) * - 7 + col1 * + - col0 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4323
SELECT 53 / CAST ( - 96 AS INTEGER ) * - 7 + col1 * + - col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + + ( + MIN( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + + ( + MIN ( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - 31 > + col0
----
-1
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT col0 * + col1 AS col1 FROM tab2 cor0 WHERE col0 + - col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND col2 + - - 99
----

skipif mysql # not compatible
query I rowsort label-4326
SELECT col0 * + col1 AS col1 FROM tab2 cor0 WHERE col0 + - col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col2 + - - 99
----

query I rowsort
SELECT + 6 + - col0 * - - col2 FROM tab1 AS cor0
----
-4890
-5009
-6182

query I rowsort
SELECT col0 + - - 31 FROM tab1
----
116
122
82

query I rowsort
SELECT - 99 + - 76 AS col0 FROM tab1
----
-175
-175
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT - 44 + + - COUNT( * ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4330
SELECT - 44 + + - COUNT ( * ) FROM tab1
----
-47

query I rowsort
SELECT + 92 + col0 AS col1 FROM tab2
----
138
156
167

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL + MIN( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + MIN ( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col2 * - + 32 + + - col0 AS col2 FROM tab1 WHERE NOT 66 + - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4337
SELECT + COUNT( * ) DIV MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT + COUNT ( * ) / MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 87 + + col0 + - - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 20 * + - col1 + - col0
----

query I rowsort
SELECT DISTINCT - 95 + - - col1 AS col0 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT - col0 - + + col1 AS col2 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - SUM( DISTINCT - + col2 ) + 22 + - - COUNT( * ) AS col1 FROM tab2
----
146

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - SUM ( DISTINCT - + col2 ) + 22 + - - COUNT ( * ) AS col1 FROM tab2
----
146

query I rowsort
SELECT DISTINCT - 35 + - col0 - + col1 * + col1 FROM tab1
----
-145
-2335
-282

query I rowsort
SELECT DISTINCT - 85 - - + col2 FROM tab0
----
-38
-75
14

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - 40 FROM tab2 AS cor0 WHERE 84 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT + 84 DIV COUNT( + col0 ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + 84 / COUNT ( + col0 ) FROM tab0 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + col0 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col2 + - 41 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + col0 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col2 + - 41 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 <> - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT - 48 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( col0 )
----
-48
3

skipif mysql # not compatible
query II rowsort label-4350
SELECT - 48 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( col0 )
----
-48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT COUNT( * ) * + - COUNT( col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT COUNT ( * ) * + - COUNT ( col0 ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4352
SELECT + CAST( + - col1 AS SIGNED ) DIV + - 8 AS col0 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4352
SELECT + CAST ( + - col1 AS INTEGER ) / + - 8 AS col0 FROM tab1
----
0
1
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL + COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4355
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( + ( - 18 ) ) * col2 * + col0 FROM tab0 AS cor0
----
12690
15660
172854

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ( COUNT( * ) ) + + MIN( ALL - 6 ) FROM tab0, tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4359
SELECT ( COUNT ( * ) ) + + MIN ( ALL - 6 ) FROM tab0, tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + SUM( ALL + - 69 ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + SUM ( ALL + - 69 ) FROM tab0
----
-207

query II rowsort
SELECT ALL - - col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT 76 DIV + 74 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4364
SELECT 76 / + 74 AS col0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 * + col0 * - - ( + + col1 ) * + ( - 99 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 BETWEEN NULL AND 69
----

query I rowsort
SELECT DISTINCT - col1 + 34 FROM tab2 AS cor0
----
-17
-33
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT - MIN( ALL col0 ) * - + COUNT( - 47 ) AS col2 FROM tab1 WHERE + + col0 + + + col2 + - 39 / 48 > ( - + ( col0 ) )
----
153

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - MIN ( ALL col0 ) * - + COUNT ( - 47 ) AS col2 FROM tab1 WHERE + + col0 + + + col2 + - 39 / 48 > ( - + ( col0 ) )
----
153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4369
SELECT DISTINCT + col1 + - col1 / col1 + - CAST( NULL AS DECIMAL ) + + - col1 * + col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4369
SELECT DISTINCT + col1 + - col1 / col1 + - CAST ( NULL AS REAL ) + + - col1 * + col0 col2 FROM tab0
----
NULL

query I rowsort
SELECT - 43 AS col1 FROM tab1
----
-43
-43
-43

query I rowsort
SELECT - col2 - + - col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT - CAST( NULL AS SIGNED ) - CAST( + - col0 AS SIGNED ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT - CAST ( NULL AS INTEGER ) - CAST ( + - col0 AS INTEGER ) + - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT DISTINCT 14 DIV + col2 + + - col1 DIV col0 * - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 14 / + col2 + + - col1 / col0 * - col2 FROM tab1
----
0

query I rowsort
SELECT ALL - 44 + col1 * - 66 * - col1 FROM tab1 AS cor0 WHERE NOT - 80 IS NOT NULL
----

query II rowsort
SELECT - + col1 + - 34 AS col2, 26 AS col0 FROM tab0 AS cor0
----
-115
26
-35
26
-55
26

query II rowsort
SELECT - 67 + - + col0 AS col2, col2 FROM tab0 AS cor0
----
-154
10
-164
99
-82
47

query I rowsort
SELECT - col2 * - 79 * + 60 * + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-14599200
-18419640
-5560020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT - 54 + MIN( ALL + 31 ) + - 56 DIV + COUNT( * ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - 54 + MIN ( ALL + 31 ) + - 56 / + COUNT ( * ) FROM tab1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT 91 DIV + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10

skipif mysql # not compatible
query I rowsort label-4379
SELECT 91 / + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10

query I rowsort
SELECT 71 * col1 AS col2 FROM tab1
----
3337
355
994

query I rowsort
SELECT + ( - + col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT - col0 AS col1, + col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL - col2 * + col2 * + col2 * + 28 AS col2 FROM tab0 AS cor0
----
-27168372
-28000
-2907044

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - + COUNT( DISTINCT + ( - 4 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - + COUNT ( DISTINCT + ( - 4 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT ALL + COUNT( * ) * ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + COUNT ( * ) * ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - - 3 * + col1 + - - 44 AS col2, 48 * col2 / + - 15 * 26 AS col0 FROM tab2 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + 48 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 48 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL MIN( 91 ) * + COUNT( * ) * - SUM( + 68 ) AS col1 FROM tab2
----
-55692

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL MIN ( 91 ) * + COUNT ( * ) * - SUM ( + 68 ) AS col1 FROM tab2
----
-55692

query I rowsort
SELECT DISTINCT + 40 * - col0 FROM tab2
----
-1840
-2560
-3000

query II rowsort
SELECT col2 AS col1, 16 + + 19 + 21 * + 48 AS col2 FROM tab0
----
10
1043
47
1043
99
1043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 91 * col0 * - CAST( - - ( - - 3 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4396
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 91 * col0 * - CAST ( - - ( - - 3 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4397
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4397
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4398
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - col2 * CAST ( NULL AS REAL ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 AS col1 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - col0 * - 56 FROM tab1
----
2856
4760
5096

query III rowsort
SELECT * FROM tab2 WHERE + 27 BETWEEN NULL AND ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT + - MIN( ALL - ( + col1 ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + - MIN ( ALL - ( + col1 ) ) FROM tab0 cor0
----
81

query II rowsort
SELECT ALL ( + col2 ), col0 * - col2 AS col0 FROM tab0 cor0
----
10
-870
47
-705
99
-9603

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NOT 97 * - col0 * - col1 > + col0 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 84 + + col2 col0, + col1 AS col0 FROM tab0 AS cor0
----
-37
81
-74
21
15
1

query I rowsort
SELECT ALL col0 + - 2 * - - 71 FROM tab0 AS cor0
----
-127
-45
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 74 * + - col1 IS NULL
----

query I rowsort
SELECT + col0 + 85 + - col2 FROM tab1 AS cor0
----
108
111
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT + 81 DIV + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-4409
SELECT + 81 / + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93

query I rowsort
SELECT ( - ( + col1 ) ) + - col1 AS col0 FROM tab1
----
-10
-28
-94

query II rowsort
SELECT - col2 + - col0 + 16 AS col0, + 89 FROM tab2
----
-117
89
-53
89
-88
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT CAST( MIN( col1 ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT CAST ( MIN ( col1 ) AS INTEGER ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT ALL col1 - - col2 * + col1 * + col0 + - col1 DIV - 86 * + - col2 FROM tab1
----
25080
290883
68558

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL col1 - - col2 * + col1 * + col0 + - col1 / - 86 * + - col2 FROM tab1
----
25080
290883
68558

query I rowsort
SELECT ( + col0 ) - - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4415
SELECT + MAX ( + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0, tab0 cor0
----
2

query I rowsort
SELECT DISTINCT - col1 * - 27 + - col1 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL 98 / - col2 * col2 * - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL 98 / - col2 * col2 * - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 4 AND NULL
----

query I rowsort
SELECT 19 * col2 + col2 FROM tab2 AS cor0
----
1160
460
800

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + 19 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT COUNT( * ) * - SUM( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT COUNT ( * ) * - SUM ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-309

query I rowsort
SELECT - - ( 12 ) FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL ( - 95 ) AS col1 FROM tab2 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT - COUNT( - 84 ) AS col1, 9 AS col2 FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-4426
SELECT - COUNT ( - 84 ) AS col1, 9 AS col2 FROM tab2 AS cor0
----
-3
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL - ( COUNT( * ) ) * - 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - ( COUNT ( * ) ) * - 23 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - MAX( DISTINCT - 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - MAX ( DISTINCT - 16 ) FROM tab1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + 20 * AVG ( + CAST( NULL AS SIGNED ) ) * MIN( ALL - 84 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + 20 * AVG ( + CAST ( NULL AS INTEGER ) ) * MIN ( ALL - 84 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - MIN( DISTINCT col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + ( col2 ) * + ( - col0 ) AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4433
SELECT col2 * 6 * + CAST( NULL AS SIGNED ), + 75 AS col0 FROM tab1
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-4433
SELECT col2 * 6 * + CAST ( NULL AS INTEGER ), + 75 AS col0 FROM tab1
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15
87
97

query I rowsort
SELECT ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + 33 + + 6 col1 FROM tab2 AS cor0
----
-1
-19
16

query I rowsort
SELECT ALL - - AVG ( ALL - - col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - COUNT( * ) * - - 91 + - COUNT( * ) FROM tab0 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4438
SELECT - COUNT ( * ) * - - 91 + - COUNT ( * ) FROM tab0 cor0
----
-276

query I rowsort
SELECT - 72 * + 1 FROM tab2 AS cor0
----
-72
-72
-72

query II rowsort
SELECT + - col2 AS col2, 54 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54

query I rowsort
SELECT + col0 * + 12 AS col2 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT - + col2 * + + 18 AS col0 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # DIV for integer division: 
query II rowsort label-4443
SELECT DISTINCT + 66 DIV col2 * - col2 + - - col1 AS col1, - col1 + ( + 11 ) col2 FROM tab1 AS cor0
----
-54
6
14
-3
47
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4443
SELECT DISTINCT + 66 / col2 * - col2 + - - col1 AS col1, - col1 + ( + 11 ) col2 FROM tab1 AS cor0
----
-54
6
14
-3
47
-36

query I rowsort
SELECT + + 2 * - ( - + col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT + COUNT( DISTINCT 79 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + COUNT ( DISTINCT 79 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 2 FROM tab2 WHERE - 5 IS NULL
----

query I rowsort
SELECT col2 - + 82 + col2 * - + col0 FROM tab1
----
-4882
-5038
-6202

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4448
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) + + AVG ( DISTINCT - ( 6 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) * - COUNT ( * ) + + AVG ( DISTINCT - ( 6 ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - SUM( ALL - ( 20 ) ) - COUNT( ALL + - 44 ) * - 68 AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - SUM ( ALL - ( 20 ) ) - COUNT ( ALL + - 44 ) * - 68 AS col0 FROM tab2
----
264

query I rowsort
SELECT DISTINCT + col0 * - col1 * - 38 + + + col0 - + ( - - 18 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 / - - 62 + - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 7 AS col2, + 89 * - + 28 FROM tab0
----
7
-2492
7
-2492
7
-2492

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4454
SELECT CAST( col0 AS SIGNED ) * - 62, col1 * - col0 AS col0 FROM tab0 AS cor0
----
-5394
-1827
-6014
-97
-930
-1215

skipif mysql # not compatible
query II rowsort label-4454
SELECT CAST ( col0 AS INTEGER ) * - 62, col1 * - col0 AS col0 FROM tab0 AS cor0
----
-5394
-1827
-6014
-97
-930
-1215

query I rowsort
SELECT ALL - + 40 AS col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT - - 24 AS col2 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT + + 25 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4459
SELECT ALL col2 / + CAST( + col0 AS DECIMAL ) * - + CAST( NULL AS SIGNED ) + + - col1 + + + ( 27 ) - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 35 / + col0 + - col0 AND col0 * 25 + col0
----

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL col2 / + CAST ( + col0 AS REAL ) * - + CAST ( NULL AS INTEGER ) + + - col1 + + + ( 27 ) - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 35 / + col0 + - col0 AND col0 * 25 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4460
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - CAST( + - col1 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4460
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - CAST ( + - col1 AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + COUNT( ALL - 67 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + COUNT ( ALL - 67 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT - col0 > + - ( + col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT - 45, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-45
-3

skipif mysql # not compatible
query II rowsort label-4463
SELECT - 45, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-45
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL + col0 FROM tab1 WHERE NOT 37 = col0 - - + CAST( + - 29 AS SIGNED ) * - ( + - col1 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + col0 FROM tab1 WHERE NOT 37 = col0 - - + CAST ( + - 29 AS INTEGER ) * - ( + - col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT COUNT( + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4465
SELECT COUNT ( + + col0 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 76 + + - col1 col2 FROM tab0
----
-1221
-6633
-7373

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4467
SELECT * FROM tab2 WHERE NOT CAST( - + col1 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4467
SELECT * FROM tab2 WHERE NOT CAST ( - + col1 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * 70 AS col0 FROM tab2
----
3220
4480
5250

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 >= + 27 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL MAX( DISTINCT + 87 ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL MAX ( DISTINCT + 87 ) FROM tab0 cor0
----
87

query I rowsort
SELECT DISTINCT + 92 FROM tab0 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT + COUNT( * ) AS col1, 9 + + - MAX( DISTINCT col1 ) + - ( + - 81 ) FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-4472
SELECT + COUNT ( * ) AS col1, 9 + + - MAX ( DISTINCT col1 ) + - ( + - 81 ) FROM tab0
----
3
9

query I rowsort
SELECT ALL ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL <= + ( col2 ) / - 91 * - col1 / - - ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 82 * + - col0 + - col1 + - - ( - 39 ) * - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL ( COUNT( DISTINCT + - 35 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL ( COUNT ( DISTINCT + - 35 ) ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - 64 + - + 49 FROM tab2 AS cor0
----
-113
-113
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT + COUNT( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + COUNT ( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + - 25 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4478
SELECT + - 25 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( - 56 + + 51, col0 * + col0, - col2 / + 8 )
----
-3

skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( - 56 + + 51, col0 * + col0, - col2 / + 8 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT SUM( + ( - 67 ) ) + + COUNT( * ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4480
SELECT SUM ( + ( - 67 ) ) + + COUNT ( * ) AS col1 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT COUNT( 1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT COUNT ( 1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT + ( + - CAST( + col0 AS SIGNED ) ) * - col2 + + col0 + col2 + + 30 AS col0 FROM tab1
----
5073
5189
6377

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT + ( + - CAST ( + col0 AS INTEGER ) ) * - col2 + + col0 + col2 + + 30 AS col0 FROM tab1
----
5073
5189
6377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col1 col2, - 70 FROM tab0
----
0
-70

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4485
SELECT col2, 72 DIV + col2 FROM tab0
----
10
7
47
1
99
0

skipif mysql # not compatible
query II rowsort label-4485
SELECT col2, 72 / + col2 FROM tab0
----
10
7
47
1
99
0

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 80, col1 FROM tab0
----
80
1
80
21
80
81

query I rowsort
SELECT DISTINCT + 20 - + 71 AS col2 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT ALL col2 DIV - col1 * - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL col2 / - col1 * - col0 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 94 col2, col1 col2 FROM tab0
----
94
1
94
21
94
81

query I rowsort
SELECT DISTINCT - col1 * + + col1 * - col1 * + + col0 FROM tab1 AS cor0
----
10625
139944
9447893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT ALL 53 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 53 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - ( + MIN( - col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4495
SELECT - ( + MIN ( - col1 ) ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT ( col0 ), + col0 * - col1 * + 45 + col2 + col2 - - - col2 FROM tab0 AS cor0
----
15
-54628
87
-82205
97
-4266

query I rowsort
SELECT ALL + ( - + 82 ) AS col1 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4498
SELECT - MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT MIN( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT MIN ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 * + + col1 - - col0 + + 98
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - + col1 + - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 3 IS NOT NULL )
----

query II rowsort
SELECT col0, col2 * + 84 FROM tab2
----
46
1932
64
3360
75
4872

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 21 - col0 < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT MIN( - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT MIN ( - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT + 52 * - COUNT( * ) * MAX( - col1 ) AS col0, - COUNT( * ) AS col1 FROM tab1
----
780
-3

skipif mysql # not compatible
query II rowsort label-4506
SELECT + 52 * - COUNT ( * ) * MAX ( - col1 ) AS col0, - COUNT ( * ) AS col1 FROM tab1
----
780
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT DISTINCT 44 AS col0, + COUNT( * ) + + + 35 AS col0 FROM tab2
----
44
38

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT 44 AS col0, + COUNT ( * ) + + + 35 AS col0 FROM tab2
----
44
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT 64 + - - ( - MIN( DISTINCT + ( + 74 ) ) ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4508
SELECT DISTINCT 64 + - - ( - MIN ( DISTINCT + ( + 74 ) ) ) col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + 39 + + ( - 91 ) FROM tab2 AS cor0
----
-52
-52
-52

query II rowsort
SELECT - 18 * + 28 + - + 21 AS col2, + col0 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= - 33 + + col2
----

query I rowsort
SELECT - col2 * - col0 + 1 FROM tab1 AS cor0
----
4897
5016
6189

query I rowsort
SELECT - col2 + - 48 FROM tab0 AS cor0
----
-147
-58
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 23 ) >= NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT col1 * 2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + COUNT( * ) * 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COUNT ( * ) * 8 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - COUNT( + col2 ) * 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4517
SELECT - COUNT ( + col2 ) * 96 FROM tab2
----
-288

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NULL ) <= ( col2 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4519
SELECT CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 + - col2 * - 7 FROM tab2
----
110
203
339

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL - 95 DIV + col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 95 / + col1 FROM tab1
----
-19
-2
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT SUM( ALL 58 ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4522
SELECT SUM ( ALL 58 ) FROM tab1
----
174

query III rowsort
SELECT * FROM tab0 WHERE + ( - ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT 0 DIV - 7 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 0 / - 7 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4525
SELECT COUNT ( col2 ) FROM tab1
----
3

query I rowsort
SELECT 4 AS col2 FROM tab0 WHERE col1 + col1 * col0 NOT IN ( + col2 )
----
4
4
4

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT ALL - COUNT( DISTINCT - col1 ) DIV + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - COUNT ( DISTINCT - col1 ) / + COUNT ( * ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4532
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4532
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4533
SELECT * FROM tab1 WHERE - 1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4533
SELECT * FROM tab1 WHERE - 1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 + + 30 FROM tab2 WHERE NOT ( + 53 * + col0 ) BETWEEN ( + col2 * 26 ) AND 67
----
2376
4958
5055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT ALL - COUNT( * ) DIV + MAX( ALL col0 DIV col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - COUNT ( * ) / + MAX ( ALL col0 / col1 ) FROM tab2
----
-3

query I rowsort
SELECT 68 - 48 AS col2 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT + 43 * + 67 - + COUNT( * ) col2 FROM tab1
----
2878

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4537
SELECT DISTINCT + 43 * + 67 - + COUNT ( * ) col2 FROM tab1
----
2878

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 80 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT - 87 DIV + col1 col1 FROM tab0
----
-1
-4
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4540
SELECT - 87 / + col1 col1 FROM tab0
----
-1
-4
-87

query I rowsort
SELECT DISTINCT col2 * 98 AS col2 FROM tab2
----
2254
3920
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT 30 DIV MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT 30 / MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - MAX( ALL col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT - MAX ( ALL col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - SUM( ALL col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - col2 + 61 FROM tab0
----
-38
14
51

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col2 ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN ( - col1 ) AND 66
----

query I rowsort
SELECT ALL - col2 + + 26 FROM tab0
----
-21
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - 28 * MIN( DISTINCT col1 ) FROM tab1 WHERE NOT col1 * - 2 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 28 * MIN ( DISTINCT col1 ) FROM tab1 WHERE NOT col1 * - 2 > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT - SUM( col0 ) AS col2 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - SUM ( col0 ) AS col2 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - col0 col0 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 * 59 AS col0 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4553
SELECT SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4554
SELECT ALL CAST( NULL AS DECIMAL ) * + 80 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-4554
SELECT ALL CAST ( NULL AS REAL ) * + 80 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 6 <= NULL
----

query I rowsort
SELECT ALL col2 * ( + 24 * 42 ) FROM tab0 cor0
----
10080
47376
99792

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT - 9 DIV - 83 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - 9 / - 83 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 95 * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT 22 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT 22 / col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT CAST( 46 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1
----
46

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT CAST ( 46 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT 45 * + SUM( ( col2 ) * - col2 ) FROM tab0
----
-544950

skipif mysql # not compatible
query I rowsort label-4562
SELECT 45 * + SUM ( ( col2 ) * - col2 ) FROM tab0
----
-544950

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT COUNT( * ) * 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( * ) * 38 FROM tab1 AS cor0
----
114

query I rowsort
SELECT - col0 / + col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 24 - - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT ALL * FROM tab1 AS cor0 WHERE + 54 * + ( CAST( NULL AS SIGNED ) ) + 88 IN ( col0 * 21 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-4568
SELECT ALL * FROM tab1 AS cor0 WHERE + 54 * + ( CAST ( NULL AS INTEGER ) ) + 88 IN ( col0 * 21 + - col2 )
----

query I rowsort
SELECT 24 * 85 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2040
2040
2040

query I rowsort
SELECT DISTINCT col0 + col2 * col0 FROM tab2 cor0
----
1104
2624
4425

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + + COUNT ( * ) FROM tab2 cor0
----
3

query I rowsort
SELECT 82 FROM tab1 WHERE - ( col2 ) * + 32 IS NOT NULL
----
82
82
82

query I rowsort
SELECT 98 + - - col0 FROM tab0
----
113
185
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT col1 * - col1 * 64 + col2 DIV + col0 AS col0 FROM tab2
----
-166464
-287296
-379456

skipif mysql # not compatible
query I rowsort label-4575
SELECT col1 * - col1 * 64 + col2 / + col0 AS col0 FROM tab2
----
-166464
-287296
-379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ( + MIN( 85 ) ) DIV + 58 + + 34 AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4576
SELECT ( + MIN ( 85 ) ) / + 58 + + 34 AS col1 FROM tab0
----
35

query I rowsort
SELECT ALL - 26 + + + 66 + + 90 FROM tab0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT COUNT( - + 37 ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4578
SELECT COUNT ( - + 37 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
12

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + + col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + 56 + SUM( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL = ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT + 56 + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL = ( - 38 )
----
NULL

query I rowsort
SELECT - col1 * + 29 + col2 FROM tab1 AS cor0 WHERE 97 <= col0
----

query I rowsort
SELECT + col1 * 69 + + col1 AS col0 FROM tab2 AS cor0
----
3570
4690
5390

query I rowsort
SELECT ALL - 20 * - + col2 + - 64 FROM tab1 cor0
----
1116
1296
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT ( + COUNT( * ) ) + - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT ( + COUNT ( * ) ) + - - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
67

query I rowsort
SELECT ALL - 60 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT - col2 DIV + 61 + col2 FROM tab0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT - col2 / + 61 + col2 FROM tab0
----
10
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( 98 * - - ( + col1 ) - - col0 ) AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( 98 * - - ( + col1 ) - - col0 ) AND ( + col2 )
----
0

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT + 47 AS col0, + 3 + - 54 AS col2 FROM tab2 AS cor0
----
47
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL + + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - + 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT MAX( DISTINCT - - col2 ) * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-4595
SELECT MAX ( DISTINCT - - col2 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - - MAX( ALL - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4596
SELECT - - MAX ( ALL - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + - ( + col0 ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab2
----
86
86
86

query I rowsort
SELECT ALL - 43 * ( - - col0 ) AS col2 FROM tab1
----
-2193
-3655
-3913

query I rowsort
SELECT DISTINCT + - 1 + col2 AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - - 16 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL = ( + - col0 - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL 31 * - MAX( - col1 ) FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 31 * - MAX ( - col1 ) FROM tab1 AS cor0
----
155

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL SUM ( ALL + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * + 63 + - - col0 col2 FROM tab0 cor0
----
330
402
412

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( - col1 + + 92 ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL ( + col0 ) * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1 / 28
----

query I rowsort
SELECT DISTINCT - col1 * + col0 + + 27 - + col0 FROM tab2 AS cor0
----
-2365
-4965
-5073

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 39 * 18 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT DISTINCT - col2 DIV - + 41 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - col2 / - + 41 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 78 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) + - 97 + - col0 + + 44 AS col2 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT + ( 63 ) AS col1 FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - MIN( ALL + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4621
SELECT - MIN ( ALL + col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT MAX( ALL + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4623
SELECT MAX ( ALL + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + CAST( NULL AS SIGNED ) * + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( NULL AS INTEGER ) * + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) + + 60 + COUNT( * ) * ( - - ( + 78 ) ) / 94 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 60 + COUNT ( * ) * ( - - ( + 78 ) ) / 94 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 + + col1 * + + col0 FROM tab0
----
1967
2707
9799

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT ALL + 42 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + 42 / - - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE ( 73 + - col1 ) > col1 * - col0 + 7
----
59
68
96

query I rowsort
SELECT DISTINCT + + col1 + + + 80 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT + COUNT( * ) AS col2, 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
79

skipif mysql # not compatible
query II rowsort label-4632
SELECT + COUNT ( * ) AS col2, 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4634
SELECT SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4635
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4635
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT 2 * - 3 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < ( + 10 * - col2 - + - col1 - - - col2 * 72 )
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT 2 * - 3 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < ( + 10 * - col2 - + - col1 - - - col2 * 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 81 - - - col0 + - col1 BETWEEN NULL AND ( 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4639
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4639
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + 50 * - - col0 * - col1 AS col0 FROM tab2
----
-117300
-246400
-251250

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT MAX( DISTINCT - + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4642
SELECT MAX ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT + col1 * + + 93 FROM tab2
----
4743
6231
7161

query II rowsort
SELECT col2 AS col0, + 46 * + 89 AS col1 FROM tab1
----
59
4094
68
4094
96
4094

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4645
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 + col0 AND ( + 28 * + + 8 + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) / + col2 ) OR - col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4645
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 + col0 AND ( + 28 * + + 8 + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / + col2 ) OR - col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT col2 DIV - + col2 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT col2 / - + col2 col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 25, - col0 * + - col1 - + 99 AS col0 FROM tab2 AS cor0
----
-25
2247
-25
4829
-25
4926

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - - col1 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + 60 * - - COUNT( + 66 ) AS col1 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 60 * - - COUNT ( + 66 ) AS col1 FROM tab0
----
180

query I rowsort
SELECT + - col0 * - 38 AS col2 FROM tab1 AS cor0
----
1938
3230
3458

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL + COUNT( * ) * + 26 AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + COUNT ( * ) * + 26 AS col1 FROM tab1 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND + col0
----

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab0 AS cor0 WHERE NOT 11 * + 69 * + 76 NOT BETWEEN NULL AND + col2 + 77
----

query I rowsort
SELECT DISTINCT - - 35 AS col0 FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4658
SELECT * FROM tab2 AS cor0 WHERE + col0 < + - 36 * - CAST( - + col2 AS SIGNED ) / - - col2 * col2 - - + 12 + - ( - col0 ) * - col2
----

skipif mysql # not compatible
query III rowsort label-4658
SELECT * FROM tab2 AS cor0 WHERE + col0 < + - 36 * - CAST ( - + col2 AS INTEGER ) / - - col2 * col2 - - + 12 + - ( - col0 ) * - col2
----

query I rowsort
SELECT - + col0 + + - col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col1 + + + 14 AS col0 FROM tab0
----
15
35
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT COUNT( * ) + + + CAST( 11 AS SIGNED ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) + + + CAST ( 11 AS INTEGER ) AS col1 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE - + col1 < - col1
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE - + col1 < - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT + 55 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4663
SELECT + 55 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + + col1 + 88 FROM tab0
----
-8
154
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT + MAX( ALL 93 ) + + + MAX( DISTINCT - + CAST( + 36 AS SIGNED ) ) * - MAX( ALL - col1 ) * - COUNT( + - 98 ) * COUNT( * ) + + COUNT( - col0 ) FROM tab2
----
16620

skipif mysql # not compatible
query I rowsort label-4665
SELECT + MAX ( ALL 93 ) + + + MAX ( DISTINCT - + CAST ( + 36 AS INTEGER ) ) * - MAX ( ALL - col1 ) * - COUNT ( + - 98 ) * COUNT ( * ) + + COUNT ( - col0 ) FROM tab2
----
16620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) - COUNT( * ) * COUNT( * ) * 14 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) - COUNT ( * ) * COUNT ( * ) * 14 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT CAST( + + col0 AS SIGNED ) col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4667
SELECT CAST ( + + col0 AS INTEGER ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT DISTINCT - col0 - + - col2 - + + col1 DIV + col0 AS col2 FROM tab2 cor0
----
-17
-24
-25

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT - col0 - + - col2 - + + col1 / + col0 AS col2 FROM tab2 cor0
----
-17
-24
-25

query I rowsort
SELECT ALL + - 50 + col0 + + col2 FROM tab0 AS cor0
----
12
146
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 / - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT col1 DIV + col1 - + 11 * + 71 - - col2 FROM tab1 AS cor0
----
-684
-712
-721

skipif mysql # not compatible
query I rowsort label-4672
SELECT col1 / + col1 - + 11 * + 71 - - col2 FROM tab1 AS cor0
----
-684
-712
-721

query I rowsort
SELECT ALL + col1 * - 8 FROM tab2 AS cor0
----
-408
-536
-616

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT col2 - - 89 * 65 FROM tab2
----
5808
5825
5843

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT + SUM( + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + SUM ( + col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4678
SELECT ALL col1, - 94 - + - col0 * - 0 * - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL col1, - 94 - + - col0 * - 0 * - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT ALL + col2, + ( - col1 ) AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + - ( + ( - + col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - COUNT( - col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4681
SELECT DISTINCT - COUNT ( - col2 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL - COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT 41 * - COUNT( * ) * - + 58 AS col0 FROM tab0 AS cor0
----
7134

skipif mysql # not compatible
query I rowsort label-4684
SELECT 41 * - COUNT ( * ) * - + 58 AS col0 FROM tab0 AS cor0
----
7134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4685
SELECT col0, + CAST( + 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
12
85
12
91
12

skipif mysql # not compatible
query II rowsort label-4685
SELECT col0, + CAST ( + 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
12
85
12
91
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT ALL + COUNT( * ), COUNT( * ) + 92 + 1 AS col0 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-4686
SELECT ALL + COUNT ( * ), COUNT ( * ) + 92 + 1 AS col0 FROM tab1 AS cor0
----
3
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT DISTINCT + 77 * 81 DIV - col2 FROM tab1 AS cor0
----
-105
-64
-91

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + 77 * 81 / - col2 FROM tab1 AS cor0
----
-105
-64
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT 63 * - col0 * + col2 * + 22 FROM tab1
----
-6785856
-6950790
-8576568

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 )
----
0

query I rowsort
SELECT ALL 98 AS col2 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + + MIN( + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4692
SELECT + + MIN ( + col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT ALL - ( + + 90 ) AS col0 FROM tab0 AS cor0
----
-90
-90
-90

query II rowsort
SELECT - col2 AS col2, 39 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-59
39
-68
39
-96
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + SUM( ALL + - 52 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + SUM ( ALL + - 52 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT - MIN( col1 ), - 16 * COUNT( * ) col0 FROM tab2 AS cor0
----
-51
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4696
SELECT - MIN ( col1 ), - 16 * COUNT ( * ) col0 FROM tab2 AS cor0
----
-51
-48

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 * 69 * + 3 * - col2 AS col2 FROM tab0
----
-20493
-43470
-788049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4699
SELECT DISTINCT + MAX( + CAST( - col0 AS SIGNED ) ) * + ( + - 27 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + MAX ( + CAST ( - col0 AS INTEGER ) ) * + ( + - 27 ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - ( ( - col2 ) ) * - 89 FROM tab0
----
-4102
-869
-8810

query I rowsort
SELECT 19 * - - col2 AS col2 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL SUM( ALL col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL SUM ( ALL col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - col2 * 31 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT DISTINCT + - 15 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + - 15 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - 45 + - - 70 * ( + col2 ) - + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-10784
-6844
2390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 col0, ( - - col1 ) FROM tab1 AS cor0
----
22
14
22
47
22
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT + col1 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4707
SELECT + col1 / col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT col1 DIV - 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4708
SELECT col1 / - 32 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT + + col0 * + 87 * + col0 + + col2 FROM tab2 WHERE 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL - 15 - + MAX( ALL col0 ) AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - 15 - + MAX ( ALL col0 ) AS col2 FROM tab2
----
-90

query I rowsort
SELECT - 8 AS col1 FROM tab1 WHERE - - ( - + col0 ) IS NOT NULL
----
-8
-8
-8

query I rowsort
SELECT DISTINCT ( + 77 ) + + - col2 FROM tab2
----
19
37
54

query I rowsort
SELECT - col2 - + col2 * 55 FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT ALL col2 + - col0 * - + col2 * - 1 * + col2 FROM tab2
----
-102360
-24311
-252242

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4715
SELECT * FROM tab0 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4715
SELECT * FROM tab0 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - + - col2 AS col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT col1 * - 54 * - 25 * - col1 + + col2 FROM tab0 AS cor0
----
-1251
-595340
-8857303

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT + - col2 DIV + + 33 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - col2 / + + 33 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 49 * + col2 FROM tab2 AS cor0
----
1127
1960
2842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL 90 - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE + ( - 18 ) + + - col0 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT ALL 90 - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE + ( - 18 ) + + - col0 < NULL
----

query I rowsort
SELECT ALL col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab0
----
-81

query I rowsort
SELECT 32 * + col0 AS col2 FROM tab2
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT COUNT( * ) + 70 AS col2 FROM tab1 WHERE NOT col1 IN ( - - 64 * 73, + col1, + col2 )
----
70

skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( * ) + 70 AS col2 FROM tab1 WHERE NOT col1 IN ( - - 64 * 73, + col1, + col2 )
----
70

query I rowsort
SELECT ( + col0 ) * + col2 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 53 FROM tab1 WHERE NOT NULL = ( + ( + - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, - 96 col2 FROM tab1
----
14
-96
47
-96
5
-96

query II rowsort
SELECT ALL + col1, 65 + 89 - - col1 FROM tab0
----
1
155
21
175
81
235

query I rowsort
SELECT 81 + + 54 FROM tab0
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL MAX( DISTINCT + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL MAX ( DISTINCT + + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4737
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST( NULL AS DECIMAL ) * 6 * + 89 AND - + 33
----
87
21
10

skipif mysql # not compatible
query III rowsort label-4737
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST ( NULL AS REAL ) * 6 * + 89 AND - + 33
----
87
21
10

query I rowsort
SELECT DISTINCT col2 * col0 * - + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT DISTINCT + - COUNT( * ), COUNT( * ) AS col1 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + + 15 NOT BETWEEN NULL AND 67
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + + 15 NOT BETWEEN NULL AND 67
----
0

query I rowsort
SELECT ALL - 42 + ( + col2 ) FROM tab0
----
-32
5
57

query I rowsort
SELECT DISTINCT - ( - + 55 ) FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT - 5 + + + col2 - - CAST( col2 AS SIGNED ) + + col2 - + 52 AS col1 FROM tab0 AS cor0
----
-27
240
84

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 5 + + + col2 - - CAST ( col2 AS INTEGER ) + + col2 - + 52 AS col1 FROM tab0 AS cor0
----
-27
240
84

query I rowsort
SELECT + + col2 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL AND - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT + col1 * - + col0 + - ( - - col2 ) + - CAST( - - 95 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-4487
-584
-919

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + col1 * - + col0 + - ( - - col2 ) + - CAST ( - - 95 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-4487
-584
-919

query I rowsort
SELECT DISTINCT - col1 * - 39 AS col1 FROM tab0 cor0
----
3159
39
819

onlyif mysql # DIV for integer division: 
query II rowsort label-4747
SELECT DISTINCT + 90 * + col0 * + col0 - + col2 - + 42 AS col0, col2 DIV col2 AS col2 FROM tab2 AS cor0
----
190375
1
368558
1
506150
1

skipif mysql # not compatible
query II rowsort label-4747
SELECT DISTINCT + 90 * + col0 * + col0 - + col2 - + 42 AS col0, col2 / col2 AS col2 FROM tab2 AS cor0
----
190375
1
368558
1
506150
1

query I rowsort
SELECT ( + col2 ) * + + col1 + col1 + col0 + 56 FROM tab0 AS cor0
----
253
374
3959

query I rowsort
SELECT - - col1 + + 11 * - col0 AS col0 FROM tab0 cor0
----
-1066
-84
-936

query I rowsort
SELECT + 60 * + 56 + + col2 - + - col0 - col0 FROM tab0
----
3370
3407
3459

query III rowsort
SELECT * FROM tab2 WHERE ( 50 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4752
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT + 7 + - SUM( + + col0 ) + + COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-221

skipif mysql # not compatible
query I rowsort label-4753
SELECT + 7 + - SUM ( + + col0 ) + + COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 48 FROM tab2
----
46
48
64
48
75
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - col2 * - + col2 + - 16 * col0 AS col2 FROM tab0
----
-1292
1969
8249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col0 FROM tab1
----
-47
-47
-47

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + ( + + col1 ) <> - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4759
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + - 54 AS SIGNED ) * - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4759
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + - 54 AS INTEGER ) * - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT MAX( + 2 ) AS col2 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4760
SELECT MAX ( + 2 ) AS col2 FROM tab0 cor0
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - + + col1 * - col2 * 19 NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT - ( - - col1 ) * 30 AS col1 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4763
SELECT ALL + + 22 AS col2, + ( CAST( - + col0 AS SIGNED ) ) + col0 - - 85 * col0 FROM tab1 AS cor0
----
22
4335
22
7225
22
7735

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL + + 22 AS col2, + ( CAST ( - + col0 AS INTEGER ) ) + col0 - - 85 * col0 FROM tab1 AS cor0
----
22
4335
22
7225
22
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col2 <> NULL )
----

query I rowsort
SELECT ALL + - ( - - 61 ) * 62 AS col1 FROM tab0 cor0
----
-3782
-3782
-3782

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT ALL + col0 DIV - - col2 col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT ALL + col0 / - - col2 col1 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col0 FROM tab2 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 73 + + 80 + + col1 * 72 >= ( col1 )
----

query II rowsort
SELECT ALL - col2 * + - col2 AS col1, 93 FROM tab1 AS cor0
----
3481
93
4624
93
9216
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4771
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4772
SELECT DISTINCT 60 DIV col2 + col0 AS col0, - col0 + + ( + - col2 ) + + col0 FROM tab2
----
48
-23
65
-40
76
-58

skipif mysql # not compatible
query II rowsort label-4772
SELECT DISTINCT 60 / col2 + col0 AS col0, - col0 + + ( + - col2 ) + + col0 FROM tab2
----
48
-23
65
-40
76
-58

query II rowsort
SELECT + col2 AS col2, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + 53 * COUNT( ALL + - ( - 98 ) ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 53 * COUNT ( ALL + - ( - 98 ) ) FROM tab2
----
159

query I rowsort
SELECT DISTINCT - 87 * - col2 + col2 FROM tab0
----
4136
8712
880

query I rowsort
SELECT DISTINCT 71 * col0 AS col1 FROM tab1
----
3621
6035
6461

query II rowsort
SELECT 64 AS col1, + col2 * 46 + + 58 FROM tab1
----
64
2772
64
3186
64
4474

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT COUNT( * ) * + 32 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4779
SELECT COUNT ( * ) * + 32 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT col1 - + + col0 FROM tab2 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT ALL - + 51 * + col0 + + 41 AS col1 FROM tab1 AS cor0
----
-2560
-4294
-4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT col2 * + + col0 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT col2 * + + col0 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT col2 * + - col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - MIN( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - MIN ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col2 + + col1 FROM tab2 cor0 WHERE col0 NOT IN ( + col0, - col0 * 42 )
----

query I rowsort
SELECT + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col0 * col2 * + col2 + col0 AS col0 FROM tab1 cor0
----
295970
420875
470067

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 90 ) - - - 17 col0 FROM tab0 WHERE NOT ( NULL ) <> NULL AND NULL = NULL
----

query I rowsort
SELECT DISTINCT + 53 + - ( + 80 ) FROM tab2
----
-27

query I rowsort
SELECT - 23 + - 46 AS col2 FROM tab0
----
-69
-69
-69

query II rowsort
SELECT ( - + col1 ), - 11 AS col0 FROM tab2
----
-51
-11
-67
-11
-77
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-4795
SELECT DISTINCT - - 10 * col2 AS col1, col1 - - + 67 DIV - 7 AS col2 FROM tab2 AS cor0
----
230
42
400
68
580
58

skipif mysql # not compatible
query II rowsort label-4795
SELECT DISTINCT - - 10 * col2 AS col1, col1 - - + 67 / - 7 AS col2 FROM tab2 AS cor0
----
230
42
400
68
580
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL - - 13 * - + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
2405

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - - 13 * - + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT COUNT( - col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT COUNT ( - col2 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + 80 + col1 col2 FROM tab0
----
1
81
21
101
81
161

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) col0 FROM tab0 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-4801
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - 44, 28 - + 30 + col1 AS col0 FROM tab1 AS cor0
----
-44
12
-44
3
-44
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col2 FROM tab2 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT DISTINCT ( - col0 ) DIV - 60 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT ( - col0 ) / - 60 AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT col2 + 51 + + 63 FROM tab1
----
173
182
210

query I rowsort
SELECT ALL - col2 * + 7 + + ( + col0 ) FROM tab2
----
-115
-216
-331

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - + 37 AS col1 FROM tab2 AS cor0
----
1887
2479
2849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col0 IS NULL
----

query I rowsort
SELECT - + 25 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 87 - + MAX( DISTINCT + - ( - + col0 ) ) FROM tab2 WHERE NULL = - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 87 - + MAX ( DISTINCT + - ( - + col0 ) ) FROM tab2 WHERE NULL = - + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + col1 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT + col1 / - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + COUNT( * ) + COUNT( ALL + col0 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + COUNT ( * ) + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL + col0 + col1 + + col0 AS col2 FROM tab2
----
143
205
217

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 26 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 62, + ( + col0 ), - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - MAX( ALL + 53 ) - + 32 col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4823
SELECT ALL - MAX ( ALL + 53 ) - + 32 col0 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT - col1 * - + 56 + - + col1 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4825
SELECT MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT + 36 * + COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT + 36 * + COUNT ( * ) FROM tab1
----
108

query I rowsort
SELECT + col1 * + col0 * - col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT ALL CAST( - + ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL CAST ( - + ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - 49 * - + COUNT( * ) AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 49 * - + COUNT ( * ) AS col0 FROM tab1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4830
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( 94 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4830
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( 94 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - MAX( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 70 * - - col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT - + col2 + - - 35 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-5
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT DISTINCT COUNT( + 20 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT COUNT ( + 20 ) FROM tab0
----
3

query I rowsort
SELECT 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + + ( + + col1 ) AS col1 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col1 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT - + 73 AS col1 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col1 <> ( + + col1 )
----

query II rowsort
SELECT ALL + 68 + + - 81, + 10 AS col2 FROM tab1 AS cor0
----
-13
10
-13
10
-13
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - MIN( ALL + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4843
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT - 21 FROM tab1 WHERE + ( - col0 ) BETWEEN - ( - - 64 ) AND - 77 * - + col0 * 41
----
-21

query I rowsort
SELECT + col0 * - + col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT ALL + COUNT( * ) AS col1, + 35 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL + COUNT ( * ) AS col1, + 35 FROM tab0
----
3
35

query I rowsort
SELECT col2 * - 27 * - + col0 - - col2 + + col1 FROM tab1 AS cor0
----
132302
135469
167191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( - 70 > + col2 * + 25 + ( - CAST( - col2 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 70 > + col2 * + 25 + ( - CAST ( - col2 AS INTEGER ) ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - - col1 col0 FROM tab1
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT MAX( - 37 ) + - 34 AS col0 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT MAX ( - 37 ) + - 34 AS col0 FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - - MIN( ALL - col1 ) - + 60 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-4851
SELECT - - MIN ( ALL - col1 ) - + 60 FROM tab1 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + COUNT( DISTINCT ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4852
SELECT + COUNT ( DISTINCT ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 > - ( - col2 ) * - col1 + - col2
----

query I rowsort
SELECT ALL + - 26 * col2 * + col1 FROM tab0 AS cor0
----
-2574
-5460
-98982

query I rowsort
SELECT col2 * 43 AS col2 FROM tab1
----
2537
2924
4128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4856
SELECT - CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1, 73 * - col0 AS col2 FROM tab1
----
14
-3723
47
-6643
5
-6205

skipif mysql # not compatible
query II rowsort label-4856
SELECT - CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1, 73 * - col0 AS col2 FROM tab1
----
14
-3723
47
-6643
5
-6205

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL + SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + SUM ( + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - + COUNT( ALL + 5 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4860
SELECT - + COUNT ( ALL + 5 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4861
SELECT - col1 AS col1, + col0 DIV col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-4861
SELECT - col1 AS col1, + col0 / col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + MAX( DISTINCT + ( + 32 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
32

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + MAX ( DISTINCT + ( + 32 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
32

query I rowsort
SELECT DISTINCT col0 * - 18 AS col0 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 WHERE NOT col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + COUNT( - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + COUNT ( - + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 58 + - - col2 + + 7 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 + + + 61 * + 71 AS col2 FROM tab1 AS cor0
----
4249
4277
4310

query I rowsort
SELECT ( 84 ) + col0 / - - col0 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN + col0 AND - - 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT ALL 11 DIV + + col1 + col1 FROM tab1
----
14
47
7

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 11 / + + col1 + col1 FROM tab1
----
14
47
7

query I rowsort
SELECT - 4 + + 96 - + ( 58 ) FROM tab1
----
34
34
34

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + 38 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4873
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + 78 * - + COUNT( * ) + - 82 + + 58 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 78 * - + COUNT ( * ) + - 82 + + 58 FROM tab0
----
-258

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - COUNT( * ) * - MAX( col0 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-4876
SELECT - COUNT ( * ) * - MAX ( col0 ) AS col1 FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - col1 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - col1 * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL COUNT( * ) * 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) * 65 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT - + 37 * - - MIN( + 54 ), 36 + - ( ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-1998
39

skipif mysql # not compatible
query II rowsort label-4879
SELECT - + 37 * - - MIN ( + 54 ), 36 + - ( ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-1998
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4880
SELECT DISTINCT + 90 * - 67, COUNT( * ) - + - 88 / ( - 74 ) * - ( CAST( - - 76 AS SIGNED ) ) + SUM( + - col0 ) - - 26 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
-6030
NULL

skipif mysql # not compatible
query II rowsort label-4880
SELECT DISTINCT + 90 * - 67, COUNT ( * ) - + - 88 / ( - 74 ) * - ( CAST ( - - 76 AS INTEGER ) ) + SUM ( + - col0 ) - - 26 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
-6030
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + + COUNT( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4887
SELECT + + COUNT ( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-237

query I rowsort
SELECT ALL 1 * col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 2 NOT BETWEEN + 82 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
2093
4056
5567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4891
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - + col0 + - 71 / + + 59 NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4893
SELECT DISTINCT + col0 DIV + + 90 + + col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
69
-91
96
-51

skipif mysql # not compatible
query II rowsort label-4893
SELECT DISTINCT + col0 / + + 90 + + col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
69
-91
96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT col1 DIV - + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4894
SELECT col1 / - + col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col2 FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4896
SELECT ALL * FROM tab2 WHERE NOT - CAST( col0 AS SIGNED ) * - 37 + + CAST( NULL AS DECIMAL ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4896
SELECT ALL * FROM tab2 WHERE NOT - CAST ( col0 AS INTEGER ) * - 37 + + CAST ( NULL AS REAL ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT ALL + - 64 + - 72 col0 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT ALL + - 64 + - 72 col0 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - + col2 >= NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT + + COUNT( ALL - - 99 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + COUNT ( ALL - - 99 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 45 + + - 41 + + 0 FROM tab2
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + 25 + + - ( 31 ) * - + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + - 24 col2 FROM tab1 WHERE ( 32 ) IS NOT NULL
----
-10
-10
-10

query II rowsort
SELECT ALL - col0 AS col1, col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT - + 87 DIV + + ( - col2 ) + - + ( - 31 ) FROM tab2 cor0
----
32
33
34

skipif mysql # not compatible
query I rowsort label-4909
SELECT - + 87 / + + ( - col2 ) + - + ( - 31 ) FROM tab2 cor0
----
32
33
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT - SUM( - - col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4910
SELECT - SUM ( - - col2 ) AS col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT + 88 * col2 AS col0 FROM tab1 AS cor0
----
5192
5984
8448

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 31 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 21 * - COUNT( - col0 ) * - 17 FROM tab2 AS cor0
----
1071

skipif mysql # not compatible
query I rowsort label-4913
SELECT 21 * - COUNT ( - col0 ) * - 17 FROM tab2 AS cor0
----
1071

query I rowsort
SELECT ALL - col2 + - 99 AS col2 FROM tab1 AS cor0
----
-158
-167
-195

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE 33 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT col1 + + 3 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT col1 + + 3 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 24 + - - col0 + - 36 FROM tab0 AS cor0
----
-45
27
37

query I rowsort
SELECT - col1 + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - + col0 - + - 80 - - + col0 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT - col2 + + + CAST( NULL AS SIGNED ) + - col0 - - col1 / col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - col2 + + + CAST ( NULL AS INTEGER ) + - col0 - - col1 / col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT - col0 + + CAST( - + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
690
783
9506

skipif mysql # not compatible
query I rowsort label-4924
SELECT - col0 + + CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT col2 * CAST( - col2 AS SIGNED ) * col2 + col0 col2 FROM tab1 AS cor0 WHERE 64 + - 61 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT col2 * CAST ( - col2 AS INTEGER ) * col2 + col0 col2 FROM tab1 AS cor0 WHERE 64 + - 61 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 4 * - col0 FROM tab0 AS cor0
----
348
388
60

query I rowsort
SELECT DISTINCT + - 75 AS col1 FROM tab0 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + MIN( DISTINCT - 22 ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4931
SELECT + MIN ( DISTINCT - 22 ) AS col0 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT col0 * + - col2 * - ( - col1 ) / + ( col2 ) / + col1 + + col2 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4933
SELECT - - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT COUNT( * ) * + + 24 - SUM( ALL 7 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT COUNT ( * ) * + + 24 - SUM ( ALL 7 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - col1 - - col2 / - 78
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT col0 DIV + + 58 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4937
SELECT col0 / + + 58 FROM tab2
----
0
1
1

query II rowsort
SELECT DISTINCT col2 AS col0, col1 * - col1 FROM tab2
----
23
-2601
40
-5929
58
-4489

query II rowsort
SELECT + col0 AS col2, col0 * + col1 FROM tab0
----
15
1215
87
1827
97
97

query I rowsort
SELECT + 86 * - col1 AS col2 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT - col0 * + 44 AS col1 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL 52 * + COUNT( * ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 52 * + COUNT ( * ) AS col2 FROM tab2
----
156

query I rowsort
SELECT DISTINCT - 54 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab0 cor0 WHERE - ( - - col0 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 AS cor0 WHERE NOT - col0 * + ( + 45 ) < 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT DISTINCT col0 + - - 38 + col2 DIV + col2 - + col1 FROM tab1 cor0
----
119
76
83

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT col0 + - - 38 + col2 / + col2 - + col1 FROM tab1 cor0
----
119
76
83

query III rowsort
SELECT * FROM tab2 WHERE NULL <> col2 + + 20
----

query I rowsort
SELECT - ( - ( 80 ) ) FROM tab0
----
80
80
80

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 62 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 51 col1 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT - + 42 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 30, + ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT ALL + - COUNT( * ) DIV MIN( ALL - 62 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + - COUNT ( * ) / MIN ( ALL - 62 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 * - - col1 / - 97 + 0 * + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + col1 + - 25 AS col1 FROM tab1 AS cor0
----
113
40
65

query II rowsort
SELECT DISTINCT col1 AS col0, ( + col0 ) + ( - col0 ) * - col2 AS col0 FROM tab2
----
51
1104
67
4425
77
2624

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + 50 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab2
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4960
SELECT MIN( ALL + - ( CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT MIN ( ALL + - ( CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 83 + - col1 * + + col1 AS col1 FROM tab2
----
-2518
-4406
-5846

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT - SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - - col0 - + - col0 + - 56 + - 68 + + col0 - + + CAST( 64 AS SIGNED ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - - col0 - + - col0 + - 56 + - 68 + + col0 - + + CAST ( 64 AS INTEGER ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab1
----
96
96
96

query I rowsort
SELECT DISTINCT - col1 * + 75 * ( - + 15 ) FROM tab0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT - - col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1 cor0
----
-84

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL - 37 * + - col2 AS col0 FROM tab0 AS cor0
----
1739
3663
370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4970
SELECT DISTINCT + - col1 AS col2, - CAST( - col1 AS SIGNED ) + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019

skipif mysql # not compatible
query II rowsort label-4970
SELECT DISTINCT + - col1 AS col2, - CAST ( - col1 AS INTEGER ) + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019

query II rowsort
SELECT - - col2, - 87 AS col0 FROM tab2 AS cor0
----
23
-87
40
-87
58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT 14 * + COUNT( * ) AS col1 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4972
SELECT 14 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT + ( - - 69 ) DIV COUNT( * ) + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4973
SELECT + ( - - 69 ) / COUNT ( * ) + COUNT ( * ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + ( - - MIN( DISTINCT 54 ) ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4974
SELECT + ( - - MIN ( DISTINCT 54 ) ) FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT ALL col0 DIV + col1 + + 84 col0 FROM tab2 AS cor0
----
84
84
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4975
SELECT ALL col0 / + col1 + + 84 col0 FROM tab2 AS cor0
----
84
84
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL - - col1 * col1 DIV 9 AS col0 FROM tab1 cor0
----
2
21
245

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - col1 * col1 / 9 AS col0 FROM tab1 cor0
----
2
21
245

query I rowsort
SELECT + + 55 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT DISTINCT + 33 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + 33 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL col1 DIV + 77 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL col1 / + 77 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4982
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 * - - col0 AS col1 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - 5 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - 5 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT col1 - + col1 / CAST( NULL AS SIGNED ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0
----
NULL
-45
NULL
-45
NULL
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4986
SELECT col1 - + col1 / CAST ( NULL AS INTEGER ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0
----
NULL
-45
NULL
-45
NULL
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col1 col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 53 + + col2 * + col0 AS col0 FROM tab2
----
1111
2613
4403

query I rowsort
SELECT 0 AS col2 FROM tab0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT COUNT( * ) + - SUM( + + col1 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT COUNT ( * ) + - SUM ( + + col1 ) FROM tab2
----
-192

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 - - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT SUM( ALL - col0 ) + + 17 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT SUM ( ALL - col0 ) + + 17 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL - 44 + col1 * + ( - 21 ), col1 AS col2 FROM tab0
----
-1745
81
-485
21
-65
1

query I rowsort
SELECT - - 90 AS col1 FROM tab2 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT DISTINCT - ( - col1 ) - - + 78 FROM tab0
----
159
79
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 48 + + 7 col1 FROM tab1
----
10
44
50

onlyif mysql # DIV for integer division: 
query II rowsort label-4997
SELECT ALL + col0 - + - ( col2 ) * - col1 col1, + col2 DIV - 76 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4997
SELECT ALL + col0 - + - ( col2 ) * - col1 col1, + col2 / - 76 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0

query I rowsort
SELECT DISTINCT 9 FROM tab2 cor0
----
9

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT ALL - ( - 47 ) AS col0 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT COUNT( DISTINCT - col0 ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5004
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 52 * - col1 NOT BETWEEN - + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT COUNT( * ) * + ( + + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col2 + - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + ( + + 23 ) FROM tab2
----
46
63
81

query I rowsort
SELECT ALL - 64 AS col2 FROM tab1
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5011
SELECT * FROM tab1 WHERE - ( - col2 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5011
SELECT * FROM tab1 WHERE - ( - col2 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col2, + col1 + + col0 FROM tab2 AS cor0
----
23
97
40
141
58
142

query I rowsort
SELECT DISTINCT - ( 76 ) AS col1 FROM tab1 cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( ALL - + col0 ) - + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( ALL - + col0 ) - + - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT 16 - + ( SUM( - col0 ) ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 16 - + ( SUM ( - col0 ) ) FROM tab1 AS cor0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT SUM( ALL + + 75 ) * - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT SUM ( ALL + + 75 ) * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT MIN( - col0 ) FROM tab1 AS cor0 WHERE + col1 - col0 + + col1 <> - - 73
----
-91

skipif mysql # not compatible
query I rowsort label-5017
SELECT MIN ( - col0 ) FROM tab1 AS cor0 WHERE + col1 - col0 + + col1 <> - - 73
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( + 18 ) col1 FROM tab2 AS cor0
----
-28
-46
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT DISTINCT - + MAX( - col2 ), - 26 AS col0 FROM tab2 AS cor0
----
23
-26

skipif mysql # not compatible
query II rowsort label-5019
SELECT DISTINCT - + MAX ( - col2 ), - 26 AS col0 FROM tab2 AS cor0
----
23
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT 3 * - COUNT( * ) * - COUNT( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5020
SELECT 3 * - COUNT ( * ) * - COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5021
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + col0 / + CAST( - 73 AS SIGNED ) * + + 61
----

skipif mysql # not compatible
query III rowsort label-5021
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + col0 / + CAST ( - 73 AS INTEGER ) * + + 61
----

query I rowsort
SELECT ALL + + col1 * + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + COUNT( * ) * 6 col0 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT + COUNT ( * ) * 6 col0 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE - col2 * + - col0 * - - col1 NOT BETWEEN NULL AND - ( + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-5024
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE - col2 * + - col0 * - - col1 NOT BETWEEN NULL AND - ( + col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT COUNT( DISTINCT + + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5025
SELECT COUNT ( DISTINCT + + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT COUNT( 9 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5026
SELECT COUNT ( 9 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT DISTINCT - 16 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - 16 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT col2 DIV + + col2 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT col2 / + + col2 AS col2 FROM tab2
----
1
1
1

query II rowsort
SELECT col1 AS col1, - 47 * - 29 FROM tab1
----
14
1363
47
1363
5
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ( - - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5030
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5031
SELECT ALL - col2, CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL - col2, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT COUNT( DISTINCT + 76 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT COUNT ( DISTINCT + 76 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - + ( + 19 ) AS col0 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT 42 * col0 + 21 AS col2 FROM tab0
----
3675
4095
651

query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab1 WHERE NOT col1 IN ( - ( + col2 ) + 36 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + ( - COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT + 36 AS col2 FROM tab0
----
36
36
36

query I rowsort
SELECT + col0 + col2 FROM tab2 WHERE - 85 IS NOT NULL
----
104
133
69

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab2 WHERE NOT + col1 * 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - COUNT( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5040
SELECT - COUNT ( DISTINCT - col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT COUNT( * ) - - 34 AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT COUNT ( * ) - - 34 AS col0 FROM tab1
----
37

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + 17 + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 * col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT CAST( NULL AS SIGNED ) * 77 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT CAST ( NULL AS INTEGER ) * 77 + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 74 + col1 AS col1 FROM tab0
----
155
75
95

query I rowsort
SELECT ALL - 95 * + col1 AS col2 FROM tab2
----
-4845
-6365
-7315

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT AVG ( DISTINCT 3 ) - + 60 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) * - col2 + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT AVG ( DISTINCT 3 ) - + 60 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) * - col2 + - col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + - 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT col1 * col0 + 93 DIV - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1214
1823
4

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT col1 * col0 + 93 / - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1214
1823
4

query I rowsort
SELECT DISTINCT 38 FROM tab2 WHERE NOT NULL IS NOT NULL
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT - ( - CAST( - col0 AS SIGNED ) ) col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5053
SELECT - ( - CAST ( - col0 AS INTEGER ) ) col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 49 + - col0 NOT BETWEEN NULL AND + 35
----

query I rowsort
SELECT 25 + - 23 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5056
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 93 ) < - ( col2 ) / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 cor0 WHERE NOT NULL < + 5 / 19 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT SUM( ALL + 56 ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT SUM ( ALL + 56 ) AS col1 FROM tab1 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5060
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5060
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT + col0 + + CAST( 41 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
128
138
56

skipif mysql # not compatible
query I rowsort label-5061
SELECT + col0 + + CAST ( 41 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
128
138
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 79 * - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT + SUM( col1 ) + 8 AS col2 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + SUM ( col1 ) + 8 AS col2 FROM tab0
----
111

query I rowsort
SELECT + col2 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 66 FROM tab0
----
-45
-65
15

query I rowsort
SELECT ALL col1 + 37 AS col0 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT + ( 32 ) * + col2 - + 91 FROM tab0 AS cor0
----
1413
229
3077

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( ( - 50 ) * 75 ) <> NULL
----

query I rowsort
SELECT ALL - 89 * col1 + col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - + 59 - - 50 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL - CAST( - ( - col1 ) AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - CAST ( - ( - col1 ) AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + ( - 77 ) - SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5072
SELECT + ( - 77 ) - SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
-198

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 ) < - col1 + - col1 / 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + COUNT( * ) - + COUNT( * ) * 70 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-5075
SELECT + COUNT ( * ) - + COUNT ( * ) * 70 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT DISTINCT - + col1 * + 25 FROM tab2 AS cor0
----
-1275
-1675
-1925

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IN ( 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT col1 * + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN CAST( NULL AS SIGNED ) - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5079
SELECT col1 * + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL ( - 0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 64 + col1 / + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT ALL - 50 DIV - + 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - 50 / - + 70 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( - 98 )
----
0

query I rowsort
SELECT + col1 - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-66
-96
66

query I rowsort
SELECT + col0 * - 64 - + 4 FROM tab0 WHERE NOT 14 + col0 * ( + col1 ) < col0 + + 91 * - ( col2 ) OR NULL IS NULL
----
-5572
-6212
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5087
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + 21 NOT IN ( + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT + CAST( + - 81 AS SIGNED ) col1 FROM tab2
----
-81
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT + CAST ( + - 81 AS INTEGER ) col1 FROM tab2
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5091
SELECT * FROM tab1 WHERE NOT col1 * CAST( NULL AS SIGNED ) > 3
----

skipif mysql # not compatible
query III rowsort label-5091
SELECT * FROM tab1 WHERE NOT col1 * CAST ( NULL AS INTEGER ) > 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT + - COUNT( * ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5092
SELECT + - COUNT ( * ) col1 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col2 FROM tab0 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5094
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT 9 AS col1, col1 FROM tab2
----
9
51
9
67
9
77

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col0 * col2 ) NOT IN ( - col1 ) )
----

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 9 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / 92 = 49
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT 14, MAX( - - ( - 11 ) ) AS col0 FROM tab2 AS cor0
----
14
-11

skipif mysql # not compatible
query II rowsort label-5102
SELECT 14, MAX ( - - ( - 11 ) ) AS col0 FROM tab2 AS cor0
----
14
-11

query I rowsort
SELECT - ( 85 ) FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - + ( col1 ) ) AND col2 - + 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT ALL 57 DIV col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL 57 / col2 FROM tab0 cor0
----
0
1
5

query I rowsort
SELECT col0 * 71 AS col0 FROM tab0 AS cor0 WHERE - 44 * + col0 NOT IN ( + 33 )
----
1065
6177
6887

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 WHERE ( + 98 * - col0 + 88 + + 39 ) IS NOT NULL
----
138
65
90

query I rowsort
SELECT - col2 + - 71 + + - col2 AS col0 FROM tab1
----
-189
-207
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT + col1 + - 57 + col0 AS col1 FROM tab2
----
40
84
85

query I rowsort
SELECT ALL ( + col1 ) + col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - 91 + - ( + COUNT( DISTINCT + col0 ) ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 91 + - ( + COUNT ( DISTINCT + col0 ) ) FROM tab0
----
-94

query I rowsort
SELECT DISTINCT - 15 + + col2 + - ( + + col2 ) AS col0 FROM tab2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT + 12 DIV - 83 * + 84 + 83 AS col1 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5116
SELECT + 12 / - 83 * + 84 + 83 AS col1 FROM tab1
----
83
83
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 AND col0
----

query I rowsort
SELECT ALL - 22 + - - 41 AS col0 FROM tab1
----
19
19
19

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( + ( 84 ) * - col1 ) <= - col2 + + 65 ) )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT ALL - col1 + - - 28 + - - 76 DIV col2 FROM tab0 AS cor0
----
-52
14
27

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - col1 + - - 28 + - - 76 / col2 FROM tab0 AS cor0
----
-52
14
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT ( CAST( - + col1 AS SIGNED ) ) * + - col1 AS col2 FROM tab1 cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5122
SELECT ( CAST ( - + col1 AS INTEGER ) ) * + - col1 AS col2 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT - - ( 85 ) FROM tab2 AS cor0 WHERE - col2 / - col0 IS NOT NULL
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + - col2 col0 FROM tab2
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - 29 * - - col1 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT ALL + col1 * 15 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * + - col1 NOT IN ( - - col1 )
----

query I rowsort
SELECT ALL 69 + - col1 + 23 * + col0 * + 97 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT col1 * - col1 - - ( 28 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + ( + + ( - MIN( 43 ) ) ) col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5130
SELECT + ( + + ( - MIN ( 43 ) ) ) col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - - col2 * col1 * + ( - 18 ) * - col1 + + 17 FROM tab1 AS cor0
----
26567
2703833
338705

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL + 56 DIV + col1 FROM tab0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 56 / + col1 FROM tab0
----
0
2
56

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT 72 - col0 = + 27 - - 97 + col1
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT - 11 DIV ( - 82 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT - 11 / ( - 82 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * + + col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + COUNT( * ) * SUM( + col0 ) - - ( - 42 ) FROM tab0 WHERE NOT + 95 <> - - 41 * + col0 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + COUNT ( * ) * SUM ( + col0 ) - - ( - 42 ) FROM tab0 WHERE NOT + 95 <> - - 41 * + col0 * 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT ALL - 85, - COUNT( DISTINCT + col1 ) col2 FROM tab0
----
-85
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT ALL - 85, - COUNT ( DISTINCT + col1 ) col2 FROM tab0
----
-85
-3

query I rowsort
SELECT ALL - col0 * + - col2 * - 60 FROM tab2
----
-153600
-261000
-63480

query I rowsort
SELECT DISTINCT 24 * - + col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - MIN( DISTINCT - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5140
SELECT - MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 5 > + col0
----

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND col0 / + - col0 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 * + + col2 / col0 + + + col1 + + + 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - MAX( + - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5144
SELECT - MAX ( + - col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL 87 * - 81 FROM tab2 AS cor0
----
-7047
-7047
-7047

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5146
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST( NULL AS DECIMAL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5146
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST ( NULL AS REAL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT + col2 DIV 92 * + - ( ( - - 47 ) ) + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + col2 / 92 * + - ( ( - - 47 ) ) + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * - col1 + col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 < - col2
----

query I rowsort
SELECT ALL - - col1 + 97 FROM tab0 AS cor0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT - COUNT( * ), + 17 col1 FROM tab2
----
-3
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5152
SELECT - COUNT ( * ), + 17 col1 FROM tab2
----
-3
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT - ( - MIN( + col0 ) ) + - - COUNT( * ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - ( - MIN ( + col0 ) ) + - - COUNT ( * ) AS col0 FROM tab2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5154
SELECT * FROM tab2 WHERE + - CAST( + 40 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5154
SELECT * FROM tab2 WHERE + - CAST ( + 40 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 85 FROM tab2 WHERE ( 27 ) <> + col2
----
-85
-85
-85

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( - - col1 * + col1 / - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT COUNT( * ) + 29 AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT COUNT ( * ) + 29 AS col1 FROM tab0
----
32

query II rowsort
SELECT ALL - col1 + ( + col2 ) AS col1, 50 * - + col0 * - 91 AS col0 FROM tab1
----
21
414050
54
386750
82
232050

query I rowsort
SELECT col0 - col2 + - col2 FROM tab1
----
-141
-33
-45

query I rowsort
SELECT ALL col2 - + col2 + + 81 AS col2 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT + col1 + + - col1 * - CAST( ( - + 90 ) AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
-18879
-342549
-8909

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5161
SELECT + col1 + + - col1 * - CAST ( ( - + 90 ) AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
-18879
-342549
-8909

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + col1 + - col1 * col0 AS col2 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + + COUNT( * ) + - + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-5164
SELECT + + COUNT ( * ) + - + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col2, ( + col0 ) )
----
15
87
97

query I rowsort
SELECT ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT DISTINCT COUNT( DISTINCT + 42 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT COUNT ( DISTINCT + 42 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( 5 + - 52 - - col1 ) IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT - COUNT( + ( + 5 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - COUNT ( + ( + 5 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - MAX( DISTINCT ( - 20 ) ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - MAX ( DISTINCT ( - 20 ) ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 57 * + COUNT( * ) col1 FROM tab1
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT 57 * + COUNT ( * ) col1 FROM tab1
----
171

query I rowsort
SELECT DISTINCT 76 + col1 * col1 AS col1 FROM tab2 WHERE NOT ( col1 / col2 - - ( - + col1 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 6 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 6 FROM tab1
----
NULL

query I rowsort
SELECT ( + col1 ) * + 7 AS col1 FROM tab1
----
329
35
98

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) = - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5177
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col0 * - + 20 AS col0 FROM tab0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT + + 60 DIV - MIN( ALL col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5179
SELECT + + 60 / - MIN ( ALL col1 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + - col1 ) ) col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - - 72 AS col2 FROM tab1 AS cor0
----
72

query II rowsort
SELECT DISTINCT col0 + + 25 * col2 AS col1, + col2 FROM tab1 AS cor0 WHERE NULL < ( col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( - 18 + + col0 + - + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 23 ) FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 IN ( 18 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5188
SELECT 44 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT 44 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 33 * col1 AS col0 FROM tab1
----
1551
165
462

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 WHERE NOT + - 40 * - + col0 IS NULL
----
60
60
60

query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT - - col1 DIV - 85 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - - col1 / - 85 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT 67 * - - 73 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT 67 * - - 73 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT MAX( - col0 ) + + COUNT( * ) * 34 col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT MAX ( - col0 ) + + COUNT ( * ) * 34 col1 FROM tab1 cor0
----
51

query I rowsort
SELECT + 44 * + col1 + - 27 AS col0 FROM tab1
----
193
2041
589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + - 84 col0 FROM tab0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + col1 DIV 29 + + + col1 DIV + ( - - col0 ) FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5199
SELECT + col1 / 29 + + + col1 / + ( - - col0 ) FROM tab2
----
2
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT COUNT( + - col2 ) AS col0 FROM tab2 WHERE NULL > CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( + - col2 ) AS col0 FROM tab2 WHERE NULL > CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL - 39 + col0 * - col1 FROM tab1
----
-4316
-464
-753

query I rowsort
SELECT DISTINCT - col0 * - + 76 * + 51 + col2 AS col2 FROM tab2
----
178319
248104
290758

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT COUNT( col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5204
SELECT COUNT ( col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - COUNT( * ) + - SUM( + 88 ) AS col0 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - COUNT ( * ) + - SUM ( + 88 ) AS col0 FROM tab0
----
-267

query II rowsort
SELECT DISTINCT - col0 - - 68 AS col0, + col2 * - col1 FROM tab1 AS cor0
----
-17
-295
-23
-3196
17
-1344

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL - CAST( + - 86 AS SIGNED ) FROM tab1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - CAST ( + - 86 AS INTEGER ) FROM tab1
----
86
86
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 + - col2 - - - 21 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + + col1 * - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE ( col1 - + col2 ) IS NOT NULL
----
-10625
-139944
-9447893

query I rowsort
SELECT col1 * 7 * + 88 FROM tab2
----
31416
41272
47432

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT - ( + COUNT( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - ( + COUNT ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5213
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( 75 ) AS col1, - col1 + + - col2 AS col0 FROM tab0
----
75
-100
75
-128
75
-31

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + + col0 + + 61 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5217
SELECT + col1 + - - col0 AS col1, + 51 DIV col2 FROM tab2 AS cor0
----
141
1
142
0
97
2

skipif mysql # not compatible
query II rowsort label-5217
SELECT + col1 + - - col0 AS col1, + 51 / col2 FROM tab2 AS cor0
----
141
1
142
0
97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL 76 + MAX( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
153

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL 76 + MAX ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 6 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 AS col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5222
SELECT - - 70 DIV + COUNT( DISTINCT - 28 ) + + - 70 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - 70 / + COUNT ( DISTINCT - 28 ) + + - 70 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT DISTINCT - - col1 + 26 * - + col0 + 96 + - - 57 DIV + 4 * + - col2 DIV col2 AS col2 FROM tab2 AS cor0
----
-1063
-1505
-1801

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - - col1 + 26 * - + col0 + 96 + - - 57 / + 4 * + - col2 / col2 AS col2 FROM tab2 AS cor0
----
-1063
-1505
-1801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5224
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0, ( + col1 ) FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - COUNT( * ) + + 3 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - COUNT ( * ) + + 3 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + - col1 + 81 FROM tab0
----
-15
-17
-27

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 10 + - 80 FROM tab2
----
-70

query III rowsort
SELECT * FROM tab2 WHERE - 98 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT + CAST( + 77 AS SIGNED ) + - - col1 FROM tab1
----
124
82
91

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) + - - col1 FROM tab1
----
124
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT ALL col1 DIV 41 - - 29 col0 FROM tab1
----
29
29
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT ALL col1 / 41 - - 29 col0 FROM tab1
----
29
29
30

query I rowsort
SELECT DISTINCT + + col1 * 78 FROM tab2 AS cor0
----
3978
5226
6006

query I rowsort
SELECT - + 25 + + 31 AS col1 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT DISTINCT + + col1 * + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + + col1 * + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 41 - + ( + + col0 ) + + - col2 AS col1, col1 col0 FROM tab2 AS cor0
----
-110
51
-145
77
-174
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL - + MIN( ALL col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - + MIN ( ALL col2 ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT + CAST( + col0 AS SIGNED ) * CAST( col1 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5239
SELECT + CAST ( + col0 AS INTEGER ) * CAST ( col1 AS INTEGER ) FROM tab1
----
425
4277
714

query II rowsort
SELECT + ( - 63 ), col1 FROM tab0 AS cor0
----
-63
1
-63
21
-63
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + 11 * - + 19 * - - 62 FROM tab0 AS cor0
----
-12958

query I rowsort
SELECT ALL + - 0 * - 50 + - + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0
----
NULL
-261
NULL
-291
NULL
-45

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0
----
NULL
-261
NULL
-291
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL MIN( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL MIN ( ALL + col2 ) FROM tab0
----
10

query I rowsort
SELECT + 66 * + col0 AS col1 FROM tab0
----
5742
6402
990

query II rowsort
SELECT + 80 + - col1 * + - 5 AS col2, + col0 FROM tab1
----
105
85
150
51
315
91

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + 54 AS col0, 45 FROM tab0
----
54
45

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT + - 28 * - + COUNT( * ) + - ( + COUNT( * ) ) + 7 col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT + - 28 * - + COUNT ( * ) + - ( + COUNT ( * ) ) + 7 col0 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col2 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT COUNT( * ) + 95 FROM tab0 cor0
----
98

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT COUNT ( * ) + 95 FROM tab0 cor0
----
98

query I rowsort
SELECT DISTINCT - 93 * - 33 FROM tab2 AS cor0
----
3069

query II rowsort
SELECT + col0, col1 + + - col1 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT + - 46 * + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL > 23
----

query I rowsort
SELECT ALL - col0 - col1 + 48 AS col2 FROM tab0 AS cor0
----
-48
-50
-60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 96 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + ( + 16 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT - ( - - COUNT( * ) ) + CAST( NULL AS SIGNED ) - + 13 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT - ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) - + 13 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT ( + ( col2 ) ) * - CAST( NULL AS SIGNED ) * + col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT ( + ( col2 ) ) * - CAST ( NULL AS INTEGER ) * + col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT 71 * COUNT( * ) AS col0 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-5267
SELECT 71 * COUNT ( * ) AS col0 FROM tab2
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col1 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT - col1 DIV + - 36 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5269
SELECT - col1 / + - 36 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT - col0 DIV + ( col2 ) AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5270
SELECT - col0 / + ( col2 ) AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - MIN( ALL - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5271
SELECT - MIN ( ALL - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - 44 + - col0 FROM tab0
----
-131
-141
-59

query I rowsort
SELECT 68 - - col0 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
119
153
159

query I rowsort
SELECT DISTINCT 79 * + - col1 + + - 35 * - 20 FROM tab0
----
-5699
-959
621

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT COUNT( * ) * 12 AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT COUNT ( * ) * 12 AS col0 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT DISTINCT + 17 - + COUNT( * ) AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT + 17 - + COUNT ( * ) AS col2 FROM tab2
----
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 59 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT DISTINCT - - col2 * col0 DIV - 87 FROM tab2 AS cor0
----
-12
-29
-50

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - - col2 * col0 / - 87 FROM tab2 AS cor0
----
-12
-29
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL SUM( DISTINCT + 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL SUM ( DISTINCT + 5 ) FROM tab0
----
5

query II rowsort
SELECT col2 * - 40 * ( + col2 ) AS col2, + col1 AS col1 FROM tab2
----
-134560
67
-21160
51
-64000
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL 87 * + COUNT( * ) - + 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
702

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL 87 * + COUNT ( * ) - + 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
702

query I rowsort
SELECT - 5 FROM tab1 AS cor0 WHERE NOT col1 = 93 + + col1
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL 50 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 50 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - + COUNT( * ) * + MIN( DISTINCT - 84 ) + - + COUNT( * ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - + COUNT ( * ) * + MIN ( DISTINCT - 84 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT - - col0 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-5287
SELECT - - col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL MIN( - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL MIN ( - 41 ) FROM tab1 AS cor0
----
-41

query I rowsort
SELECT + 57 * + 72 FROM tab1
----
4104
4104
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - MAX( + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - MAX ( + col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT - ( + 48 ) * + - SUM( + CAST( + col0 AS SIGNED ) ) FROM tab0
----
9552

skipif mysql # not compatible
query I rowsort label-5293
SELECT - ( + 48 ) * + - SUM ( + CAST ( + col0 AS INTEGER ) ) FROM tab0
----
9552

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 * 27 AS col2, col0 - - + col0 / - col1 + - col0 - - + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT + + col0 + + 99 - ( - 37 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5298
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 - + col2, 18 * + - ( CAST( col2 AS SIGNED ) ) * 23 )
----

skipif mysql # not compatible
query III rowsort label-5298
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 - + col2, 18 * + - ( CAST ( col2 AS INTEGER ) ) * 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT 19 - + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 > - 67
----
16

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT 19 - + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 > - 67
----
16

query I rowsort
SELECT DISTINCT + - col2 + + col0 * - + 39 AS col0 FROM tab1 AS cor0
----
-2085
-3374
-3617

query I rowsort
SELECT DISTINCT - 79 * 25 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + col2 )
----

query I rowsort
SELECT DISTINCT - col0 + - 9 AS col1 FROM tab2
----
-55
-73
-84

query I rowsort
SELECT DISTINCT + 61 + + + 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
150

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 31
----

query I rowsort
SELECT ALL + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 20 IN ( + col0, + 21 * + - 48 * + 26, + 60, col0 - + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 20 IN ( + col0, + 21 * + - 48 * + 26, + 60, col0 - + col2 )
----
-3

query II rowsort
SELECT - - col0, 50 AS col1 FROM tab1 AS cor0
----
51
50
85
50
91
50

query II rowsort
SELECT col2, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 15 / 20 + - col2 - + col2 / 97
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 + - col2 + + col0 / col0 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 col0 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL - COUNT( DISTINCT col1 ) - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( DISTINCT col1 ) - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL - SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + 31 - + + col1 AS col2 FROM tab1 AS cor0
----
-16
17
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT - MIN( - 76 ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT - MIN ( - 76 ) AS col1 FROM tab0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT 12 DIV - col1 + col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT 12 / - col1 + col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT DISTINCT ( + MAX( - + 5 ) ) + - ( + COUNT( * ) ) DIV + COUNT( * ) + - 52 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT ( + MAX ( - + 5 ) ) + - ( + COUNT ( * ) ) / + COUNT ( * ) + - 52 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE + 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT COUNT( * ) * - - MAX( ALL + 25 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) * - - MAX ( ALL + 25 ) AS col1 FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) + + col2 col2 FROM tab0 WHERE col2 IS NOT NULL
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5325
SELECT COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5328
SELECT + col2 DIV + + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5328
SELECT + col2 / + + col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT ALL CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( - - col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - col0 * 1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - 70 AS SIGNED ) < - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - 70 AS INTEGER ) < - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + ( + col2 ) col0, col1 + + col1 col1 FROM tab1 AS cor0
----
21
94
54
10
82
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT DISTINCT - + ( - - col0 ) DIV + col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - + ( - - col0 ) / + col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE + col1 >= + col2
----

query I rowsort
SELECT 66 * - 51 AS col2 FROM tab1 AS cor0
----
-3366
-3366
-3366

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 + col0 / - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 42 > ( + 78 )
----

query I rowsort
SELECT + col0 + + 76 + - 2 AS col2 FROM tab2
----
120
138
149

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT ALL 21 DIV - 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 21 / - 65 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + - + col1 AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT + COUNT( * ) + + + COUNT( + + col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( + + col1 ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT DISTINCT - col0 DIV + ( - - col2 ) AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT - col0 / + ( - - col2 ) AS col1 FROM tab2
----
-1
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + - ( + - col1 ) - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT 8 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT DISTINCT col1 * - - col1 * + 72 * - 51 + + 98 DIV 46 AS col0 FROM tab2
----
-16483606
-21771286
-9550870

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT col1 * - - col1 * + 72 * - 51 + + 98 / 46 AS col0 FROM tab2
----
-16483606
-21771286
-9550870

query I rowsort
SELECT ALL 16 AS col2 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT ALL 96 AS col1 FROM tab0 AS cor0 WHERE 26 >= - - col1 + + 52 + col2 * - 39
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - COUNT( ALL - + ( + + col0 ) ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT - COUNT ( ALL - + ( + + col0 ) ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + - 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-5356
SELECT 92 DIV col1 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
1
91
18
85
6
51

skipif mysql # not compatible
query II rowsort label-5356
SELECT 92 / col1 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
1
91
18
85
6
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT - 26 - + col1 < - + 11 - + col1
----

query I rowsort
SELECT ( + 36 ) AS col0 FROM tab2
----
36
36
36

query II rowsort
SELECT DISTINCT - 89 AS col1, col2 FROM tab1
----
-89
59
-89
68
-89
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col1 FROM tab0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT 20 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT 20 / col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( + 51 ) * 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( + 51 ) * 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT - col1 * + 55 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - ( - MAX( - + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - ( - MAX ( - + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT 35 DIV + col0 + - + 41 AS col2 FROM tab2 cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-5370
SELECT 35 / + col0 + - + 41 AS col2 FROM tab2 cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 28 col1 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + 66 + + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 66 + + COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 4 * ( - + col0 ) FROM tab0 AS cor0
----
348
388
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col2, + col1 FROM tab2
----
-52
51
-52
67
-52
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL - col0 * - + col0 + - 68 + - + col1 FROM tab1
----
2519
7152
8166

query I rowsort
SELECT ALL 31 + ( - + ( + 3 ) ) + + - 77 AS col0 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT - ( - 94 ) * col2 + - col2 AS col0 FROM tab2
----
2139
3720
5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT + ( - CAST( - - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + ( - CAST ( - - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 78 + + - 78 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + col0 + + col0 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT - 16 * CAST( - ( + col2 ) AS SIGNED ) + col0 col0 FROM tab2 AS cor0
----
1003
414
704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT DISTINCT - 16 * CAST ( - ( + col2 ) AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
1003
414
704

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE NOT - 44 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - + 84 * - col2 - 95 AS col2 FROM tab0 AS cor0
----
3853
745
8221

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL - CAST( MIN( + 60 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - CAST ( MIN ( + 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query II rowsort
SELECT - + col0 AS col2, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT DISTINCT + + 10, + col2 AS col1 FROM tab0 AS cor0
----
10
10
10
47
10
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5392
SELECT ALL SUM( ALL + 27 ), + COUNT( * ) DIV + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
81
4

skipif mysql # not compatible
query II rowsort label-5392
SELECT ALL SUM ( ALL + 27 ), + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
81
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + 74 DIV col2 * + + col0 * + + col2 FROM tab0
----
0
6090
705

skipif mysql # not compatible
query I rowsort label-5393
SELECT + 74 / col2 * + + col0 * + + col2 FROM tab0
----
0
6090
705

onlyif mysql # DIV for integer division: 
query II rowsort label-5394
SELECT ALL 22 DIV - + col0 AS col2, + 32 FROM tab0
----
-1
32
0
32
0
32

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL 22 / - + col0 AS col2, + 32 FROM tab0
----
-1
32
0
32
0
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT 89 DIV + + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5395
SELECT 89 / + + col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5397
SELECT + + COUNT( DISTINCT + - col2 ), + SUM( - 7 ) AS col0 FROM tab2 cor0
----
3
-21

skipif mysql # not compatible
query II rowsort label-5397
SELECT + + COUNT ( DISTINCT + - col2 ), + SUM ( - 7 ) AS col0 FROM tab2 cor0
----
3
-21

query I rowsort
SELECT - + col0 * 98 * col2 FROM tab2 AS cor0
----
-103684
-250880
-426300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT - COUNT( DISTINCT + 74 ) - - 7 + - 91 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - COUNT ( DISTINCT + 74 ) - - 7 + - 91 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 16 AS col0 FROM tab0
----
16
16
16

query II rowsort
SELECT DISTINCT 6, + col2 AS col0 FROM tab2
----
6
23
6
40
6
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT - CAST( - + SUM( ALL + + 45 ) AS SIGNED ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-5403
SELECT - CAST ( - + SUM ( ALL + + 45 ) AS INTEGER ) FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 67 * 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col2 + - col1 * - col2 AS col1, 65 - - col2 + + + col1 * - col0 FROM tab1 AS cor0
----
1440
-553
3264
-4144
354
-301

query I rowsort
SELECT DISTINCT 28 * - col2 * col2 AS col1 FROM tab2
----
-14812
-44800
-94192

query I rowsort
SELECT - 94 + col1 + - - ( + col2 ) FROM tab0
----
-63
34
6

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL - COUNT( * ) * + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT SUM( 71 ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-5411
SELECT SUM ( 71 ) FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - COUNT( - + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( - + col0 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + col2 - - - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( - col0 NOT BETWEEN col2 AND NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT - 23 - + 33 + + - col2 + - + col1 DIV col2 - - + col1 AS col0 FROM tab1 AS cor0
----
-110
-138
-77

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 23 - + 33 + + - col2 + - + col1 / col2 - - + col1 AS col0 FROM tab1 AS cor0
----
-110
-138
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT DISTINCT + MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( col1 * - + col0 - col1 + - 16 + + + col1 + + CAST( + + 70 AS SIGNED ) IS NULL )
----
97

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( col1 * - + col0 - col1 + - 16 + + + col1 + + CAST ( + + 70 AS INTEGER ) IS NULL )
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - col1 * - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5419
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE + col1 <> - 95
----
14
47
5

query I rowsort
SELECT DISTINCT - ( + AVG ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5422
SELECT DISTINCT - - ( - col1 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT - - ( - col1 ) / + col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL + COUNT( ALL - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + COUNT ( ALL - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT ALL COUNT( * ) * CAST( + - COUNT( ALL col1 ) AS SIGNED ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL COUNT ( * ) * CAST ( + - COUNT ( ALL col1 ) AS INTEGER ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5426
SELECT ALL col2, col2 * col2 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL col2, col2 * col2 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT DISTINCT 41 AS col1, col2 FROM tab1
----
41
59
41
68
41
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT MIN( ALL + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT MIN ( ALL + + col0 ) FROM tab1
----
51

query I rowsort
SELECT - col1 * + 37 FROM tab2 cor0
----
-1887
-2479
-2849

query I rowsort
SELECT ALL - - 5 AS col1 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT - 71 + + + MIN( ALL - - 30 ) * - + 43 FROM tab2 AS cor0
----
-1361

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - 71 + + + MIN ( ALL - - 30 ) * - + 43 FROM tab2 AS cor0
----
-1361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT 47 + + CAST( NULL AS SIGNED ) + + 6 - - + col2 + col2 - - 40 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT 47 + + CAST ( NULL AS INTEGER ) + + 6 - - + col2 + col2 - - 40 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT MAX( ALL - col2 ) + 62 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5434
SELECT MAX ( ALL - col2 ) + 62 FROM tab0
----
52

query I rowsort
SELECT + ( + + ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ( 48 ) * + col0 AS col1 FROM tab2 AS cor0
----
2208
3072
3600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + 10 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT DISTINCT - ( - 29 ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - ( - 29 ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5439
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * col2 + col1 NOT BETWEEN 71 AND + 84
----

skipif mysql # not compatible
query III rowsort label-5439
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * col2 + col1 NOT BETWEEN 71 AND + 84
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT - 42 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - 42 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 77 - col2 FROM tab1
----
-19
18
9

query II rowsort
SELECT ALL 62 * col1 + - - col2 AS col2, + col2 * col0 * + 29 AS col2 FROM tab1
----
2982
179452
369
145435
964
141984

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT - COUNT( DISTINCT 82 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - COUNT ( DISTINCT 82 ) AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT - - col1 + - - CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT - - col1 + - - CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( + col1 ) ) * - 69 > NULL
----

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT + SUM( - - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5447
SELECT + SUM ( - - col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - ( 81 ) * + col0 FROM tab2 AS cor0
----
3726
5184
6075

query I rowsort
SELECT col1 * + 97 FROM tab2 AS cor0
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT COUNT( - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5450
SELECT COUNT ( - col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 * 62 * col2 - - col0 + - col2, + col0 + ( + col2 ) col0 FROM tab2 AS cor0
----
-24219
69
-42136
104
-61115
133

query I rowsort
SELECT ALL ( + - col0 ) * col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT MAX( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT MAX ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 41 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5455
SELECT ALL + 48 DIV + 1 AS col0, COUNT( * ) + 49 AS col0 FROM tab0 AS cor0
----
48
52

skipif mysql # not compatible
query II rowsort label-5455
SELECT ALL + 48 / + 1 AS col0, COUNT ( * ) + 49 AS col0 FROM tab0 AS cor0
----
48
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + SUM( + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5456
SELECT + SUM ( + col2 ) FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 58 * + col1 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT + ( 57 ) DIV - 35 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5458
SELECT + ( 57 ) / - 35 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * + 81 AS col2 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - COUNT( * ) * + 99 AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-5460
SELECT - COUNT ( * ) * + 99 AS col0 FROM tab0
----
-297

query I rowsort
SELECT ALL + 67 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + ( - 92 ) FROM tab2
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + MIN( DISTINCT - 72 ) AS col0 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5463
SELECT + MIN ( DISTINCT - 72 ) AS col0 FROM tab0 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT + SUM( ALL ( + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + SUM ( ALL ( + col0 ) ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT + - COUNT( * ) * - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
279

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT + - COUNT ( * ) * - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
279

query I rowsort
SELECT ALL 1 + - - ( col0 ) FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT + SUM( ALL 5 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5467
SELECT + SUM ( ALL 5 ) AS col1 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - 47 + + 13 * - MAX( ALL col0 ) * - 20 col0 FROM tab0
----
25173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5468
SELECT - 47 + + 13 * - MAX ( ALL col0 ) * - 20 col0 FROM tab0
----
25173

query I rowsort
SELECT col2 + + 78 FROM tab2 AS cor0
----
101
118
136

onlyif mysql # aggregate syntax: 
query II rowsort label-5470
SELECT ALL + COUNT( * ) col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5470
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT + - col0 + col2 + + CAST( NULL AS SIGNED ) - + - col1 * - 45 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT + - col0 + col2 + + CAST ( NULL AS INTEGER ) - + - col1 * - 45 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 5 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 5 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 96 col0 FROM tab1 cor0
----
-11
-45
-5

query I rowsort
SELECT ALL 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
43
43
43

query II rowsort
SELECT DISTINCT ( + 21 ) AS col0, - col1 AS col0 FROM tab1
----
21
-14
21
-47
21
-5

query I rowsort
SELECT - ( - ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5477
SELECT + MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT SUM( ALL - 62 ) * COUNT( * ) - - + 90 + 88 FROM tab0, tab1 AS cor0
----
-4844

skipif mysql # not compatible
query I rowsort label-5478
SELECT SUM ( ALL - 62 ) * COUNT ( * ) - - + 90 + 88 FROM tab0, tab1 AS cor0
----
-4844

query II rowsort
SELECT - + col2 AS col1, + 70 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
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-5480
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - + ( 56 ) AND + 63 * - + ( - col2 ) + + 14
----

query II rowsort
SELECT DISTINCT + col0 * + - col0 * col0 + + - col0 AS col1, - 62 AS col0 FROM tab0 AS cor0
----
-3390
-62
-658590
-62
-912770
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col0 > + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 / + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + - 91 * - COUNT( * ) * + 57 FROM tab0 AS cor0
----
15561

skipif mysql # not compatible
query I rowsort label-5487
SELECT + - 91 * - COUNT ( * ) * + 57 FROM tab0 AS cor0
----
15561

query I rowsort
SELECT DISTINCT - + ( + + col2 ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 + - 33 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col0 col2 FROM tab1 cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT + 80 AS col2, - 35 + SUM( + 60 ) FROM tab1 AS cor0
----
80
145

skipif mysql # not compatible
query II rowsort label-5490
SELECT + 80 AS col2, - 35 + SUM ( + 60 ) FROM tab1 AS cor0
----
80
145

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + ( + 16 ) FROM tab1
----
1360
1456
816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + 8 * COUNT( ALL - col2 ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + 8 * COUNT ( ALL - col2 ) AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - ( - - MIN( ALL + 43 ) ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5495
SELECT - ( - - MIN ( ALL + 43 ) ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT col0 * 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT ALL - COUNT( * ) DIV 51 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - COUNT ( * ) / 51 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * - + col1 + - col0 + - - col2 AS col1 FROM tab1
----
399
4254
759

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - COUNT( col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - COUNT ( col1 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT - CAST( NULL AS SIGNED ) + - 61 + col0 * - col0 * col0 FROM tab2 WHERE NULL <= - - 94 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5500
SELECT - CAST ( NULL AS INTEGER ) + - 61 + col0 * - col0 * col0 FROM tab2 WHERE NULL <= - - 94 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 + - col0 + + col0 + - col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab2 WHERE + 10 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5503
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - 89 + - - ( + 9 ) * - - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - 89 + - - ( + 9 ) * - - 31 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT - MAX( 75 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 88 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - MAX ( 75 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 88 + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL - MIN( - col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT ALL - MIN ( - col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - col1 * col2 * + - col2 * + 81 * ( - ( + + 51 ) ) + 36 AS col1 FROM tab1 AS cor0
----
-532998108
-71900019
-897781932

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT - + SUM( DISTINCT col2 ) DIV - COUNT( DISTINCT + + 53 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5511
SELECT - + SUM ( DISTINCT col2 ) / - COUNT ( DISTINCT + + 53 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT ALL col0, 4 AS col0 FROM tab1 AS cor0
----
51
4
85
4
91
4

query III rowsort
SELECT * FROM tab0 WHERE NULL = + - ( + 73 ) * col2
----

query I rowsort
SELECT ALL + 60 * + 65 FROM tab0 WHERE NULL BETWEEN col2 AND NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + ( 11 ) ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 + - + ( - ( - - col1 ) ) + - 64 FROM tab0
----
32
34
44

query I rowsort
SELECT DISTINCT 84 - 21 AS col0 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL CAST ( NULL AS INTEGER ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT ALL COUNT( * ) - - + CAST( + 56 AS SIGNED ) AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL COUNT ( * ) - - + CAST ( + 56 AS INTEGER ) AS col2 FROM tab2
----
59

query I rowsort
SELECT DISTINCT + 75 + + - col2 FROM tab2
----
17
35
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + 27 * - MIN( + 54 ) AS col2 FROM tab1 WHERE NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + 27 * - MIN ( + 54 ) AS col2 FROM tab1 WHERE NULL = col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * - + col2 col2 FROM tab0
----
141
297
30

query I rowsort
SELECT - col2 * ( col0 ) + col0 FROM tab0 AS cor0 WHERE NOT ( + - 15 ) + col1 * - - ( - col0 ) BETWEEN + + col2 AND + 13 + col1 + + - col0
----
-690
-783
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + + CAST( + 95 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif mysql # not compatible
query I rowsort label-5524
SELECT + + CAST ( + 95 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT 16 * + - COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT 16 * + - COUNT ( * ) FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5527
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0, - 77 FROM tab1 AS cor0
----
NULL
-77
NULL
-77
NULL
-77

skipif mysql # not compatible
query II rowsort label-5527
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0, - 77 FROM tab1 AS cor0
----
NULL
-77
NULL
-77
NULL
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - col2 ) col1, - 78 FROM tab0 AS cor0
----
10
-78
47
-78
99
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 46 col2 FROM tab0
----
-31
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + 36 * + + COUNT( - 83 ) * + COUNT( * ) col1 FROM tab2
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT DISTINCT + 36 * + + COUNT ( - 83 ) * + COUNT ( * ) col1 FROM tab2
----
324

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + - col0 AND NULL
----

query I rowsort
SELECT ( + + col2 ) + - - col0 AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT + 2 + col0 FROM tab1
----
53
87
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT 48 * + 62 + - ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT 48 * + 62 + - ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 AS col0, col0 * + col2 AS col1 FROM tab1
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT - 40 * - - 64 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2560
-2560
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL + CAST( + AVG ( ALL - 78 ) AS SIGNED ) * - 56 AS col0 FROM tab0 AS cor0
----
4368

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + CAST ( + AVG ( ALL - 78 ) AS INTEGER ) * - 56 AS col0 FROM tab0 AS cor0
----
4368

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 50 col2 FROM tab1 AS cor0
----
-2550
-4250
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
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-5540
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5541
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 94 * - 14 - - col1 FROM tab1
----
-1269
-1302
-1311

query I rowsort
SELECT DISTINCT - col1 * 17 - + col0 AS col0 FROM tab1
----
-170
-289
-890

query I rowsort
SELECT - col2 * + 64 AS col0 FROM tab1
----
-3776
-4352
-6144

query I rowsort
SELECT - 21 + + col2 FROM tab1 WHERE NOT + ( col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 12 * col1 AS col0 FROM tab2
----
-612
-804
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT - 29 * MIN( DISTINCT col2 ) AS col0 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-5548
SELECT - 29 * MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
-290

query I rowsort
SELECT DISTINCT col0 + 23 FROM tab2
----
69
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT COUNT( * ) * 16 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( * ) * 16 FROM tab2
----
48

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) NOT IN ( + 95 / - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - col1 col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - 2 * col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT - 63 AS col0 FROM tab1 WHERE NOT col1 * - col1 IS NULL
----
-63
-63
-63

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( 74 + - col0 )
----

query I rowsort
SELECT - ( + 40 ) + + 0 AS col1 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT + col1 + + col1 FROM tab0 WHERE NULL IS NULL
----
162
2
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5559
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0 WHERE NOT 38 * col0 BETWEEN NULL AND - col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - 26 * SUM( DISTINCT + col0 * + col2 ) FROM tab1
----
-418574

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 26 * SUM ( DISTINCT + col0 * + col2 ) FROM tab1
----
-418574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 25 ) col1 FROM tab2
----
-25

query I rowsort
SELECT + col1 + - ( + col2 ) * col1 AS col1 FROM tab2 WHERE 76 > ( 74 )
----
-1122
-3003
-3819

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 59 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL + CAST( 35 AS SIGNED ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5565
SELECT ALL + CAST ( 35 AS INTEGER ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT COUNT( * ) + - MAX( ALL col2 + col0 ) AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( * ) + - MAX ( ALL col2 + col0 ) AS col0 FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT 70 + COUNT( + col1 + 93 ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-5567
SELECT 70 + COUNT ( + col1 + 93 ) AS col2 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL COUNT( * ) * + COUNT( DISTINCT - 16 ) AS col1 FROM tab1 WHERE NOT - col2 * 64 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT - 16 ) AS col1 FROM tab1 WHERE NOT - col2 * 64 IS NOT NULL
----
0

query I rowsort
SELECT col2 * - col2 + + 28 AS col1 FROM tab1
----
-3453
-4596
-9188

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 + + col0 AND ( 61 )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 > 95
----
59
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab2 WHERE NOT + 89 + - col2 * col2 = ( - col1 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 50 - - 17 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL COUNT( * ) + + 48 AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL COUNT ( * ) + + 48 AS col2 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + COUNT( * ) + COUNT( * ) * 73 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-5575
SELECT + COUNT ( * ) + COUNT ( * ) * 73 FROM tab1
----
222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT ALL 83 DIV col2 FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) BETWEEN ( + col2 ) AND + col2
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 83 / col2 FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) BETWEEN ( + col2 ) AND + col2
----
0
1
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - 95 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 95 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-285

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE col2 + CAST( NULL AS SIGNED ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE col2 + CAST ( NULL AS INTEGER ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + + 55 + col0 AS col0 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT + ( + 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT ( ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT ( ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT ALL col1 * CAST( NULL AS SIGNED ) * + 62 + + 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * + 62 + + 15 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 62 + 8 AS col1 FROM tab1 WHERE + col1 * 53 IS NOT NULL
----
70
70
70

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( + 5 ) NOT BETWEEN NULL AND ( col0 ) / - col0 + - col0 * + col1
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = col0 + - col1
----

query I rowsort
SELECT DISTINCT - 40 + 15 FROM tab1
----
-25

query I rowsort
SELECT ALL + col0 * - col1 + col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + 20 * + COUNT( DISTINCT 32 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-5591
SELECT + 20 * + COUNT ( DISTINCT 32 ) FROM tab0
----
20

query I rowsort
SELECT - col1 * - 71 + 77 AS col0 FROM tab1
----
1071
3414
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + COUNT( * ) + + 80 AS col0 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5596
SELECT + COUNT ( * ) + + 80 AS col0 FROM tab0 AS cor0
----
83

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT + 37 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + 37 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT + col1 + - - col0 + col0 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( 98 ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - + SUM( ALL - - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5602
SELECT - + SUM ( ALL - - 8 ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL col0 * + col2 + - col0 - + col0 FROM tab2 cor0
----
2432
4200
966

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT - + col0 * - col2 - - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5604
SELECT - + col0 * - col2 - - col2 / col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT MIN( + col2 ) FROM tab1 AS cor0 WHERE col1 * - col0 > ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT MIN ( + col2 ) FROM tab1 AS cor0 WHERE col1 * - col0 > ( - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT - + CAST( NULL AS SIGNED ) - + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT - + CAST ( NULL AS INTEGER ) - + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - ( - 72 ) AS col2 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT ALL 57 * col2 FROM tab0 AS cor0
----
2679
5643
570

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + 83 BETWEEN - col0 AND 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 67 - col2 FROM tab0 cor0
----
-32
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT - ( COUNT( * ) ) - + 84 AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - ( COUNT ( * ) ) - + 84 AS col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - + 21 * - 56 AS col1 FROM tab0 AS cor0
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5613
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col2 < CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-5613
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col2 < CAST ( NULL AS INTEGER ) + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + 63 - ( col1 ) col0 FROM tab2 AS cor0
----
-34
-78
-79

query I rowsort
SELECT ALL ( col0 ) - - 26 * + col2 AS col2 FROM tab0 AS cor0
----
1237
2671
347

query I rowsort
SELECT DISTINCT - col1 * - 80 AS col0 FROM tab0 cor0
----
1680
6480
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * + 16 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 47 >= - - col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT DISTINCT + 75 DIV - - 95 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 75 / - - 95 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL 90 * - 30 AS col2 FROM tab2
----
-2700
-2700
-2700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 * + ( + col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT col0 - col0 AS col2 FROM tab0 WHERE NOT 97 * - - col2 * - 70 IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IN ( - col0 * 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5626
SELECT * FROM tab2 WHERE NOT + 63 / - - col0 + col0 + - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5626
SELECT * FROM tab2 WHERE NOT + 63 / - - col0 + col0 + - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - - col2 ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab1 WHERE NULL NOT IN ( + + col2 * - + 76 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE 49 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + 77 * 42 FROM tab0 AS cor0
----
3234
3234
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql #