sqllogictest
Artifact Content
Not logged in

Artifact 3e7412a23018b55adba1c47aeb642630be027486:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT DISTINCT 36 - 2 FROM tab1 AS cor0
----
34

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

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL col1 / + 82 + + 32 AS col1 FROM tab2 AS cor0
----
32
32
32

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - col1 col1, + col0 FROM tab0 AS cor0
----
-66
87
-96
97
66
15

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab1 cor0
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + 20 * - - 17 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT 93 = NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab1
----
6
6
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT DISTINCT + MIN( ALL - 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT + MIN ( ALL - 15 ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * + col1 * - 5 col0 FROM tab1
----
-1005095
-10625
-49980

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 94 + + 1 * - col2 * + col0
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-19
SELECT COUNT ( * ) + - - 72 col0 FROM tab0 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 WHERE - 26 >= NULL
----

query I rowsort
SELECT DISTINCT 94 + + + col0 FROM tab2
----
140
158
169

query I rowsort
SELECT col2 + + + ( + col0 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT + 53 DIV - + ( 21 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 53 / - + ( 21 ) FROM tab0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 71 col0 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT DISTINCT + col0 + - - 21 AS col1 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL col0 - - col1 DIV + 22 AS col0 FROM tab2 cor0
----
48
67
78

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL col0 - - col1 / + 22 AS col0 FROM tab2 cor0
----
48
67
78

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT col2 DIV - col1 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-28
SELECT col2 / - col1 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT DISTINCT - col0 * + 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col0 FROM tab2 AS cor0
----
2601
4489
5929

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

query I rowsort
SELECT ALL + 81 * + col0 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
4131
6885
7371

query I rowsort
SELECT 82 * - 56 FROM tab2
----
-4592
-4592
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + SUM( + + 43 ) AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-34
SELECT + SUM ( + + 43 ) AS col2 FROM tab0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL MIN( + + 14 ) FROM tab0 WHERE NOT NULL > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL MIN ( + + 14 ) FROM tab0 WHERE NOT NULL > + col0
----
NULL

query II rowsort
SELECT col0, 97 * - 42 AS col0 FROM tab0
----
15
-4074
87
-4074
97
-4074

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-38
SELECT ALL ( - CAST( - 87 AS SIGNED ) ) col2 FROM tab0
----
87
87
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT ALL ( - CAST ( - 87 AS INTEGER ) ) col2 FROM tab0
----
87
87
87

query II rowsort
SELECT ALL col1, + 20 AS col1 FROM tab1
----
14
20
47
20
5
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col1 * 86 - col0 col2 FROM tab2 AS cor0
----
23
-4432
40
-6686
58
-5837

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col1 * + 12 + + col0, col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 73 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-43
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 + + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-43
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 + + - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL col1 + 89 * + col1 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL + COUNT( + - CAST( - col0 AS SIGNED ) ) + - 17 AS col1 FROM tab0 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + COUNT ( + - CAST ( - col0 AS INTEGER ) ) + - 17 AS col1 FROM tab0 cor0
----
-14

query I rowsort
SELECT + + col0 + - 32 FROM tab2 AS cor0
----
14
32
43

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

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

query II rowsort
SELECT ALL - col0 + - + col0 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-102
14
-170
5
-182
47

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT + COUNT( col2 ) col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( + 81 ) col0 FROM tab2 AS cor0 WHERE col1 / - col2 * col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 25 + - ( + col1 ) AS col1 FROM tab0
----
-56
24
4

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT + COUNT( * ) AS col2, 67 AS col1 FROM tab2
----
3
67

skipif mysql # not compatible
query II rowsort label-52
SELECT + COUNT ( * ) AS col2, 67 AS col1 FROM tab2
----
3
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN - + col0 * + 74 * + 99 / 2 AND ( - - col0 ) )
----

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

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

query I rowsort
SELECT - col1 - - + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 - + 45 + + + col0 * + + col0 FROM tab0
----
195
7611
9461

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

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

query I rowsort
SELECT - 21 + 48 FROM tab1 AS cor0
----
27
27
27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT DISTINCT + 86 * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-258

query II rowsort
SELECT DISTINCT - col0 AS col1, + 16 * - 78 AS col0 FROM tab1 AS cor0
----
-51
-1248
-85
-1248
-91
-1248

query II rowsort
SELECT + col1 + + col0 * col1 AS col0, 65 + - + 9 AS col1 FROM tab1 AS cor0
----
430
56
4324
56
728
56

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - + 13 + + COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-62
SELECT - + 13 + + COUNT ( * ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL col0 + + - ( 0 ) + + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT MIN( 52 ) - + 80 AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT MIN ( 52 ) - + 80 AS col1 FROM tab1
----
-28

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

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

query I rowsort
SELECT DISTINCT - - 51 * col1 * col1 AS col2 FROM tab1 AS cor0
----
112659
1275
9996

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT ALL + 33 DIV - - 29 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 33 / - - 29 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT ALL + SUM( ALL + col2 ) DIV - 87 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + SUM ( ALL + col2 ) / - 87 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-69
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - col0 * + + 20 + col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-69
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - col0 * + + 20 + col0, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-70
SELECT * FROM tab1 WHERE NOT + CAST( + - CAST( - 64 AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-70
SELECT * FROM tab1 WHERE NOT + CAST ( + - CAST ( - 64 AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL + MAX( ALL + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + MAX ( ALL + col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT COUNT( * ) * 90 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-72
SELECT COUNT ( * ) * 90 FROM tab2
----
270

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 64 ) AS col1 FROM tab0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT col2 DIV col0 * + - col2 AS col2 FROM tab0
----
-141
-99
0

skipif mysql # not compatible
query I rowsort label-75
SELECT col2 / col0 * + - col2 AS col2 FROM tab0
----
-141
-99
0

query II rowsort
SELECT DISTINCT - 83 AS col2, + 54 FROM tab1 cor0
----
-83
54

query II rowsort
SELECT ( + ( col2 ) ), 97 + + col1 FROM tab1 AS cor0
----
59
102
68
144
96
111

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

query I rowsort
SELECT - - 18 - - + ( 65 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > 85
----

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

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

query I rowsort
SELECT ALL - - 17 + + 36 FROM tab0 cor0
----
53
53
53

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT DISTINCT + col1 + - - CAST( - - col1 AS SIGNED ) - - 15 FROM tab0
----
17
177
57

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + col1 + - - CAST ( - - col1 AS INTEGER ) - - 15 FROM tab0
----
17
177
57

query I rowsort
SELECT ALL 84 * col0 * - 2 + + col2 FROM tab1
----
-14221
-15220
-8472

query II rowsort
SELECT DISTINCT - col2 + + col2 AS col2, - 17 + col2 AS col1 FROM tab0
----
0
-7
0
30
0
82

query I rowsort
SELECT - ( - - 80 ) FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - MAX( col2 ) * + COUNT( - 56 ) col0 FROM tab0 AS cor0
----
-297

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

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

query I rowsort
SELECT - ( + col1 ) - + col2 * - 21 FROM tab0 AS cor0
----
189
2078
906

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

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

query II rowsort
SELECT ALL + col1 * + + col0 - - col2, 17 * 33 AS col1 FROM tab0 AS cor0
----
1262
561
1837
561
196
561

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT COUNT( * ) * 69 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT COUNT ( * ) * 69 FROM tab0 AS cor0
----
207

query I rowsort
SELECT ALL - 65 * - - col2 FROM tab0 AS cor0
----
-3055
-6435
-650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT + COUNT( * ) * + 79 AS col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + COUNT ( * ) * + 79 AS col0 FROM tab0 AS cor0
----
237

query I rowsort
SELECT - - 96 * - - 14 * + 47 * + - 64 FROM tab0 AS cor0
----
-4042752
-4042752
-4042752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT + SUM( DISTINCT + - 48 ) DIV ( - 39 ) * 93 AS col2 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-102
SELECT + SUM ( DISTINCT + - 48 ) / ( - 39 ) * 93 AS col2 FROM tab0 cor0
----
93

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

skipif mysql # not compatible
query I rowsort label-103
SELECT 86 / CAST ( NULL AS INTEGER ) + + col0 * + 15 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT ALL SUM( DISTINCT - CAST( 59 AS SIGNED ) ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL SUM ( DISTINCT - CAST ( 59 AS INTEGER ) ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - - col2 * col2 * - col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT DISTINCT + 68 * - + ( - COUNT( * ) ) AS col2 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 68 * - + ( - COUNT ( * ) ) AS col2 FROM tab1
----
204

query II rowsort
SELECT DISTINCT + ( - 37 ) AS col1, 25 FROM tab0
----
-37
25

query I rowsort
SELECT ALL + ( 56 ) * - col2 AS col0 FROM tab1 cor0
----
-3304
-3808
-5376

query I rowsort
SELECT DISTINCT + col2 + - 36 AS col0 FROM tab1 AS cor0
----
23
32
60

query I rowsort
SELECT DISTINCT + + 31 * + - col2 AS col2 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL 98 + - COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL 98 + - COUNT ( * ) FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT - COUNT( * ) + - - ( - 22 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - COUNT ( * ) + - - ( - 22 ) FROM tab2 AS cor0
----
-25

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

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

query I rowsort
SELECT col1 + + + 11 + + col2 * + col0 AS col0 FROM tab1
----
4921
5031
6246

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 46 * 66 FROM tab2
----
3036

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - col0 * + col0 - + 94 + + + col2 / - col1 * + 54
----

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

query I rowsort
SELECT ALL + ( + 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT 60 * + MIN( - col0 ) AS col1, - COUNT( * ) col1 FROM tab2 AS cor0
----
-4500
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-121
SELECT 60 * + MIN ( - col0 ) AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-4500
-3

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

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

query II rowsort
SELECT - 47 AS col1, - col1 FROM tab0 AS cor0
----
-47
-1
-47
-21
-47
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL - COUNT( * ) * + 32 - + COUNT( * ) + + 88 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - COUNT ( * ) * + 32 - + COUNT ( * ) + + 88 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-125
SELECT ALL + 78 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + 78 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT 42 + COUNT( * ), 25 AS col1 FROM tab2
----
45
25

skipif mysql # not compatible
query II rowsort label-127
SELECT 42 + COUNT ( * ), 25 AS col1 FROM tab2
----
45
25

query I rowsort
SELECT + 39 * + 96 + - col2 FROM tab0 AS cor0
----
3645
3697
3734

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ALL col1 - + 74 * + + 84 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 18 * + col0 FROM tab0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL COUNT( - 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL COUNT ( - 78 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - 74 * + COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-135
SELECT - 74 * + COUNT ( * ) FROM tab2
----
-222

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 53 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT CAST ( + ( + col1 ) AS INTEGER ) / + col0 FROM tab2
----
0
1

query II rowsort
SELECT + 68 + + col0 - 41, col0 AS col1 FROM tab0
----
114
87
124
97
42
15

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL + COUNT( * ) * + + 74 AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + COUNT ( * ) * + + 74 AS col2 FROM tab2
----
222

query I rowsort
SELECT DISTINCT + 7 + - col2 AS col1 FROM tab0
----
-3
-40
-92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-142
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col1, + 83 FROM tab0 cor0
----
0
83

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col1, + 83 FROM tab0 cor0
----
0
83

query I rowsort
SELECT ALL - + col2 + - ( col0 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL col1 * - 71 + - + col1 * col2 AS col0 FROM tab2
----
-4794
-8547
-8643

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

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

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

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

query I rowsort
SELECT + col0 + - 38 - + - 86 FROM tab1 AS cor0
----
133
139
99

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

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

query I rowsort
SELECT ALL + col1 * + + 67 + - + col1 FROM tab1 AS cor0
----
3102
330
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 + 78 - col1 col0 FROM tab2 cor0
----
-34
-50
-60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 27 NOT BETWEEN 5 AND NULL
----

query I rowsort
SELECT - col0 * + - 66 * - col0 + + + col1 + col2 FROM tab0 cor0
----
-14722
-499523
-620894

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT MIN( 9 ) - - - 38 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT MIN ( 9 ) - - - 38 FROM tab2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-156
SELECT + - ( + + ( COUNT( * ) ) ) DIV + 78 AS col0 FROM tab2 WHERE + CAST( + col1 AS SIGNED ) BETWEEN NULL AND - + CAST( - + col0 AS SIGNED ) * ( - + ( - - col2 ) ) + - col2
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT + - ( + + ( COUNT ( * ) ) ) / + 78 AS col0 FROM tab2 WHERE + CAST ( + col1 AS INTEGER ) BETWEEN NULL AND - + CAST ( - + col0 AS INTEGER ) * ( - + ( - - col2 ) ) + - col2
----
0

query I rowsort
SELECT ALL - AVG ( DISTINCT 32 ) FROM tab0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COUNT( * ) * + 89 AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) * + 89 AS col0 FROM tab2
----
267

query II rowsort
SELECT 25, col2 FROM tab2
----
25
23
25
40
25
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / + 25 >= NULL
----

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

query I rowsort
SELECT ALL - 12 - - - 69 AS col1 FROM tab1
----
-81
-81
-81

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT + MIN( ALL 50 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-168
SELECT + MIN ( ALL 50 ) FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL - MAX( ALL 22 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - MAX ( ALL 22 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + 18 * + + col1 * + col0 FROM tab0 AS cor0
----
-1746
-21870
-32886

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 * - col1 * + 84 + + col2 FROM tab1 AS cor0 WHERE NOT 88 > NULL
----

query I rowsort
SELECT ALL ( - + col1 ) + + 52 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-182
SELECT col2 * + + CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-183
SELECT ALL 65 + + ( ( - COUNT( ALL + + 31 ) ) ) + + - 62 * - ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL 65 + + ( ( - COUNT ( ALL + + 31 ) ) ) + + - 62 * - ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT ALL + COUNT( * ) * - - 44 AS col0, 8 FROM tab1
----
132
8

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL + COUNT ( * ) * - - 44 AS col0, 8 FROM tab1
----
132
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT - - ( + SUM( - - 79 ) ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-186
SELECT - - ( + SUM ( - - 79 ) ) FROM tab0 AS cor0
----
237

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col2 * - 50 + - + col1 + + col0 FROM tab0
----
-2416
-434
-4854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col1 FROM tab1
----
58

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

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

query I rowsort
SELECT ALL + 33 + - 52 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - - 56 AS col1 FROM tab1 AS cor0
----
56

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

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

query I rowsort
SELECT 4 * - col0 * - col0 AS col2 FROM tab2
----
16384
22500
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT - MAX( 5 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT - MAX ( 5 ) FROM tab0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT + col2 * 47 * - - col1 + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
178932
4654
9870

skipif mysql # not compatible
query I rowsort label-198
SELECT + col2 * 47 * - - col1 + col2 / + col0 AS col0 FROM tab0 AS cor0
----
178932
4654
9870

query I rowsort
SELECT - col0 * - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT + 98 AS col0 FROM tab0 WHERE NOT + 46 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL + 20 + - - COUNT( * ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + 20 + - - COUNT ( * ) AS col2 FROM tab2 cor0
----
23

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - 19 col1 FROM tab1 AS cor0
----
104
110
70

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

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

query I rowsort
SELECT 18 + + + 71 * + col1 FROM tab1
----
1012
3355
373

query I rowsort
SELECT ALL - col2 * + col1 * col1 * - col0 + + - col1 + col0 AS col2 FROM tab0
----
383736
4625439
9699

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT DISTINCT MIN( - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT MIN ( - col0 ) FROM tab2
----
-75

query II rowsort
SELECT DISTINCT + 59, + col1 * + col1 AS col1 FROM tab0
----
59
1
59
441
59
6561

query I rowsort
SELECT + 68 * - 54 + col1 FROM tab2
----
-3595
-3605
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + 72 * - COUNT( * ) + + + COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-212
SELECT + 72 * - COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT DISTINCT + col2 * + - col1 * col0 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT + col2 * + - col1 * col0 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - - col2 )
----

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

query I rowsort
SELECT DISTINCT + - ( + 87 ) AS col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL + col1 + - 42 FROM tab0 AS cor0
----
-21
-41
39

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - 8 * + 97 * - col2 + + col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL COUNT( * ) + + COUNT( * ) * - MAX( - col2 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - MAX ( - col2 ) FROM tab1
----
180

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

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

query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT DISTINCT - 13 - + CAST( MAX( + + 31 ) AS SIGNED ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - 13 - + CAST ( MAX ( + + 31 ) AS INTEGER ) FROM tab1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-224
SELECT DISTINCT - 15 * + - COUNT( * ), + 37 col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
45
37
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-224
SELECT DISTINCT - 15 * + - COUNT ( * ), + 37 col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
45
37
NULL

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

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

query I rowsort
SELECT DISTINCT + + ( 98 ) + + + 75 + col2 + - 62 + - 47 * - col2 + + 29 FROM tab1 AS cor0
----
2972
3404
4748

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

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

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

query II rowsort
SELECT - 61, col2 FROM tab1
----
-61
59
-61
68
-61
96

query I rowsort
SELECT - col0 * - col1 * + + col1 * + ( col1 ) FROM tab2
----
22557225
29218112
6101946

query II rowsort
SELECT DISTINCT + 29 AS col0, + col1 + - + 11 + col0 AS col0 FROM tab0
----
29
85
29
87
29
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL - COUNT( * ) * - - 33 col2 FROM tab2
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-233
SELECT ALL - COUNT ( * ) * - - 33 col2 FROM tab2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT + - CAST( - col2 AS SIGNED ) * - col1 * - col0 FROM tab2 cor0
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-234
SELECT + - CAST ( - col2 AS INTEGER ) * - col1 * - col0 FROM tab2 cor0
----
197120
291450
53958

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

query I rowsort
SELECT ALL - col0 * ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
2601
7225
8281

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

query I rowsort
SELECT ALL col1 * - 39 FROM tab2 AS cor0
----
-1989
-2613
-3003

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-239
SELECT DISTINCT + + 24 * COUNT( * ) + - + COUNT( * ) - - + CAST( NULL AS DECIMAL ) + + COUNT( * ) + + 70 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT + + 24 * COUNT ( * ) + - + COUNT ( * ) - - + CAST ( NULL AS REAL ) + + COUNT ( * ) + + 70 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT ALL + 28 DIV - - 47 + - 47 FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + 28 / - - 47 + - 47 FROM tab0 AS cor0
----
-47
-47
-47

query II rowsort
SELECT ALL - - col2 + col1 AS col2, + 89 * - + col2 FROM tab2 AS cor0
----
117
-3560
125
-5162
74
-2047

query I rowsort
SELECT ALL 92 + - - 14 AS col0 FROM tab2
----
106
106
106

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + col0 >= + 40
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT SUM( 42 ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-244
SELECT SUM ( 42 ) FROM tab2
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL MAX( + 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL MAX ( + 96 ) FROM tab2
----
96

query I rowsort
SELECT ALL - ( - col0 ) - - col0 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( ( + - col2 ) )
----

query I rowsort
SELECT - col2 + + + col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab1
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + - col2 col0 FROM tab2 cor0
----
-110
-127
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * 55 + 82 col2 FROM tab1 AS cor0
----
23457
235317
39352

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 9 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - - 2 AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col1 - 4 AND 41 BETWEEN - col2 AND + col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT + ( 34 ) FROM tab1 cor0
----
34

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

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

query II rowsort
SELECT - 64 * ( - col2 ), col2 AS col1 FROM tab0
----
3008
47
6336
99
640
10

onlyif mysql # aggregate syntax: 
query II rowsort label-265
SELECT ( - 85 ) AS col0, ( + ( - COUNT( ALL - col0 ) ) ) FROM tab1
----
-85
-3

skipif mysql # not compatible
query II rowsort label-265
SELECT ( - 85 ) AS col0, ( + ( - COUNT ( ALL - col0 ) ) ) FROM tab1
----
-85
-3

query I rowsort
SELECT DISTINCT ( + 11 ) * - - col0 * - 39 FROM tab1
----
-21879
-36465
-39039

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-267
SELECT DISTINCT + 68 * CAST( NULL AS SIGNED ) AS col1, 79 FROM tab2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-267
SELECT DISTINCT + 68 * CAST ( NULL AS INTEGER ) AS col1, 79 FROM tab2
----
NULL
79

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

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

query I rowsort
SELECT ALL col2 * - - 10 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT SUM( DISTINCT - col2 ) col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-270
SELECT SUM ( DISTINCT - col2 ) col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT ALL - - 58 * + - col2 + + ( + col2 ) DIV 20 + + ( + col2 ) FROM tab0 AS cor0
----
-2677
-5639
-570

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - - 58 * + - col2 + + ( + col2 ) / 20 + + ( + col2 ) FROM tab0 AS cor0
----
-2677
-5639
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT + - col1 DIV 17 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT + - col1 / 17 FROM tab0 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, ( - - 70 ) - + + 63 AS col2 FROM tab0 AS cor0 WHERE 8 <= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 31 * + col0 * + col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-13175
-132587
-22134

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + 20 + COUNT( - ( + 56 ) ) + - COUNT( DISTINCT + 5 ) col0 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-278
SELECT + 20 + COUNT ( - ( + 56 ) ) + - COUNT ( DISTINCT + 5 ) col0 FROM tab2
----
22

query I rowsort
SELECT ALL 74 * - - ( + - 23 ) + 79 FROM tab1
----
-1623
-1623
-1623

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

query I rowsort
SELECT ALL - - 3 FROM tab2 WHERE NOT + col1 * 13 - + + col0 / + + col1 <> + 97
----

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

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL 1 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-283
SELECT ALL CAST( - 65 AS SIGNED ) col0, - 13 AS col1 FROM tab0 AS cor0
----
-65
-13
-65
-13
-65
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-283
SELECT ALL CAST ( - 65 AS INTEGER ) col0, - 13 AS col1 FROM tab0 AS cor0
----
-65
-13
-65
-13
-65
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT 27 + + COUNT( * ) FROM tab2, tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-284
SELECT 27 + + COUNT ( * ) FROM tab2, tab2 AS cor0
----
36

query I rowsort
SELECT + - 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL MIN( DISTINCT - 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL MIN ( DISTINCT - 57 ) FROM tab1
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + COUNT( * ) * - 55 col1 FROM tab0 AS cor0
----
-165

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

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT - + MIN( + col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-289
SELECT - + MIN ( + col0 ) AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col2 < - col0
----
10
47
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-291
SELECT ALL - ( + COUNT ( DISTINCT - col1 ) ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT DISTINCT - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT - ( 28 ) DIV COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-293
SELECT - ( 28 ) / COUNT ( * ) FROM tab2
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-295
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL ( - 52 ) AS col2 FROM tab2
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + - col2, + 14 )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-300
SELECT + + 75, - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
75
NULL
75
NULL
75
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT + col1 DIV col1 DIV - 69 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-302
SELECT + col1 / col1 / - 69 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + 32 * + 64 FROM tab2 cor0 WHERE NULL IS NULL
----
2094
2112
2123

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 17 * - + col2 <> - 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + col1 + + 26 FROM tab1 AS cor0
----
-1318
-269
-3170

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47, - col2 col1 FROM tab1
----
47
-59
47
-68
47
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT MAX( ALL - + col2 ) + + + 85 AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-312
SELECT MAX ( ALL - + col2 ) + + + 85 AS col0 FROM tab1
----
26

query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT - col2 + + 31 AS col1 FROM tab1
----
-28
-37
-65

query I rowsort
SELECT ALL - - col1 * col1 * - col2 + - col1 FROM tab1 cor0
----
-1480
-150259
-18830

query III rowsort
SELECT DISTINCT col0, + col1 * col1 + col0 AS col1, - 27 FROM tab2 AS cor0 WHERE NOT 50 IS NULL
----
9 values hashing to 1f42ead96addb7bd8024e671c0f4b210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-317
SELECT + MAX( DISTINCT col2 ) DIV - MAX( + col0 ) AS col0 FROM tab2 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT - ( - COUNT( * ) ) FROM tab2 WHERE NULL BETWEEN NULL AND col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT - ( - COUNT ( * ) ) FROM tab2 WHERE NULL BETWEEN NULL AND col1 * col0
----
0

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

query I rowsort
SELECT DISTINCT col2 * + col0 + - col1 AS col0 FROM tab0
----
624
849
9602

query I rowsort
SELECT col0 + col2 * + col1 AS col2 FROM tab0
----
196
297
3822

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

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

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

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + col1 BETWEEN - col1 AND ( col1 * col1 + col2 )
----
14
47
5

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

query I rowsort
SELECT DISTINCT 27 + col0 * 67 AS col1 FROM tab0
----
1032
5856
6526

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( + 18 )
----
0

query I rowsort
SELECT DISTINCT + ( - 17 ) * + col1 - + col2 / - col1 FROM tab0 WHERE + 78 * - 50 < ( NULL )
----

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

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

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

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab2 WHERE ( + 62 * - 45 ) IS NOT NULL
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT - 3 * ( 42 ) + COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-333
SELECT - 3 * ( 42 ) + COUNT ( * ) FROM tab2
----
-123

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + 0 NOT BETWEEN NULL AND + col0 + - col2
----

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

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

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

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

query I rowsort
SELECT ALL - 75 + - col1 FROM tab2
----
-126
-142
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - COUNT( DISTINCT col2 ) + 62 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-340
SELECT - COUNT ( DISTINCT col2 ) + 62 FROM tab2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

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

query I rowsort
SELECT DISTINCT col0 + + 92 AS col0 FROM tab0 AS cor0
----
107
179
189

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL + MIN( - col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-344
SELECT ALL + MIN ( - col1 ) col2 FROM tab0 AS cor0
----
-81

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

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

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + COUNT ( * ) + 21 AS col1 FROM tab0 cor0 CROSS JOIN tab1
----
30

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) <> + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL + MIN( - 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + MIN ( - 66 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT DISTINCT - COUNT( * ) - - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
1

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - COUNT ( * ) - - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-350
SELECT - CAST( NULL AS SIGNED ) * - 22 AS col1 FROM tab1 WHERE col0 * 67 IS NULL
----

skipif mysql # not compatible
query I rowsort label-350
SELECT - CAST ( NULL AS INTEGER ) * - 22 AS col1 FROM tab1 WHERE col0 * 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL - COUNT( * ) * 52 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 )
----
-468

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - COUNT ( * ) * 52 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 )
----
-468

query I rowsort
SELECT DISTINCT + + col2 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab1 cor0 WHERE 5 > ( col1 )
----

query I rowsort
SELECT - + 86 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT + 7 * + COUNT( * ) FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT + 7 * + COUNT ( * ) FROM tab1 cor0
----
21

query I rowsort
SELECT DISTINCT + - 59 + 35 * - col0 FROM tab2 AS cor0
----
-1669
-2299
-2684

query I rowsort
SELECT ALL + + col1 + - 77 AS col1 FROM tab0 AS cor0
----
-56
-76
4

query I rowsort
SELECT col2 + + 45 AS col1 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT CAST( - AVG ( DISTINCT col2 ) AS SIGNED ) + 14 * - COUNT( * ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-359
SELECT CAST ( - AVG ( DISTINCT col2 ) AS INTEGER ) + 14 * - COUNT ( * ) AS col2 FROM tab2
----
-82

query I rowsort
SELECT ALL - col1 + col0 FROM tab2 WHERE NULL IN ( col0 - col2 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

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

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

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

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

query I rowsort
SELECT ALL + 89 * + + col1 - + col0 AS col1 FROM tab2
----
4493
5888
6789

query I rowsort
SELECT ALL col1 - + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 98 * + 86 * + col2 FROM tab1
----
497252
573104
809088

query I rowsort
SELECT 8 FROM tab0 AS cor0 WHERE NOT 5 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL AVG ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT - + 43 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

query I rowsort
SELECT + 61 * + + col0 AS col1 FROM tab1
----
3111
5185
5551

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col0 + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col0 + col1 < NULL
----
0

query I rowsort
SELECT ALL + 72 * + 28 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 896c492ca649b9543d0f2ce199c7f55d

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab0, tab1 AS cor0
----
-51

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

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

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

query I rowsort
SELECT DISTINCT - + col0 * - 49 FROM tab1 cor0
----
2499
4165
4459

query II rowsort
SELECT - + col2 AS col1, 52 AS col0 FROM tab0 AS cor0
----
-10
52
-47
52
-99
52

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

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

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

query II rowsort
SELECT - 18, + col1 * + + col2 AS col0 FROM tab0 AS cor0
----
-18
210
-18
3807
-18
99

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT 72, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-385
SELECT 72, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
72
3

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

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

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

skipif mysql # not compatible
query I rowsort label-387
SELECT - MAX ( - 13 ) AS col1 FROM tab1 AS cor0
----
13

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

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

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

skipif mysql # not compatible
query I rowsort label-389
SELECT + 36 * + COUNT ( * ) * SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-391
SELECT * FROM tab0 AS cor0 WHERE NOT 29 IN ( CAST( ( 3 ) AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-391
SELECT * FROM tab0 AS cor0 WHERE NOT 29 IN ( CAST ( ( 3 ) AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - 29 NOT BETWEEN + ( 88 ) + + 60 AND 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-395
SELECT * FROM tab1 AS cor0 WHERE col2 * CAST( 9 AS DECIMAL ) * col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-395
SELECT * FROM tab1 AS cor0 WHERE col2 * CAST ( 9 AS REAL ) * col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 34 + + - ( col2 ) FROM tab1 AS cor0
----
-102
-130
-93

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> 75
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-399
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - 94 ) * + + col1 ) IS NOT NULL OR NOT 3 + - CAST( NULL AS SIGNED ) NOT IN ( - 38 )
----

skipif mysql # not compatible
query III rowsort label-399
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - 94 ) * + + col1 ) IS NOT NULL OR NOT 3 + - CAST ( NULL AS INTEGER ) NOT IN ( - 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-400
SELECT col0 FROM tab1 WHERE ( - - CAST( + CAST( 96 AS SIGNED ) AS SIGNED ) ) NOT BETWEEN NULL AND - col0 * 92 - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-400
SELECT col0 FROM tab1 WHERE ( - - CAST ( + CAST ( 96 AS INTEGER ) AS INTEGER ) ) NOT BETWEEN NULL AND - col0 * 92 - col1
----
51
85
91

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

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

query II rowsort
SELECT DISTINCT 82 AS col1, ( - col1 ) * col1 FROM tab0 AS cor0
----
82
-1
82
-441
82
-6561

query I rowsort
SELECT - 40 * - col0 AS col0 FROM tab0 AS cor0
----
3480
3880
600

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

query I rowsort
SELECT DISTINCT + 8 + col1 AS col2 FROM tab0 AS cor0
----
29
89
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT - - COUNT( * ) + - 17 AS col0 FROM tab2 cor0 WHERE col2 / - - CAST( NULL AS SIGNED ) - - col2 IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - - COUNT ( * ) + - 17 AS col0 FROM tab2 cor0 WHERE col2 / - - CAST ( NULL AS INTEGER ) - - col2 IS NOT NULL
----
-17

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

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

skipif mysql # not compatible
query I rowsort label-408
SELECT CAST ( + col1 AS INTEGER ) * col0 * - - col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL - 50 * - - CAST( + col1 AS SIGNED ) * - - col1 FROM tab2 cor0
----
-130050
-224450
-296450

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - 50 * - - CAST ( + col1 AS INTEGER ) * - - col1 FROM tab2 cor0
----
-130050
-224450
-296450

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - COUNT( * ) - - SUM( DISTINCT + - 21 ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) - - SUM ( DISTINCT + - 21 ) FROM tab0 cor0
----
-24

query I rowsort
SELECT DISTINCT - 35 + - ( - 6 ) FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * - 73 + - + col0 + col2 + - - 30 col0 FROM tab0 AS cor0
----
-2639
-2669
-2748

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - + 23 AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - + 23 AS col0 FROM tab2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT DISTINCT + col0 + + col2 + + 18 * + col1 * - col0 DIV col0 * - 57 col2 FROM tab2
----
52395
68875
79106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-414
SELECT DISTINCT + col0 + + col2 + + 18 * + col1 * - col0 / col0 * - 57 col2 FROM tab2
----
52395
68875
79106

query II rowsort
SELECT 99 AS col0, - col2 FROM tab1 cor0
----
99
-59
99
-68
99
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL COUNT( * ) * - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL COUNT ( * ) * - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
198

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL COUNT ( DISTINCT ( + - col0 ) ) / - 46 FROM tab1
----
0

query I rowsort
SELECT 6 * col2 FROM tab2
----
138
240
348

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 31 + + col2 ) < ( col0 * + 51 + + ( + col0 ) )
----

query I rowsort
SELECT col2 * - 42 * - + col1 * + - col1 FROM tab2
----
-10935204
-2512566
-9960720

query I rowsort
SELECT - - col0 + 32 AS col0 FROM tab0 WHERE NOT - - ( + col0 ) <> col2
----

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

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

query II rowsort
SELECT + 9 * - - col0 * - - col2 * + 40 + 64 AS col1, col0 * - col2 * 4 FROM tab1 AS cor0
----
1762624
-19584
1805464
-20060
2227744
-24752

query I rowsort
SELECT ALL - 13 * 7 AS col0 FROM tab2 AS cor0 WHERE ( ( + col0 - - 80 + + col0 * + + col2 * - col2 ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 + + 47 ) NOT IN ( 3 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 70 + + ( col2 ) BETWEEN 32 AND + 47 * - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-427
SELECT + ( - col0 ) AS col0, + 32 DIV + 51 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-427
SELECT + ( - col0 ) AS col0, + 32 / + 51 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT + - COUNT( * ), 4 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-3
4

skipif mysql # not compatible
query II rowsort label-428
SELECT + - COUNT ( * ), 4 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-3
4

query I rowsort
SELECT + col1 + + 49 AS col1 FROM tab0
----
130
50
70

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

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

query I rowsort
SELECT 60 + + col1 AS col0 FROM tab0
----
141
61
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( + ( - col2 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 76 / - col0 * col2 * - col2 + - ( - col1 ) <= NULL
----

query I rowsort
SELECT + col1 + 78 - + 90 * - 47 AS col1 FROM tab1
----
4313
4322
4355

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 41
----

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

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

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

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

query I rowsort
SELECT ( + 75 ) FROM tab2 AS cor0 WHERE + col2 IN ( col1 + + col1 + 6 )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 FROM tab0 WHERE + col2 IS NOT NULL
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT CAST( + 18 AS SIGNED ) + - 35 DIV + COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT CAST ( + 18 AS INTEGER ) + - 35 / + COUNT ( * ) AS col0 FROM tab2
----
7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-443
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-443
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + col1 ) NOT IN ( + col0 + - - col1 * - - col2 * - col0 / - 28 * - 77 )
----

query I rowsort
SELECT DISTINCT - col0 * - col1 - col2 FROM tab0
----
-2
1168
1817

query I rowsort
SELECT ALL + col2 * - + 55 * - 73 FROM tab1 AS cor0
----
236885
273020
385440

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT + - MAX( ALL 56 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + - MAX ( ALL 56 ) FROM tab2 cor0
----
-56

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

query I rowsort
SELECT + ( - 6 ) FROM tab0 AS cor0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT - col0 + 90 AS col2, 25 FROM tab2 AS cor0
----
15
25
26
25
44
25

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

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

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

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

query I rowsort
SELECT + col1 * + - 10 AS col1 FROM tab1
----
-140
-470
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-454
SELECT + col0 AS col0, - col2 DIV + 7 - col2 AS col2 FROM tab1
----
51
-109
85
-67
91
-77

skipif mysql # not compatible
query II rowsort label-454
SELECT + col0 AS col0, - col2 / + 7 - col2 AS col2 FROM tab1
----
51
-109
85
-67
91
-77

query I rowsort
SELECT ALL - 71 * - col0 * + 52 AS col0 FROM tab1
----
188292
313820
335972

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( - 69 * - col1, + col0 * + 5 )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-459
SELECT ALL + MIN ( col1 ) col0 FROM tab1
----
5

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

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

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

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

query I rowsort
SELECT + 11 * - + col2 AS col2 FROM tab1 AS cor0
----
-1056
-649
-748

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

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

query II rowsort
SELECT col0 AS col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

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

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

query I rowsort
SELECT DISTINCT 91 * - 84 AS col1 FROM tab0 AS cor0
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT ALL + - COUNT( * ) + 58 * + 89 FROM tab2 AS cor0
----
5159

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + - COUNT ( * ) + 58 * + 89 FROM tab2 AS cor0
----
5159

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

query II rowsort
SELECT ALL + 5, col0 + col0 * - - 22 - - - col1 AS col2 FROM tab1 AS cor0 WHERE col1 + - 21 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 60 * + + col1 AS col0 FROM tab0
----
-109620
-5820
-72900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT + CAST( - + col0 AS SIGNED ) + col2 + + col1 + col2 FROM tab0
----
-46
102
160

skipif mysql # not compatible
query I rowsort label-475
SELECT + CAST ( - + col0 AS INTEGER ) + col2 + + col1 + col2 FROM tab0
----
-46
102
160

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( col1 * - ( + + 72 ) * + ( - col2 ) ) = NULL )
----

query I rowsort
SELECT DISTINCT 73 * - col0 AS col1 FROM tab0
----
-1095
-6351
-7081

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

query I rowsort
SELECT DISTINCT - 27 * + - col0 * - - ( + 43 ) + - + 68 * - col2 + + + col1 FROM tab0 AS cor0
----
101708
119350
20692

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT COUNT( * ) + MIN( - col2 ) col0 FROM tab1 AS cor0
----
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - COUNT( - - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-481
SELECT - COUNT ( - - col2 ) AS col1 FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT MIN( + - 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-483
SELECT MIN ( + - 86 ) FROM tab0
----
-86

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( - + col0 ) <= ( + 35 + - - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-487
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1, 82 AS col1 FROM tab2 AS cor0
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL + + CAST ( NULL AS REAL ) AS col1, 82 AS col1 FROM tab2 AS cor0
----
NULL
82
NULL
82
NULL
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - - - col2 + - + col1 / + col2 + + - ( + 80 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-490
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - - - col2 + - + col1 / + col2 + + - ( + 80 ) IS NOT NULL
----
-3

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

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

query I rowsort
SELECT - 10 FROM tab1 WHERE NOT NULL <= 36
----

query I rowsort
SELECT DISTINCT - 11 * - - 65 FROM tab1
----
-715

query I rowsort
SELECT + 18 * - 46 FROM tab2
----
-828
-828
-828

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col0 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL SUM( col1 ) + - MAX( + ( + col0 ) ) FROM tab2 AS cor0 WHERE + 77 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL SUM ( col1 ) + - MAX ( + ( + col0 ) ) FROM tab2 AS cor0 WHERE + 77 < NULL
----
NULL

query I rowsort
SELECT DISTINCT + 18 * + 47 + - col2 FROM tab1 AS cor0
----
750
778
787

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - MAX( ALL col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-502
SELECT - MAX ( ALL col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT + - CAST( NULL AS SIGNED ) * - 78 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

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

query I rowsort
SELECT ALL + + col1 * - 84 FROM tab1 AS cor0
----
-1176
-3948
-420

query I rowsort
SELECT + + col1 + 68 AS col1 FROM tab1 AS cor0
----
115
73
82

query I rowsort
SELECT DISTINCT col1 * + 89 FROM tab1 AS cor0
----
1246
4183
445

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL 3 + COUNT( * ) + - COUNT( DISTINCT 35 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-508
SELECT ALL 3 + COUNT ( * ) + - COUNT ( DISTINCT 35 ) col2 FROM tab1
----
5

query I rowsort
SELECT col0 + - 73 * 17 * + + ( col0 ) FROM tab0
----
-107880
-120280
-18600

query I rowsort
SELECT DISTINCT - 0 + 78 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
78

query I rowsort
SELECT DISTINCT 83 + - ( + ( - ( + col1 ) ) ) AS col1 FROM tab1
----
130
88
97

query II rowsort
SELECT ALL col0 + col1 AS col2, - col2 FROM tab0
----
108
-10
96
-47
98
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 col1, + 67 col2 FROM tab2
----
27
67

query I rowsort
SELECT ( + col2 ) + 32 FROM tab0
----
131
42
79

query II rowsort
SELECT DISTINCT + 42 * + col0 AS col0, 46 FROM tab2
----
1932
46
2688
46
3150
46

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

query I rowsort
SELECT DISTINCT - - col0 + - col1 + - 18 AS col0 FROM tab0 AS cor0
----
-84
48
78

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

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

query I rowsort
SELECT - col0 - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT 17 FROM tab1 WHERE ( ( + - col1 ) ) IS NOT NULL
----
17
17
17

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

query I rowsort
SELECT - ( + + col1 ) * - - col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + 51 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-523
SELECT + 51 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
153

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 35 + - + col1 + - + col2 col0 FROM tab0 AS cor0
----
3014
3295
397

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - 65 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-526
SELECT - 65 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-195

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

query I rowsort
SELECT 74 * + col2 AS col0 FROM tab1
----
4366
5032
7104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT ALL 74 DIV - + ( - COUNT( ALL + + col1 ) ) col0 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-529
SELECT ALL 74 / - + ( - COUNT ( ALL + + col1 ) ) col0 FROM tab0
----
24

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

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

query I rowsort
SELECT col1 * + 49 AS col1 FROM tab2
----
2499
3283
3773

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT DISTINCT + col2 / 52 - col1 FROM tab0 WHERE - 74 BETWEEN + - 65 * - - CAST( NULL AS SIGNED ) + - col2 AND - ( - 9 ) + - ( col1 ) * + - col2 + - col2
----

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + col2 / 52 - col1 FROM tab0 WHERE - 74 BETWEEN + - 65 * - - CAST ( NULL AS INTEGER ) + - col2 AND - ( - 9 ) + - ( col1 ) * + - col2 + - col2
----

query II rowsort
SELECT - - col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT + col2 AS col2, 73 FROM tab0 AS cor0
----
10
73
47
73
99
73

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

query I rowsort
SELECT ALL - + 70 + + 49 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL + 78 * - SUM( + col1 ) FROM tab0
----
-8034

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + 78 * - SUM ( + col1 ) FROM tab0
----
-8034

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT col0 DIV + 98 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-540
SELECT col0 / + 98 col0 FROM tab0 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL - 99 + - COUNT( * ) * - - 42 AS col1 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL - 99 + - COUNT ( * ) * - - 42 AS col1 FROM tab1 AS cor0
----
-225

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

skipif mysql # not compatible
query I rowsort label-543
SELECT COUNT ( * ) + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL + 82 + + 62 FROM tab2
----
144
144
144

query I rowsort
SELECT DISTINCT - col1 + + col0 + - col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-546
SELECT ALL CAST( - col1 AS SIGNED ) - + col2, col1 FROM tab0
----
-100
1
-128
81
-31
21

skipif mysql # not compatible
query II rowsort label-546
SELECT ALL CAST ( - col1 AS INTEGER ) - + col2, col1 FROM tab0
----
-100
1
-128
81
-31
21

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

query III rowsort
SELECT * FROM tab1 WHERE - + 21 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 2 + + - col2 AS col0 FROM tab1 AS cor0
----
-61
-70
-98

query I rowsort
SELECT - col2 * + 41 / - - 48 + ( + - 41 ) + - - col2 / + 52 * + col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN - col0 AND - 86
----

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

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

query I rowsort
SELECT + col1 + - + 75 AS col0 FROM tab2 AS cor0
----
-24
-8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - - 90 + - COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-554
SELECT - - 90 + - COUNT ( * ) FROM tab0 AS cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <= - 29
----
15
81
47
97
1
99

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 73 - - + col1 NOT IN ( + col0 )
----
15
87
97

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

query II rowsort
SELECT DISTINCT col2 AS col1, + 12 FROM tab0
----
10
12
47
12
99
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT 37 * + COUNT( * ) FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-560
SELECT 37 * + COUNT ( * ) FROM tab1 AS cor0
----
111

query I rowsort
SELECT ALL 43 * - 26 FROM tab2 AS cor0
----
-1118
-1118
-1118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT + MAX( 21 ) * 60 FROM tab1 AS cor0
----
1260

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + MAX ( 21 ) * 60 FROM tab1 AS cor0
----
1260

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - - 79 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT + - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT DISTINCT + 48 DIV COUNT( * ) * 40 AS col1 FROM tab1
----
640

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT + 48 / COUNT ( * ) * 40 AS col1 FROM tab1
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-568
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - col1 ) <> NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-572
SELECT + 58 * - COUNT ( * ) FROM tab2
----
-174

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 + col1 col1 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT DISTINCT 18 + col2 AS col1 FROM tab2 AS cor0
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

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

query I rowsort
SELECT DISTINCT col0 + - col1 + + - 86 AS col2 FROM tab1 AS cor0
----
-42
-49
-6

query I rowsort
SELECT DISTINCT + col0 + - + 36 AS col1 FROM tab0
----
-21
51
61

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 2 col0 FROM tab0 AS cor0
----
17
89
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 50 >= NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND 12 * - col2
----

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

skipif mysql # not compatible
query I rowsort label-587
SELECT + CAST ( + + MIN ( - - col0 ) AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL col2 * 83 FROM tab1
----
4897
5644
7968

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ALL 17 DIV + 12 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL 17 / + 12 AS col2 FROM tab2 AS cor0
----
1
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT COUNT( * ) * + + COUNT( DISTINCT + + 54 ) * COUNT( * ) + 1 AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-594
SELECT COUNT ( * ) * + + COUNT ( DISTINCT + + 54 ) * COUNT ( * ) + 1 AS col0 FROM tab0 AS cor0
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT DISTINCT + ( 59 ) * col2 - + 64 DIV + 88 col2 FROM tab1 AS cor0
----
3481
4012
5664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT DISTINCT + ( 59 ) * col2 - + 64 / + 88 col2 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT - 5 * - + col2 * col0 FROM tab0 AS cor0
----
3525
4350
48015

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-599
SELECT 66 AS col0, AVG ( ALL 60 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-599
SELECT 66 AS col0, AVG ( ALL 60 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
66
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 65 FROM tab1
----
59
65
68
65
96
65

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

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

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

query II rowsort
SELECT + 46 AS col1, + col0 * + 77 + col2 FROM tab0 AS cor0
----
46
1202
46
6709
46
7568

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL + - col0 + + col2 DIV + - col2 AS col2 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + - col0 + + col2 / + - col2 AS col2 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT DISTINCT - AVG ( ALL + 15 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT - AVG ( ALL + 15 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE + + col2 + - ( + 96 ) NOT BETWEEN + 11 AND - - 4
----
74

query I rowsort
SELECT ALL + 70 * - col1 AS col2 FROM tab2
----
-3570
-4690
-5390

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-611
SELECT MIN ( ALL - - col1 ) col2 FROM tab1 AS cor0
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT col1 DIV - - 77 + col0 + + + 68 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1515
165
5524

skipif mysql # not compatible
query I rowsort label-613
SELECT col1 / - - 77 + col0 + + + 68 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1515
165
5524

onlyif mysql # DIV for integer division: 
query II rowsort label-614
SELECT DISTINCT - col0 DIV - col1 AS col2, 8 DIV col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
0
17
0
3
0

skipif mysql # not compatible
query II rowsort label-614
SELECT DISTINCT - col0 / - col1 AS col2, 8 / col0 / + col2 AS col1 FROM tab1 AS cor0
----
1
0
17
0
3
0

query I rowsort
SELECT DISTINCT + 60 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
160
2269
9861

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

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

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

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

query I rowsort
SELECT 92 - + 87 AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL ( - + 42 ) - + col1 AS col2 FROM tab0
----
-123
-43
-63

query I rowsort
SELECT - 59 + - 37 + col0 FROM tab1
----
-11
-45
-5

query I rowsort
SELECT DISTINCT col0 * col1 - + col0 FROM tab2
----
2300
4864
4950

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

query II rowsort
SELECT + ( - 23 ) + + + col1, + col0 AS col1 FROM tab2
----
28
46
44
75
54
64

query I rowsort
SELECT 59 + + col2 - col0 * + + col1 AS col0 FROM tab1
----
-307
-4150
-559

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-627
SELECT - col0 + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-627
SELECT - col0 + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT - - 55 + + - 52 AS col0 FROM tab0 AS cor0
----
3
3
3

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

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

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

query I rowsort
SELECT - 2 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT - + COUNT( * ) * 8 * + 22 FROM tab1 AS cor0
----
-528

skipif mysql # not compatible
query I rowsort label-633
SELECT - + COUNT ( * ) * 8 * + 22 FROM tab1 AS cor0
----
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT 33 DIV COUNT( + col2 ) + - 49 AS col1 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-634
SELECT 33 / COUNT ( + col2 ) + - 49 AS col1 FROM tab1
----
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 16 * + 79 * + 0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 94 ) * - - col2 + col2 col0 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT - 64 + + 31 AS col0 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT - 78 + + col0 FROM tab1
----
-27
13
7

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT col1 + col1 DIV - 43 AS col0 FROM tab1
----
14
46
5

skipif mysql # not compatible
query I rowsort label-639
SELECT col1 + col1 / - 43 AS col0 FROM tab1
----
14
46
5

query I rowsort
SELECT ALL - 70 * col1 FROM tab1
----
-3290
-350
-980

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT + 44 + 28 + + + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT + 44 + 28 + + + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 17 AS col2 FROM tab2
----
29
47
58

query I rowsort
SELECT ALL 58 * - - 50 * + col1 FROM tab0 AS cor0
----
234900
2900
60900

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

query II rowsort
SELECT 19 - col2, col0 - - col0 AS col0 FROM tab1
----
-40
170
-49
182
-77
102

query I rowsort
SELECT - 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL COUNT( * ) * + 67 FROM tab1 cor0
----
201

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL COUNT ( * ) * + 67 FROM tab1 cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT DISTINCT - col1 DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT - col1 / - + col2 FROM tab0 AS cor0
----
0
1
2

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

query I rowsort
SELECT + + 23 + + col0 * col0 FROM tab1 AS cor0
----
2624
7248
8304

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

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT ALL col0 DIV - col1 + - 19 AS col2 FROM tab0 AS cor0
----
-116
-19
-23

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL col0 / - col1 + - 19 AS col2 FROM tab0 AS cor0
----
-116
-19
-23

query I rowsort
SELECT ALL 0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT - col0 DIV + + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-655
SELECT - col0 / + + col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 * 54 - + col1 - - col2 * - ( - col0 ) + + + 41 + - + 54 + - ( - 98 ) * + col1 * - + col1 AS col0 FROM tab1
----
-11585
-205440
7137

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

query II rowsort
SELECT + 11 * + - col0 + 59 AS col0, + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1008
9603
-106
705
-898
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col1 FROM tab1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT 36 DIV 18 AS col2 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-660
SELECT 36 / 18 AS col2 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT CAST( col1 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-661
SELECT CAST ( col1 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT SUM( - - 25 ) AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT SUM ( - - 25 ) AS col2 FROM tab1
----
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-664
SELECT col1 * col2 AS col2, CAST( - 34 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-664
SELECT col1 * col2 AS col2, CAST ( - 34 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-665
SELECT ALL SUM( + + col1 ) AS col2, ( 2 ) + MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT ALL SUM ( + + col1 ) AS col2, ( 2 ) + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL
NULL

query I rowsort
SELECT col1 * + 84 + - 63 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
4221
5565
6405

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - - ( ( + 25 ) ) * + MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-1925

skipif mysql # not compatible
query I rowsort label-667
SELECT - - ( ( + 25 ) ) * + MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1925

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

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

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

query I rowsort
SELECT ALL 75 + - 90 + col0 * - col0 * + col1 FROM tab2
----
-107931
-315407
-376890

query I rowsort
SELECT ALL ( - + ( - col1 ) ) * - col2 + col0 FROM tab1
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - SUM( - 38 ) FROM tab1 WHERE 5 + - + 23 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT - SUM ( - 38 ) FROM tab1 WHERE 5 + - + 23 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 4 * 35, col1 * col0 + + + col1 AS col1 FROM tab2
----
-140
2397
-140
5005
-140
5092

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

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

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

query I rowsort
SELECT ALL - col1 - 61 FROM tab2 cor0
----
-112
-128
-138

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-679
SELECT - + CAST ( NULL AS REAL ) - + 40 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 56 + 65 FROM tab0 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT + + ( + CAST( 38 AS SIGNED ) ) - 69 * - col1 AS col1 FROM tab0 AS cor0
----
107
1487
5627

skipif mysql # not compatible
query I rowsort label-683
SELECT + + ( + CAST ( 38 AS INTEGER ) ) - 69 * - col1 AS col1 FROM tab0 AS cor0
----
107
1487
5627

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - + COUNT ( * ) + + CAST ( + 53 AS INTEGER ) AS col0 FROM tab2 cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-685
SELECT ALL + MAX( + col1 ) FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + MAX ( + col1 ) FROM tab2 WHERE + - CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT ALL col1 DIV - + col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL col1 / - + col1 FROM tab0
----
-1
-1
-1

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

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

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL + 26 AS col1, + COUNT ( * ) FROM tab1
----
26
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-689
SELECT ALL + MIN ( col0 ) col0 FROM tab2 AS cor0
----
46

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-694
SELECT - col0 DIV - 66 AS col2, 56 + - col1 FROM tab0
----
0
-25
1
35
1
55

skipif mysql # not compatible
query II rowsort label-694
SELECT - col0 / - 66 AS col2, 56 + - col1 FROM tab0
----
0
-25
1
35
1
55

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab0
----
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT 65 * - col1 * + 43 * + - col0 FROM tab0 AS cor0 WHERE - CAST( + ( - 10 ) AS SIGNED ) * + col0 * + col0 / + + col0 + - 23 IS NULL
----

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT 65 * - col1 * + 43 * + - col0 FROM tab0 AS cor0 WHERE - CAST ( + ( - 10 ) AS INTEGER ) * + col0 * + col0 / + + col0 + - 23 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 + + col2 * col1 FROM tab0 cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT + COUNT( * ) + 15 AS col2, + ( + 8 ) AS col0 FROM tab0 AS cor0
----
18
8

skipif mysql # not compatible
query II rowsort label-700
SELECT + COUNT ( * ) + 15 AS col2, + ( + 8 ) AS col0 FROM tab0 AS cor0
----
18
8

query I rowsort
SELECT ALL + col0 + + + col0 AS col0 FROM tab0
----
174
194
30

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

query II rowsort
SELECT DISTINCT + col2 AS col0, 34 AS col1 FROM tab1
----
59
34
68
34
96
34

query I rowsort
SELECT col0 + + col2 - + col0 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT col2 DIV - + col1 + - 74 AS col2 FROM tab1
----
-75
-80
-85

skipif mysql # not compatible
query I rowsort label-705
SELECT col2 / - + col1 + - 74 AS col2 FROM tab1
----
-75
-80
-85

query I rowsort
SELECT DISTINCT - col2 + - 30 FROM tab2
----
-53
-70
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-707
SELECT * FROM tab1 WHERE NULL <> - CAST( NULL AS SIGNED ) * - - col2 / + 89
----

skipif mysql # not compatible
query III rowsort label-707
SELECT * FROM tab1 WHERE NULL <> - CAST ( NULL AS INTEGER ) * - - col2 / + 89
----

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

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

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + + MAX ( + + col2 ) AS col0 FROM tab1 cor0
----
96

query II rowsort
SELECT col2, - 31 AS col2 FROM tab1 cor0
----
59
-31
68
-31
96
-31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT ALL 38 DIV col2 + - - col1 col2 FROM tab2 cor0
----
52
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-712
SELECT ALL 38 / col2 + - - col1 col2 FROM tab2 cor0
----
52
67
77

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

query I rowsort
SELECT DISTINCT + + 41 + + col2 AS col2 FROM tab1 AS cor0
----
100
109
137

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT + col0 DIV + col2 + + col1 AS col0 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-715
SELECT + col0 / + col2 + + col1 AS col0 FROM tab1
----
14
48
6

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

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

query I rowsort
SELECT - - 62 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( 80 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 + - 46 + + col1 * col0 + 70 AND - col2
----

query I rowsort
SELECT DISTINCT + - col0 * + 80 AS col1 FROM tab2 cor0
----
-3680
-5120
-6000

query I rowsort
SELECT ALL + - 36 * - + 93 + - - col2 * col0 AS col0 FROM tab1 AS cor0
----
8244
8363
9536

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT + col0 DIV - + col2 + 20 + - ( 46 ) col1 FROM tab1 AS cor0
----
-26
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT + col0 / - + col2 + 20 + - ( 46 ) col1 FROM tab1 AS cor0
----
-26
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL - col1 * + + CAST( - + ( + col0 ) AS SIGNED ) - + 75 AS col2 FROM tab2 AS cor0
----
2271
4853
4950

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - col1 * + + CAST ( - + ( + col0 ) AS INTEGER ) - + 75 AS col2 FROM tab2 AS cor0
----
2271
4853
4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 31 + 93 * - - 1 * - + col0 col1 FROM tab0 AS cor0
----
-7440
-8990
1116

query I rowsort
SELECT + col2 * - - col2 * col1 AS col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL + + COUNT( * ) * - COUNT( * ) * - - MIN( + + 46 ) + + COUNT( * ) FROM tab2 AS cor0
----
-411

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) * - - MIN ( + + 46 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NULL NOT IN ( col2, 14 * + col0 * + - 80 * - - 89 * - - 97, - - col1 + + CAST( NULL AS SIGNED ), + col0 + col0, col1 + - 95, + 43 * + 41 )
----

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NULL NOT IN ( col2, 14 * + col0 * + - 80 * - - 89 * - - 97, - - col1 + + CAST ( NULL AS INTEGER ), + col0 + col0, col1 + - 95, + 43 * + 41 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-728
SELECT ALL - 44 / col0 * - + col0 / ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - 44 / col0 * - + col0 / ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col2 ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - + 85 * - col1 AS col2 FROM tab2 AS cor0
----
4335
5695
6545

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

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

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

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

query I rowsort
SELECT + 56 * + + 98 FROM tab2 AS cor0
----
5488
5488
5488

query I rowsort
SELECT col1 * + + 29 * + 67 AS col0 FROM tab0
----
157383
1943
40803

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN - col0 AND ( - 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-737
SELECT + col0, - col0 DIV - 36 AS col2 FROM tab1 AS cor0
----
51
1
85
2
91
2

skipif mysql # not compatible
query II rowsort label-737
SELECT + col0, - col0 / - 36 AS col2 FROM tab1 AS cor0
----
51
1
85
2
91
2

query II rowsort
SELECT - 67 AS col2, 32 FROM tab0 cor0
----
-67
32
-67
32
-67
32

query I rowsort
SELECT ALL + + 51 + + + col1 AS col2 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT ALL 54 AS col1 FROM tab2 AS cor0 WHERE + 44 * col0 IS NOT NULL
----
54
54
54

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

query II rowsort
SELECT + 87 AS col1, - 47 * 43 FROM tab2 AS cor0
----
87
-2021
87
-2021
87
-2021

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 73 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 32 AS col2, col1 + - 80 * - - 82 FROM tab2 AS cor0
----
32
-6483
32
-6493
32
-6509

query I rowsort
SELECT DISTINCT 68 + + col0 + - 72 * - 86 FROM tab1
----
6311
6345
6351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + + 23 + 48 col0 FROM tab0
----
776
941
9674

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT COUNT( * ) + - - MIN( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT COUNT ( * ) + - - MIN ( ALL - ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col0 * + 70 + - col0 FROM tab1 cor0
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT DISTINCT - COUNT( * ) - 62 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT - COUNT ( * ) - 62 FROM tab1
----
-65

query II rowsort
SELECT - + col1 * col0 * + + 69 AS col0, - col0 FROM tab0 AS cor0
----
-126063
-87
-6693
-97
-83835
-15

query I rowsort
SELECT DISTINCT - col2 * col1 * + - col0 * - - col0 + 86 AS col0 FROM tab1 AS cor0
----
2131461
26466162
3495830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-757
SELECT + - CAST( col0 AS SIGNED ) * + col2 AS col0, - col2 col0 FROM tab0 cor0
----
-705
-47
-870
-10
-9603
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-757
SELECT + - CAST ( col0 AS INTEGER ) * + col2 AS col0, - col2 col0 FROM tab0 cor0
----
-705
-47
-870
-10
-9603
-99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-759
SELECT DISTINCT + MIN( ALL - ( + col0 ) ) AS col0, COUNT( * ) DIV 41 FROM tab0 AS cor0
----
-97
0

skipif mysql # not compatible
query II rowsort label-759
SELECT DISTINCT + MIN ( ALL - ( + col0 ) ) AS col0, COUNT ( * ) / 41 FROM tab0 AS cor0
----
-97
0

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

query II rowsort
SELECT DISTINCT + + 78 AS col2, ( - ( + ( + col0 ) ) ) + + col0 + - 89 AS col1 FROM tab2 AS cor0
----
78
-89

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

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

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT 33 DIV + 24 AS col2, col2 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-764
SELECT 33 / + 24 AS col2, col2 FROM tab0
----
1
10
1
47
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT - col2 * - + CAST( - col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-765
SELECT - col2 * - + CAST ( - col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL < + ( - 87 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 78 * + col0
----

query I rowsort
SELECT DISTINCT - 46 * - ( + - col0 ) * - 61 + - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
129030
179520
210375

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

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

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

query I rowsort
SELECT ALL - ( + 3 ) * + 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e2aaf248e89cfe907195894fdf1f8cd4

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + COUNT( * ) + - 81 AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + COUNT ( * ) + - 81 AS col0 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT MIN( col0 ) + + 33 AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-775
SELECT MIN ( col0 ) + + 33 AS col1 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL + + col2 * 2 FROM tab2 AS cor0
----
116
46
80

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

query I rowsort
SELECT + 95 + - + 97 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT 97 FROM tab0 AS cor0 WHERE 78 * + 62 IS NOT NULL
----
97
97
97

query I rowsort
SELECT ALL - - 80 + - - col2 AS col0 FROM tab1 AS cor0
----
139
148
176

query I rowsort
SELECT ALL + col0 + - 34 AS col1 FROM tab0 AS cor0
----
-19
53
63

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

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

skipif mysql # not compatible
query I rowsort label-783
SELECT - 56 / - + col0 + - 2 AS col1 FROM tab2
----
-1
-2
-2

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

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

query I rowsort
SELECT ALL - col0 + - + 92 - - 87 AS col1 FROM tab1
----
-56
-90
-96

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + col2 >= 37 / 97
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col2, + col0 AS col1 FROM tab0
----
44
15
44
87
44
97

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

query I rowsort
SELECT - + 35 * + 25 - 76 + + col2 FROM tab0 AS cor0
----
-852
-904
-941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT CAST( NULL AS SIGNED ) + - 56 * 17 * - 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT CAST ( NULL AS INTEGER ) + - 56 * 17 * - 18 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT + COUNT( * ) + + - MAX( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT + COUNT ( * ) + + - MAX ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - 60 )
----
NULL

query I rowsort
SELECT ALL 45 FROM tab0 AS cor0 WHERE NOT + 56 >= + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 65 * + + 37 col0, col0 FROM tab2 AS cor0
----
2405
46
2405
64
2405
75

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT + 66 DIV 14 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-796
SELECT + 66 / 14 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT - + col0 * col2 * - col2 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
23276
247950
99840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - COUNT( DISTINCT ( col2 ) ) AS col0 FROM tab2 WHERE NOT + col1 * - 72 + col0 * col0 BETWEEN NULL AND + 91
----
-1

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( DISTINCT ( col2 ) ) AS col0 FROM tab2 WHERE NOT + col1 * - 72 + col0 * col0 BETWEEN NULL AND + 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT - + 39 + - MIN( + 53 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - + 39 + - MIN ( + 53 ) FROM tab1 AS cor0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + + MIN( + 47 ) * - 83 col1 FROM tab2 AS cor0
----
-3901

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-802
SELECT + + MIN ( + 47 ) * - 83 col1 FROM tab2 AS cor0
----
-3901

query I rowsort
SELECT + 66 - + - 46 + 85 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + col1 * 48 + col2 AS col2 FROM tab1 cor0
----
2324
299
768

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

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

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

query I rowsort
SELECT 46 + col0 AS col1 FROM tab0
----
133
143
61

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT - 0 + + 63 DIV + col1 col2 FROM tab0
----
0
3
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-808
SELECT - 0 + + 63 / + col1 col2 FROM tab0
----
0
3
63

query I rowsort
SELECT + col0 * - 34 FROM tab0
----
-2958
-3298
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT 13 + col2 DIV col1 AS col0 FROM tab0
----
112
13
13

skipif mysql # not compatible
query I rowsort label-810
SELECT 13 + col2 / col1 AS col0 FROM tab0
----
112
13
13

query III rowsort
SELECT * FROM tab0 WHERE ( 70 ) < ( + 21 - + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT ( + 6 ) * CAST( - AVG ( ( ( + col2 ) ) ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT 36 + col0 < - 22
----
-444

skipif mysql # not compatible
query I rowsort label-812
SELECT ( + 6 ) * CAST ( - AVG ( ( ( + col2 ) ) ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT 36 + col0 < - 22
----
-444

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ( MIN( 43 ) ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-815
SELECT ( MIN ( 43 ) ) FROM tab2
----
43

query I rowsort
SELECT ALL + 71 * 60 FROM tab2
----
4260
4260
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT - SUM( 29 ) * 15 FROM tab1
----
-1305

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - SUM ( 29 ) * 15 FROM tab1
----
-1305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 BETWEEN - 49 / + col1 + + col1 AND col1 * - col0
----
3

skipif mysql # not compatible
query I rowsort label-819
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 BETWEEN - 49 / + col1 + + col1 AND col1 * - col0
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT col1 DIV 21 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-821
SELECT col1 / 21 FROM tab2
----
2
3
3

query I rowsort
SELECT - 15 AS col0 FROM tab0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT 54 DIV - 47 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-823
SELECT 54 / - 47 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 62 + 60 AS col0 FROM tab2
----
122
122
122

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT 48 * 94 - 30 * COUNT( * ) AS col2 FROM tab2
----
4422

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT 48 * 94 - 30 * COUNT ( * ) AS col2 FROM tab2
----
4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT ( - CAST( - 2 AS SIGNED ) ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT ( - CAST ( - 2 AS INTEGER ) ) AS col0 FROM tab1
----
2

query I rowsort
SELECT 97 * - col2 AS col2 FROM tab0
----
-4559
-9603
-970

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT + CAST( NULL AS SIGNED ) * + col0 + 9 * - col0 FROM tab0 WHERE NOT ( - ( + 38 ) * col0 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT + CAST ( NULL AS INTEGER ) * + col0 + 9 * - col0 FROM tab0 WHERE NOT ( - ( + 38 ) * col0 ) IS NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( * ) AS col1 FROM tab1 WHERE col2 NOT IN ( 49 * 67 + + col0 * - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE col2 NOT IN ( 49 * 67 + + col0 * - col1 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 85 * MAX( ALL + col2 ) + 83 FROM tab1 cor0
----
8243

skipif mysql # not compatible
query I rowsort label-835
SELECT 85 * MAX ( ALL + col2 ) + 83 FROM tab1 cor0
----
8243

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT 83 * + COUNT( * ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-837
SELECT 83 * + COUNT ( * ) FROM tab1 AS cor0
----
249

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

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

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

query I rowsort
SELECT 90 AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 85 * - col0 ) BETWEEN ( 10 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * - col1 FROM tab2
----
-1989
-2613
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-843
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-843
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-844
SELECT MAX ( ALL + col0 ) AS col0 FROM tab1
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - SUM( 86 ) AS col0 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-846
SELECT - SUM ( 86 ) AS col0 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL MIN( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IN ( + col2 * ( ( col1 ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL MIN ( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IN ( + col2 * ( ( col1 ) ) )
----
59

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

query I rowsort
SELECT ALL + 32 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( - 1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 74 ) BETWEEN + 95 + + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL > ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + 43 + 89 / 49 NOT BETWEEN ( 97 / + 51 + + 2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT MIN( ALL - + 57 ) AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-853
SELECT MIN ( ALL - + 57 ) AS col0 FROM tab1
----
-57

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

query I rowsort
SELECT ALL - col1 * + 70 * - 21 FROM tab0
----
119070
1470
30870

query I rowsort
SELECT 26 + + + 69 AS col0 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - MIN( + 89 ) + + COUNT( * ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-857
SELECT - MIN ( + 89 ) + + COUNT ( * ) FROM tab0
----
-86

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col2 + 34 AS col1 FROM tab2
----
57
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * - col1 col1 FROM tab0
----
-1701
-6561
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL MAX( - 84 ) + COUNT( 43 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL MAX ( - 84 ) + COUNT ( 43 ) FROM tab1
----
-81

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

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

query I rowsort
SELECT ALL + + 18 + + - col1 FROM tab2 cor0
----
-33
-49
-59

query I rowsort
SELECT ALL + 59 * + col0 * + col2 AS col0 FROM tab0 cor0
----
41595
51330
566577

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( - col2 * col1 )
----

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

query I rowsort
SELECT ALL + col0 * - - col0 + - - col0 FROM tab1 cor0
----
2652
7310
8372

query I rowsort
SELECT ALL + + col0 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

query II rowsort
SELECT DISTINCT - + 6, 11 * - 75 + ( col0 ) AS col1 FROM tab0 cor0
----
-6
-728
-6
-738
-6
-810

query I rowsort
SELECT ALL + - col2 + - 40 * + col2 FROM tab2 AS cor0
----
-1640
-2378
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT + col1 * - col2 + col1 DIV - col0 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT + col1 * - col2 + col1 / - col0 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT 75 FROM tab0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - COUNT( * ) FROM tab0 WHERE + col0 = + col1 - col1
----
0

skipif mysql # not compatible
query I rowsort label-874
SELECT - COUNT ( * ) FROM tab0 WHERE + col0 = + col1 - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT MIN( + + 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-875
SELECT MIN ( + + 1 ) FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT 17 FROM tab1 WHERE NOT NULL BETWEEN + - col1 AND 64 / + 64
----

query I rowsort
SELECT ALL - col0 - ( - + col2 ) * + col0 AS col1 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT ALL 99 - - 83 * + + col0 FROM tab1
----
4332
7154
7652

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + COUNT( ALL 35 ) FROM tab1 WHERE ( col2 + - 32 / col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT + COUNT ( ALL 35 ) FROM tab1 WHERE ( col2 + - 32 / col0 ) IS NULL
----
0

query I rowsort
SELECT 15 * - - col0 - + 7 AS col0 FROM tab0
----
1298
1448
218

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

query I rowsort
SELECT ALL + + 83 * - - 24 * - + col0 FROM tab1 AS cor0
----
-101592
-169320
-181272

query I rowsort
SELECT 10 FROM tab2 WHERE NOT - col1 <> ( NULL )
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 + + - 16 FROM tab0 AS cor0
----
15
-31
87
-103
97
-113

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

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

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

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL MAX ( 73 ) AS col1 FROM tab2 AS cor0
----
73

query II rowsort
SELECT col0 AS col0, col0 + col1 / col0 FROM tab2 AS cor0 WHERE NOT + 57 >= NULL
----

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

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

query II rowsort
SELECT ALL 21 AS col2, - col0 AS col2 FROM tab0
----
21
-15
21
-87
21
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-891
SELECT 32 / - 67 AS col1 FROM tab1 WHERE NOT - col2 NOT IN ( - CAST( NULL AS DECIMAL ) * + - ( - CAST( NULL AS SIGNED ) ) * col1 + - 10 * col0 )
----

skipif mysql # not compatible
query I rowsort label-891
SELECT 32 / - 67 AS col1 FROM tab1 WHERE NOT - col2 NOT IN ( - CAST ( NULL AS REAL ) * + - ( - CAST ( NULL AS INTEGER ) ) * col1 + - 10 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 = - col2
----
NULL

query II rowsort
SELECT DISTINCT + 28, col2 AS col1 FROM tab2
----
28
23
28
40
28
58

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( ( col1 ) BETWEEN NULL AND + 33 * 17 ) ) )
----

query I rowsort
SELECT + + col0 * - + col0 + - + col1 + + col2 + - col2 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-167973
-331884
-50812

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

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

query I rowsort
SELECT + + col2 + - 15 FROM tab0 AS cor0
----
-5
32
84

query I rowsort
SELECT ALL + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + - col0 * col2 * + 75 AS col1 FROM tab0 AS cor0
----
-52875
-65250
-720225

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT ALL + MAX( DISTINCT 81 ) * - 73 AS col0, 20 FROM tab0 AS cor0
----
-5913
20

skipif mysql # not compatible
query II rowsort label-901
SELECT ALL + MAX ( DISTINCT 81 ) * - 73 AS col0, 20 FROM tab0 AS cor0
----
-5913
20

query I rowsort
SELECT DISTINCT - col0 * - ( + ( + + col0 ) ) FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL + ( - 82 ) + + - 30 FROM tab2 AS cor0
----
-112
-112
-112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-904
SELECT 0 - - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT 0 - - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-906
SELECT + - 97 - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-100

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

query I rowsort
SELECT DISTINCT + 8 + - + col2 AS col0 FROM tab0 AS cor0
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL - + COUNT( * ) + 94 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL - + COUNT ( * ) + 94 FROM tab2 cor0
----
91

query I rowsort
SELECT DISTINCT 82 + - col1 AS col2 FROM tab0
----
1
61
81

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

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

query II rowsort
SELECT ALL 75, + col1 FROM tab0
----
75
1
75
21
75
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-913
SELECT DISTINCT 92, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT 92, + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
92
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 23 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-915
SELECT * FROM tab0 WHERE NOT 31 * - col1 + - - CAST( NULL AS DECIMAL ) + 58 > NULL
----

skipif mysql # not compatible
query III rowsort label-915
SELECT * FROM tab0 WHERE NOT 31 * - col1 + - - CAST ( NULL AS REAL ) + 58 > NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col1 col1 FROM tab1 AS cor0
----
1344
295
3196

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

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

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

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

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT COUNT ( * ) / - ( - + ( - - MIN ( - + col1 ) ) ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT ALL - + 56 * - col0 * + col1 + + col2 + col2 - + + CAST( + 85 AS SIGNED ) FROM tab1 AS cor0
----
23833
239563
40091

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - + 56 * - col0 * + col1 + + col2 + col2 - + + CAST ( + 85 AS INTEGER ) FROM tab1 AS cor0
----
23833
239563
40091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT col1 * - col2 + col1 FROM tab0 cor0 WHERE NOT ( col1 * + 18 * + + col1 + col0 + - col2 + 56 * 77 / CAST( NULL AS SIGNED ) ) = col1 * + 51
----

skipif mysql # not compatible
query I rowsort label-923
SELECT col1 * - col2 + col1 FROM tab0 cor0 WHERE NOT ( col1 * + 18 * + + col1 + col0 + - col2 + 56 * 77 / CAST ( NULL AS INTEGER ) ) = col1 * + 51
----

query I rowsort
SELECT DISTINCT - + col1 * + ( + 81 ) + + col1 FROM tab0 AS cor0
----
-1680
-6480
-80

query I rowsort
SELECT + 40 + - col2 FROM tab1
----
-19
-28
-56

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 42 > NULL
----

query I rowsort
SELECT ALL - 94 * - + ( - col0 ) FROM tab1
----
-4794
-7990
-8554

onlyif mysql # DIV for integer division: 
query II rowsort label-929
SELECT col0, - col0 * - col2 DIV col2 AS col2 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-929
SELECT col0, - col0 * - col2 / col2 AS col2 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( col1 ) + + - ( col2 ) * + - col1 * ( + - ( - col0 ) ), + col2 col1 FROM tab2 AS cor0
----
197043
40
291383
58
53907
23

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

query I rowsort
SELECT DISTINCT + + col0 * + col0 + - + col0 * + col2 + + col2 AS col1 FROM tab1 cor0
----
-2199
2161
2269

query I rowsort
SELECT + 40 + - 64 AS col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL + col1 - + + 6 FROM tab0
----
-5
15
75

query I rowsort
SELECT - + 44 + + col0 AS col1 FROM tab0 AS cor0
----
-29
43
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 71 IN ( + - 30, + col1 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT 1 * - 86 DIV col2 DIV - 55 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT 1 * - 86 / col2 / - 55 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + 71 * - - 23 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4902

skipif mysql # not compatible
query I rowsort label-941
SELECT + 71 * - - 23 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4902

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

skipif mysql # not compatible
query I rowsort label-942
SELECT + + MAX ( - + col2 ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL SUM( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT 23 * + - col2 AS col1 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - - SUM( + + col0 ) * + ( + 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( - ( - col2 ) ) IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-945
SELECT - - SUM ( + + col0 ) * + ( + 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( - ( - col2 ) ) IS NULL
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * - + 42 * col0 col1 FROM tab2
----
-56028
-77952
-91350

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT + MAX( ALL + col2 ) AS col0, - 10 AS col0 FROM tab2
----
58
-10

skipif mysql # not compatible
query II rowsort label-947
SELECT + MAX ( ALL + col2 ) AS col0, - 10 AS col0 FROM tab2
----
58
-10

query I rowsort
SELECT DISTINCT ( - + col1 ) * 50 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 1 ) NOT IN ( - 11, - col2 * + + col1 )
----

query II rowsort
SELECT ALL 5 AS col1, + col1 + + + col0 FROM tab1
----
5
138
5
65
5
90

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT - ( - - col2 ) BETWEEN + col2 AND ( NULL )
----
46
64
75

query I rowsort
SELECT DISTINCT 16 FROM tab0 WHERE NULL <> - 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL + 57 DIV - - 23 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + 57 / - - 23 FROM tab1
----
2
2
2

query I rowsort
SELECT - - ( - - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - 92 * + + COUNT( * ) * - + COUNT( * ) + - - 52 FROM tab0 AS cor0
----
880

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - 92 * + + COUNT ( * ) * - + COUNT ( * ) + - - 52 FROM tab0 AS cor0
----
880

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

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

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

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

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

query I rowsort
SELECT col1 * col2 + + 97 AS col0 FROM tab1 AS cor0
----
1441
3293
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 72 AS col1, 73 + + - 7 col0 FROM tab0 AS cor0
----
72
66

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND + 81
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL + ( + COUNT( * ) ) * + 29 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + ( + COUNT ( * ) ) * + 29 FROM tab0
----
87

query I rowsort
SELECT 94 + + - col0 AS col2 FROM tab2
----
19
30
48

query I rowsort
SELECT col1 + + 2 FROM tab1
----
16
49
7

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

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

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

query I rowsort
SELECT + col2 * + col0 + - col1 * - col2 FROM tab1 AS cor0
----
5310
6240
9384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 14 * col1 col2 FROM tab0 AS cor0
----
-83
1119
207

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 - + col2 * - 46 + + 23 col1 FROM tab0
----
2185
4577
483

query I rowsort
SELECT DISTINCT - - 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
80

query II rowsort
SELECT col0, col0 * + - 29 AS col2 FROM tab1
----
51
-1479
85
-2465
91
-2639

query I rowsort
SELECT ALL - 0 * col1 - + col1 + + - 10 FROM tab1
----
-15
-24
-57

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

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

query I rowsort
SELECT ALL + 16 * + + ( 37 ) - 1 AS col2 FROM tab0 AS cor0
----
591
591
591

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col2 ) * + col1 + + col2 + - col2 * 33 * col0 + + + col0 IN ( + + 94 * + + 75, 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - 69 / + MAX( 90 ) FROM tab0 WHERE NOT - 92 * - col2 * - 60 * + + col2 - + 57 - + col2 * + + col2 < ( + - ( - col1 ) * - 15 / 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT - 69 / + MAX ( 90 ) FROM tab0 WHERE NOT - 92 * - col2 * - 60 * + + col2 - + 57 - + col2 * + + col2 < ( + - ( - col1 ) * - 15 / 37 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1 AS col1, 40, 75 + + + col0 col1 FROM tab0
----
9 values hashing to 76170fa23f9e3ecd477fda7432766787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT col2 AS col1 FROM tab2 WHERE NOT - + 71 BETWEEN + col1 AND - + ( + CAST( - - col0 AS SIGNED ) )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-982
SELECT col2 AS col1 FROM tab2 WHERE NOT - + 71 BETWEEN + col1 AND - + ( + CAST ( - - col0 AS INTEGER ) )
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL + 73 * + - ( - - COUNT( * ) ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + 73 * + - ( - - COUNT ( * ) ) AS col0 FROM tab1
----
-219

query II rowsort
SELECT - col0, 83 + col0 AS col0 FROM tab2 AS cor0
----
-46
129
-64
147
-75
158

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

query I rowsort
SELECT ALL - - ( - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + 67 + - 65 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 23 * - 0 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 * + ( + + 19 ) FROM tab2
----
1216
1425
874

query I rowsort
SELECT - - ( - 80 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 76 AND - 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

query I rowsort
SELECT DISTINCT 17 * - col2 + + - col0 FROM tab2 AS cor0
----
-1061
-437
-744

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL - + CAST( + 88 AS SIGNED ) + - col1 AS col1 FROM tab2 cor0
----
-139
-155
-165

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - + CAST ( + 88 AS INTEGER ) + - col1 AS col1 FROM tab2 cor0
----
-139
-155
-165

query I rowsort
SELECT 59 + + 87 AS col0 FROM tab0
----
146
146
146

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab0
----
0

query I rowsort
SELECT + col1 * - - col0 FROM tab1
----
425
4277
714

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

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - 67 * - - COUNT ( * ) FROM tab2
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT DISTINCT 47 DIV + 76 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT 47 / + 76 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL 96 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL 96 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT + COUNT( * ) - - 37 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1004
SELECT + COUNT ( * ) - - 37 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - 87 - - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1005
SELECT - 87 - - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-162

query II rowsort
SELECT DISTINCT col0 - - + col0, + 59 AS col0 FROM tab2
----
128
59
150
59
92
59

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + + 35 AS col1 FROM tab1 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT ALL + + col0 DIV 17 AS col1 FROM tab0 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + + col0 / 17 AS col1 FROM tab0 AS cor0
----
0
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT + ( + 24 ) DIV + col2 col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1012
SELECT + ( + 24 ) / + col2 col0 FROM tab0 AS cor0
----
0
0
2

query II rowsort
SELECT ALL - 88 AS col1, + col2 + - col1 + 37 - - col2 AS col0 FROM tab1
----
-88
126
-88
150
-88
215

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT + 95 - + col0 + + col1 + 0 * col2 + 65 + - col1 + CAST( NULL AS SIGNED ) * 18 / - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 95 - + col0 + + col1 + 0 * col2 + 65 + - col1 + CAST ( NULL AS INTEGER ) * 18 / - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * + 13 * - col2, col2 FROM tab2 AS cor0
----
-15249
23
-40040
40
-50518
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT + 91 + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 91 + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT - 56 / - 38 * - col1 + col2 AS col0 FROM tab0 WHERE NOT + col0 / + - 2 <> - - 43
----

query I rowsort
SELECT - - 90 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT ALL - - 94 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query II rowsort
SELECT 96, + col0 FROM tab2 AS cor0
----
96
46
96
64
96
75

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

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

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

query I rowsort
SELECT ALL + + 89 + + col1 - + 77 AS col0 FROM tab0 AS cor0
----
13
33
93

query I rowsort
SELECT ALL + - 65 FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
-65
-65
-65

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

skipif mysql # not compatible
query II rowsort label-1026
SELECT - 49 AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-49
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1027
SELECT + + col1 - + 43 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE - 63 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT + + col1 - + 43 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 63 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + 16 * + col1 FROM tab0
----
-1215
-15
-315

query I rowsort
SELECT DISTINCT + 7 + 74 + - 78 FROM tab1
----
3

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 43 NOT BETWEEN + - col0 AND + + col1 + 45
----

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

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

query II rowsort
SELECT DISTINCT + col1 + - + col1 * col1 AS col1, col0 AS col2 FROM tab0
----
-420
87
-6480
15
0
97

query I rowsort
SELECT ALL ( - 2 ) FROM tab1 WHERE + + 68 > + 88
----

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

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

query I rowsort
SELECT - ( + 81 ) FROM tab0
----
-81
-81
-81

query I rowsort
SELECT + + col2 * - col2 - + 40 - + col0 AS col1 FROM tab2 AS cor0
----
-1704
-3479
-615

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT - SUM( + col2 ) * + 15 FROM tab0 cor0
----
-2340

skipif mysql # not compatible
query I rowsort label-1041
SELECT - SUM ( + col2 ) * + 15 FROM tab0 cor0
----
-2340

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

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

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

query I rowsort
SELECT ALL - ( + 74 ) AS col2 FROM tab1
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + COUNT( * ) * - + 30 AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1045
SELECT + COUNT ( * ) * - + 30 AS col2 FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT col1 DIV - 14 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT col1 / - 14 FROM tab0
----
-1
-5
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - COUNT( - 50 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - COUNT ( - 50 ) FROM tab1 cor0
----
-3

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

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

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

query I rowsort
SELECT - - 49 + + + col1 AS col0 FROM tab0 AS cor0
----
130
50
70

query I rowsort
SELECT ALL 20 + col1 FROM tab2 AS cor0
----
71
87
97

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

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

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * 67 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT + + col1 + - 17 FROM tab1 AS cor0 WHERE ( ( + 21 ) IS NOT NULL )
----
-12
-3
30

query I rowsort
SELECT ALL col2 + - 26 AS col0 FROM tab1 AS cor0
----
33
42
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT 22 * + col0 * - + 67 + + - 32 DIV 17 * col1 FROM tab0 AS cor0
----
-128259
-142979
-22191

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT 22 * + col0 * - + 67 + + - 32 / 17 * col1 FROM tab0 AS cor0
----
-128259
-142979
-22191

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 53 + + + col0 NOT BETWEEN + 96 * + col2 * - col0 + - - col2 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 75, + 79 col2 FROM tab0
----
-75
79
-75
79
-75
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 44 col1 FROM tab2 WHERE NULL <> - + 94 * - - col1
----

query I rowsort
SELECT col1 + col1 AS col0 FROM tab0 WHERE NULL IN ( - col1 )
----

query II rowsort
SELECT + col0 AS col1, col2 * - col1 + + 27 + - 57 AS col0 FROM tab2
----
46
-1203
64
-3110
75
-3916

query I rowsort
SELECT ALL col0 - + - col2 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 40 - col2 FROM tab0
----
-59
-7
30

query I rowsort
SELECT DISTINCT - 96 FROM tab0 WHERE NULL <> + 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT ALL + CAST( + 1 AS SIGNED ) * + SUM( ALL + 39 ) AS col1 FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + CAST ( + 1 AS INTEGER ) * + SUM ( ALL + 39 ) AS col1 FROM tab1 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL + + COUNT( * ) * 74 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + + COUNT ( * ) * 74 FROM tab1 AS cor0
----
222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 * - - 93 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT + 26 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 26 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 35 * - - col0 + col0 AS col0 FROM tab2 AS cor0
----
1656
2304
2700

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 68 * + - MIN( - + 77 ) AS col2 FROM tab0 AS cor0
----
5236

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 68 * + - MIN ( - + 77 ) AS col2 FROM tab0 AS cor0
----
5236

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT + - COUNT( DISTINCT - ( - col2 ) ) DIV - 27 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT + - COUNT ( DISTINCT - ( - col2 ) ) / - 27 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * 46 + - col1 + + col0 + - - col1 + 34 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * 46 + - col1 + + col0 + - - col1 + 34 IS NULL
----
3

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

query I rowsort
SELECT DISTINCT + 21 FROM tab2 WHERE NOT - - col1 - - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 21 * + 15 * + 55 AS col1 FROM tab0
----
17325
17325
17325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 74 * - 41 + col0 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + 73 + - + col2 * col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT SUM( - 50 ) col0 FROM tab0 AS cor0 WHERE NOT 15 > - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1084
SELECT SUM ( - 50 ) col0 FROM tab0 AS cor0 WHERE NOT 15 > - col2
----
NULL

query I rowsort
SELECT - 35 AS col2 FROM tab0 AS cor0
----
-35
-35
-35

query II rowsort
SELECT DISTINCT col0, 86 * + 39 FROM tab0 AS cor0
----
15
3354
87
3354
97
3354

query I rowsort
SELECT + 37 + + - col0 FROM tab1 AS cor0
----
-14
-48
-54

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT - ( COUNT ( * ) ) + - 17 AS col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT - 50 + - + col2 FROM tab1 AS cor0
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT DISTINCT - + 36 + - + ( COUNT( * ) ) * + + 19 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - + 36 + - + ( COUNT ( * ) ) * + + 19 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + col0 + + 22 AS col2 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

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

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

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

query I rowsort
SELECT DISTINCT + 19 + + col2 + + col1 * - ( 37 ) FROM tab2 WHERE NOT NULL <> ( + 28 )
----

query I rowsort
SELECT 20 + col0 AS col1 FROM tab0
----
107
117
35

query I rowsort
SELECT ALL + col2 * - - col2 - + col2 * + col1 AS col1 FROM tab2
----
-1480
-522
-644

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT + ( - col1 ) DIV + - 12 + - 68 * 22 FROM tab1
----
-1493
-1495
-1496

skipif mysql # not compatible
query I rowsort label-1099
SELECT + ( - col1 ) / + - 12 + - 68 * 22 FROM tab1
----
-1493
-1495
-1496

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

query I rowsort
SELECT col2 + - 16 AS col2 FROM tab1
----
43
52
80

query I rowsort
SELECT ALL + 29 * - + col0 FROM tab0
----
-2523
-2813
-435

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

skipif mysql # not compatible
query I rowsort label-1103
SELECT + col1 / 40 AS col1 FROM tab0
----
0
0
2

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col1 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-441
NULL
-6561

skipif mysql # not compatible
query II rowsort label-1107
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-441
NULL
-6561

query I rowsort
SELECT ALL col2 * - 66 + - + 16 * - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
-14382
-14580
-160182

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), col2 + + col2 * + + col0, + ( + col2 ), + + 67 )
----

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

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

query I rowsort
SELECT ALL + 66 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
66
66
66

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

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

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

query I rowsort
SELECT ALL - 29 * - - ( col2 ) AS col1 FROM tab2
----
-1160
-1682
-667

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 95 + - col2 AS col2 FROM tab2
----
37
55
72

query I rowsort
SELECT + 56 + 28 FROM tab1
----
84
84
84

query I rowsort
SELECT + - 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT + col0 + - 55 FROM tab1
----
-4
30
36

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

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

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

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

query I rowsort
SELECT ALL 60 + - + col2 FROM tab1 AS cor0
----
-36
-8
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT 82 / + CAST( NULL AS SIGNED ) / + col2 * - CAST( + 87 AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1130
SELECT 82 / + CAST ( NULL AS INTEGER ) / + col2 * - CAST ( + 87 AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 95 - - - col1 AS col2 FROM tab1
----
48
81
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1132
SELECT DISTINCT MAX( DISTINCT col0 ) AS col0, - COUNT( * ) DIV + MIN( DISTINCT + 70 ) AS col1 FROM tab0
----
97
0

skipif mysql # not compatible
query II rowsort label-1132
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col0, - COUNT ( * ) / + MIN ( DISTINCT + 70 ) AS col1 FROM tab0
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT SUM( DISTINCT - + 23 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1133
SELECT SUM ( DISTINCT - + 23 ) AS col1 FROM tab2
----
-23

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

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

query I rowsort
SELECT - col0 * + col0 + - ( col1 ) + col0 FROM tab1 AS cor0
----
-2564
-7145
-8237

query I rowsort
SELECT + + 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + 57 * 50 * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * + - 68 AS col1 FROM tab2 AS cor0
----
3128
4352
5100

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

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

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

query I rowsort
SELECT DISTINCT + 22 + + 78 FROM tab0 AS cor0
----
100

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

query I rowsort
SELECT ALL ( + - 14 ) + col1 + - - ( - 57 ) FROM tab2 AS cor0
----
-20
-4
6

query I rowsort
SELECT col2 * 38 FROM tab2
----
1520
2204
874

query I rowsort
SELECT ALL - col2 * + col1 * - - col1 AS col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT + 62 * + - ( COUNT( * ) ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + 62 * + - ( COUNT ( * ) ) FROM tab0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL MAX( - - 15 ) * + COUNT( * ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL MAX ( - - 15 ) * + COUNT ( * ) AS col1 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL 53 * COUNT( ALL col0 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL 53 * COUNT ( ALL col0 ) FROM tab2
----
159

query I rowsort
SELECT DISTINCT - 76 FROM tab2 WHERE NOT ( - - col1 ) IS NULL
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL MAX( ALL + ( - - col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL MAX ( ALL + ( - - col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - col1 + + 42 * + col2 AS col0 FROM tab1 AS cor0
----
2483
2903
4046

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1152
SELECT col2 * - 33 - - 9 + col2 DIV - + 63 + + col2 col0, + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1271
NULL
-1847
NULL
-727
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1152
SELECT col2 * - 33 - - 9 + col2 / - + 63 + + col2 col0, + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1271
NULL
-1847
NULL
-727
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL - COUNT( * ) + + + COUNT( * ) * 82 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) * 82 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT + 37 DIV - COUNT( * ) + - + COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 37 / - COUNT ( * ) + - + COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
-12

query I rowsort
SELECT + - ( + + col0 ) + - + 71 AS col1 FROM tab2 AS cor0
----
-117
-135
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT col2 + - + col1 - col0 DIV + - 20 FROM tab1 AS cor0
----
25
58
84

skipif mysql # not compatible
query I rowsort label-1156
SELECT col2 + - + col1 - col0 / + - 20 FROM tab1 AS cor0
----
25
58
84

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( - ( + - 74 ) )
----

query I rowsort
SELECT - col1 * + col1 * 36 * - 40 FROM tab1
----
282240
3180960
36000

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT DISTINCT COUNT( * ) AS col1, MAX( ALL ( - col1 ) ) FROM tab1 WHERE NOT col0 + + col2 < NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1159
SELECT DISTINCT COUNT ( * ) AS col1, MAX ( ALL ( - col1 ) ) FROM tab1 WHERE NOT col0 + + col2 < NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1160
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 38 AS SIGNED ) + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1160
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 38 AS INTEGER ) + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT 42 - - MIN( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1161
SELECT 42 - - MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT MAX( ALL + 39 ) * - MAX( DISTINCT col2 ) FROM tab0
----
-3861

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT MAX ( ALL + 39 ) * - MAX ( DISTINCT col2 ) FROM tab0
----
-3861

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT MIN( ALL col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1165
SELECT MIN ( ALL col2 ) FROM tab2
----
23

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + MAX( + col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT + MAX ( + col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT + - ( - CAST( MIN( col2 ) AS SIGNED ) ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1170
SELECT + - ( - CAST ( MIN ( col2 ) AS INTEGER ) ) col0 FROM tab0 AS cor0
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 39 = - col0 + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 39 = - col0 + + col2
----
-3

query I rowsort
SELECT ALL + - 59 AS col1 FROM tab2 AS cor0
----
-59
-59
-59

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT - CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL + MIN( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + MIN ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-75

query I rowsort
SELECT col1 + - + 29 FROM tab1 AS cor0
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT - 51 + - MIN( ALL 92 ) FROM tab0 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - 51 + - MIN ( ALL 92 ) FROM tab0 AS cor0
----
-143

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

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

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

query II rowsort
SELECT ALL - col1 * + 35 + + 22, - 18 AS col2 FROM tab2
----
-1763
-18
-2323
-18
-2673
-18

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1183
SELECT + 71 AS col0, - ( - + col1 ) DIV + + col0 - + col1 + - - col0 * CAST( col1 AS SIGNED ) DIV - 6 + - + col1 * - ( - 62 ) FROM tab2
----
71
-3603
71
-5058
71
-5671

skipif mysql # not compatible
query II rowsort label-1183
SELECT + 71 AS col0, - ( - + col1 ) / + + col0 - + col1 + - - col0 * CAST ( col1 AS INTEGER ) / - 6 + - + col1 * - ( - 62 ) FROM tab2
----
71
-3603
71
-5058
71
-5671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( + col2 ) / - 81 * - - col1 * + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( + col2 ) / - 81 * - - col1 * + - col1 IS NULL
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1186
SELECT + MIN ( ALL + col2 ) col1 FROM tab2
----
23

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT + - 32 - - col1 + col0 AS col2 FROM tab0 AS cor0
----
64
66
76

query I rowsort
SELECT col0 + + 8 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
93
99

query I rowsort
SELECT + 83 * - col2 + - 94 FROM tab0
----
-3995
-8311
-924

query I rowsort
SELECT DISTINCT - col2 * + ( + 66 ) FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT ALL + col0 * + - 76 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT DISTINCT - 96 * + - col1 * + ( - + ( - + ( - col0 ) ) ) * 85 AS col0 FROM tab1 AS cor0
----
-3468000
-34900320
-5826240

query I rowsort
SELECT - 35 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 <> + + col0
----

query I rowsort
SELECT DISTINCT + 27 * + + 72 FROM tab0 AS cor0
----
1944

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT + ( col1 ) / CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
5

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

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT - COUNT ( DISTINCT - 33 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - + col2 / + + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT + col0 DIV col0 DIV - 75 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT + col0 / col0 / - 75 col1 FROM tab0
----
0
0
0

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

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

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

query I rowsort
SELECT - 15 * - col0 AS col1 FROM tab2
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT COUNT( - col0 ) * + 19 * COUNT( * ) col0 FROM tab1
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1205
SELECT DISTINCT COUNT ( - col0 ) * + 19 * COUNT ( * ) col0 FROM tab1
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 1 / - 97 FROM tab1 WHERE - col2 BETWEEN + 6 AND NULL
----

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

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

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

query II rowsort
SELECT ALL - col0 AS col2, col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + 42 * + col2 AS col0 FROM tab1 AS cor0
----
2478
2856
4032

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query II rowsort
SELECT + 97, 23 AS col2 FROM tab0 AS cor0
----
97
23
97
23
97
23

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

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

query I rowsort
SELECT DISTINCT + 83 + col2 FROM tab2 AS cor0
----
106
123
141

query II rowsort
SELECT + col2 AS col0, - 20 FROM tab1 AS cor0
----
59
-20
68
-20
96
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1217
SELECT - - CAST( - 74 AS DECIMAL ) + - 43, - col2 FROM tab0 AS cor0 WHERE col1 * + 18 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1217
SELECT - - CAST ( - 74 AS REAL ) + - 43, - col2 FROM tab0 AS cor0 WHERE col1 * + 18 IS NULL
----

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

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

query I rowsort
SELECT ALL - - 47 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) + - + ( + + 54 ) NOT BETWEEN - col2 AND + - col1 + - 42
----

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT - SUM ( + + col0 ) FROM tab2 cor0
----
-185

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - 60 + + MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 60 + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
-135

query I rowsort
SELECT - 78 + + 68 AS col1 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + + ( - ( - 63 ) ) FROM tab0 WHERE NOT + + 19 <= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT - MAX( ALL + + 18 ) + + CAST( - ( + 22 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - MAX ( ALL + + 18 ) + + CAST ( - ( + 22 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - + ( + 91 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL ( 20 ) - COUNT( * ) + + ( - MIN( - col2 ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL ( 20 ) - COUNT ( * ) + + ( - MIN ( - col2 ) ) AS col2 FROM tab2
----
75

query I rowsort
SELECT + 14 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT + 80, + col1 FROM tab0
----
80
1
80
21
80
81

query I rowsort
SELECT - ( 74 ) FROM tab2
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * col1 NOT IN ( + col1 )
----

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

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

skipif mysql # not compatible
query II rowsort label-1238
SELECT DISTINCT - COUNT ( * ), - COUNT ( ALL + - col0 ) FROM tab2
----
-3
-3

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT - 84 DIV - col1 FROM tab1
----
1
16
6

skipif mysql # not compatible
query I rowsort label-1240
SELECT - 84 / - col1 FROM tab1
----
1
16
6

query I rowsort
SELECT col1 * - + col0 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1242
SELECT + CAST( NULL AS SIGNED ) AS col1, MAX( ALL - + col2 ) AS col1 FROM tab2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-1242
SELECT + CAST ( NULL AS INTEGER ) AS col1, MAX ( ALL - + col2 ) AS col1 FROM tab2
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT COUNT( * ) * + MAX( col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1243
SELECT COUNT ( * ) * + MAX ( col2 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT 56 AS col1, + MAX( DISTINCT - col0 ) + - 32 AS col0 FROM tab2
----
56
-78

skipif mysql # not compatible
query II rowsort label-1244
SELECT 56 AS col1, + MAX ( DISTINCT - col0 ) + - 32 AS col0 FROM tab2
----
56
-78

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

query I rowsort
SELECT DISTINCT col2 * - 42 * + col0 AS col2 FROM tab2
----
-107520
-182700
-44436

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - 80 AND - 43 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1249
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 / - - CAST( NULL AS DECIMAL ) * + 93 = - + 6 ) )
----

skipif mysql # not compatible
query III rowsort label-1249
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 / - - CAST ( NULL AS REAL ) * + 93 = - + 6 ) )
----

query II rowsort
SELECT ALL + 23 AS col2, col2 - - col2 * - - ( + + col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
23
25134
23
290904
23
68640

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT + MAX( DISTINCT - 83 ) + - + 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT + MAX ( DISTINCT - 83 ) + - + 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

query I rowsort
SELECT DISTINCT - 28 * 97 AS col0 FROM tab0
----
-2716

query I rowsort
SELECT - - col2 + + 3 AS col0 FROM tab0 AS cor0
----
102
13
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT - SUM( DISTINCT - 10 ) * + 70 AS col2 FROM tab1
----
700

skipif mysql # not compatible
query I rowsort label-1255
SELECT - SUM ( DISTINCT - 10 ) * + 70 AS col2 FROM tab1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - COUNT( - 16 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1256
SELECT - COUNT ( - 16 ) FROM tab2
----
-3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1257
SELECT DISTINCT + COUNT ( ALL + CAST ( col1 AS INTEGER ) ) - + COUNT ( * ) col2 FROM tab2
----
0

query I rowsort
SELECT ALL 69 - col0 FROM tab2
----
-6
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL COUNT( - 18 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL COUNT ( - 18 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 col2, col0 AS col0 FROM tab0
----
66
15
66
87
66
97

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

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

query I rowsort
SELECT + col1 + - 98 AS col1 FROM tab2
----
-21
-31
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT col1 DIV 81 + + 20 AS col1 FROM tab1
----
20
20
20

skipif mysql # not compatible
query I rowsort label-1263
SELECT col1 / 81 + + 20 AS col1 FROM tab1
----
20
20
20

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 79 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 80 = col2 * col2
----
3

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 80 = col2 * col2
----
3

query I rowsort
SELECT col2 * - 89 - + col2 * + col1 FROM tab2 WHERE col1 IN ( + col0 )
----

query I rowsort
SELECT 5 + + col1 FROM tab0
----
26
6
86

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( + 88 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col1 + 63 * - col0 NOT BETWEEN ( NULL ) AND + 31 + 36
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT COUNT( * ) col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

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

query I rowsort
SELECT col1 * - col0 + ( - 38 ) AS col1 FROM tab2
----
-2384
-4966
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + SUM( DISTINCT + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1275
SELECT + SUM ( DISTINCT + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT - CAST( NULL AS SIGNED ) + SUM( DISTINCT col2 ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT DISTINCT - COUNT( * ) DIV - 43 + 34 AS col1 FROM tab2 WHERE NULL BETWEEN ( col2 * + col0 ) AND col2
----
34

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - COUNT ( * ) / - 43 + 34 AS col1 FROM tab2 WHERE NULL BETWEEN ( col2 * + col0 ) AND col2
----
34

query I rowsort
SELECT DISTINCT - 81 - + col2 AS col2 FROM tab1
----
-140
-149
-177

query I rowsort
SELECT ( - 19 ) * 84 + ( col1 ) FROM tab0
----
-1515
-1575
-1595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col1 + col0 col1 FROM tab0
----
179
1809
6657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL col1 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL col1 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( - CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( 78 ) AS col2 FROM tab2
----
78

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 WHERE + ( col1 ) * col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - ( + col1 ) + - col1 FROM tab2 AS cor0 WHERE NOT ( col2 * - 88 ) NOT IN ( 82 - col2 )
----

query I rowsort
SELECT DISTINCT col2 + ( col0 ) * 44 FROM tab0 AS cor0
----
3838
4367
707

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - col1 DIV col1 + col1 * + col2 FROM tab1 AS cor0
----
1343
294
3195

skipif mysql # not compatible
query I rowsort label-1286
SELECT - col1 / col1 + col1 * + col2 FROM tab1 AS cor0
----
1343
294
3195

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT 6 + COUNT( 96 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1289
SELECT 6 + COUNT ( 96 ) FROM tab2
----
9

query I rowsort
SELECT col2 * - col0 FROM tab2 WHERE 54 * col1 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - - ( + col2 ) DIV - 2 FROM tab0 AS cor0
----
-23
-49
-5

skipif mysql # not compatible
query I rowsort label-1291
SELECT - - ( + col2 ) / - 2 FROM tab0 AS cor0
----
-23
-49
-5

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

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

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

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

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

query I rowsort
SELECT ALL - 29 + + 83 AS col2 FROM tab1 AS cor0
----
54
54
54

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

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

query I rowsort
SELECT + ( - 2 ) AS col2 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT SUM( DISTINCT col1 ) - - 56 col0 FROM tab1 AS cor0
----
122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1299
SELECT SUM ( DISTINCT col1 ) - - 56 col0 FROM tab1 AS cor0
----
122

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 / - 28 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT CAST( - 97 AS SIGNED ) * col2 + col1 FROM tab0
----
-4478
-949
-9602

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT CAST ( - 97 AS INTEGER ) * col2 + col1 FROM tab0
----
-4478
-949
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT - MAX( - - col1 ) * 93 - + 61 FROM tab2
----
-7222

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - MAX ( - - col1 ) * 93 - + 61 FROM tab2
----
-7222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1304
SELECT * FROM tab0 WHERE NULL <> - CAST( - 37 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1304
SELECT * FROM tab0 WHERE NULL <> - CAST ( - 37 AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL 67 / + COUNT ( * ) FROM tab1
----
22

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

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

query I rowsort
SELECT ALL + col2 - - col2 + - col1 AS col0 FROM tab1
----
113
178
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT ALL + 77 DIV COUNT( ALL col0 * - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + 77 / COUNT ( ALL col0 * - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
25

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

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

query I rowsort
SELECT 70 * - col0 + col2 FROM tab1 cor0
----
-3474
-5891
-6302

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT 71 DIV - col0 AS col1 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT 71 / - col0 AS col1 FROM tab0 cor0
----
-4
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT ALL 97, SUM( - ( 76 ) ) + - 98 AS col2 FROM tab1
----
97
-326

skipif mysql # not compatible
query II rowsort label-1313
SELECT ALL 97, SUM ( - ( 76 ) ) + - 98 AS col2 FROM tab1
----
97
-326

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

query II rowsort
SELECT col2 AS col2, + 61 AS col1 FROM tab2 AS cor0
----
23
61
40
61
58
61

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1321
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * + CAST ( - col1 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + 80, + col1 FROM tab0 AS cor0
----
80
1
80
21
80
81

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + SUM ( DISTINCT + 13 ) AS col0 FROM tab2 cor0
----
13

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col0 / - ( ( 2 ) ) * 68
----

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2
----
50

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

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

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

query I rowsort
SELECT 91 + + + ( - col2 ) * + 5 + col0 AS col0 FROM tab2
----
-124
-45
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1330
SELECT ALL * FROM tab1 WHERE NOT - col1 * + - 54 + + CAST( NULL AS DECIMAL ) = col1
----

skipif mysql # not compatible
query III rowsort label-1330
SELECT ALL * FROM tab1 WHERE NOT - col1 * + - 54 + + CAST ( NULL AS REAL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL MAX( ALL ( - - col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL MAX ( ALL ( - - col2 ) ) AS col1 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col1 FROM tab1
----
89

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

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

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

query I rowsort
SELECT ALL + 52 * + + 79 AS col0 FROM tab0 cor0
----
4108
4108
4108

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

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

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + col0 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col0 BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 26 * 78 * - col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT + + COUNT( * ) * + 69 + + + 33 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1340
SELECT + + COUNT ( * ) * + 69 + + + 33 FROM tab1 AS cor0
----
240

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

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

query I rowsort
SELECT DISTINCT 31 + - - ( + 15 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + col1 * col1 + col2 + + + col2 AS col1 FROM tab2 cor0
----
2647
4605
6009

query I rowsort
SELECT ALL - + col1 + - + 31 + - + col0 AS col2 FROM tab1 AS cor0
----
-121
-169
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND - CAST( + col1 AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND - CAST ( + col1 AS INTEGER ) / + col1
----

query I rowsort
SELECT DISTINCT + 87 + + col2 AS col0 FROM tab2 AS cor0
----
110
127
145

onlyif mysql # DIV for integer division: 
query II rowsort label-1348
SELECT - col1 * + col2 + - col2 AS col0, col0 DIV col1 + + col0 * - col0 FROM tab0 AS cor0
----
-198
-9312
-220
-7565
-3854
-225

skipif mysql # not compatible
query II rowsort label-1348
SELECT - col1 * + col2 + - col2 AS col0, col0 / col1 + + col0 * - col0 FROM tab0 AS cor0
----
-198
-9312
-220
-7565
-3854
-225

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE col0 - + col1 + + col2 NOT BETWEEN + + 87 AND NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
-42

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

query I rowsort
SELECT DISTINCT col2 - - col2 - + col1 FROM tab0
----
-1
13
197

query II rowsort
SELECT 34, + ( - col2 ) * + - 13 + - 32 AS col2 FROM tab2
----
34
267
34
488
34
722

query I rowsort
SELECT DISTINCT col1 + + 77 FROM tab0
----
158
78
98

query I rowsort
SELECT col0 * - 56 AS col0 FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT - 44 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT ( col2 ) AS col0 FROM tab2 WHERE + col2 / - CAST( NULL AS SIGNED ) * ( + col1 ) * col0 + 6 IN ( - col2 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-1357
SELECT ( col2 ) AS col0 FROM tab2 WHERE + col2 / - CAST ( NULL AS INTEGER ) * ( + col1 ) * col0 + 6 IN ( - col2 + + col1 )
----

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE col1 + col2 - + + col2 IS NOT NULL
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT + MAX( col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + MAX ( col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + 72 * - + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1360
SELECT + 72 * - + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + COUNT( * ) * - + 56 + - 45 AS col0 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1361
SELECT + COUNT ( * ) * - + 56 + - 45 AS col0 FROM tab1 AS cor0
----
-213

query I rowsort
SELECT DISTINCT ( + - 43 ) AS col2 FROM tab0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 WHERE col1 NOT BETWEEN ( - - col1 + - 59 ) AND 25
----
-1

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 WHERE col1 NOT BETWEEN ( - - col1 + - 59 ) AND 25
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT ALL + 33 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + 33 / - col1 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT 52 * - - 91 * + 65 / - ( - col2 ) * col0 + - CAST( NULL AS SIGNED ) - - 87 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT 52 * - - 91 * + 65 / - ( - col2 ) * col0 + - CAST ( NULL AS INTEGER ) - - 87 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - - SUM( ALL + - 94 ) AS col2 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1370
SELECT - - SUM ( ALL + - 94 ) AS col2 FROM tab1 AS cor0
----
-282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1371
SELECT col2 FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + + col0 + col1 + - col1 AND - 56 * - 78 * 76 + - 54 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1371
SELECT col2 FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + + col0 + col1 + - col1 AND - 56 * - 78 * 76 + - 54 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - - ( - - 51 ) + + col2 * col2 FROM tab1 AS cor0
----
3532
4675
9267

query I rowsort
SELECT - 77 AS col0 FROM tab1 WHERE NOT col1 IN ( 10 )
----
-77
-77
-77

query II rowsort
SELECT ALL + 71 AS col1, 5 AS col0 FROM tab2
----
71
5
71
5
71
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + 87 * COUNT( * ) AS col1 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + 87 * COUNT ( * ) AS col1 FROM tab2
----
261

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

query I rowsort
SELECT - 29 * 40 FROM tab1
----
-1160
-1160
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT 55 + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col1 * col0 + - 48 * + - 55 + col0 ) IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-1379
SELECT 55 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col1 * col0 + - 48 * + - 55 + col0 ) IS NOT NULL
----
55

query II rowsort
SELECT DISTINCT - 45, - col0 * - - 21 AS col1 FROM tab1
----
-45
-1071
-45
-1785
-45
-1911

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT 95 / - col1 * col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col2 + + 58 AS col0 FROM tab1 AS cor0
----
-1
-10
-38

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

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

query I rowsort
SELECT - col2 + - + col2 * - - 96 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT ALL + col0 + + + 79 FROM tab1 AS cor0
----
130
164
170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL COUNT( 65 ) * 31 AS col1 FROM tab2, tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL COUNT ( 65 ) * 31 AS col1 FROM tab2, tab0 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - col1, col0 col0 FROM tab2
----
-8
75
13
64
5
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - COUNT( * ) * ( + 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - COUNT ( * ) * ( + 77 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT 27 * 76 DIV + col1 FROM tab1 AS cor0
----
146
410
43

skipif mysql # not compatible
query I rowsort label-1392
SELECT 27 * 76 / + col1 FROM tab1 AS cor0
----
146
410
43

query II rowsort
SELECT - 13 - + col1 AS col2, + 48 AS col0 FROM tab0 AS cor0
----
-14
48
-34
48
-94
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + 14 - - - COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 14 - - - COUNT ( * ) FROM tab1 AS cor0
----
11

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

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

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

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

query I rowsort
SELECT 78 - + col0 AS col2 FROM tab2 cor0
----
14
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL - MAX( DISTINCT - + 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - MAX ( DISTINCT - + 66 ) FROM tab1 AS cor0
----
66

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

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

query I rowsort
SELECT DISTINCT col0 + - 81 * + 26 AS col2 FROM tab2
----
-2031
-2042
-2060

query I rowsort
SELECT + ( - col0 ) FROM tab2 WHERE - 68 - + col0 IN ( + - 75 + + + col0 + col1 + - + ( + + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 68 * col0 * - 40 + + col2 > - col0 AND ( NOT ( - col0 * 21 ) < + 33 )
----

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

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

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

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

query I rowsort
SELECT ( + col2 ) + - 2 AS col0 FROM tab0 WHERE NOT + - 65 IS NULL
----
45
8
97

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

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

query I rowsort
SELECT ALL 25 * - col0 * + col1 * - + col2 * - - 78 AS col1 FROM tab1 AS cor0
----
133660800
48896250
567130200

onlyif mysql # DIV for integer division: 
query II rowsort label-1408
SELECT col1 AS col1, col0 DIV - 70 AS col0 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
1
-1
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-1408
SELECT col1 AS col1, col0 / - 70 AS col0 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
1
-1
21
-1
81
0

query I rowsort
SELECT + ( + 99 ) AS col1 FROM tab0
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT - 81 * - 3 AS col0 FROM tab1 cor0
----
243
243
243

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 26 + + 97 AS col0 FROM tab1
----
123

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE ( NULL BETWEEN col1 - + - col1 AND NULL )
----

query I rowsort
SELECT - col2 * - + 59 + + - 31 FROM tab1
----
3450
3981
5633

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT + SUM( 79 ), - 38 col0 FROM tab1
----
237
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1419
SELECT + SUM ( 79 ), - 38 col0 FROM tab1
----
237
-38

query I rowsort
SELECT - ( + ( - col2 ) ) * + col1 AS col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT DISTINCT - 66 + - col1 FROM tab1 cor0
----
-113
-71
-80

query I rowsort
SELECT - ( - col1 ) - - - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - col2 + - - 75 AS col1 FROM tab0
----
-24
28
65

query I rowsort
SELECT ALL + + 7 AS col2 FROM tab1 cor0
----
7
7
7

query II rowsort
SELECT ALL - 47, + 65 * 59 AS col2 FROM tab0 cor0
----
-47
3835
-47
3835
-47
3835

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT - + col1 * - + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1427
SELECT - + col1 * - + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT + COUNT( * ) * - 65 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - col0 * 60 / - 97 ) IS NOT NULL )
----
-198

skipif mysql # not compatible
query I rowsort label-1429
SELECT + COUNT ( * ) * - 65 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - col0 * 60 / - 97 ) IS NOT NULL )
----
-198

query I rowsort
SELECT DISTINCT + - 71 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT - col1 * - - ( + col1 ) * 10 + col1 FROM tab0 AS cor0
----
-4389
-65529
-9

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

query II rowsort
SELECT ALL 16 AS col0, col2 AS col0 FROM tab0 AS cor0
----
16
10
16
47
16
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT ALL - COUNT( ALL + 11 ) AS col1, + 5 FROM tab2
----
-3
5

skipif mysql # not compatible
query II rowsort label-1434
SELECT ALL - COUNT ( ALL + 11 ) AS col1, + 5 FROM tab2
----
-3
5

query I rowsort
SELECT + col1 * - 57 * + col2 AS col0 FROM tab2
----
-175560
-221502
-66861

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

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

query I rowsort
SELECT DISTINCT + 86 * + col0 * col0 AS col0 FROM tab0
----
19350
650934
809174

query I rowsort
SELECT ALL + 85 - + 11 FROM tab0 WHERE - - col1 IS NOT NULL
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT + 92 * 48 DIV + - 54 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 92 * 48 / + - 54 FROM tab2
----
-81

query I rowsort
SELECT ALL + - 48 * - col2 + - col1 - + ( + ( - + col2 ) ) * + col2 + 62 * col2 + + col2 FROM tab0 AS cor0
----
1189
20789
7345

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

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

query I rowsort
SELECT ALL - 42 + 37 + col1 AS col1 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
0
42
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 + + - col0 + - - ( - 52 ) col1 FROM tab0 AS cor0
----
-108
-26
-98

query I rowsort
SELECT ALL col0 * - 53 * - 77 + - + col1 FROM tab0 AS cor0
----
355026
395856
61134

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT - COUNT( * ) + - 70 + - 50 AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - COUNT ( * ) + - 70 + - 50 AS col1 FROM tab2 AS cor0
----
-123

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT col0 DIV - 53 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT col0 / - 53 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

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

query II rowsort
SELECT col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 + + 65 col1 FROM tab1 AS cor0
----
51
79
85
70
91
112

query I rowsort
SELECT DISTINCT - + 16 + + - col0 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1246
-1930
-210

query I rowsort
SELECT DISTINCT + 91 + col0 AS col0 FROM tab1
----
142
176
182

query I rowsort
SELECT ALL + col1 * - - 25 FROM tab0
----
2025
25
525

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

query II rowsort
SELECT DISTINCT 46 AS col0, col2 * 8 + col0 FROM tab2
----
46
230
46
384
46
539

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

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

query I rowsort
SELECT + 94 + + col0 AS col2 FROM tab0
----
109
181
191

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

skipif mysql # not compatible
query II rowsort label-1460
SELECT DISTINCT + 62 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
62
NULL

query I rowsort
SELECT + col0 + 82 AS col1 FROM tab0 AS cor0
----
169
179
97

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

query I rowsort
SELECT + - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 > + 98 + - ( + col1 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL + - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 + + col1 * + col0 / - CAST( + 6 AS SIGNED ) >= - + 11 * + col2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1467
SELECT ALL + - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 + + col1 * + col0 / - CAST ( + 6 AS INTEGER ) >= - + 11 * + col2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * col2 col2, col0 - + col0 AS col1 FROM tab0 AS cor0
----
-705
0
-870
0
-9603
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > + col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT - MAX( + - 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-1470
SELECT - MAX ( + - 64 ) FROM tab2
----
64

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

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE + ( - col2 ) NOT BETWEEN + col0 AND + col0
----
15
87
97

query I rowsort
SELECT DISTINCT 66 * - - col0 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT DISTINCT - 32 * col1 FROM tab2
----
-1632
-2144
-2464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 44 col1 FROM tab1
----
2068
220
616

query II rowsort
SELECT ALL col0, - 46 FROM tab2 AS cor0
----
46
-46
64
-46
75
-46

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

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

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col0 FROM tab2 cor0
----
1058
2560
4350

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT 20 DIV + COUNT( col0 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1480
SELECT 20 / + COUNT ( col0 ) AS col1 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT ( 64 ) DIV - col1 AS col1 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-1481
SELECT ( 64 ) / - col1 AS col1 FROM tab1
----
-1
-12
-4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - ( 83 ) + - col1 FROM tab2 cor0
----
1858
3243
4747

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT DISTINCT - 60 * - COUNT( * ) FROM tab2 AS cor0 WHERE col0 + - col0 NOT IN ( + 7, col1 - + col0 * + + col0, - - col0, CAST( NULL AS SIGNED ) * col1 * + + 21 / + ( + - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT - 60 * - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + - col0 NOT IN ( + 7, col1 - + col0 * + + col0, - - col0, CAST ( NULL AS INTEGER ) * col1 * + + 21 / + ( + - col2 ) )
----
0

query I rowsort
SELECT DISTINCT + + col1 * - 35 AS col1 FROM tab0 AS cor0
----
-2835
-35
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + - COUNT( * ) + 19 AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1487
SELECT + - COUNT ( * ) + 19 AS col1 FROM tab2 AS cor0
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL + 25 * COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + 25 * COUNT ( * ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT DISTINCT - 92 DIV - col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT - 92 / - col2 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL + MIN( DISTINCT + col1 ) * + COUNT( * ) + COUNT( * ) * + SUM( + 31 ) FROM tab2
----
432

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + MIN ( DISTINCT + col1 ) * + COUNT ( * ) + COUNT ( * ) * + SUM ( + 31 ) FROM tab2
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT - 92 + - COUNT( * ) AS col0 FROM tab2 WHERE ( + 24 ) NOT BETWEEN - col1 / - col2 AND NULL
----
-92

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - 92 + - COUNT ( * ) AS col0 FROM tab2 WHERE ( + 24 ) NOT BETWEEN - col1 / - col2 AND NULL
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT col2 DIV - 77 - + + col1 AS col2 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT col2 / - 77 - + + col1 AS col2 FROM tab1
----
-15
-47
-5

query I rowsort
SELECT DISTINCT + 36 + 5 AS col0 FROM tab1 AS cor0
----
41

query II rowsort
SELECT DISTINCT col2 AS col1, col2 + col2 FROM tab1 AS cor0
----
59
118
68
136
96
192

query I rowsort
SELECT + 39 * - - col0 * - 97 - + 96 FROM tab1 AS cor0
----
-193029
-321651
-344349

onlyif mysql # DIV for integer division: 
query II rowsort label-1497
SELECT ALL - + col0 AS col1, - 31 DIV + - col0 FROM tab0 AS cor0
----
-15
2
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL - + col0 AS col1, - 31 / + - col0 FROM tab0 AS cor0
----
-15
2
-87
0
-97
0

query I rowsort
SELECT + 74 / 28 / - col1 - - + col2 + - - 82 FROM tab0 AS cor0 WHERE NOT col1 IS NULL AND NOT NULL >= 42 + 75 + - col1
----

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

query I rowsort
SELECT - + 48 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT ( + COUNT( ALL - 89 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT ( + COUNT ( ALL - 89 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * + ( 13 ) AS col1 FROM tab1 AS cor0
----
1105
1183
663

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

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

query I rowsort
SELECT + - 89 * - col0 * - 56 FROM tab2 AS cor0
----
-229264
-318976
-373800

query I rowsort
SELECT - - col1 * - - col2 + col1 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT - 77 * col2 * - col1 FROM tab0
----
16170
293139
7623

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( + ( - 69 ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 7 - col2 <> NULL
----

query I rowsort
SELECT ALL - - 77 AS col0 FROM tab0 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 + col0, col0 col0 FROM tab0 AS cor0
----
145
87
155
97
73
15

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

query I rowsort
SELECT DISTINCT + 92 * - - 38 FROM tab1
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT MAX( ALL 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1517
SELECT MAX ( ALL 6 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 52 * - col1 + - col2 FROM tab2 AS cor0
----
2629
3426
3964

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT + 60 AS col1, - ( MAX( ( 65 ) ) ) AS col2 FROM tab1 AS cor0
----
60
-65

skipif mysql # not compatible
query II rowsort label-1520
SELECT + 60 AS col1, - ( MAX ( ( 65 ) ) ) AS col2 FROM tab1 AS cor0
----
60
-65

query I rowsort
SELECT - + col2 * + - 25 * - ( + + col1 ) - + col1 - - - 89 AS col0 FROM tab2 AS cor0
----
-29465
-77166
-97306

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

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

query II rowsort
SELECT DISTINCT + col0 * + + col2 + 99 + - col0 + + 44 * + - 72 AS col0, - 40 AS col1 FROM tab0 AS cor0
----
-2286
-40
-2379
-40
6437
-40

query I rowsort
SELECT ALL + col1 + + 56 AS col0 FROM tab0 AS cor0
----
137
57
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > col2
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT - 0 * col2 + 19, - col0 AS col0 FROM tab2 AS cor0
----
19
-46
19
-64
19
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL + 51 * - + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + 51 * - + COUNT ( * ) FROM tab1 AS cor0
----
-153

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

query I rowsort
SELECT + 21 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

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

query I rowsort
SELECT ALL 67 - col1 - + - col1 AS col0 FROM tab2
----
67
67
67

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

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

query I rowsort
SELECT - + 51 * - 43 + + + col1 AS col1 FROM tab1 AS cor0
----
2198
2207
2240

query I rowsort
SELECT + 74 * - + ( - + col1 ) FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT 7 * 20 AS col0 FROM tab2 cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1538
SELECT - MIN ( col1 ) FROM tab0 AS cor0
----
-1

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

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

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

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

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

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

query I rowsort
SELECT + - 94 AS col1 FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT + 90 * col1 AS col2 FROM tab2 AS cor0
----
4590
6030
6930

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT + + COUNT ( * ) / MAX ( ALL col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT + 76 * - COUNT( * ) * - + ( + 67 ) FROM tab2 AS cor0
----
15276

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + 76 * - COUNT ( * ) * - + ( + 67 ) FROM tab2 AS cor0
----
15276

query I rowsort
SELECT 30 * + + col0 FROM tab1 AS cor0
----
1530
2550
2730

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 col0, col2 * - + 89 + + col1 AS col1 FROM tab1 cor0
----
28
-5246
28
-6005
28
-8530

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - + 97 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col2 FROM tab1
----
79

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

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT DISTINCT - COUNT( * ), ( + 60 ) AS col1 FROM tab2
----
-3
60

skipif mysql # not compatible
query II rowsort label-1555
SELECT DISTINCT - COUNT ( * ), ( + 60 ) AS col1 FROM tab2
----
-3
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1556
SELECT ALL 16 AS col0, col1 FROM tab2 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), ( + col1 ) )
----

skipif mysql # not compatible
query II rowsort label-1556
SELECT ALL 16 AS col0, col1 FROM tab2 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT - col0 DIV + 68 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1557
SELECT - col0 / + 68 AS col1 FROM tab2
----
-1
0
0

query II rowsort
SELECT DISTINCT col1, + 74 AS col2 FROM tab1
----
14
74
47
74
5
74

query I rowsort
SELECT 8 * - col1 AS col0 FROM tab0
----
-168
-648
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL - MAX( - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - MAX ( - col2 ) FROM tab1
----
59

query II rowsort
SELECT + 59, + col0 * col0 AS col0 FROM tab2
----
59
2116
59
4096
59
5625

query I rowsort
SELECT DISTINCT - 67 + + col1 + + col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
35
67
87

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE 81 >= NULL
----

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

query I rowsort
SELECT col0 * - - col0 * - ( - col1 ) AS col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT + 26 + - 21 AS col0 FROM tab1
----
5
5
5

query I rowsort
SELECT ALL 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT 11 * + - COUNT( * ) + - SUM( - - col1 ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-1569
SELECT 11 * + - COUNT ( * ) + - SUM ( - - col1 ) FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL - + SUM( DISTINCT 30 ) + - 76 * + 1 AS col0 FROM tab2 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - + SUM ( DISTINCT 30 ) + - 76 * + 1 AS col0 FROM tab2 AS cor0
----
-106

query I rowsort
SELECT ALL 90 + 54 FROM tab1 AS cor0
----
144
144
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 + + + col0 col1 FROM tab1 AS cor0
----
114
148
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL col2 DIV - 55 + - col2 FROM tab0 cor0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL col2 / - 55 + - col2 FROM tab0 cor0
----
-10
-100
-47

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

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

query I rowsort
SELECT ALL + col0 - + + col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + 57 * + COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 57 * + COUNT ( * ) FROM tab2
----
171

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 41 < + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT + 30 ) - COUNT( * ) * - + 69 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT + 30 ) - COUNT ( * ) * - + 69 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT 33 * COUNT( * ) - + - COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT 33 * COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT DISTINCT 9 * + - col1 AS col2 FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT ALL - 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 68
----

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL + + COUNT ( + 18 ) FROM tab0 cor0
----
3

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

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 + + col2 + - col0 / + + 75 )
----

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

query II rowsort
SELECT DISTINCT col0, - col1 * + - 75 * 10 + + ( col2 ) AS col1 FROM tab1
----
51
10596
85
3809
91
35318

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 >= - col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT - col0 + - col1 DIV + ( 82 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1593
SELECT - col0 + - col1 / + ( 82 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1594
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN - col2 + - + col0 AND col1 / ( col1 ) + - 54
----

skipif mysql # not compatible
query III rowsort label-1594
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col2 + - + col0 AND col1 / ( col1 ) + - 54
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + + COUNT( * ) + 89 + - 5 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1596
SELECT + + COUNT ( * ) + 89 + - 5 FROM tab1 AS cor0
----
87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + + col2 DIV + col1 + - - 17 + - - col0 FROM tab2 AS cor0
----
63
81
92

skipif mysql # not compatible
query I rowsort label-1598
SELECT + + col2 / + col1 + - - 17 + - - col0 FROM tab2 AS cor0
----
63
81
92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT DISTINCT COUNT( * ) AS col0, + 48 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-1600
SELECT DISTINCT COUNT ( * ) AS col0, + 48 FROM tab2
----
3
48

query I rowsort
SELECT DISTINCT 55 + col1 + - 1 AS col1 FROM tab2
----
105
121
131

query I rowsort
SELECT ALL col2 - 85 AS col0 FROM tab1
----
-17
-26
11

query I rowsort
SELECT 81 * col0 * - 72 FROM tab0
----
-507384
-565704
-87480

query II rowsort
SELECT ALL - col2, col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 60 ) * - 54 col1 FROM tab1
----
-3240
-3240
-3240

query I rowsort
SELECT ALL 68 AS col2 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT + - ( - + 40 ) FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - + 20 - - col0 AS col0 FROM tab1 AS cor0
----
31
65
71

query I rowsort
SELECT col0 - 11 AS col1 FROM tab2 cor0
----
35
53
64

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN - 0 AND - col2
----

query I rowsort
SELECT + 56 * - - 61 - + col0 FROM tab0 AS cor0
----
3319
3329
3401

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 51 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL - MAX( + + col0 ) * COUNT( * ) * + COUNT( * ) * - 79 + - COUNT( + col0 ) FROM tab1 AS cor0
----
64698

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - MAX ( + + col0 ) * COUNT ( * ) * + COUNT ( * ) * - 79 + - COUNT ( + col0 ) FROM tab1 AS cor0
----
64698

query I rowsort
SELECT col1 * 25 * - col1 + - + col2 FROM tab2
----
-112283
-148265
-65048

query I rowsort
SELECT ALL col0 - - 78 FROM tab2
----
124
142
153

query I rowsort
SELECT DISTINCT col2 - - 40 * + col1 FROM tab2
----
2063
2738
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT 27 + COUNT( * ) FROM tab0 WHERE ( col0 ) IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 27 + COUNT ( * ) FROM tab0 WHERE ( col0 ) IS NULL
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1620
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1621
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT + + ( - + 50 ) + + COUNT( * ), + 14 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 / - - col0 IS NOT NULL
----
-50
14

skipif mysql # not compatible
query II rowsort label-1625
SELECT + + ( - + 50 ) + + COUNT ( * ), + 14 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 / - - col0 IS NOT NULL
----
-50
14

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

query I rowsort
SELECT ALL - col2 * 40 FROM tab1 AS cor0
----
-2360
-2720
-3840

query I rowsort
SELECT - + col0 + 58 AS col2 FROM tab1 AS cor0
----
-27
-33
7

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

query I rowsort
SELECT ( 73 ) * + col0 + + + 96 * + 32 AS col0 FROM tab1
----
6795
9277
9715

query I rowsort
SELECT DISTINCT col0 * - + col2 + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT ALL 82 DIV - + MAX( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 82 / - + MAX ( + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 64 + - - 34 AS col1 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - col2 * - 32 - - col0 AS col1 FROM tab2
----
1344
1931
782

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

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

query I rowsort
SELECT 99 + 72 * - + col2 FROM tab0
----
-3285
-621
-7029

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 / 98 * + - 13 AND + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT DISTINCT 85 * 92 DIV + col0 - ( - col2 ) * 28 FROM tab2 AS cor0
----
1242
1728
814

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT 85 * 92 / + col0 - ( - col2 ) * 28 FROM tab2 AS cor0
----
1242
1728
814

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + MAX( col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1641
SELECT + MAX ( col2 ) AS col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT 74 DIV col2 * - col2 + + col0 FROM tab2
----
-23
17
24

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT 74 / col2 * - col2 + + col0 FROM tab2
----
-23
17
24

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT DISTINCT + COUNT( * ), SUM( + - col1 ) AS col0 FROM tab0
----
3
-103

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT + COUNT ( * ), SUM ( + - col1 ) AS col0 FROM tab0
----
3
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1646
SELECT CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1646
SELECT CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

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

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL 21 AS col0, ( - + 3 ) * - + COUNT ( * ) FROM tab0
----
21
9

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

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

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT COUNT ( DISTINCT col0 ) * + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1650
SELECT ALL - 53 AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1650
SELECT ALL - 53 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT MAX( ALL - 10 ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1651
SELECT DISTINCT MAX ( ALL - 10 ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + MAX( DISTINCT + - 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + MAX ( DISTINCT + - 11 ) FROM tab1
----
-11

query II rowsort
SELECT - - col2 AS col2, - col0 * 31 AS col1 FROM tab0 AS cor0
----
10
-2697
47
-465
99
-3007

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

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

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

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

query I rowsort
SELECT DISTINCT - 68 * + 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6664

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

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

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

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - SUM ( - - col2 ) AS col1 FROM tab1 cor0
----
-223

query I rowsort
SELECT + + 41 AS col1 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col1 * - - col1 + + col0 + - 0 FROM tab2 AS cor0
----
2647
4564
5993

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1663
SELECT + - col1 DIV + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1663
SELECT + - col1 / + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 20 * + 33 FROM tab0
----
660
660
660

query I rowsort
SELECT - col0 * + - col1 AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 44 * + - col0 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT ALL ( + + 5 ) * - 31 AS col0 FROM tab0
----
-155
-155
-155

query I rowsort
SELECT ALL col0 + 76 / - col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + + 46 FROM tab2
----
1058
1840
2668

query I rowsort
SELECT DISTINCT col2 + + - 52 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + col1 * + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 86 FROM tab0
----
133
185
96

query I rowsort
SELECT DISTINCT + 25 * col1 AS col1 FROM tab0
----
2025
25
525

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

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

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

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

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

query I rowsort
SELECT + col2 * - ( + - col2 ) - col0 FROM tab1 cor0
----
3396
4533
9165

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + 16 - col0
----

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - 20 - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1682
SELECT - 20 - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT 22 - ( col0 ) FROM tab0 AS cor0
----
-65
-75
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 26 + + - col0 col0, 42 FROM tab0 AS cor0
----
-61
42
-71
42
11
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT ALL + - col0 DIV + + 83 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + - col0 / + + 83 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL = + ( ( - + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1688
SELECT + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL = + ( ( - + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT ALL 82 DIV - - 76 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL 82 / - - 76 AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - - col2 col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 81 ) <> + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT - 65, col2 * + col0 AS col1 FROM tab2 AS cor0
----
-65
1058
-65
2560
-65
4350

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT MIN ( + - 48 ) AS col2 FROM tab2
----
-48

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - 64 AS col2 FROM tab2
----
-13
13
3

query I rowsort
SELECT DISTINCT + col0 + 54 * col0 FROM tab1 AS cor0
----
2805
4675
5005

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT - - ( COUNT( - 48 ) ) + + + 70 AS col1 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - - ( COUNT ( - 48 ) ) + + + 70 AS col1 FROM tab1 cor0
----
73

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

query I rowsort
SELECT ALL + - col2 + - 91 FROM tab0 AS cor0
----
-101
-138
-190

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1708
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1708
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 + col0 * + - 55 * - col1 FROM tab2
----
129053
271080
276433

query I rowsort
SELECT ALL 5 * col2 + + ( - + col2 ) AS col2 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + - ( + COUNT( * ) ) - COUNT( * ) FROM tab1 WHERE col2 BETWEEN + ( - col0 ) AND col2
----
-6

skipif mysql # not compatible
query I rowsort label-1711
SELECT + - ( + COUNT ( * ) ) - COUNT ( * ) FROM tab1 WHERE col2 BETWEEN + ( - col0 ) AND col2
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL >= 93 / + col1 )
----

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

query I rowsort
SELECT col2 * - - col2 * - 81 AS col2 FROM tab2
----
-129600
-272484
-42849

query II rowsort
SELECT ALL - col0 + col2, + col1 FROM tab0
----
-77
21
2
1
32
81

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

query II rowsort
SELECT DISTINCT - - col1 + col0 AS col2, - 54 FROM tab0 cor0
----
108
-54
96
-54
98
-54

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

query I rowsort
SELECT - - 64 - - col1 + col2 AS col2 FROM tab1 AS cor0
----
128
174
179

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + - 10 + + COUNT( DISTINCT + ( - 78 ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1721
SELECT + - 10 + + COUNT ( DISTINCT + ( - 78 ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT 82 AS col2, + COUNT( * ) * - 77 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
82
-693

skipif mysql # not compatible
query II rowsort label-1722
SELECT 82 AS col2, + COUNT ( * ) * - 77 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
82
-693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1723
SELECT - 23 DIV MAX( DISTINCT 11 ) * COUNT( * ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 23 / MAX ( DISTINCT 11 ) * COUNT ( * ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-6

query II rowsort
SELECT ALL + - col1 AS col2, + col1 * col1 + + col2 FROM tab2 AS cor0
----
-51
2624
-67
4547
-77
5969

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

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

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + MIN ( ALL - col0 ) FROM tab1 cor0
----
-91

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

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

query I rowsort
SELECT ALL - 30 - + 65 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1730
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + CAST( + col0 AS SIGNED ) = ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1730
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + CAST ( + col0 AS INTEGER ) = ( col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT CAST( NULL AS SIGNED ) / 44 / - 73 / + + ( ( + + col2 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT CAST ( NULL AS INTEGER ) / 44 / - 73 / + + ( ( + + col2 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 AS col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 IN ( 39 )
----

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) AS col1 FROM tab1
----
14
47
5

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > - col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT + COUNT( * ) AS col1, + ( - 33 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 49
----
0
-33

skipif mysql # not compatible
query II rowsort label-1739
SELECT + COUNT ( * ) AS col1, + ( - 33 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 49
----
0
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 64 > - ( - col1 )
----
64
77
40
75
67
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1741
SELECT DISTINCT SUM ( + - col1 ) * - COUNT ( * ) + 81 col0 FROM tab0 AS cor0
----
390

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1743
SELECT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT ALL - col1 + col0 * 46 FROM tab1 AS cor0
----
2332
3905
4139

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

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

query I rowsort
SELECT - 6 AS col2 FROM tab0 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT 78 + + - col2 FROM tab0 AS cor0
----
-21
31
68

query I rowsort
SELECT col0 + ( 48 ) FROM tab1
----
133
139
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 92, 74 + - col2 col2 FROM tab0
----
92
-25
92
27
92
64

query I rowsort
SELECT + 18 + + col0 FROM tab1
----
103
109
69

query I rowsort
SELECT ALL col2 - 52 FROM tab0
----
-42
-5
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT - CAST( COUNT( * ) AS SIGNED ) + + ( + + ( + 54 ) ) - - + 90 AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-1753
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + + ( + + ( + 54 ) ) - - + 90 AS col2 FROM tab1 AS cor0
----
141

query I rowsort
SELECT - 31 + - col2 AS col0 FROM tab1 AS cor0
----
-127
-90
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - col2 + + col2 AND + + 53
----
46
51
23

query I rowsort
SELECT ALL + ( col2 ) * - + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + + col1 * + 84 + - 33 + - col2 FROM tab2 AS cor0
----
4228
5537
6395

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT col2 DIV 5 + col0 AS col2 FROM tab1 AS cor0
----
104
70
96

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT col2 / 5 + col0 AS col2 FROM tab1 AS cor0
----
104
70
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL + + 51 * - - ( 90 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
13770

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + + 51 * - - ( 90 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13770

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT ALL 36 DIV - 37 * + 97 * MIN( - + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 36 / - 37 * + 97 * MIN ( - + col0 ) FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1763
SELECT + MIN ( - + col0 ) AS col1 FROM tab0
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT - col2 DIV + 82 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT - col2 / + 82 FROM tab1
----
-1
0
0

query II rowsort
SELECT DISTINCT + col1 AS col2, 35 AS col2 FROM tab0
----
1
35
21
35
81
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT MAX( + ( + + 43 ) ) AS col0, - 97 - + - MIN( DISTINCT 40 ) FROM tab0
----
43
-57

skipif mysql # not compatible
query II rowsort label-1767
SELECT MAX ( + ( + + 43 ) ) AS col0, - 97 - + - MIN ( DISTINCT 40 ) FROM tab0
----
43
-57

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

query I rowsort
SELECT + - 8 * 69 * - col2 AS col1 FROM tab1 AS cor0
----
32568
37536
52992

query I rowsort
SELECT ALL - 68 + - + 6 AS col2 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 WHERE 65 * - col0 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL - 13 * MAX( ALL - col1 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL - 13 * MAX ( ALL - col1 ) AS col2 FROM tab0
----
13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

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

query I rowsort
SELECT + 96 * col2 + - 4 FROM tab0
----
4508
9500
956

query I rowsort
SELECT - 49 FROM tab1 WHERE ( NULL ) IS NULL
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT 95 * + MIN( - 18 ) FROM tab1 WHERE NOT ( + 42 * + col1 ) NOT BETWEEN NULL AND ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT 95 * + MIN ( - 18 ) FROM tab1 WHERE NOT ( + 42 * + col1 ) NOT BETWEEN NULL AND ( + col2 )
----
NULL

query I rowsort
SELECT + 64 * - col0 AS col2 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT DISTINCT - ( 46 ) + col0 FROM tab0
----
-31
41
51

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <> + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT - SUM( DISTINCT ( 63 ) ) * COUNT( * ) + 62 AS col0 FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - SUM ( DISTINCT ( 63 ) ) * COUNT ( * ) + 62 AS col0 FROM tab1
----
-127

query I rowsort
SELECT ALL 5 + col2 AS col2 FROM tab0
----
104
15
52

query I rowsort
SELECT 10 AS col2 FROM tab2 WHERE NULL BETWEEN col1 AND - col2 * col1
----

query I rowsort
SELECT ALL - 33 * 60 FROM tab1
----
-1980
-1980
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + SUM( DISTINCT - col2 ) FROM tab1 WHERE NOT + col2 BETWEEN col2 + col1 AND col0
----
-223

skipif mysql # not compatible
query I rowsort label-1787
SELECT + SUM ( DISTINCT - col2 ) FROM tab1 WHERE NOT + col2 BETWEEN col2 + col1 AND col0
----
-223

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 67 <> NULL
----

query I rowsort
SELECT DISTINCT + 74 + + col1 FROM tab0
----
155
75
95

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

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

query I rowsort
SELECT DISTINCT 19 * 8 AS col2 FROM tab1
----
152

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

query I rowsort
SELECT col1 * - 57 FROM tab0 WHERE col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL col2 / + 44 AS col1 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE + ( 2 ) BETWEEN NULL AND ( 32 + + 56 )
----

query I rowsort
SELECT - 37 - col1 AS col1 FROM tab1
----
-42
-51
-84

query I rowsort
SELECT 79 * col1 + col0 FROM tab2
----
4075
5368
6147

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT MIN( 14 ) AS col1 FROM tab1 WHERE NOT + 78 * + 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT MIN ( 14 ) AS col1 FROM tab1 WHERE NOT + 78 * + 50 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + 33 + MAX( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1802
SELECT + 33 + MAX ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - COUNT( * ) * SUM( ALL - ( + ( 90 ) ) ) + 62 AS col1 FROM tab0 AS cor0
----
872

skipif mysql # not compatible
query I rowsort label-1803
SELECT - COUNT ( * ) * SUM ( ALL - ( + ( 90 ) ) ) + 62 AS col1 FROM tab0 AS cor0
----
872

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT ALL - 84 DIV - col0 + col1 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - 84 / - col0 + col1 FROM tab0 AS cor0
----
1
21
86

query I rowsort
SELECT 86 * col0 AS col2 FROM tab0 cor0
----
1290
7482
8342

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

query I rowsort
SELECT DISTINCT + col1 + + 46 AS col1 FROM tab1 WHERE ( 12 ) IS NOT NULL
----
51
60
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT - ( + SUM( DISTINCT col2 ) ) FROM tab2 WHERE ( + col1 * col0 ) IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - ( + SUM ( DISTINCT col2 ) ) FROM tab2 WHERE ( + col1 * col0 ) IS NOT NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT 32 * + COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( col1 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT 32 * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( col1 + - col2 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT ALL col0 - + 58 FROM tab1 AS cor0 WHERE - 4 + col2 < CAST( NULL AS SIGNED ) + 54
----

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL col0 - + 58 FROM tab1 AS cor0 WHERE - 4 + col2 < CAST ( NULL AS INTEGER ) + 54
----

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

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 73 >= NULL
----

query I rowsort
SELECT ALL ( 13 ) AS col2 FROM tab2 AS cor0
----
13
13
13

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

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

query I rowsort
SELECT col2 * 83 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT - + CAST( - ( + col0 ) AS SIGNED ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-1820
SELECT - + CAST ( - ( + col0 ) AS INTEGER ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT + 64 DIV + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 64 / + COUNT ( * ) FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT col0 + col1 AS col0 FROM tab0 WHERE NOT col1 / - CAST( 75 * + col1 AS SIGNED ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1823
SELECT col0 + col1 AS col0 FROM tab0 WHERE NOT col1 / - CAST ( 75 * + col1 AS INTEGER ) > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * - + 70 AS col2 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT ALL col1 * + + 28 AS col1 FROM tab1
----
1316
140
392

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT MAX( + col2 ) * 23 FROM tab1
----
2208

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT MAX ( + col2 ) * 23 FROM tab1
----
2208

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 50 ) BETWEEN - 53 * col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN + col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - COUNT( * ) FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - COUNT ( * ) FROM tab0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT - 90 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
39690
590490
90

query I rowsort
SELECT DISTINCT 88 + + 55 + - 63 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT MIN( CAST( + 11 AS SIGNED ) ) * 94 + + 12 AS col1 FROM tab2 AS cor0
----
1046

skipif mysql # not compatible
query I rowsort label-1832
SELECT MIN ( CAST ( + 11 AS INTEGER ) ) * 94 + + 12 AS col1 FROM tab2 AS cor0
----
1046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL - ( - MAX( DISTINCT + col0 ) ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( - col2 ) * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - ( - MAX ( DISTINCT + col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( - col2 ) * + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - col1 * col2 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 82 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + COUNT( * ) * - 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + COUNT ( * ) * - 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1837
SELECT ALL * FROM tab2 WHERE NOT ( + + ( CAST( NULL AS DECIMAL ) ) ) BETWEEN - ( + col2 ) + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1837
SELECT ALL * FROM tab2 WHERE NOT ( + + ( CAST ( NULL AS REAL ) ) ) BETWEEN - ( + col2 ) + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL 27 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT ALL col2 DIV - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL col2 / - 97 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - 95 + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + COUNT( * ) * + 12 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col0 * - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + COUNT ( * ) * + 12 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col0 * - col2 ) AND NULL
----
0

query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab0 WHERE NOT - 95 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL 15 AS col0 FROM tab1 cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT - + CAST( - ( - col0 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1844
SELECT - + CAST ( - ( - col0 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - - col1 + - col2 + + 63 AS col0 FROM tab1 AS cor0
----
-19
42
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - col1 + 21 )
----
3

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - col1 + 21 )
----
3

query II rowsort
SELECT - col1 AS col1, col0 * - + 57 * - col2 AS col1 FROM tab1 AS cor0
----
-14
279072
-47
352716
-5
285855

query I rowsort
SELECT - col2 * + col2 - + col2 + + 62 * 51 AS col1 FROM tab0 AS cor0
----
-6738
3052
906

query I rowsort
SELECT ALL - col1 + + + 93 * - col2 AS col1 FROM tab0 AS cor0
----
-4452
-9208
-951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * - col2 + - col1 FROM tab1 AS cor0
----
3476
4577
9202

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * - col2 + - col1 FROM tab1 AS cor0
----
3476
4577
9202

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1851
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= ( 90 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-1851
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= ( 90 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - - 18 + - COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - 18 + - COUNT ( * ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT 89 + - 40 AS col1 FROM tab2
----
49

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE + col2 = ( - 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT MAX( col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT MAX ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + ( - ( + col0 ) ) + col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 72 IS NULL
----

query I rowsort
SELECT col0 + col1 AS col2 FROM tab1 WHERE ( - 98 ) NOT BETWEEN + 38 AND NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col2 FROM tab2 cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( - col0 ) * + col1 - - 98 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( - col0 ) * + col1 - - 98 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 98 + + col0 FROM tab0 AS cor0
----
113
185
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 18 ) > + col1 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 34 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - COUNT( ALL - 93 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - COUNT ( ALL - 93 ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM ( tab1 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + + ( - 78 ) ) AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT COUNT( * ) FROM tab1 WHERE NOT ( col2 ) <= ( col2 + col1 * - 31 )
----
3

skipif mysql # not compatible
query I rowsort label-1869
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) <= ( col2 + col1 * - 31 )
----
3

query I rowsort
SELECT DISTINCT + + col0 + 10 * col1 AS col0 FROM tab2 WHERE NOT - + 12 + col2 IS NULL
----
556
745
834

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( + col0 + - 24 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 21 FROM tab2 WHERE - - ( - 81 ) NOT BETWEEN NULL AND - 69 * - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT + ( - + SUM( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + ( - + SUM ( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 12 col2 FROM tab2 AS cor0
----
12
12
12

query II rowsort
SELECT - col0, - 20 AS col0 FROM tab2 AS cor0
----
-46
-20
-64
-20
-75
-20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - + MIN( ALL col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - + MIN ( ALL col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + col0 * + + col0 * - 23 FROM tab0 AS cor0 WHERE - col2 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - 81 + + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 81 + + COUNT ( * ) FROM tab2
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1880
SELECT + col1 FROM tab1 WHERE NOT ( - + col2 + + 56 + + col2 ) = ( + ( col0 ) * - CAST( NULL AS DECIMAL ) + 98 * col1 )
----

skipif mysql # not compatible
query I rowsort label-1880
SELECT + col1 FROM tab1 WHERE NOT ( - + col2 + + 56 + + col2 ) = ( + ( col0 ) * - CAST ( NULL AS REAL ) + 98 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN - col1 AND ( + + col1 * col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 83 * + + 74 FROM tab0
----
6142
6142
6142

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT + col0 DIV ( - 57 ) FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT + col0 / ( - 57 ) FROM tab0
----
-1
-1
0

query II rowsort
SELECT + col1, - 11 FROM tab2
----
51
-11
67
-11
77
-11

query I rowsort
SELECT DISTINCT ( 28 ) AS col1 FROM tab2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT - ( - + 37 ) + + ( - COUNT( * ) ) + - COUNT( * ) + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT - ( - + 37 ) + + ( - COUNT ( * ) ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col2 IS NOT NULL )
----
0

query I rowsort
SELECT col2 * 21 FROM tab2
----
1218
483
840

query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + col2 + col0 AND + 65 )
----

query I rowsort
SELECT DISTINCT - + 49 + - 16 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT + col1 AS col1, + 28 * - - 92 FROM tab0 AS cor0
----
1
2576
21
2576
81
2576

query I rowsort
SELECT ALL col1 + + 50 AS col2 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + 47 + - COUNT( - + 16 ) col1 FROM tab1
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT + 47 + - COUNT ( - + 16 ) col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT 17 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT 17 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-153

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col1 / + + ( + - ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT - - 63 + + + 47 AS col0 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 * - - col2 + - col2 + + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL - 21 DIV col2 + - 0 * + + col2 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - 21 / col2 + - 0 * + + col2 AS col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( col0, + col1 + - + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 + + + col1, + col1 AS col2 FROM tab1 AS cor0
----
10
5
28
14
94
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + 48 * col2 + + col1 > NULL
----

query I rowsort
SELECT 39 AS col2 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - - 58 * - col0 + - col1 + ( ( - + col2 ) ) FROM tab1 AS cor0
----
-3068
-4994
-5393

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1905
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( - + col0 AS SIGNED ) / CAST( - col0 AS SIGNED ) <= ( ( + 41 ) + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-1905
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( - + col0 AS INTEGER ) / CAST ( - col0 AS INTEGER ) <= ( ( + 41 ) + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - + COUNT( * ) col1 FROM tab0 WHERE + 89 IS NOT NULL OR NOT ( + 37 ) > - 17
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT - + COUNT ( * ) col1 FROM tab0 WHERE + 89 IS NOT NULL OR NOT ( + 37 ) > - 17
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT MAX( 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1907
SELECT MAX ( 15 ) AS col0 FROM tab2
----
15

query I rowsort
SELECT ALL + - 65 AS col2 FROM tab2 WHERE NULL < - ( - col1 ) - - + 29 + col1
----

query I rowsort
SELECT - col2 - - 44 FROM tab2
----
-14
21
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1910
SELECT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1911
SELECT ALL * FROM tab2 WHERE NOT - 87 + col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1911
SELECT ALL * FROM tab2 WHERE NOT - 87 + col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + COUNT( ALL 84 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1913
SELECT + COUNT ( ALL 84 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL 24 DIV col0 - - 88 * - 60 col1 FROM tab2 AS cor0
----
-5280
-5280
-5280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1914
SELECT ALL 24 / col0 - - 88 * - 60 col1 FROM tab2 AS cor0
----
-5280
-5280
-5280

query I rowsort
SELECT DISTINCT + + 8 AS col2 FROM tab2 AS cor0 WHERE + col2 + + 24 * + + col0 IS NOT NULL
----
8

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - + col1 * + ( - 37 ) FROM tab1 AS cor0
----
1739
185
518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - col0 ) * - col2 - + + col2 + ( - + col1 ) col1 FROM tab2 AS cor0
----
2443
4225
984

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + + col2 / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT + + SUM( ALL - col0 ) + 42 AS col2 FROM tab1 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + + SUM ( ALL - col0 ) + 42 AS col2 FROM tab1 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT - col2 * col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1921
SELECT - col2 * col2 / col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1922
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1923
SELECT CAST( NULL AS SIGNED ) AS col0, col0 DIV + col1 AS col0 FROM tab1
----
NULL
1
NULL
17
NULL
3

skipif mysql # not compatible
query II rowsort label-1923
SELECT CAST ( NULL AS INTEGER ) AS col0, col0 / + col1 AS col0 FROM tab1
----
NULL
1
NULL
17
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT - 12 * + CAST( + 82 AS SIGNED ) FROM tab2
----
-984

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - 12 * + CAST ( + 82 AS INTEGER ) FROM tab2
----
-984

query II rowsort
SELECT DISTINCT - col1 AS col0, 41 * + ( - col2 ) - - + col2 * + col1 FROM tab0
----
-1
-3960
-21
-200
-81
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT COUNT( * ) * - - 90 AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1926
SELECT COUNT ( * ) * - - 90 AS col1 FROM tab0
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE + + col0 + + 52 + + 64 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - col1 * 61 * - 33 + - - col1 FROM tab2 AS cor0
----
10115392
4722549
9920141

query I rowsort
SELECT 54 + 50 + + col0 FROM tab0 AS cor0
----
119
191
201

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 + - - 77 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col0 col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT AVG ( DISTINCT + 4 ) + - COUNT( ALL ( + - col2 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT AVG ( DISTINCT + 4 ) + - COUNT ( ALL ( + - col2 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 22 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-22
-22
-22

query II rowsort
SELECT ALL + - col1 AS col0, - 7 FROM tab2 AS cor0
----
-51
-7
-67
-7
-77
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT + - COUNT( * ) - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT + - COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 - 58 FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT + col2 - + - 66 FROM tab2 AS cor0
----
106
124
89

query I rowsort
SELECT - col0 - + col0 + + col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + + 90 AS col0, 39 FROM tab1 AS cor0
----
90
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - + 32 - - col2 FROM tab0 cor0
----
-22
15
67

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE col1 BETWEEN + col1 * - 97 * + 6 AND - col0 + - - ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 52 col0 FROM tab0 AS cor0
----
-35
-45
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + 37 - COUNT( * ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + 37 - COUNT ( * ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT ALL + COUNT( * ) DIV + COUNT( * ) - - 53 AS col2 FROM tab0, tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + COUNT ( * ) / + COUNT ( * ) - - 53 AS col2 FROM tab0, tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-1947
SELECT col2 DIV col0 AS col0, - col0 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

skipif mysql # not compatible
query II rowsort label-1947
SELECT col2 / col0 AS col0, - col0 FROM tab0 AS cor0
----
0
-87
1
-97
3
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + 3 * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 3 * + + COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT - + col0 AS col2, 37 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + ( + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1950
SELECT + ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1 AS col0, - 55 + 58 + - + col0 FROM tab0 cor0
----
-1
-94
-21
-84
-81
-12

query I rowsort
SELECT ALL - + col0 + + - col1 + + 64 FROM tab2 AS cor0
----
-33
-77
-78

query I rowsort
SELECT col0 * + col2 + col2 FROM tab2
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT + COUNT( - - ( + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + COUNT ( - - ( + col1 ) ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - ( 35 ) + - + 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT 62 DIV - col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT 62 / - col0 FROM tab0
----
-4
0
0

query II rowsort
SELECT DISTINCT - ( + 25 ) AS col0, ( - + col2 ) FROM tab0
----
-25
-10
-25
-47
-25
-99

query I rowsort
SELECT - col1 * + col1 + + - 79 FROM tab2 AS cor0
----
-2680
-4568
-6008

query I rowsort
SELECT DISTINCT 98 + col2 AS col1 FROM tab1 AS cor0
----
157
166
194

query I rowsort
SELECT DISTINCT + - 27 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT - 38 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - col2 * + + col2 AS col2 FROM tab2 AS cor0 WHERE col1 / + 58 IS NOT NULL
----
-1600
-3364
-529

query II rowsort
SELECT ALL - 74 + - col2 * col2 + col1 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-153
10
-2202
47
-9874
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 51, + 95 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 8ead91003beb864abe635b2a93923326

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT col1 * - col1 * - 94 + - col2 DIV col0 * 51 AS col1 FROM tab2
----
244494
421966
557326

skipif mysql # not compatible
query I rowsort label-1966
SELECT col1 * - col1 * - 94 + - col2 / col0 * 51 AS col1 FROM tab2
----
244494
421966
557326

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL + 28 + + 6 DIV ( + ( col1 ) ) AS col2 FROM tab1
----
28
28
29

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + 28 + + 6 / ( + ( col1 ) ) AS col2 FROM tab1
----
28
28
29

query II rowsort
SELECT DISTINCT 81 AS col1, 26 FROM tab2
----
81
26

query I rowsort
SELECT - 88 + - 57 AS col1 FROM tab0
----
-145
-145
-145

query I rowsort
SELECT DISTINCT + col0 * + + col2 * - + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 71 ) col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT col2 * - - col2 AS col1 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL + MAX( DISTINCT - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL + MAX ( DISTINCT - - col1 ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + - col0 ) col2, - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1976
SELECT DISTINCT 26, + ( - CAST( 49 AS SIGNED ) ) col0 FROM tab2
----
26
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1976
SELECT DISTINCT 26, + ( - CAST ( 49 AS INTEGER ) ) col0 FROM tab2
----
26
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT MIN( ALL - - 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-1977
SELECT MIN ( ALL - - 87 ) FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1978
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1979
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - ( + + ( - col1 ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1979
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - ( + + ( - col1 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + SUM( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1980
SELECT + SUM ( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT + col1 * + - 30 FROM tab0 WHERE NOT - col1 * - col2 + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 67 * + 60 FROM tab1
----
4020

query I rowsort
SELECT ALL + 86 FROM tab2 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT 25 + COUNT( * ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT 25 + COUNT ( * ) FROM tab1 AS cor0
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ( - + ( - SUM( ALL + + 4 ) ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1986
SELECT ( - + ( - SUM ( ALL + + 4 ) ) ) FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT MIN( ALL 67 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT MIN ( ALL 67 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
70

query I rowsort
SELECT + col1 * + - 29 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT ALL + 49 + + 7 AS col0 FROM tab1
----
56
56
56

query I rowsort
SELECT ALL + col1 * + + col2 * col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT CAST( 50 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif mysql # not compatible
query I rowsort label-1991
SELECT CAST ( 50 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL COUNT( DISTINCT - + 17 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL COUNT ( DISTINCT - + 17 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 63 AS col0 FROM tab1, tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1996
SELECT DISTINCT + + 0 AS col0, col0 + col1 + + - col0 * col2 DIV - - col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-1996
SELECT DISTINCT + + 0 AS col0, col0 + col1 + + - col0 * col2 / - - col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - ( + col1 ) + + 6 - 33 + - col2 FROM tab1 AS cor0
----
-137
-142
-91

query II rowsort
SELECT DISTINCT + 44 - - col0, col2 FROM tab0
----
131
10
141
99
59
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 35 * 8 col2 FROM tab0
----
-183
-193
-265

query I rowsort
SELECT DISTINCT + col0 * + col0 * - col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

query I rowsort
SELECT DISTINCT + col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT + + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + + COUNT( * ) * + 34 AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + COUNT ( * ) * + 34 AS col1 FROM tab1 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + + col1 * - + col2 BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL COUNT( * ) * - - 50 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL COUNT ( * ) * - - 50 FROM tab1
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2006
SELECT DISTINCT * FROM tab1 WHERE + ( - col2 ) * - 95 / col1 NOT BETWEEN + + CAST( NULL AS DECIMAL ) AND - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2006
SELECT DISTINCT * FROM tab1 WHERE + ( - col2 ) * - 95 / col1 NOT BETWEEN + + CAST ( NULL AS REAL ) AND - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL + MAX( 70 ) AS col1 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + MAX ( 70 ) AS col1 FROM tab1
----
70

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - ( - 34 ) FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - SUM( + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - SUM ( + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + 63 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 + col2 col1 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT CAST( NULL AS SIGNED ) * - col0 * + - 34 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT CAST ( NULL AS INTEGER ) * - col0 * + - 34 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT + ( + 3 ) * + COUNT( - + col1 ) DIV + + 91 + - COUNT( * ) + + 94 + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2015
SELECT + ( + 3 ) * + COUNT ( - + col1 ) / + + 91 + - COUNT ( * ) + + 94 + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT DISTINCT 29 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
29
-3

skipif mysql # not compatible
query II rowsort label-2016
SELECT DISTINCT 29 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
29
-3

query I rowsort
SELECT ALL - 50 * col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT MAX( ALL + col0 ) + 46 AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT MAX ( ALL + col0 ) + 46 AS col0 FROM tab2
----
121

query I rowsort
SELECT + ( col1 ) + 90 FROM tab1 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT 24 * COUNT( + 39 ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2020
SELECT 24 * COUNT ( + 39 ) AS col2 FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2021
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 BETWEEN + + col0 * + + 34 * - col0 AND - + CAST( col2 AS SIGNED )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-2021
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 BETWEEN + + col0 * + + 34 * - col0 AND - + CAST ( col2 AS INTEGER )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + COUNT( * ) * 96 * + 64 FROM tab1
----
18432

skipif mysql # not compatible
query I rowsort label-2022
SELECT + COUNT ( * ) * 96 * + 64 FROM tab1
----
18432

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT 95 - COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT 95 - COUNT ( * ) FROM tab0
----
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + 54 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2025
SELECT CAST( NULL AS SIGNED ) + - col0 AS col0, - 65 FROM tab2 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
query II rowsort label-2025
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col0, - 65 FROM tab2 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL ( SUM( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL ( SUM ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 77 / - 66 NOT BETWEEN NULL AND - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0 * + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL + SUM( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + SUM ( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL MAX( col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
47

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 / col2 + - - 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT - 0 * - - col0 * 49 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2034
SELECT - 0 * - - col0 * 49 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * + - col0 * - col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT - 87 + + col0 / 38 * - 62 * + col0 * + col2 NOT BETWEEN - 57 - + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT ( - - 32 ) col0, COUNT( * ) FROM tab1
----
32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2037
SELECT ( - - 32 ) col0, COUNT ( * ) FROM tab1
----
32
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2038
SELECT * FROM tab2 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) * col0 > + 1 )
----

skipif mysql # not compatible
query III rowsort label-2038
SELECT * FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) * col0 > + 1 )
----

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 * + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-36540
-97200
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT + 46 + - COUNT( * ) + ( - 66 ) - - COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT + 46 + - COUNT ( * ) + ( - 66 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT DISTINCT - + COUNT( * ) + + - 29, + COUNT( col0 ) * MIN( ALL - 67 ) * 13 + + 84 AS col1 FROM tab1 AS cor0
----
-32
-2529

skipif mysql # not compatible
query II rowsort label-2041
SELECT DISTINCT - + COUNT ( * ) + + - 29, + COUNT ( col0 ) * MIN ( ALL - 67 ) * 13 + + 84 AS col1 FROM tab1 AS cor0
----
-32
-2529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT - + 2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT - + 2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT MAX( DISTINCT col2 ) + + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2043
SELECT MAX ( DISTINCT col2 ) + + COUNT ( * ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT 99 + - + col2 AS col2 FROM tab2
----
41
59
76

query I rowsort
SELECT - + col2 * ( + + 57 ) + + col2 FROM tab0 WHERE col1 * - 30 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - - 28 * + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-2046
SELECT - - 28 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-252

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - ( + + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + COUNT( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT + COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( + col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( + col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT - + col1 AS col2, + 32 * col2 AS col0 FROM tab0 cor0
----
-1
3168
-21
320
-81
1504

query I rowsort
SELECT ALL + - col0 + 52 * col1 FROM tab1 AS cor0
----
175
2353
677

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT - 12 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - 12 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL ( + - col1 ) FROM tab0 cor0 WHERE - col0 + - col0 - + 69 >= 89
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> + ( - - 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2055
SELECT + CAST( NULL AS SIGNED ) - + MIN( ALL - col2 ), 73 AS col2 FROM tab2 AS cor0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2055
SELECT + CAST ( NULL AS INTEGER ) - + MIN ( ALL - col2 ), 73 AS col2 FROM tab2 AS cor0
----
NULL
73

query I rowsort
SELECT DISTINCT + 83 * + col2 FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
1909
3320
4814

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + 2 + + + ( 69 ) * - col0 + - col1 * - 16 FROM tab1
----
-3344
-5616
-5868

query I rowsort
SELECT + 53 + + - 6 * col2 + + - col2 AS col2 FROM tab1
----
-360
-423
-619

query I rowsort
SELECT ALL - 21 + - col1 AS col1 FROM tab0
----
-102
-22
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2061
SELECT DISTINCT col1 - + 34 DIV + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT col1 - + 34 / + col1 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + col2 * - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2063
SELECT + col2 * - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - COUNT( * ) * + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
138

query I rowsort
SELECT - - 52 * + 2 + - + col1 AS col1 FROM tab2 AS cor0
----
27
37
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT + + col2 * + 5 AS col2 FROM tab2 cor0
----
115
200
290

query I rowsort
SELECT DISTINCT + 79 * + 6 FROM tab2 AS cor0
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT + MIN( - 94 ) AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + MIN ( - 94 ) AS col2 FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2071
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND ( + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + ( - 47 ) )
----

skipif mysql # not compatible
query III rowsort label-2071
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND ( + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + ( - 47 ) )
----

query I rowsort
SELECT - - col1 + + - 66 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT - col2 * col2 AS col1 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) * + col2 + + col2 + + col2 IS NOT NULL
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-2073
SELECT - col2 * col2 AS col1 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) * + col2 + + col2 + + col2 IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT + + 24 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + ( - 64 ) AS col0 FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT - 61 * - + COUNT( * ) DIV + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2076
SELECT - 61 * - + COUNT ( * ) / + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT DISTINCT - ( 73 ) FROM tab2 AS cor0
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2078
SELECT + col2 AS col0, - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2078
SELECT + col2 AS col0, - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT DISTINCT CAST( - 24 AS SIGNED ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT CAST ( - 24 AS INTEGER ) FROM tab2
----
-24

query II rowsort
SELECT ALL + col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT - + COUNT( * ) + + + 2 * + 26 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - + COUNT ( * ) + + + 2 * + 26 FROM tab0 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT 12 + - col1 AS col0 FROM tab0 cor0
----
-69
-9
11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) * + col2 * + - ( + 88 ) NOT BETWEEN NULL AND + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 + col1 FROM tab1 AS cor0
----
-19
-52
-61

query I rowsort
SELECT - 65 * + + ( 92 ) AS col1 FROM tab1
----
-5980
-5980
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab0 WHERE 9 IS NULL
----

query I rowsort
SELECT DISTINCT - - 78 FROM tab0 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL + CAST( CAST( - 62 AS SIGNED ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2090
SELECT ALL + CAST ( CAST ( - 62 AS INTEGER ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 + - + col2
----

query I rowsort
SELECT DISTINCT - - col1 - - col1 * col0 AS col1 FROM tab2 cor0
----
2397
5005
5092

query II rowsort
SELECT DISTINCT - col2 * - - ( - 98 ) + col0, - col1 AS col2 FROM tab0 AS cor0
----
1067
-21
4621
-81
9799
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ( + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2094
SELECT ( + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + COUNT( * ) - ( 59 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + COUNT ( * ) - ( 59 ) FROM tab1
----
-56

query I rowsort
SELECT ALL + col1 * + col0 + - 44 + - col2 AS col0 FROM tab2
----
2279
4844
4923

query I rowsort
SELECT ALL col2 * + + col2 + - col2 AS col1 FROM tab1
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT - 5 - + COUNT( + - col0 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - 5 - + COUNT ( + - col0 ) FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + 98 * + COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
882
-9

skipif mysql # not compatible
query II rowsort label-2099
SELECT + 98 * + COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
882
-9

query I rowsort
SELECT col0 - - - col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL col2 * - 36 AS col0 FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NOT - col2 * + col2 = col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2103
SELECT DISTINCT col2 DIV + col2 - - - col2 + + CAST( - col0 AS SIGNED ) * + 71 AS col1 FROM tab1
----
-3716
-6093
-6528

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT col2 / + col2 - - - col2 + + CAST ( - col0 AS INTEGER ) * + 71 AS col1 FROM tab1
----
-3716
-6093
-6528

query I rowsort
SELECT DISTINCT - 34 * + col0 AS col2 FROM tab0 cor0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT MIN( ALL - + 53 ) * + + 76 AS col2 FROM tab1 AS cor0
----
-4028

skipif mysql # not compatible
query I rowsort label-2105
SELECT MIN ( ALL - + 53 ) * + + 76 AS col2 FROM tab1 AS cor0
----
-4028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - MAX( - ( 45 ) ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2107
SELECT - MAX ( - ( 45 ) ) AS col1 FROM tab0
----
45

query I rowsort
SELECT - ( - - col2 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 / + 97 / + col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + - 99 * - 41 + - col2 + - + col1 FROM tab2 AS cor0
----
3934
3942
3985

query I rowsort
SELECT - - 66 FROM tab0 cor0 WHERE NOT + col1 * + - col0 * + + 7 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT DISTINCT COUNT( * ) col0, 77 AS col1 FROM tab1 cor0
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2112
SELECT DISTINCT COUNT ( * ) col0, 77 AS col1 FROM tab1 cor0
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + COUNT( * ) * + 99 + - 83 AS col1 FROM tab2 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-2113
SELECT + COUNT ( * ) * + 99 + - 83 AS col1 FROM tab2 AS cor0
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL - - COUNT( * ) AS col2, - 36 FROM tab1 AS cor0
----
3
-36

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL - - COUNT ( * ) AS col2, - 36 FROM tab1 AS cor0
----
3
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT + 45 DIV + 41 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 45 / + 41 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 76 * + COUNT( * ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-2117
SELECT 76 * + COUNT ( * ) AS col1 FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT DISTINCT MAX( DISTINCT + - col2 ) AS col2, COUNT( * ) FROM tab2
----
-23
3

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT MAX ( DISTINCT + - col2 ) AS col2, COUNT ( * ) FROM tab2
----
-23
3

query I rowsort
SELECT + 96 + col1 + col1 AS col0 FROM tab1 AS cor0
----
106
124
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NULL > - 92
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NULL > - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT - + col2 + + - 70 DIV col2 AS col0 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2121
SELECT - + col2 + + - 70 / col2 AS col0 FROM tab1 AS cor0
----
-60
-69
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN - + 15 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - MIN( DISTINCT col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2123
SELECT - MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + 55 + + - 72 FROM tab1
----
-17

query II rowsort
SELECT DISTINCT + col0, 63 AS col2 FROM tab1 AS cor0
----
51
63
85
63
91
63

query I rowsort
SELECT DISTINCT - col2 + - 33 * - - 33 AS col2 FROM tab0 AS cor0
----
-1099
-1136
-1188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2127
SELECT + + ( - 28 ) - - col0 * CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
197
7541
9381

skipif mysql # not compatible
query I rowsort label-2127
SELECT + + ( - 28 ) - - col0 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
197
7541
9381

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 13, col1 * + col1 + - 88 / 20 + col0 - col0 + col1 * + 92 * - - 49, - col2 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + col2 * - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2130
SELECT ALL - 38 AS col2, col1 * 80 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
-38
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL - 38 AS col2, col1 * 80 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
-38
NULL
-38
NULL
-38
NULL

query II rowsort
SELECT + col2 - + col2 + + col1 AS col1, - col1 + + col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 27 - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 27 - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col0 - + col1 - + col2 AS col1 FROM tab2 AS cor0
----
-120
-181
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / + - col1 / col2 - - - col2 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2134
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + - col1 / col2 - - - col2 + - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT COUNT( * ) * - 1 + + - 61 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( * ) * - 1 + + - 61 FROM tab0 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT DISTINCT col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT 6 * + 63 + COUNT( * ) FROM tab2
----
381

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT 6 * + 63 + COUNT ( * ) FROM tab2
----
381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) - - - 16 col2 FROM tab1
----
-11
-2
31

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col2 + col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2 * + - col1 AS col2, 44 AS col2 FROM tab0
----
-210
44
-3807
44
-99
44

query I rowsort
SELECT + 32 * - - col2 FROM tab2
----
1280
1856
736

query I rowsort
SELECT 82 * - + col0 AS col1 FROM tab1
----
-4182
-6970
-7462

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + - col2
----

query I rowsort
SELECT ALL col2 * - ( - col2 ) FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( 77 - - - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT SUM( DISTINCT - + 25 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT SUM ( DISTINCT - + 25 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT - col1 DIV 79 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT - col1 / 79 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * + ( - + 33 ) FROM tab0 AS cor0
----
2871
3201
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL - - COUNT( * ) DIV - 55 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - - COUNT ( * ) / - 55 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 62 * COUNT( * ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2151
SELECT 62 * COUNT ( * ) FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - + 32 AS col1 FROM tab2 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + 15 * + 88 col0, + ( - col2 ) + - col0 + - + 33 FROM tab1 AS cor0
----
1379
-177
1388
-192
1416
-180

query I rowsort
SELECT DISTINCT 54 FROM tab2, tab2 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 7 AS col1, - col1 + + + col0 col0 FROM tab0
----
-7
-66
-7
66
-7
96

query I rowsort
SELECT - - col1 FROM tab1 WHERE - 46 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT SUM( DISTINCT col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2158
SELECT SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - + col2 + + - col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col0 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT ( + col2 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT ( + col2 IS NULL ) )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * col1 + + 90 * 68 * - - 53 + - - col1 + + + 9 * - col0 col2 FROM tab0 AS cor0
----
323526
324396
327384

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT - 9 DIV + 7 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2165
SELECT - 9 / + 7 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( - 84 ) FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE - col0 >= ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE - col0 >= ( - - col0 )
----
NULL

query I rowsort
SELECT + ( - - col2 ) * col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT CAST( NULL AS SIGNED ), + 88 AS col1 FROM tab2
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-2169
SELECT CAST ( NULL AS INTEGER ), + 88 AS col1 FROM tab2
----
NULL
88
NULL
88
NULL
88

query I rowsort
SELECT - col2 * + + col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2171
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) * + 43 * + + col2 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2171
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * + 43 * + + col2 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2172
SELECT col2 AS col0, - 73 DIV + col0 - - - col2 FROM tab1
----
59
-59
68
-68
96
-97

skipif mysql # not compatible
query II rowsort label-2172
SELECT col2 AS col0, - 73 / + col0 - - - col2 FROM tab1
----
59
-59
68
-68
96
-97

query II rowsort
SELECT col2, + 27 * - col0 AS col1 FROM tab0
----
10
-2349
47
-405
99
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT MAX( col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT MAX ( col1 ) AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col2 * + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col2 * + + col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - 69 AS col0, 88 AS col1 FROM tab2 AS cor0
----
69
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2177
SELECT ALL - + COUNT( * ), + 78 AS col2 FROM tab1 AS cor0
----
-3
78

skipif mysql # not compatible
query II rowsort label-2177
SELECT ALL - + COUNT ( * ), + 78 AS col2 FROM tab1 AS cor0
----
-3
78

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN - 42 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 51 * + col1 AS col2 FROM tab1 AS cor0
----
2397
255
714

query I rowsort
SELECT DISTINCT col1 + - 66 FROM tab0 AS cor0
----
-45
-65
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL + COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT 91 + - MAX( col2 ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT 91 + - MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 col0 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL 8 * + MIN( 90 ) FROM tab0 AS cor0
----
720

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL 8 * + MIN ( 90 ) FROM tab0 AS cor0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT - SUM( - col2 ) * - 71 AS col2 FROM tab2 AS cor0
----
-8591

skipif mysql # not compatible
query I rowsort label-2189
SELECT - SUM ( - col2 ) * - 71 AS col2 FROM tab2 AS cor0
----
-8591

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 91 * + - 23 * - col0 AS col0 FROM tab1 AS cor0
----
106743
177905
190463

query I rowsort
SELECT 35 * + - 57 AS col0 FROM tab1
----
-1995
-1995
-1995

query I rowsort
SELECT ALL + + 53 AS col1 FROM tab2 WHERE NOT + col0 + - - col2 + - 51 + - 16 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, - col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - COUNT( * ) + + 20 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-2195
SELECT - COUNT ( * ) + + 20 FROM tab0
----
17

query II rowsort
SELECT DISTINCT - 86 AS col2, + col1 + - 46 AS col1 FROM tab2
----
-86
21
-86
31
-86
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT ALL ( - col0 ) DIV - 91 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL ( - col0 ) / - 91 AS col0 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2198
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE col1 IN ( + 80, col0 )
----

skipif mysql # not compatible
query I rowsort label-2198
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE col1 IN ( + 80, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2199
SELECT * FROM tab1 WHERE + + CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2199
SELECT * FROM tab1 WHERE + + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2200
SELECT + CAST( NULL AS DECIMAL ) / 57 / + + 44 + - + col2 + 78 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + CAST ( NULL AS REAL ) / 57 / + + 44 + - + col2 + 78 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT DISTINCT + - col0 + + - col1 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-116
-175
-229

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + - col0 + + - col1 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-116
-175
-229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col2 + + col2, + 93 col1 FROM tab0 AS cor0
----
198
93
220
93
3854
93

query I rowsort
SELECT ALL col2 - + + col0 + - + 7 * + - col2 - - col0 AS col1 FROM tab2 AS cor0
----
184
320
464

query II rowsort
SELECT DISTINCT 0 - - + col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 WHERE + col1 - - col0 NOT BETWEEN NULL AND + - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - - 3 FROM tab2
----
49
67
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT ALL - + ( CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - 19 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 19 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - 86 + - + col0 FROM tab1 AS cor0
----
-137
-171
-177

query II rowsort
SELECT ALL 49 AS col2, - ( col0 ) + + - col1 FROM tab2 AS cor0
----
49
-141
49
-142
49
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2212
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col1 DIV + ( col0 ) FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-2212
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1 / + ( col0 ) FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT MAX( 78 ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2214
SELECT MAX ( 78 ) FROM tab1 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab2 AS cor0
----
-34
-34
-34

query II rowsort
SELECT DISTINCT 90, + 37 + - col1 * - + col1 * - 14 + - + col0 AS col1 FROM tab0 AS cor0
----
90
-6224
90
-74
90
-91832

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT ALL - 44 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - 44 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + COUNT( ALL + - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + COUNT ( ALL + - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - + col2 * + + col0 * - + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2221
SELECT * FROM tab2 WHERE NOT + 61 * + col2 + - CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) * - - 16 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2221
SELECT * FROM tab2 WHERE NOT + 61 * + col2 + - CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) * - - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - MAX( + - 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2222
SELECT - MAX ( + - 42 ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT MIN( + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT MIN ( + + col0 ) FROM tab2
----
46

query II rowsort
SELECT - col2 AS col2, 14 * + + col1 FROM tab1 WHERE NOT - - ( - ( - 11 ) ) IS NULL
----
-59
70
-68
658
-96
196

query II rowsort
SELECT + col0 AS col1, col0 + 90 FROM tab2
----
46
136
64
154
75
165

query I rowsort
SELECT ALL - + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 87 + - + 35 FROM tab1 AS cor0
----
-122
-122
-122

query I rowsort
SELECT DISTINCT + ( - 63 ) AS col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - - AVG ( ALL + + col0 ) + - - 2 / + - 38 AS col2 FROM tab2 AS cor0 WHERE NULL = + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - COUNT( + col1 ) * + 10 * + + 16 FROM tab2
----
-480

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COUNT ( + col1 ) * + 10 * + + 16 FROM tab2
----
-480

query III rowsort
SELECT * FROM tab0 WHERE + 95 + - 35 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT CAST( + - ( COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2234
SELECT CAST ( + - ( COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - ( - 63 ) AS col1 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT MIN( ALL col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2238
SELECT DISTINCT MIN ( ALL col1 ) col0 FROM tab1
----
5

query I rowsort
SELECT + ( - 0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + - - ( ( - ( - col0 ) ) ) FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + 49 + 45 * + - col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - SUM( DISTINCT + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2242
SELECT - SUM ( DISTINCT + col0 ) FROM tab1
----
-227

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 30 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT DISTINCT ( + 92 ) * CAST( NULL AS SIGNED ) / - col0 * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT ( + 92 ) * CAST ( NULL AS INTEGER ) / - col0 * - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT + - SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + - SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - - col1 / + - col2 / - 81 + col2 + + col0 FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT SUM( ALL - - 81 ) AS col1 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2249
SELECT SUM ( ALL - - 81 ) AS col1 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL - MIN( DISTINCT + 43 ) * COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - MIN ( DISTINCT + 43 ) * COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-129

query II rowsort
SELECT - 97, + col1 FROM tab0
----
-97
1
-97
21
-97
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT - 14 * + COUNT( * ), - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
-42
-6

skipif mysql # not compatible
query II rowsort label-2252
SELECT - 14 * + COUNT ( * ), - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
-42
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT DISTINCT + 62 AS col1, + MAX( + 61 ) + + 28 AS col1 FROM tab0
----
62
89

skipif mysql # not compatible
query II rowsort label-2253
SELECT DISTINCT + 62 AS col1, + MAX ( + 61 ) + + 28 AS col1 FROM tab0
----
62
89

query II rowsort
SELECT ALL - col2 AS col0, 58 FROM tab0 cor0
----
-10
58
-47
58
-99
58

query I rowsort
SELECT col1 * 87 + col1 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT DISTINCT + + 51 * - 13 FROM tab1 cor0
----
-663

query I rowsort
SELECT + ( + + col0 ) + + 64 FROM tab0 AS cor0
----
151
161
79

query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COUNT( ALL 33 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2259
SELECT COUNT ( ALL 33 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2260
SELECT + CAST( 70 AS SIGNED ) AS col0, - ( col2 ) * + col2 col2 FROM tab2 AS cor0
----
70
-1600
70
-3364
70
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2260
SELECT + CAST ( 70 AS INTEGER ) AS col0, - ( col2 ) * + col2 col2 FROM tab2 AS cor0
----
70
-1600
70
-3364
70
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2261
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + CAST( + col1 AS SIGNED ) ) * - col2 + + 13 * + 41 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2261
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + CAST ( + col1 AS INTEGER ) ) * - col2 + + 13 * + 41 IS NULL
----

query I rowsort
SELECT ALL + - 15 + 60 + 50 * - col1 + + col2 FROM tab0 AS cor0
----
-3958
-995
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2263
SELECT - COUNT( * ) DIV - ( - 76 ) AS col1, + CAST( - - ( + 34 ) AS SIGNED ) * + 75 AS col2 FROM tab1 AS cor0 WHERE 16 IS NULL
----
0
2550

skipif mysql # not compatible
query II rowsort label-2263
SELECT - COUNT ( * ) / - ( - 76 ) AS col1, + CAST ( - - ( + 34 ) AS INTEGER ) * + 75 AS col2 FROM tab1 AS cor0 WHERE 16 IS NULL
----
0
2550

query I rowsort
SELECT ALL - + col0 + + col1 * + - ( + col1 ) FROM tab1 AS cor0
----
-110
-2300
-247

query I rowsort
SELECT ALL col2 + - + col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL - ( - 12 ) AS col0 FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - ( + MAX( DISTINCT + 33 ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - ( + MAX ( DISTINCT + 33 ) ) FROM tab2
----
-33

query I rowsort
SELECT DISTINCT + col2 * 93 * ( - - col0 ) FROM tab2
----
238080
404550
98394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT CAST( - 39 AS SIGNED ) FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2269
SELECT CAST ( - 39 AS INTEGER ) FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT 11 + + - col0 + col2 AS col1 FROM tab0 AS cor0
----
-66
13
43

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN ( 33 * + col2 ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2272
SELECT * FROM tab2 WHERE NULL >= CAST( NULL AS SIGNED ) * col0 + ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2272
SELECT * FROM tab2 WHERE NULL >= CAST ( NULL AS INTEGER ) * col0 + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL COUNT( + col2 ) + + 22 AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL COUNT ( + col2 ) + + 22 AS col2 FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + 52 - - COUNT( * ) * + COUNT( * ) FROM tab1 WHERE col0 + - col2 > - 16 * col0
----
61

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 52 - - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE col0 + - col2 > - 16 * col0
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT 63 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT 63 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col2 FROM tab0
----
0

query I rowsort
SELECT + 18 + 81 FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col2 * - 2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT ALL 47 + - col0 DIV col0 AS col2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL 47 + - col0 / col0 AS col2 FROM tab0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT - ( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( - 61 ) NOT BETWEEN ( - col2 ) AND ( col0 / + col0 )
----
-68
-96

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( - 61 ) NOT BETWEEN ( - col2 ) AND ( col0 / + col0 )
----
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2283
SELECT CAST( col2 AS SIGNED ) + - col1 DIV col1 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-2283
SELECT CAST ( col2 AS INTEGER ) + - col1 / col1 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL COUNT( ALL + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL COUNT ( ALL + col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - col2 + + 53 FROM tab0
----
-46
43
6

query I rowsort
SELECT 77 * col1 + - col0 AS col2 FROM tab2
----
3881
5084
5865

query I rowsort
SELECT ALL ( 60 ) AS col0 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - 55 * + ( 26 * COUNT( * ) ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT - 55 * + ( 26 * COUNT ( * ) ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 - + col0 / col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 56 FROM tab1 WHERE NOT ( 14 ) * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + col2 FROM tab0 WHERE NOT 61 * 67 = col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0 WHERE NOT 61 * 67 = col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT ALL + CAST( COUNT( DISTINCT - col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + CAST ( COUNT ( DISTINCT - col0 ) AS INTEGER ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > 85 / 3
----

query I rowsort
SELECT ALL 95 - 94 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + col2 - - col1 AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL + ( - col0 ) + 95 FROM tab1
----
10
4
44

query I rowsort
SELECT ALL - col0 * - col1 + + 74 * - 76 AS col2 FROM tab1
----
-1347
-4910
-5199

query I rowsort
SELECT + 58 + col2 AS col1 FROM tab0
----
105
157
68

query I rowsort
SELECT ALL 70 + + col1 * + 87 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND col1 / 59 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT + CAST( NULL AS SIGNED ) + ( - col1 - - 5 ) AS col2 FROM tab2 WHERE + 64 BETWEEN NULL AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-2300
SELECT + CAST ( NULL AS INTEGER ) + ( - col1 - - 5 ) AS col2 FROM tab2 WHERE + 64 BETWEEN NULL AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT SUM( ALL col0 ) * MIN( 38 ) FROM tab2 AS cor0
----
7030

skipif mysql # not compatible
query I rowsort label-2301
SELECT SUM ( ALL col0 ) * MIN ( 38 ) FROM tab2 AS cor0
----
7030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT DISTINCT + 67 DIV + 62 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + 67 / + 62 + COUNT ( * ) FROM tab2 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col2 FROM tab1 AS cor0
----
55

query I rowsort
SELECT 57 * - col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT DISTINCT - CAST( MAX( ALL col0 ) AS SIGNED ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2305
SELECT DISTINCT - CAST ( MAX ( ALL col0 ) AS INTEGER ) col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + COUNT( * ) + 47 * ( - COUNT( * ) ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2306
SELECT + COUNT ( * ) + 47 * ( - COUNT ( * ) ) FROM tab1
----
-138

query I rowsort
SELECT + 30 + 33 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - 83 + SUM( col2 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 83 + SUM ( col2 ) FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT + - 63 DIV col0 + + col2 * ( + 93 ) col0 FROM tab1 AS cor0
----
5487
6324
8927

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT + - 63 / col0 + + col2 * ( + 93 ) col0 FROM tab1 AS cor0
----
5487
6324
8927

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + - COUNT( * ) + 97 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2310
SELECT + - COUNT ( * ) + 97 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 < CAST( + col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 < CAST ( + col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - COUNT( * ) + MAX( ALL 60 + col0 ) AS col1 FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-2312
SELECT - COUNT ( * ) + MAX ( ALL 60 + col0 ) AS col1 FROM tab0 AS cor0
----
154

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE + col2 NOT IN ( + 79 )
----
23
40
58

query I rowsort
SELECT DISTINCT + 26 * + col0 + 58 * col0 AS col0 FROM tab0 AS cor0
----
1260
7308
8148

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT col0 + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IN ( CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query I rowsort label-2316
SELECT col0 + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IN ( CAST ( NULL AS INTEGER ) / col2 )
----

query I rowsort
SELECT DISTINCT 94 FROM tab0 WHERE - col0 NOT IN ( col1 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT CAST( + - col1 AS SIGNED ) - + col0 AS col2 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) - + col0 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT ALL + col0 DIV ( + col0 ) * 49 - col2 AS col2 FROM tab2
----
-9
26
9

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + col0 / ( + col0 ) * 49 - col2 AS col2 FROM tab2
----
-9
26
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT CAST( col2 AS SIGNED ) * + col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2320
SELECT CAST ( col2 AS INTEGER ) * + col1 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 77 )
----

query I rowsort
SELECT col1 - - col1 + + col0 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL col2 * col1 * - col0 AS col0 FROM tab1 cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( + - 11 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query II rowsort
SELECT DISTINCT + 16 AS col2, 82 AS col1 FROM tab2
----
16
82

query I rowsort
SELECT ALL - 66 * col2 * - 37 + - 37 AS col2 FROM tab1 AS cor0
----
144041
166019
234395

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT DISTINCT - + col1 DIV col1 + + col2 * col0 AS col0 FROM tab0 cor0
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - + col1 / col1 + + col2 * col0 AS col0 FROM tab0 cor0
----
704
869
9602

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2331
SELECT DISTINCT + + 37 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + + 37 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + + 41 ) ) <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT DISTINCT COUNT( * ) * - 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT COUNT ( * ) * - 73 FROM tab1 AS cor0
----
-219

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT ALL 3, ( + 13 ) DIV col2 + + col2 AS col2 FROM tab0 AS cor0
----
3
11
3
47
3
99

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL 3, ( + 13 ) / col2 + + col2 AS col2 FROM tab0 AS cor0
----
3
11
3
47
3
99

query I rowsort
SELECT DISTINCT 27 FROM tab0 cor0 WHERE NOT 35 - 35 IN ( - 2 )
----
27

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NOT ( 53 + - 2 * - col0 ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT + col1 * - + 66 * ( col1 ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT + col1 * - + 66 * ( col1 ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 91 IS NOT NULL OR NOT ( col0 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL 94 FROM tab2 WHERE NOT - + col2 / - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 94 FROM tab2 WHERE NOT - + col2 / - + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT col0 * + col1 AS col2, + 33 FROM tab2
----
2346
33
4928
33
5025
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2342
SELECT ALL * FROM tab2 WHERE NOT + 4 * - + CAST( NULL AS SIGNED ) NOT BETWEEN 3 AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-2342
SELECT ALL * FROM tab2 WHERE NOT + 4 * - + CAST ( NULL AS INTEGER ) NOT BETWEEN 3 AND ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + 43 FROM tab1
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ( - + 58 ) DIV - col1 AS col1 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-2345
SELECT ( - + 58 ) / - col1 AS col1 FROM tab0
----
0
2
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT 95 * + COUNT( * ) AS col2 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-2346
SELECT 95 * + COUNT ( * ) AS col2 FROM tab2
----
285

query I rowsort
SELECT col2 + 21 FROM tab0 WHERE NOT - 4 = NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 70 + col0 <= NULL
----

query I rowsort
SELECT + 97 * col1 AS col1 FROM tab2 WHERE NOT ( 57 - - + col2 + ( + 73 ) * + col0 ) NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 44 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 * - - 4 FROM tab2
----
160
232
92

query I rowsort
SELECT ALL - col1 * - 36 * - 27 FROM tab2
----
-49572
-65124
-74844

query I rowsort
SELECT DISTINCT col0 + + col0 + + ( - col1 ) + + 24 * + 83 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10125
27976
93759

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( - col2 / - col1 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2355
SELECT 69 + 82 AS col1, - SUM( col0 ) + 40 DIV 25 AS col0 FROM tab2 AS cor0
----
151
-184

skipif mysql # not compatible
query II rowsort label-2355
SELECT 69 + 82 AS col1, - SUM ( col0 ) + 40 / 25 AS col0 FROM tab2 AS cor0
----
151
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT - 64 + - CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 64 + - CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 79 + + 38 + col1 AS col0 FROM tab1 AS cor0
----
-1054
-352
-3628

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 63 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 73 * col1 col1 FROM tab2
----
171258
359744
366825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 * + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * col0 * 35 FROM tab0 cor0
----
264915
329315
7875

query I rowsort
SELECT ALL col0 + - col1 + - - col0 + + - col1 * col2 * col2 AS col0 FROM tab1 AS cor0
----
-128936
-17240
-217193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT DISTINCT - 99 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - 99 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + SUM( - col0 ) + - ( - COUNT( * ) ) * + - 23 * ( + ( COUNT( DISTINCT + col2 ) ) ) FROM tab0 AS cor0
----
-406

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + SUM ( - col0 ) + - ( - COUNT ( * ) ) * + - 23 * ( + ( COUNT ( DISTINCT + col2 ) ) ) FROM tab0 AS cor0
----
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT DISTINCT SUM( DISTINCT - - ( - 80 ) ) + COUNT( * ) + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT SUM ( DISTINCT - - ( - 80 ) ) + COUNT ( * ) + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL + - MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) FROM tab1 WHERE 38 + + - col1 / 41 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL + - MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 WHERE 38 + + - col1 / 41 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL - COUNT( + 28 ) * - + 17 - 63 * + COUNT( * ) AS col0 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - COUNT ( + 28 ) * - + 17 - 63 * + COUNT ( * ) AS col0 FROM tab0
----
-138

query II rowsort
SELECT ALL 73 AS col2, - col2 FROM tab2
----
73
-23
73
-40
73
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT CAST( - ( + - COUNT( * ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2369
SELECT CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 96 IN ( + - col1 )
----

query I rowsort
SELECT - ( + + 91 ) FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query II rowsort
SELECT ALL - - col2 AS col1, ( + col0 ) FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT DISTINCT - COUNT( * ) AS col0, SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3
-66

skipif mysql # not compatible
query II rowsort label-2373
SELECT DISTINCT - COUNT ( * ) AS col0, SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2374
SELECT + - CAST( + 89 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < + + 78
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT + - CAST ( + 89 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < + + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT - 31 * + COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2375
SELECT - 31 * + COUNT ( * ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - MAX( + - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-2376
SELECT - MAX ( + - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( col2 ) BETWEEN ( 35 - - 56 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 12 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT + - MAX( - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + - MAX ( - col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - 24, 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT + + SUM( + col0 ) AS col2, 23 FROM tab0 AS cor0
----
199
23

skipif mysql # not compatible
query II rowsort label-2381
SELECT + + SUM ( + col0 ) AS col2, 23 FROM tab0 AS cor0
----
199
23

query I rowsort
SELECT + 20 + col1 + + - col1 AS col1 FROM tab0 cor0 WHERE NOT + 58 IS NULL
----
20
20
20

query I rowsort
SELECT DISTINCT col1 * - 75 FROM tab1 AS cor0
----
-1050
-3525
-375

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 < - 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 71 + + - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2386
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN - - col0 AND 55 * + - CAST( + + 59 AS SIGNED ) * + col1 * - col1 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2386
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN - - col0 AND 55 * + - CAST ( + + 59 AS INTEGER ) * + col1 * - col1 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - 14 * - - MIN( col2 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - 14 * - - MIN ( col2 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col2, - col1 + + - col1 AS col2 FROM tab0
----
10
-42
47
-162
99
-2

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col2 * - 87 * - col1 + - - 99 * - col2 * + 48 NOT IN ( col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT + MIN( ALL col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + MIN ( ALL col0 ) AS col0 FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2391
SELECT - ( + 55 ) * COUNT( * ), CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-165
NULL

skipif mysql # not compatible
query II rowsort label-2391
SELECT - ( + 55 ) * COUNT ( * ), CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-165
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + ( + + 48 ) + ( - ( + - col1 ) ) NOT BETWEEN - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 88 + - col0 * + 98 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( + - col0 ) FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT - col1 AS col1, + col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - col0, col0 )
----

query I rowsort
SELECT DISTINCT + col0 * + col1 + ( col2 ) + - + 96 FROM tab2 AS cor0
----
2273
4872
4987

query I rowsort
SELECT DISTINCT - - col0 * 79 + + - col2 + col0 / + col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND 93
----

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col2 * - + col0 + - col1 + 59 + + + 15 * + col0 FROM tab0
----
-502
-8090
473

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL + col0 DIV + col1 col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT ALL + col0 / + col1 col1 FROM tab0
----
0
4
97

query II rowsort
SELECT + col0 / 50 AS col0, col0 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT - ( - 49 ) * + ( + + col1 ) FROM tab0 AS cor0
----
1029
3969
49

query I rowsort
SELECT - col1 - + col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + col0 + - ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-2147
-3
-9605

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + COUNT( * ) - + 24 AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2406
SELECT + COUNT ( * ) - + 24 AS col0 FROM tab2
----
-21

query I rowsort
SELECT DISTINCT - col2 + col1 - - + 77 FROM tab2
----
105
114
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT ALL col1 DIV - col2 - + 42 FROM tab1
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL col1 / - col2 - + 42 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - MIN( DISTINCT + + col0 ) - + COUNT( * ) + + 90 col0 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2409
SELECT - MIN ( DISTINCT + + col0 ) - + COUNT ( * ) + + 90 col0 FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2410
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL AND col2 - ( - + CAST( + - 91 AS SIGNED ) ) = ( - 11 * - - 30 * 31 - CAST( NULL AS SIGNED ) + - 90 )
----

skipif mysql # not compatible
query III rowsort label-2410
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL AND col2 - ( - + CAST ( + - 91 AS INTEGER ) ) = ( - 11 * - - 30 * 31 - CAST ( NULL AS INTEGER ) + - 90 )
----

query I rowsort
SELECT col0 - - 22 AS col0 FROM tab2
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - MAX( - + 71 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2412
SELECT - MAX ( - + 71 ) AS col1 FROM tab0
----
71

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab0 WHERE col2 + col0 IS NULL
----

query II rowsort
SELECT + 82, ( + col2 ) AS col1 FROM tab1
----
82
59
82
68
82
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 - - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col2 FROM tab2
----
93
93
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2417
SELECT - + col1 DIV - col2 + - 90 col1, + col1 AS col2 FROM tab2 AS cor0
----
-88
51
-89
67
-89
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2417
SELECT - + col1 / - col2 + - 90 col1, + col1 AS col2 FROM tab2 AS cor0
----
-88
51
-89
67
-89
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + - 78 DIV - 48 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2418
SELECT + - 78 / - 48 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - MIN( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2420
SELECT - MIN ( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT 90 * + 55 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT 38, - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-2423
SELECT 38, - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
38
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2424
SELECT DISTINCT - ( - ( CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - ( - ( CAST ( NULL AS REAL ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL + + MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + + MAX ( + col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2426
SELECT + SUM ( col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT col2 + + 76 * + 23 + - - 3 FROM tab1 cor0
----
1810
1819
1847

query I rowsort
SELECT + + 99 * + col2 AS col0 FROM tab1 AS cor0
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT SUM( DISTINCT - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT SUM ( DISTINCT - 41 ) FROM tab1
----
-41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - 56 * - ( + - col0 ) + - - 4 * - ( + + col1 ) * - col0 * - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2432
SELECT DISTINCT + 69 + + - 74, - CAST( + - col0 AS SIGNED ) col0 FROM tab1
----
-5
51
-5
85
-5
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2432
SELECT DISTINCT + 69 + + - 74, - CAST ( + - col0 AS INTEGER ) col0 FROM tab1
----
-5
51
-5
85
-5
91

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT + - 75 DIV + COUNT( * ) + + + MIN( ALL - col0 ) + 77 * + COUNT( * ) FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-2434
SELECT + - 75 / + COUNT ( * ) + + + MIN ( ALL - col0 ) + 77 * + COUNT ( * ) FROM tab1 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - - ( - - COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT DISTINCT - - ( - - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - 86 - COUNT( * ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 86 - COUNT ( * ) FROM tab1 AS cor0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT + 4 DIV col2 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 4 / col2 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT 61 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT 61 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - + MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT - + MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
NULL

query I rowsort
SELECT - + 40 + - + col1 AS col0 FROM tab0 AS cor0
----
-121
-41
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2442
SELECT DISTINCT - col1, CAST( col2 AS SIGNED ) + + 8 + - col2 * + + col0 AS col1 FROM tab0 cor0
----
-1
-9496
-21
-852
-81
-650

skipif mysql # not compatible
query II rowsort label-2442
SELECT DISTINCT - col1, CAST ( col2 AS INTEGER ) + + 8 + - col2 * + + col0 AS col1 FROM tab0 cor0
----
-1
-9496
-21
-852
-81
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN - col2 AND - - 62 + - CAST( NULL AS SIGNED ) - col1 * col1
----

skipif mysql # not compatible
query I rowsort label-2443
SELECT + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN - col2 AND - - 62 + - CAST ( NULL AS INTEGER ) - col1 * col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 90 - - 30 col0 FROM tab1 AS cor0
----
14
120
47
120
5
120

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 = + 85
----

query I rowsort
SELECT + 25 FROM tab2 WHERE NOT ( + + 70 * - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2448
SELECT ALL col0 DIV 37, + col2 * + 86 + 55 + - + 38 * - CAST( NULL AS SIGNED ) * - 5 * + + col2 * + col0 + + + col0 + 23 DIV 31 + col0 + col1 * 68 AS col1 FROM tab2
----
1
NULL
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-2448
SELECT ALL col0 / 37, + col2 * + 86 + 55 + - + 38 * - CAST ( NULL AS INTEGER ) * - 5 * + + col2 * + col0 + + + col0 + 23 / 31 + col0 + col1 * 68 AS col1 FROM tab2
----
1
NULL
1
NULL
2
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + + SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2450
SELECT + + SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + 50 * - col2 AS col1 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * + + 86 BETWEEN - col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * + + 86 BETWEEN - col1 AND NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) NOT BETWEEN ( + + 3 ) * - 51 AND + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT - COUNT( - ( + col0 ) ), ( 36 ) col2 FROM tab2
----
-3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2455
SELECT - COUNT ( - ( + col0 ) ), ( 36 ) col2 FROM tab2
----
-3
36

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 cor0 WHERE col2 / - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT - 53 + - col0 AS col0 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT DISTINCT ( 78 ) AS col2 FROM tab0 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT DISTINCT - 66 DIV - ( - col2 ) AS col1, + col2 DIV 49 FROM tab1 AS cor0
----
-1
1
0
1

skipif mysql # not compatible
query II rowsort label-2460
SELECT DISTINCT - 66 / - ( - col2 ) AS col1, + col2 / 49 FROM tab1 AS cor0
----
-1
1
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT COUNT( * ) AS col1, ( - COUNT( * ) ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2461
SELECT COUNT ( * ) AS col1, ( - COUNT ( * ) ) FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT + - 34 FROM tab0 WHERE NULL IS NULL
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL + 41 + - COUNT( * ) col2 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2463
SELECT ALL + 41 + - COUNT ( * ) col2 FROM tab0
----
38

query I rowsort
SELECT + ( - 8 ) FROM tab0
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col2 ) >= ( NULL )
----

query I rowsort
SELECT ( + 21 ) * 68 AS col2 FROM tab2
----
1428
1428
1428

query II rowsort
SELECT ( + ( + - col1 ) ) * col1, col2 AS col2 FROM tab0
----
-1
99
-441
10
-6561
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT 31 * - + COUNT( * ) AS col2, 64 AS col2 FROM tab0
----
-93
64

skipif mysql # not compatible
query II rowsort label-2468
SELECT 31 * - + COUNT ( * ) AS col2, 64 AS col2 FROM tab0
----
-93
64

query I rowsort
SELECT col1 * 81 AS col0 FROM tab1
----
1134
3807
405

query II rowsort
SELECT DISTINCT + col2 AS col2, 33 AS col1 FROM tab1
----
59
33
68
33
96
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 IN ( + + 95, col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL COUNT( * ) * COUNT( DISTINCT col0 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
9

query I rowsort
SELECT ALL + + col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 62 * col1 / + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 94, - 24, col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2476
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + col1 * 69 * 69 <= + 0 * + col0 + - CAST( NULL AS DECIMAL ) * - col1 * - + col1
----

skipif mysql # not compatible
query III rowsort label-2476
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + col1 * 69 * 69 <= + 0 * + col0 + - CAST ( NULL AS REAL ) * - col1 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 47 ) col2 FROM tab2
----
-47
-47
-47

query II rowsort
SELECT DISTINCT col0 AS col1, + 82 FROM tab1
----
51
82
85
82
91
82

query I rowsort
SELECT DISTINCT + ( - 15 ) FROM tab1
----
-15

query I rowsort
SELECT DISTINCT + 75 * + 32 AS col2 FROM tab2
----
2400

query I rowsort
SELECT DISTINCT 30 * - col0 FROM tab2
----
-1380
-1920
-2250

query II rowsort
SELECT - col0 AS col0, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 65 col1, + col0 AS col0 FROM tab2
----
65
46
65
64
65
75

query II rowsort
SELECT DISTINCT col0, - 88 + - - ( + + col1 ) FROM tab2 AS cor0
----
46
-37
64
-11
75
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2486
SELECT * FROM tab2 WHERE NOT NULL = - col2 + + - col2 + col0 * + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2486
SELECT * FROM tab2 WHERE NOT NULL = - col2 + + - col2 + col0 * + CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT - COUNT( DISTINCT + 34 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - COUNT ( DISTINCT + 34 ) FROM tab2 cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2489
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL col2 + + + col2 + col2 AS col2 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT ALL col1 + + CAST( NULL AS SIGNED ) * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT col1 * + CAST( NULL AS SIGNED ) + - - 9 * + + 93 * + col1 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT col1 * + CAST ( NULL AS INTEGER ) + - - 9 * + + 93 * + col1 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - AVG ( col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT 18 + + + MIN( ALL + col1 ) AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2494
SELECT 18 + + + MIN ( ALL + col1 ) AS col1 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - - COUNT( * ) + - 49 + + - ( + + 90 ) FROM tab0 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - COUNT ( * ) + - 49 + + - ( + + 90 ) FROM tab0 AS cor0
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2496
SELECT ALL - 30 * + CAST( NULL AS SIGNED ), - 68 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col2 AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL - 30 * + CAST ( NULL AS INTEGER ), - 68 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col1 + ( - - 83 ) * col0 <> NULL
----

query I rowsort
SELECT ALL + + col0 + ( + col0 ) * 6 AS col1 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT COUNT( * ) - + + ( - - 34 ) FROM tab1, tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2499
SELECT COUNT ( * ) - + + ( - - 34 ) FROM tab1, tab1 AS cor0
----
-25

query I rowsort
SELECT 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query II rowsort
SELECT ALL + col1, - ( col2 ) FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query II rowsort
SELECT 14 AS col2, + col1 + - col1 - + 62 FROM tab1 AS cor0
----
14
-62
14
-62
14
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2503
SELECT * FROM tab0 cor0 WHERE NOT CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2503
SELECT * FROM tab0 cor0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 1, 22, col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2506
SELECT ALL 97 * 69 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-2231

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 97 * 69 / + - COUNT ( * ) FROM tab2 AS cor0
----
-2231

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - COUNT( 44 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2507
SELECT - COUNT ( 44 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL - MIN( - col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - MIN ( - col0 ) AS col0 FROM tab1 cor0
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT + 92 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) = NULL
----

query II rowsort
SELECT DISTINCT col1 * col0, col1 FROM tab0
----
1215
81
1827
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - + MIN( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2513
SELECT - + MIN ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2514
SELECT SUM ( col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + col2 * - col0 + ( col2 ) + + - col1 FROM tab2 cor0
----
-1086
-2597
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + 35 * SUM( DISTINCT + 50 ) FROM tab1
----
1750

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 35 * SUM ( DISTINCT + 50 ) FROM tab1
----
1750

query I rowsort
SELECT DISTINCT - 69 * + 90 * - col1 * - col1 AS col2 FROM tab0
----
-2738610
-40743810
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 1 * + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 1 * + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - 36 * - COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 36 * - COUNT ( * ) FROM tab2
----
108

query I rowsort
SELECT - col1 + ( 52 ) FROM tab2
----
-15
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - + 61 * + COUNT( * ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - + 61 * + COUNT ( * ) FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL = 3
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = 3
----
0

query I rowsort
SELECT ALL - + col1 + + - col1 FROM tab2 cor0
----
-102
-134
-154

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + 4 + col1 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - ( - col2 ) + col0, 26 + col0 AS col0 FROM tab0 AS cor0
----
196
123
62
41
97
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2526
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + col0 ) + + - col2 AS col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 40 * - col1 AS col1 FROM tab1
----
1880
200
560

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT DISTINCT + 57 DIV col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + 57 / col2 AS col0 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT CAST( 71 AS SIGNED ) * - col1 AS col0 FROM tab2
----
-3621
-4757
-5467

skipif mysql # not compatible
query I rowsort label-2530
SELECT CAST ( 71 AS INTEGER ) * - col1 AS col0 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT ALL - col1 * + 53 FROM tab0
----
-1113
-4293
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT DISTINCT + 13 DIV + col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2532
SELECT DISTINCT + 13 / + col0 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2533
SELECT DISTINCT col0 / - - CAST( NULL AS SIGNED ) AS col2, + col2 * + col2 AS col0 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
query II rowsort label-2533
SELECT DISTINCT col0 / - - CAST ( NULL AS INTEGER ) AS col2, + col2 * + col2 AS col0 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT SUM( DISTINCT + - 78 ) AS col0 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT SUM ( DISTINCT + - 78 ) AS col0 FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT + 33 - - + 36 DIV - ( - col1 ) FROM tab1
----
33
35
40

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 33 - - + 36 / - ( - col1 ) FROM tab1
----
33
35
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT + MAX( - - col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + MAX ( - - col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - - 5 * - col0 + + CAST( NULL AS SIGNED ) - - 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - - 5 * - col0 + + CAST ( NULL AS INTEGER ) - - 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - - 52 AS col2 FROM tab0
----
151
62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT COUNT( * ) - - 34 AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT COUNT ( * ) - - 34 AS col0 FROM tab2
----
37

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT ALL CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 + col2 NOT BETWEEN NULL AND col2 * - 11
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + 95 * + COUNT( * ) AS col2 FROM tab2 cor0
----
285

skipif mysql # not compatible
query I rowsort label-2544
SELECT + 95 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
285

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2546
SELECT ALL * FROM tab0 cor0 WHERE NOT + 38 BETWEEN + 19 * + CAST( NULL AS SIGNED ) + + col0 * + + CAST( NULL AS SIGNED ) AND + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2546
SELECT ALL * FROM tab0 cor0 WHERE NOT + 38 BETWEEN + 19 * + CAST ( NULL AS INTEGER ) + + col0 * + + CAST ( NULL AS INTEGER ) AND + col0
----
15
81
47

query I rowsort
SELECT ALL 64 AS col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT 49 * + 93 AS col0 FROM tab1 AS cor0
----
4557
4557
4557

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 col2, - 79 FROM tab2
----
24
-79
24
-79
24
-79

query I rowsort
SELECT DISTINCT 5 * + + col1 * - 73 AS col2 FROM tab2
----
-18615
-24455
-28105

query II rowsort
SELECT ALL + col0 AS col0, - 47 AS col2 FROM tab2
----
46
-47
64
-47
75
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 93 + col0 AS col2, - col2 col1 FROM tab1 AS cor0
----
144
-96
178
-59
184
-68

query II rowsort
SELECT + 25 + - 61 AS col2, + col1 * - col1 FROM tab0 AS cor0
----
-36
-1
-36
-441
-36
-6561

query I rowsort
SELECT ALL + col1 + + 86 * - - col2 AS col1 FROM tab2 AS cor0
----
2029
3517
5055

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2558
SELECT - CAST( NULL AS DECIMAL ) - + + COUNT( ALL + + ( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT - CAST ( NULL AS REAL ) - + + COUNT ( ALL + + ( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 + 11 FROM tab1 AS cor0
----
-48
-57
-85

query I rowsort
SELECT col1 * col2 + 65 + - - col0 AS col1 FROM tab0 AS cor0
----
261
362
3887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE ( NULL ) = + 60
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2561
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE ( NULL ) = + 60
----

query I rowsort
SELECT col0 + + 47 AS col1 FROM tab2
----
111
122
93

query I rowsort
SELECT DISTINCT 7 * + + col2 * + col1 - col1 AS col2 FROM tab2
----
21483
27135
8160

query I rowsort
SELECT DISTINCT + 85 + + 63 FROM tab2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ( + COUNT( * ) ) * 88 + + COUNT( * ) col1 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2565
SELECT ( + COUNT ( * ) ) * 88 + + COUNT ( * ) col1 FROM tab0
----
267

query I rowsort
SELECT + 15 * 25 AS col1 FROM tab1
----
375
375
375

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 89 < + col0
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 * col0 + - col1 + - - 50 * - + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + 28 * - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT ALL + 7 DIV - - 3 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + 7 / - - 3 FROM tab0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL - + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT + + MIN( + col2 ) col2, SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
10
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2574
SELECT + + MIN ( + col2 ) col2, SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
10
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT ALL + - 57 AS col1, COUNT( * ) AS col0 FROM tab1 cor0 WHERE - 53 - - col2 IS NOT NULL
----
-57
3

skipif mysql # not compatible
query II rowsort label-2575
SELECT ALL + - 57 AS col1, COUNT ( * ) AS col0 FROM tab1 cor0 WHERE - 53 - - col2 IS NOT NULL
----
-57
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col1 ) NOT BETWEEN - col1 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - SUM( DISTINCT - 46 ) AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-2577
SELECT - SUM ( DISTINCT - 46 ) AS col0 FROM tab1
----
46

query I rowsort
SELECT ALL + ( 94 ) AS col1 FROM tab0
----
94
94
94

query I rowsort
SELECT ALL col2 + + 68 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
127
136
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + + MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2581
SELECT + + MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col0 * + col0 * - col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT 77 + + 55 + + MIN( + col2 ) * - + MIN( + col2 ) FROM tab2
----
-397

skipif mysql # not compatible
query I rowsort label-2583
SELECT 77 + + 55 + + MIN ( + col2 ) * - + MIN ( + col2 ) FROM tab2
----
-397

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT + col1 DIV - 66 + + + ( - col0 ) * - 38 FROM tab2 AS cor0
----
1748
2431
2849

skipif mysql # not compatible
query I rowsort label-2585
SELECT + col1 / - 66 + + + ( - col0 ) * - 38 FROM tab2 AS cor0
----
1748
2431
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL - 42 + - COUNT( * ) col0 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2586
SELECT ALL - 42 + - COUNT ( * ) col0 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT ALL + + CAST( NULL AS SIGNED ) + - - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + CAST ( NULL AS INTEGER ) + - - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 89 / col1 BETWEEN NULL AND + 81 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + 69 + - COUNT( * ) + + SUM( DISTINCT 40 ) AS col2 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 69 + - COUNT ( * ) + + SUM ( DISTINCT 40 ) AS col2 FROM tab2
----
106

query I rowsort
SELECT ALL - 94 * - col0 * - col1 - col2 AS col2 FROM tab1
----
-40009
-402106
-67212

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT col0 - - col0 + - + col0 DIV col1 AS col2 FROM tab0
----
170
30
97

skipif mysql # not compatible
query I rowsort label-2592
SELECT col0 - - col0 + - + col0 / col1 AS col2 FROM tab0
----
170
30
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT 81 * + SUM( CAST( NULL AS SIGNED ) ) - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT 81 * + SUM ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT CAST( - col1 AS SIGNED ) - - col2 col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2594
SELECT CAST ( - col1 AS INTEGER ) - - col2 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 11 FROM tab2 WHERE NULL IS NULL
----
11
11
11

query I rowsort
SELECT DISTINCT 76 FROM tab2 WHERE NOT + 19 = col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - COUNT( * ) - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL - COUNT( DISTINCT + - col2 ) AS col0 FROM tab1 WHERE NOT NULL < - ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab1 WHERE NOT NULL < - ( + 76 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2601
SELECT - CAST( NULL AS SIGNED ) - - + col1, 15 * - ( 55 ) * + 59 AS col0 FROM tab0
----
NULL
-48675
NULL
-48675
NULL
-48675

skipif mysql # not compatible
query II rowsort label-2601
SELECT - CAST ( NULL AS INTEGER ) - - + col1, 15 * - ( 55 ) * + 59 AS col0 FROM tab0
----
NULL
-48675
NULL
-48675
NULL
-48675

query I rowsort
SELECT DISTINCT + + col2 * - - col2 + + - col2 FROM tab2 AS cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT - SUM( - 29 ) * - ( - 33 ) AS col1 FROM tab1 AS cor0
----
2871

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - SUM ( - 29 ) * - ( - 33 ) AS col1 FROM tab1 AS cor0
----
2871

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT ALL ( - ( - col1 ) ) DIV + - 8 col0 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT ALL ( - ( - col1 ) ) / + - 8 col0 FROM tab1 AS cor0
----
-1
-5
0

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + ( - MAX( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2606
SELECT + ( - MAX ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-2608
SELECT ALL - 22, - 23 DIV + ( + 68 ) AS col2 FROM tab1 AS cor0
----
-22
0
-22
0
-22
0

skipif mysql # not compatible
query II rowsort label-2608
SELECT ALL - 22, - 23 / + ( + 68 ) AS col2 FROM tab1 AS cor0
----
-22
0
-22
0
-22
0

query II rowsort
SELECT + col1, col2 * - 83 * + col1 AS col0 FROM tab1 cor0
----
14
-111552
47
-265268
5
-24485

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - - COUNT( * ) * 59 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2610
SELECT - - COUNT ( * ) * 59 FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - COUNT( + col1 ) * 11 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2611
SELECT - COUNT ( + col1 ) * 11 FROM tab2 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT - 10 DIV - 32 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - 10 / - 32 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 45 col0 FROM tab0 AS cor0
----
3645
45
945

query I rowsort
SELECT - 41 * 79 FROM tab2 AS cor0
----
-3239
-3239
-3239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT + CAST( NULL AS SIGNED ) / + 39 + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT + CAST ( NULL AS INTEGER ) / + 39 + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL + 35 * COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + 35 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN - 52 AND - 87 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + col1 > + + col1
----

query I rowsort
SELECT ALL 97 + - + 34 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - col0 + - - 21 AS col0 FROM tab2 cor0
----
-25
-43
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2622
SELECT col1 * - col0 * - 3 * + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT col1 * - col0 * - 3 * + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 FROM tab1 WHERE NULL IS NULL
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col2 + + col2 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT ALL - col2 DIV col2 * + col2 * + 84 + + col0 * 3 + 43 FROM tab2 AS cor0
----
-1751
-3125
-4604

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - col2 / col2 * + col2 * + 84 + + col0 * 3 + 43 FROM tab2 AS cor0
----
-1751
-3125
-4604

query I rowsort
SELECT DISTINCT - - 91 + - - col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2255
-4837
-4934

query I rowsort
SELECT col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query II rowsort label-2628
SELECT ALL col0 AS col2, 25 DIV + col2 AS col2 FROM tab2 AS cor0
----
46
1
64
0
75
0

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL col0 AS col2, 25 / + col2 AS col2 FROM tab2 AS cor0
----
46
1
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT + 29 * COUNT( * ) + - - 62 FROM tab1 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 29 * COUNT ( * ) + - - 62 FROM tab1 AS cor0
----
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - 11 * + col2 col0, - 72 AS col0 FROM tab0 AS cor0
----
-1088
-72
-436
-72
-89
-72

query I rowsort
SELECT + 64 * + col2 + - - col2 - + 20 FROM tab2
----
1475
2580
3750

query I rowsort
SELECT DISTINCT + col1 + - ( + col1 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 93 FROM tab1, tab2 AS cor0
----
93

query II rowsort
SELECT ALL col2, 5 FROM tab1
----
59
5
68
5
96
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2635
SELECT col0 * + col0 AS col2, - col1 + + + 2 DIV + col0 AS col0 FROM tab0
----
225
-81
7569
-21
9409
-1

skipif mysql # not compatible
query II rowsort label-2635
SELECT col0 * + col0 AS col2, - col1 + + + 2 / + col0 AS col0 FROM tab0
----
225
-81
7569
-21
9409
-1

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
23
40
58

query I rowsort
SELECT DISTINCT 43 * + col0 * - col1 FROM tab1
----
-18275
-183911
-30702

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT ALL - 92 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-2638
SELECT ALL - 92 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
-92
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2639
SELECT CAST( NULL AS SIGNED ) AS col0, + MAX( ALL col0 ) FROM tab2 AS cor0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-2639
SELECT CAST ( NULL AS INTEGER ) AS col0, + MAX ( ALL col0 ) FROM tab2 AS cor0
----
NULL
75

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 20 + - col0 NOT BETWEEN 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - 47 * - col1 AS col1 FROM tab1
----
2209
235
658

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT - COUNT( * ) FROM tab2 WHERE + col1 - - 17 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2645
SELECT - COUNT ( * ) FROM tab2 WHERE + col1 - - 17 IS NOT NULL
----
-3

query I rowsort
SELECT + col0 * - - col0 * - col1 AS col1 FROM tab2
----
-107916
-315392
-376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * + 33 col1 FROM tab0
----
2046
2046
2046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 56 col2 FROM tab0
----
-1
56
-21
56
-81
56

query I rowsort
SELECT - 47 * + + 38 FROM tab0
----
-1786
-1786
-1786

query II rowsort
SELECT DISTINCT col2 + col0 + col1 AS col2, - 54 + - 73 AS col2 FROM tab0
----
118
-127
143
-127
197
-127

query I rowsort
SELECT DISTINCT col2 + + + 85 AS col1 FROM tab0 AS cor0
----
132
184
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - SUM( DISTINCT + ( + - col2 ) ) + - - COUNT( * ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-2652
SELECT - SUM ( DISTINCT + ( + - col2 ) ) + - - COUNT ( * ) AS col1 FROM tab0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT col2 DIV - col2 col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2653
SELECT DISTINCT col2 / - col2 col0 FROM tab2
----
-1

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2655
SELECT ALL - MAX( ALL - - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - MAX ( ALL - - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + 2 FROM tab1 AS cor0
----
-57
-66
-94

query I rowsort
SELECT + ( - ( - col1 ) ) FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 > + col2 * + 51 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL SUM( - + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL SUM ( - + col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT + CAST( - 65 AS SIGNED ) AS col0 FROM tab0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-2661
SELECT + CAST ( - 65 AS INTEGER ) AS col0 FROM tab0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT + 70, + COUNT( * ) * - + COUNT( * ) col1 FROM tab2
----
70
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2664
SELECT + 70, + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab2
----
70
-9

query I rowsort
SELECT 61 * + 63 FROM tab0
----
3843
3843
3843

query I rowsort
SELECT DISTINCT + 78 * 54 AS col2 FROM tab0 AS cor0
----
4212

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2667
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * 94 - - CAST( NULL AS SIGNED ) * - + 89 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2667
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * 94 - - CAST ( NULL AS INTEGER ) * - + 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2668
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - + col1 AS SIGNED ) + - - ( - 37 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2668
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - + col1 AS INTEGER ) + - - ( - 37 ) IS NOT NULL
----

query I rowsort
SELECT + - 78 AS col0 FROM tab1 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2670
SELECT DISTINCT * FROM tab0 WHERE NOT + 72 NOT BETWEEN - 63 * - - CAST( NULL AS SIGNED ) + 95 - - 30 AND - 27
----

skipif mysql # not compatible
query III rowsort label-2670
SELECT DISTINCT * FROM tab0 WHERE NOT + 72 NOT BETWEEN - 63 * - - CAST ( NULL AS INTEGER ) + 95 - - 30 AND - 27
----

query I rowsort
SELECT ALL + col1 * - + ( + + 85 ) AS col2 FROM tab2
----
-4335
-5695
-6545

query I rowsort
SELECT DISTINCT - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL + + ( col2 ) * - 42 + + - col0 FROM tab2 AS cor0
----
-1012
-1744
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL + ( MAX( - 56 ) ) col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT ALL + ( MAX ( - 56 ) ) col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT ALL + col0 + + + col0 * - col1 - col1 AS col1 FROM tab1 AS cor0
----
-345
-4233
-677

query I rowsort
SELECT DISTINCT - col2 * + - ( + 92 ) AS col2 FROM tab0 AS cor0
----
4324
9108
920

query I rowsort
SELECT DISTINCT col1 + + + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT 50 DIV - col0 + + col1 + col2 + - - col1 * - - col1 * - + col0 AS col1 FROM tab0
----
-38336
-98290
3

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT 50 / - col0 + + col1 + col2 + - - col1 * - - col1 * - + col0 AS col1 FROM tab0
----
-38336
-98290
3

query I rowsort
SELECT DISTINCT + 35 * col0 AS col1 FROM tab2
----
1610
2240
2625

query III rowsort
SELECT * FROM tab0 WHERE - col0 > - col2
----
15
81
47
97
1
99

query I rowsort
SELECT + col0 + - - col0 * col0 - + col0 AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT 92 * - col0 * - + 78 FROM tab2
----
330096
459264
538200

query II rowsort
SELECT DISTINCT + col1 * + + 40, col0 + - 90 AS col1 FROM tab1
----
1880
1
200
-5
560
-39

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( - + 64 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 * - - col0 AS col2, ( - col2 ) * + col2 - - col1 + - col0 FROM tab1
----
4896
-9253
5015
-3561
6188
-4668

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 42 IS NOT NULL )
----

query I rowsort
SELECT 6 + - col2 FROM tab2 AS cor0
----
-17
-34
-52

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + - COUNT( * ) - + + 57 AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + - COUNT ( * ) - + + 57 AS col1 FROM tab0 AS cor0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT IN ( - col0 + + - 14, - 0, col1, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL ( + + SUM( DISTINCT + 49 ) ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL ( + + SUM ( DISTINCT + 49 ) ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT - COUNT( - 51 ) - + 19 col0 FROM tab1
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT - COUNT ( - 51 ) - + 19 col0 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + - col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT - COUNT( * ) col1, - 20 col2 FROM tab0 AS cor0
----
-3
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2695
SELECT - COUNT ( * ) col1, - 20 col2 FROM tab0 AS cor0
----
-3
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT MIN( ALL + col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT DISTINCT MIN ( ALL + col2 ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2697
SELECT + - COUNT( ALL - + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT + - COUNT ( ALL - + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2698
SELECT ALL + col2 AS col2, CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2698
SELECT ALL + col2 AS col2, CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2699
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT DISTINCT + col2 AS col0, col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT + col2 AS col0, col2 / - col0 AS col0 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE 20 IS NULL
----

query I rowsort
SELECT + col0 * + ( - col2 ) AS col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL OR NOT col0 * - col2 * + + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 + + 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71eda8f1cddbd49f139e3cd450755dd8

query I rowsort
SELECT ALL + col0 * 54 AS col0 FROM tab2
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT ALL CAST( + ( + + col1 ) AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL CAST ( + ( + + col1 ) AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + 69 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

query I rowsort
SELECT DISTINCT 4 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL - COUNT( * ) + - + 61 AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - COUNT ( * ) + - + 61 AS col2 FROM tab1 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT - 92 DIV + + col0 + + - 80 + + - 66 AS col0 FROM tab2 AS cor0
----
-147
-147
-148

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 92 / + + col0 + + - 80 + + - 66 AS col0 FROM tab2 AS cor0
----
-147
-147
-148

query I rowsort
SELECT DISTINCT - + col2 + - col2 * - col1 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT - - SUM( DISTINCT 63 ) + 74 FROM tab2 cor0
----
137

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT - - SUM ( DISTINCT 63 ) + 74 FROM tab2 cor0
----
137

query I rowsort
SELECT + 50 * + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - col1 + - + col1 + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT 84 AS col0, 26 * COUNT( col1 ) FROM tab2
----
84
78

skipif mysql # not compatible
query II rowsort label-2716
SELECT 84 AS col0, 26 * COUNT ( col1 ) FROM tab2
----
84
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2717
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT ALL 68 / + CAST( NULL AS SIGNED ) * + - 4 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL 68 / + CAST ( NULL AS INTEGER ) * + - 4 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2719
SELECT - CAST( NULL AS SIGNED ) / - 72 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2719
SELECT - CAST ( NULL AS INTEGER ) / - 72 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, + 78 * + col0 FROM tab1
----
51
3978
85
6630
91
7098

query I rowsort
SELECT col2 * + + col0 AS col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT - col0 AS col0, 23 FROM tab2
----
-46
23
-64
23
-75
23

query II rowsort
SELECT DISTINCT - col1 + - col2 AS col2, - 2 AS col2 FROM tab2 AS cor0
----
-117
-2
-125
-2
-74
-2

query I rowsort
SELECT DISTINCT - col0 + - - col1 * col1 AS col1 FROM tab1 cor0
----
-60
145
2118

query I rowsort
SELECT DISTINCT - 34 + col2 FROM tab0 cor0
----
-24
13
65

query I rowsort
SELECT + col0 + + 45 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT DISTINCT - ( + col1 ) - + 44 - col0 FROM tab1
----
-109
-134
-182

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = - col0 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2732
SELECT - - col0 * 36 * + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
156600
NULL
38088
NULL
92160
NULL

skipif mysql # not compatible
query II rowsort label-2732
SELECT - - col0 * 36 * + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
156600
NULL
38088
NULL
92160
NULL

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL col2 * col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL col2 * col0 / - col1 AS col0 FROM tab1 AS cor0
----
-1003
-131
-349

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE 87 = 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2736
SELECT * FROM tab0 WHERE NOT col0 * - 8 * col1 * + CAST( NULL AS SIGNED ) + - 27 < col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-2736
SELECT * FROM tab0 WHERE NOT col0 * - 8 * col1 * + CAST ( NULL AS INTEGER ) + - 27 < col0 + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - ( + 89 ) * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - SUM( ALL + 75 ) AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-2738
SELECT - SUM ( ALL + 75 ) AS col0 FROM tab1
----
-225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2739
SELECT COUNT( * ) + - + COUNT( * ) + + - 43 + 0 + ( + CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( * ) + - + COUNT ( * ) + + - 43 + 0 + ( + CAST ( NULL AS REAL ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab2
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 4 col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 22 / + col2 / - 54 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 40 * 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - + COUNT( * ) + COUNT( ALL + col1 ) * 63 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2743
SELECT - + COUNT ( * ) + COUNT ( ALL + col1 ) * 63 FROM tab2 AS cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT col1 + + 95 DIV - col1 AS col2 FROM tab1 AS cor0
----
-14
45
8

skipif mysql # not compatible
query I rowsort label-2744
SELECT col1 + + 95 / - col1 AS col2 FROM tab1 AS cor0
----
-14
45
8

query I rowsort
SELECT ALL + 21 + + col0 AS col1 FROM tab2 AS cor0
----
67
85
96

query I rowsort
SELECT + col0 * - ( + 51 ) FROM tab0 cor0
----
-4437
-4947
-765

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2747
SELECT * FROM tab2 WHERE + 43 * CAST( - 11 AS SIGNED ) - ( col1 ) / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2747
SELECT * FROM tab2 WHERE + 43 * CAST ( - 11 AS INTEGER ) - ( col1 ) / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 74 ) col2 FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2749
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) / - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2749
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) / - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 / + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE - col2 + 9 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE - col2 + 9 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - col1 + + ( ( col0 ) ) * + 0 AS col0 FROM tab2 WHERE NOT + 3 NOT BETWEEN 18 AND - col1 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2753
SELECT - COUNT( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT - COUNT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT COUNT( * ) * - COUNT( DISTINCT col2 * - 1 ) + + 32 AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2754
SELECT COUNT ( * ) * - COUNT ( DISTINCT col2 * - 1 ) + + 32 AS col1 FROM tab2
----
23

query I rowsort
SELECT col0 * - col1 + - 3 FROM tab1 WHERE NOT - col0 / 88 + - col1 NOT BETWEEN ( NULL ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 77 col0 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT DISTINCT ( 91 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 67 col0 FROM tab1
----
3417
5695
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL 69 * SUM( DISTINCT - col1 * - col0 ) AS col2 FROM tab1
----
373704

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL 69 * SUM ( DISTINCT - col1 * - col0 ) AS col2 FROM tab1
----
373704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2760
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + col0 < - ( 38 )
----

skipif mysql # not compatible
query III rowsort label-2760
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 < - ( 38 )
----

query I rowsort
SELECT ALL 5 * + col1 + + col2 FROM tab1 WHERE 26 NOT BETWEEN ( NULL ) AND ( 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col0 col1 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab0 WHERE col0 <> ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( col0 ) * col1
----

query I rowsort
SELECT 85 * col1 + - 75 * + col0 FROM tab2
----
1745
70
885

query I rowsort
SELECT + 48 * col1 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2768
SELECT ALL 76 DIV - COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 76 / - COUNT ( * ) FROM tab1
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 WHERE col0 < ( col1 )
----
51
77

query I rowsort
SELECT DISTINCT + 78 * - 76 AS col1 FROM tab2
----
-5928

query I rowsort
SELECT DISTINCT 58 FROM tab0 WHERE + col0 IS NOT NULL
----
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT COUNT( * ) col2 FROM tab2 WHERE ( col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2773
SELECT COUNT ( * ) col2 FROM tab2 WHERE ( col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL AVG ( DISTINCT + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( + col0 )
----

query I rowsort
SELECT + 55 - col1 FROM tab1
----
41
50
8

query I rowsort
SELECT + col2 * 13 FROM tab2
----
299
520
754

query I rowsort
SELECT + col0 * - 7 FROM tab2
----
-322
-448
-525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 NOT IN ( + ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2782
SELECT * FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) < - 74 - + 7
----

skipif mysql # not compatible
query III rowsort label-2782
SELECT * FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) < - 74 - + 7
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + 21 BETWEEN - col0 AND col1 * - col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ( MIN( ALL + 87 ) ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2785
SELECT ( MIN ( ALL + 87 ) ) FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 92 col2 FROM tab1 AS cor0
----
-4
24
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT SUM( ALL col1 ) + + 60 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT SUM ( ALL col1 ) + + 60 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
81

skipif mysql # not compatible
query I rowsort label-2789
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + col2 col0 FROM tab2 WHERE ( - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * - 52 + - ( - col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 81 / - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / - col2 + + col2 * - col1 AND ( + ( + col1 ) * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 44 = NULL
----

query I rowsort
SELECT ALL - + 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT ( 94 ) / - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 69 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2797
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 24 * - col1 FROM tab1 AS cor0
----
1128
120
336

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col1 / 51 FROM tab0 AS cor0 WHERE NOT ( ( col0 ) * col1 ) NOT BETWEEN NULL AND - ( 33 ) + + 67
----

query I rowsort
SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - ( COUNT( DISTINCT 77 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2801
SELECT - ( COUNT ( DISTINCT 77 ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 + col1 / - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT + MAX( DISTINCT col0 ) DIV 29 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2803
SELECT + MAX ( DISTINCT col0 ) / 29 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT DISTINCT + 70 DIV + col1 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + 70 / + col1 AS col0 FROM tab2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 99 * col2 - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL 5 * COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 5 * COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15

query I rowsort
SELECT ALL + 93 * - col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 + + 51 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT col1 / + ( CAST( NULL AS SIGNED ) ) / 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT col1 / + ( CAST ( NULL AS INTEGER ) ) / 51 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT col0 DIV + 14 AS col0 FROM tab0
----
1
6
6

skipif mysql # not compatible
query I rowsort label-2811
SELECT col0 / + 14 AS col0 FROM tab0
----
1
6
6

query I rowsort
SELECT DISTINCT 69 * - ( ( - col0 ) ) FROM tab1 AS cor0 WHERE ( - col1 * - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( 74 )
----
0

query I rowsort
SELECT DISTINCT - col2 * - 64 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1472
2560
3712

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) NOT IN ( - col0 + 40 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - + 44 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 53 + + + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT + + MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT + + MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-97

query I rowsort
SELECT ALL + 98 + + 48 * col2 AS col0 FROM tab2 AS cor0
----
1202
2018
2882

query I rowsort
SELECT + 23 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-2186
-77
-9778

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 + + col2 + + 32 * col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 56 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 56 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 * - ( col1 ) AND NULL
----

query I rowsort
SELECT ALL 4 + + 13 FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * + + col1 AND ( + col0 / col2 )
----

query I rowsort
SELECT DISTINCT - col1 + 14 AS col0 FROM tab1 cor0
----
-33
0
9

query I rowsort
SELECT ALL - col1 * - col2 * col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
263410
7059917
7370

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT COUNT( * ), - 9 AS col2 FROM tab0 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-2828
SELECT COUNT ( * ), - 9 AS col2 FROM tab0 AS cor0
----
3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT MAX( - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2829
SELECT MAX ( - col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT - 71 * - col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 + + ( + - ( 84 ) ) AS col0 FROM tab0
----
621
786
9519

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 < + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT ALL 58 DIV + + col1 - + col0 FROM tab2
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL 58 / + + col1 - + col0 FROM tab2
----
-45
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL - CAST( + 64 AS SIGNED ) AS col0 FROM tab0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - CAST ( + 64 AS INTEGER ) AS col0 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT - col1 * + 59 + 19 FROM tab1 WHERE - + 8 BETWEEN ( - col2 ) AND - col2 * 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT - 25 DIV 77 DIV + + COUNT( * ) * - - COUNT( * ) * SUM( DISTINCT - col1 ) - - COUNT( * ) DIV 52 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 25 / 77 / + + COUNT ( * ) * - - COUNT ( * ) * SUM ( DISTINCT - col1 ) - - COUNT ( * ) / 52 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + COUNT( * ) - + MAX( DISTINCT col2 ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-2837
SELECT + COUNT ( * ) - + MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
-55

query I rowsort
SELECT ALL - col0 - + 76 FROM tab0
----
-163
-173
-91

query I rowsort
SELECT 26 / 63 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 50 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT ALL + 49 * 34 DIV - col2 AS col2 FROM tab2 AS cor0
----
-28
-41
-72

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL + 49 * 34 / - col2 AS col2 FROM tab2 AS cor0
----
-28
-41
-72

query I rowsort
SELECT 67 + ( col0 ) FROM tab2 cor0 WHERE NOT 58 / - - col2 NOT BETWEEN - col0 AND + col1 * + col0
----
113
131
142

query I rowsort
SELECT DISTINCT + - 52 AS col1 FROM tab2 AS cor0
----
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 * 15 ) NOT IN ( ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT + COUNT( - - CAST( - col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT + COUNT ( - - CAST ( - col0 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 81 * + + col2 AS col0 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT + 12 - ( + 23 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab2 cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 + - 79 + - 42 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-95
-95
-95

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - ( + 25 ) / - col0 ) >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 71 * 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2852
SELECT ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2853
SELECT + MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col2 NOT IN ( - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col2 NOT IN ( - 12 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT + + col1 DIV + 49 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT + + col1 / + 49 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 col2 FROM tab2 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-2857
SELECT + col0 DIV + 28 AS col0, col2 * + col0 FROM tab2
----
1
1058
2
2560
2
4350

skipif mysql # not compatible
query II rowsort label-2857
SELECT + col0 / + 28 AS col0, col2 * + col0 FROM tab2
----
1
1058
2
2560
2
4350

query II rowsort
SELECT ALL col2 AS col1, 0 - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - 21 * - 96 AS col0 FROM tab1
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT + COUNT( * ) DIV + 38 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT + COUNT ( * ) / + 38 FROM tab2
----
0

query II rowsort
SELECT col0, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT SUM( + + 77 ) * - - 83 * MAX( ALL - col0 ) col1 FROM tab0
----
-287595

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2862
SELECT DISTINCT SUM ( + + 77 ) * - - 83 * MAX ( ALL - col0 ) col1 FROM tab0
----
-287595

query I rowsort
SELECT ALL + col2 + + - col1 * 14 AS col0 FROM tab0 cor0
----
-1087
-284
85

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL OR - col2 / - + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT ALL - COUNT( * ) DIV COUNT( * ) FROM tab1 WHERE NOT col1 DIV - 84 * col2 = ( - col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - COUNT ( * ) / COUNT ( * ) FROM tab1 WHERE NOT col1 / - 84 * col2 = ( - col2 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2866
SELECT ALL col2 DIV - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2866
SELECT ALL col2 / - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - col0 col1, ( + 9 ) FROM tab2 AS cor0
----
-141
9
-142
9
-97
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2868
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, 22 - + + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
-29
NULL
-45
NULL
-55

skipif mysql # not compatible
query II rowsort label-2868
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, 22 - + + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
-29
NULL
-45
NULL
-55

query I rowsort
SELECT + 28 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1474
1951
2220

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT 17 + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2871
SELECT 17 + COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT + col2 + - - 37 AS col2 FROM tab1 AS cor0
----
105
133
96

query I rowsort
SELECT ALL + + 32 + 65 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT - + col2 * col2 FROM tab1 AS cor0 WHERE - col1 + col1 * + col0 + col0 * 32 IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT 20 AS col0 FROM tab0 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
20
20
20

query I rowsort
SELECT + col1 * - 66 + + col1 FROM tab1 AS cor0
----
-3055
-325
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT SUM( col1 ) * MIN( + col2 ) + - + 1 + - 30 FROM tab1
----
3863

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT SUM ( col1 ) * MIN ( + col2 ) + - + 1 + - 30 FROM tab1
----
3863

query I rowsort
SELECT ALL - col0 - - 15 FROM tab0
----
-72
-82
0

query I rowsort
SELECT ALL 73 + - col1 FROM tab0
----
-8
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL COUNT( * ) - 33 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL COUNT ( * ) - 33 FROM tab2
----
-30

query I rowsort
SELECT ALL - 15 * - + 24 - col2 FROM tab2
----
302
320
337

query III rowsort
SELECT * FROM tab2 WHERE NULL < + - 14 * - 29 * - - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * - col1 - + col2 + 36 NOT IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 84 AS col1, - col2 * - col1 FROM tab0
----
-84
210
-84
3807
-84
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL - 93 * - MIN( DISTINCT - CAST( + 80 AS SIGNED ) ) * + - 34 + - + 90 FROM tab0
----
252870

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 93 * - MIN ( DISTINCT - CAST ( + 80 AS INTEGER ) ) * + - 34 + - + 90 FROM tab0
----
252870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2886
SELECT + COUNT( * ) * + CAST( - SUM( ALL + - ( col2 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-2886
SELECT + COUNT ( * ) * + CAST ( - SUM ( ALL + - ( col2 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
468

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL COUNT( DISTINCT + + col0 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2888
SELECT ALL COUNT ( DISTINCT + + col0 ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL + + col0 AS col1, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT 44 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT + 64 + - + col1 * + col2 + col1 * ( + 41 ) FROM tab1 AS cor0
----
-1205
-26
-706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT - + 95 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - + 95 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2895
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( CAST( + + 44 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2895
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( CAST ( + + 44 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT + col2 DIV - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2896
SELECT + col2 / - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL MAX( 77 ) + + - 85 + - 42 FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL MAX ( 77 ) + + - 85 + - 42 FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 87 * - col2 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT MIN( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL + col1 AS col2, col0 * + 52 * 4 * - 20 + + 78 AS col0, - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT 9 * + COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT 9 * + COUNT ( * ) AS col0 FROM tab1
----
27

query I rowsort
SELECT col1 * - 18 * + 77 FROM tab1
----
-19404
-65142
-6930

query I rowsort
SELECT DISTINCT - 60 + col1 FROM tab2
----
-9
17
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2904
SELECT + COUNT( * ) DIV - + 84 * 67 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( * ) / - + 84 * 67 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + ( + - 65 ) ) NOT BETWEEN 7 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT ALL MAX( DISTINCT + col0 ) DIV - 37 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL MAX ( DISTINCT + col0 ) / - 37 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL 64 DIV + col2 + - 63 + + col1 * - col2 AS col1 FROM tab2
----
-1234
-3142
-3948

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 64 / + col2 + - 63 + + col1 * - col2 AS col1 FROM tab2
----
-1234
-3142
-3948

query I rowsort
SELECT + 29 * - + col2 AS col1 FROM tab0 AS cor0
----
-1363
-2871
-290

query II rowsort
SELECT ALL + col1 AS col2, col2 + col1 AS col1 FROM tab2 cor0
----
51
74
67
125
77
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + MIN( ALL - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + MIN ( ALL - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2911
SELECT DISTINCT + 34 + 79 * + col1 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
113
NULL
1693
NULL
6433
NULL

skipif mysql # not compatible
query II rowsort label-2911
SELECT DISTINCT + 34 + 79 * + col1 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
113
NULL
1693
NULL
6433
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * 28 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 28 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2913
SELECT DISTINCT 83 DIV - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT 83 / - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT ( + CAST( NULL AS SIGNED ) ) + + col0 * + - 17 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT ( + CAST ( NULL AS INTEGER ) ) + + col0 * + - 17 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 9 * - col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ( - - 57 ) * - col0 AS col1 FROM tab1 cor0 WHERE - 55 IS NOT NULL
----
-2907
-4845
-5187

query I rowsort
SELECT DISTINCT + 31 + - - col0 FROM tab1 AS cor0
----
116
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2918
SELECT * FROM tab0 WHERE + - col2 = 35 + - col1 * + - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2918
SELECT * FROM tab0 WHERE + - col2 = 35 + - col1 * + - col2 * - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 - col0, 40 + + col0 col0 FROM tab1
----
-14
131
-8
125
26
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT + 65 DIV col1 - - col0 AS col2 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-2920
SELECT + 65 / col1 - - col0 AS col2 FROM tab2
----
47
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT - 3 + + CAST( - + AVG ( + + col0 ) AS SIGNED ) / - + COUNT( * ) FROM tab0 WHERE 54 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT - 3 + + CAST ( - + AVG ( + + col0 ) AS INTEGER ) / - + COUNT ( * ) FROM tab0 WHERE 54 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT + CAST( - 69 AS SIGNED ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + CAST ( - 69 AS INTEGER ) FROM tab1
----
-69

query I rowsort
SELECT + AVG ( DISTINCT + + col1 ) FROM tab2 WHERE NOT + - 85 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab2
----
77
77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col2 ) IS NULL
----

query II rowsort
SELECT col0, 60 FROM tab2
----
46
60
64
60
75
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT 48 * - SUM( DISTINCT + col0 ) FROM tab0
----
-9552

skipif mysql # not compatible
query I rowsort label-2927
SELECT 48 * - SUM ( DISTINCT + col0 ) FROM tab0
----
-9552

query I rowsort
SELECT ALL + - 1 * + col2 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 AS cor0 WHERE NOT col0 * - col1 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( + - ( - 84 ) ) * - 71 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, 42 * - ( col2 ) * + col2 FROM tab0 AS cor0
----
10
-4200
47
-92778
99
-411642

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - MIN( 46 ) AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2933
SELECT - MIN ( 46 ) AS col2 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + col2 * + 45 + - + ( - - 3 ) FROM tab0 AS cor0
----
2112
4452
447

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL SUM( - 84 ) FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL SUM ( - 84 ) FROM tab2 AS cor0
----
-252

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2936
SELECT CAST( NULL AS DECIMAL ) col1, CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2936
SELECT CAST ( NULL AS REAL ) col1, CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2937
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) >= + 40
----

skipif mysql # not compatible
query III rowsort label-2937
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) >= + 40
----

query I rowsort
SELECT - ( + 40 ) * + - 6 FROM tab0
----
240
240
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT COUNT( * ) DIV - COUNT( - + col2 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2939
SELECT COUNT ( * ) / - COUNT ( - + col2 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - 26 * - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 26 * - COUNT ( * ) FROM tab0
----
78

query II rowsort
SELECT DISTINCT - 32 * + + col2, - 32 AS col2 FROM tab2
----
-1280
-32
-1856
-32
-736
-32

query I rowsort
SELECT - + 39 AS col1 FROM tab0 WHERE NULL BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT ALL + COUNT( * ) - + CAST( NULL AS SIGNED ) * + COUNT( * ) * CAST( NULL AS SIGNED ) / + - 28 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + - 28 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 26 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + + MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2945
SELECT + + MIN ( ALL + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col2 + 97 FROM tab0
----
107
144
196

query I rowsort
SELECT ALL - 35 + - 14 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query II rowsort label-2948
SELECT ALL - 60, COUNT( * ) col1 FROM tab1 AS cor0
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2948
SELECT ALL - 60, COUNT ( * ) col1 FROM tab1 AS cor0
----
-60
3

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 49 + - - col0 AS col0 FROM tab1 AS cor0
----
100
134
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - 57 * - + COUNT( * ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - 57 * - + COUNT ( * ) FROM tab0 AS cor0
----
171

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 + - 79 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1160
-2679
-4487

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 20 BETWEEN - 10 + + col2 AND ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 97 + 24 FROM tab2 AS cor0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT - 3 + + 76 + - col1 * - 44 + + + col0 * - + col1 FROM tab2 AS cor0
----
-1467
-2004
-29

query I rowsort
SELECT - + col0 + + col2 + col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab2 cor0
----
-44

query I rowsort
SELECT - + 63 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

query II rowsort
SELECT DISTINCT + 82, col2 AS col1 FROM tab2
----
82
23
82
40
82
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL COUNT( DISTINCT - CAST( - 12 AS SIGNED ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL COUNT ( DISTINCT - CAST ( - 12 AS INTEGER ) ) AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 62, col2 col2 FROM tab0
----
-62
10
-62
47
-62
99

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + SUM( + + 56 ) * + 14 + - ( COUNT( * ) ) + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
2346

skipif mysql # not compatible
query I rowsort label-2964
SELECT + SUM ( + + 56 ) * + 14 + - ( COUNT ( * ) ) + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
2346

query I rowsort
SELECT DISTINCT col0 * - 63 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT DISTINCT + - 63 AS col2 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL - 58 * - col2 + - 53 FROM tab0 AS cor0
----
2673
527
5689

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT ( col2 ) + + - 54 DIV - col1 AS col0 FROM tab2 AS cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-2968
SELECT ( col2 ) + + - 54 / - col1 AS col0 FROM tab2 AS cor0
----
24
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT - 29 + + SUM( DISTINCT - + 28 ) * 26 * + COUNT( * ) FROM tab2 AS cor0
----
-2213

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT - 29 + + SUM ( DISTINCT - + 28 ) * 26 * + COUNT ( * ) FROM tab2 AS cor0
----
-2213

query I rowsort
SELECT + ( + col2 ) * + - ( - - 97 ) + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4640
-9604
-991

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 20 <= - col0 * + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT MAX( ALL 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2972
SELECT MAX ( ALL 72 ) FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT col1 DIV 30 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2973
SELECT col1 / 30 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2974
SELECT DISTINCT - ( SUM( ALL - 21 ) ) AS col2, - COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
63
0

skipif mysql # not compatible
query II rowsort label-2974
SELECT DISTINCT - ( SUM ( ALL - 21 ) ) AS col2, - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
63
0

query I rowsort
SELECT ALL + col2 * - - col0 + - + col2 AS col0 FROM tab2
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - COUNT( * ) * - MIN( + 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-2976
SELECT - COUNT ( * ) * - MIN ( + 79 ) FROM tab2
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + + COUNT( * ) FROM tab1 WHERE + + col1 * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2977
SELECT + + COUNT ( * ) FROM tab1 WHERE + + col1 * - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT MIN( - - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2978
SELECT MIN ( - - col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - ( + - 39 ) FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT col2 * col2 DIV - col0 FROM tab1
----
-180
-40
-50

skipif mysql # not compatible
query I rowsort label-2980
SELECT col2 * col2 / - col0 FROM tab1
----
-180
-40
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 * col0 col0 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL < 55
----

query I rowsort
SELECT - col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT + 15 * + - col2 + - + ( + CAST( + col0 AS SIGNED ) ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-391
-664
-945

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 15 * + - col2 + - + ( + CAST ( + col0 AS INTEGER ) ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-391
-664
-945

query I rowsort
SELECT ALL + col2 * - - 67 AS col1 FROM tab0
----
3149
6633
670

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 NOT BETWEEN NULL AND 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - COUNT( - + col0 ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2987
SELECT DISTINCT - COUNT ( - + col0 ) col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 * 87 AS col0 FROM tab2 AS cor0
----
-957
-957
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2991
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + + - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2991
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + + - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT + 56 DIV + - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 56 / + - col1 FROM tab2
----
-1
0
0

query II rowsort
SELECT DISTINCT col1, - 27 + + 43 + + + col1 FROM tab0
----
1
17
21
37
81
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL - MAX( ALL + + 76 ) AS col2 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - MAX ( ALL + + 76 ) AS col2 FROM tab2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2996
SELECT ALL col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2996
SELECT ALL col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2997
SELECT - COUNT( * ), 1 AS col1 FROM tab0
----
-3
1

skipif mysql # not compatible
query II rowsort label-2997
SELECT - COUNT ( * ), 1 AS col1 FROM tab0
----
-3
1

query I rowsort
SELECT DISTINCT + col1 * + + col0 * 53 * - col0 AS col0 FROM tab1
----
-1914625
-1929942
-20627971

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - 31 <= - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= + col1
----

query I rowsort
SELECT ALL + + 11 * col0 AS col0 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT + ( + 37 ) FROM tab1 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 57 col2 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT DISTINCT - 53 - 3 * - + COUNT( * ) - + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND + col1
----
-53

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - 53 - 3 * - + COUNT ( * ) - + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND + col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3005
SELECT DISTINCT - COUNT( * ) AS col2, 65 AS col1 FROM tab1
----
-3
65

skipif mysql # not compatible
query II rowsort label-3005
SELECT DISTINCT - COUNT ( * ) AS col2, 65 AS col1 FROM tab1
----
-3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL + MIN( ALL + - ( - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + MIN ( ALL + - ( - col2 ) ) FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 3 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT - COUNT( ALL - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT - COUNT ( ALL - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + + col0 + 96 AS col1 FROM tab2 AS cor0
----
142
160
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + ( ( COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3010
SELECT + ( ( COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * - col1 * - ( + col1 ) + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
119641
336683
379443

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT + COUNT( * ), + 33 * + 14 AS col2 FROM tab1 AS cor0
----
3
462

skipif mysql # not compatible
query II rowsort label-3012
SELECT + COUNT ( * ), + 33 * + 14 AS col2 FROM tab1 AS cor0
----
3
462

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + col2 AND - 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 73 + + 81 * - 56 + ( - 13 ) AS col1 FROM tab0 AS cor0
----
-4476
-4476
-4476

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + COUNT( * ) + COUNT( * ) * + 45 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3015
SELECT + COUNT ( * ) + COUNT ( * ) * + 45 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT COUNT( * ) * + 13 * + MIN( DISTINCT 87 ) + 93 * - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT COUNT ( * ) * + 13 * + MIN ( DISTINCT 87 ) + 93 * - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT - col2 + + col1 * + 93 FROM tab2
----
4720
6173
7121

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + SUM( ALL 65 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + SUM ( ALL 65 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + COUNT( * ) * - 77 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3019
SELECT + COUNT ( * ) * - 77 FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT COUNT( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3020
SELECT COUNT ( + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 88 - + col1 * col0 + 37 FROM tab2 AS cor0
----
-2397
-4979
-5076

query I rowsort
SELECT - 28 AS col1 FROM tab2 WHERE col0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + 84 * + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3023
SELECT + 84 * + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
252

query II rowsort
SELECT - ( + + ( 22 ) ), + col0 AS col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

query I rowsort
SELECT - - 95 * + col2 + col2 + + + 11 * - col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3621
729
9493

query I rowsort
SELECT - 93 * + - col1 AS col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2, col0 / + 52, + col1 * - + col2 - + col1, + 27, + col1, - ( + + 19 ) * + col2 / - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 col0 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + SUM( - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3030
SELECT + SUM ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 83 * - col0 ) NOT BETWEEN ( - 88 ) + + 13 AND 94 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT CAST( MAX( ALL + 33 ) AS SIGNED ) col1 FROM tab1
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3032
SELECT DISTINCT CAST ( MAX ( ALL + 33 ) AS INTEGER ) col1 FROM tab1
----
33

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT - col1 >= col1 + - col2
----
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT - + 71 * + 20 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1417

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - + 71 * + 20 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1417

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + + COUNT( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + + COUNT ( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 43 + col0 FROM tab0 AS cor0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT + - COUNT( - - 81 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT + - COUNT ( - - 81 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT 59 DIV - + col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT 59 / - + col2 AS col1 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - - 83 * - col1 + - - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1066
-356
-3833

skipif mysql # not compatible
query I rowsort label-3040
SELECT - - 83 * - col1 + - - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1066
-356
-3833

query I rowsort
SELECT ALL AVG ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE ( col2 = + + 50 )
----
NULL

query I rowsort
SELECT - col2 + + 60 + - 44 AS col2 FROM tab2 AS cor0
----
-24
-42
-7

query I rowsort
SELECT + col1 + 37 FROM tab0 AS cor0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + 4 + MIN( DISTINCT + 5 ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + 4 + MIN ( DISTINCT + 5 ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + - COUNT( * ) + - 64 AS col1 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3045
SELECT + - COUNT ( * ) + - 64 AS col1 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - col1 + - - 97 FROM tab0 AS cor0
----
16
76
96

query I rowsort
SELECT DISTINCT col1 + + 4 FROM tab1 cor0
----
18
51
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3048
SELECT ALL + COUNT( * ), - COUNT( DISTINCT col2 ) FROM tab0 AS cor0 WHERE + col2 <= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3048
SELECT ALL + COUNT ( * ), - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE + col2 <= NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 61 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + 88 * col0 AS col1 FROM tab2
----
4099
5709
6667

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT + 65 * - + COUNT( * ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT + 65 * - + COUNT ( * ) FROM tab1
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) * - col1 col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col1 * - col1 - + 57 AS col0 FROM tab1
----
-2266
-253
-82

query II rowsort
SELECT - col0, 22 AS col2 FROM tab1
----
-51
22
-85
22
-91
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - MIN( 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - MIN ( 2 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + 11 - + COUNT( * ) col1 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT + 11 - + COUNT ( * ) col1 FROM tab0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT DISTINCT col2 - + + col1 DIV + col1 + - col1 FROM tab2
----
-10
-29
-38

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT col2 - + + col1 / + col1 + - col1 FROM tab2
----
-10
-29
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3058
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT + 43 - - col0 FROM tab1
----
128
134
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3060
SELECT DISTINCT + MAX( DISTINCT - + col2 ) / - 72 / - 95 AS col1, + COUNT( DISTINCT 50 ) * - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 <> - 61 * - - CAST( - + col2 AS SIGNED ) * + + col0 / + col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3060
SELECT DISTINCT + MAX ( DISTINCT - + col2 ) / - 72 / - 95 AS col1, + COUNT ( DISTINCT 50 ) * - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 <> - 61 * - - CAST ( - + col2 AS INTEGER ) * + + col0 / + col0
----
NULL
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE col1 / - col0 + + - col2 - + col1 * - col0 * col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - 7 + + - col0 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query II rowsort
SELECT + 35 * + - col2 * - 11, col1 AS col2 FROM tab1
----
22715
5
26180
47
36960
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT MIN( 61 ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3064
SELECT MIN ( 61 ) AS col0 FROM tab2
----
61

query I rowsort
SELECT - col2 * + 7 * + col0 * + col0 * - col1 FROM tab0
----
11126430
5996025
6520437

query I rowsort
SELECT ALL 81 * - + 37 AS col2 FROM tab1
----
-2997
-2997
-2997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT - ( - COUNT( * ) ) * - 55 + - + 70 * SUM( col1 ) FROM tab0 AS cor0
----
-7375

skipif mysql # not compatible
query I rowsort label-3068
SELECT - ( - COUNT ( * ) ) * - 55 + - + 70 * SUM ( col1 ) FROM tab0 AS cor0
----
-7375

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT ALL col0 * 21 DIV - col1 FROM tab0 AS cor0
----
-2037
-3
-87

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL col0 * 21 / - col1 FROM tab0 AS cor0
----
-2037
-3
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3070
SELECT + ( - - COUNT( * ) ) AS col1, - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-95

skipif mysql # not compatible
query II rowsort label-3070
SELECT + ( - - COUNT ( * ) ) AS col1, - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3071
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col1 * - col2 AS col0 FROM tab1 WHERE NOT + 92 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col1 * - col2 AS col0 FROM tab1 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT 78 DIV + - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT 78 / + - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - SUM( 43 ) AS col1 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3073
SELECT - SUM ( 43 ) AS col1 FROM tab2 AS cor0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 62 + + ( - 70 ) col2 FROM tab2 AS cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - 55, - 75 col1 FROM tab2 AS cor0
----
-4
-75
12
-75
22
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( 81 ) AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT - 66 * ( - 77 ) + - + CAST( + 46 AS SIGNED ) FROM tab1 AS cor0
----
5036
5036
5036

skipif mysql # not compatible
query I rowsort label-3077
SELECT - 66 * ( - 77 ) + - + CAST ( + 46 AS INTEGER ) FROM tab1 AS cor0
----
5036
5036
5036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL + - 19 + 13 - + + 48 * - col2 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2911
3349
4653

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + - 19 + 13 - + + 48 * - col2 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2911
3349
4653

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3079
SELECT - - col1 + + 0 / - CAST( - col1 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT - - col1 + + 0 / - CAST ( - col1 AS REAL ) * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + + col1 AS col2 FROM tab1
----
107
65
74

query I rowsort
SELECT + 53 + + col2 AS col0 FROM tab1
----
112
121
149

query I rowsort
SELECT ALL + col2 - + 19 FROM tab2
----
21
39
4

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * + + col0 >= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NULL ) = NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

query II rowsort
SELECT ALL + col2 AS col0, + 28 * - + col1 FROM tab1
----
59
-140
68
-1316
96
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT COUNT( - - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT COUNT ( - - col2 ) FROM tab2
----
3

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab0 WHERE NOT ( + 14 ) IS NULL
----
10
47
99

query II rowsort
SELECT ALL + + col1 AS col0, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + + MAX( + 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3091
SELECT + + MAX ( + 89 ) FROM tab1 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col0, + col2 col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT DISTINCT - 98, + col0 + - + col2 AS col0 FROM tab0 AS cor0
----
-98
-2
-98
-32
-98
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3094
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + 83 * + + 65 + - COUNT( * ) FROM tab0 cor0
----
NULL
5392

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 83 * + + 65 + - COUNT ( * ) FROM tab0 cor0
----
NULL
5392

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT ALL - + COUNT( - col2 ), SUM( ALL + col2 ) + - + MAX( ALL col0 ) AS col2 FROM tab1 WHERE NOT - col1 * col1 - col2 + col0 = + col0 * - col0
----
-3
132

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL - + COUNT ( - col2 ), SUM ( ALL + col2 ) + - + MAX ( ALL col0 ) AS col2 FROM tab1 WHERE NOT - col1 * col1 - col2 + col0 = + col0 * - col0
----
-3
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - SUM( - col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3096
SELECT - SUM ( - col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT COUNT( * ) AS col0 FROM tab2 WHERE + 78 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3098
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE + 78 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3099
SELECT ALL + 57 * ( + CAST( col2 AS SIGNED ) ) + col2 + col1, + col1 col1 FROM tab2
----
1385
51
2397
77
3431
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3099
SELECT ALL + 57 * ( + CAST ( col2 AS INTEGER ) ) + col2 + col1, + col1 col1 FROM tab2
----
1385
51
2397
77
3431
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3100
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 64beaae31ec7a96f795d130aab3d6b52

skipif mysql # not compatible
query II rowsort label-3100
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 64beaae31ec7a96f795d130aab3d6b52

query I rowsort
SELECT + - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) = - 84
----

query I rowsort
SELECT DISTINCT ( + ( - - col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT - COUNT( * ) * + - 93 DIV + 29 + 94 AS col1 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - COUNT ( * ) * + - 93 / + 29 + 94 AS col1 FROM tab1 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-3104
SELECT ( + - col2 ) DIV 42, + 79 AS col2 FROM tab1 cor0
----
-1
79
-1
79
-2
79

skipif mysql # not compatible
query II rowsort label-3104
SELECT ( + - col2 ) / 42, + 79 AS col2 FROM tab1 cor0
----
-1
79
-1
79
-2
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL - col2 + 52 + CAST( NULL AS SIGNED ) * + 67 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - col2 + 52 + CAST ( NULL AS INTEGER ) * + 67 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT - col2 DIV + ( + 8 ) AS col2 FROM tab1 AS cor0
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-3106
SELECT - col2 / + ( + 8 ) AS col2 FROM tab1 AS cor0
----
-12
-7
-8

query I rowsort
SELECT 22 - + col1 + 12 + - + ( + - col2 ) + - col0 + + col1 * + - col2 * - col0 * + - 30 AS col1 FROM tab1
----
-2056255
-752247
-8725116

query I rowsort
SELECT DISTINCT - col0 - - 11 AS col0 FROM tab0
----
-4
-76
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT ALL col2 + + CAST( - - col1 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL col2 + + CAST ( - - col1 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT ( - col0 ) - + + col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT 81 * col0 - - 93 * + col0 FROM tab1
----
14790
15834
8874

query I rowsort
SELECT col2 * - col0 - + - ( - + 90 ) * - col1 AS col1 FROM tab1
----
-1958
-3636
-4565

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( col1 ) IN ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 53 AS col0 FROM tab1 AS cor0
----
3127
3604
5088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT + MIN( ALL col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) < - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3115
SELECT + MIN ( ALL col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) < - col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 16 + - + col0 col2 FROM tab1 AS cor0
----
1485
859
997

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT + - 1 * + COUNT( * ) * + 84, COUNT( * ) + - MAX( - 5 ) AS col0 FROM tab0 AS cor0
----
-252
8

skipif mysql # not compatible
query II rowsort label-3117
SELECT + - 1 * + COUNT ( * ) * + 84, COUNT ( * ) + - MAX ( - 5 ) AS col0 FROM tab0 AS cor0
----
-252
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - MIN( DISTINCT + col1 ) * - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-455

skipif mysql # not compatible
query I rowsort label-3118
SELECT - MIN ( DISTINCT + col1 ) * - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 80 ) + col2 * + + 95 * + 64 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + + ( + - col1 ) * 47 + + - col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 15 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT DISTINCT + col0 * - 4 + + col0 + 20 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + col0 * - 4 + + col0 + 20 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT 51 * - 67 + + COUNT( + col2 ) FROM tab1 cor0
----
-3414

skipif mysql # not compatible
query I rowsort label-3123
SELECT 51 * - 67 + + COUNT ( + col2 ) FROM tab1 cor0
----
-3414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3124
SELECT DISTINCT + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

query II rowsort
SELECT col1, 69 FROM tab1
----
14
69
47
69
5
69

query I rowsort
SELECT col2 * - 25 * - 69 AS col1 FROM tab1
----
101775
117300
165600

query II rowsort
SELECT - col2, - 59 + col0 AS col1 FROM tab0
----
-10
28
-47
-44
-99
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3128
SELECT DISTINCT - col2 AS col1, CAST( NULL AS SIGNED ) / 61 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT - col2 AS col1, CAST ( NULL AS INTEGER ) / 61 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT SUM( DISTINCT + 66 ) + + + COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-3129
SELECT SUM ( DISTINCT + 66 ) + + + COUNT ( * ) AS col2 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 - 70 FROM tab1
----
14
-19
47
21
5
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + col0 * - + col1 / - - col1 + - CAST( NULL AS SIGNED ) * 99 + + ( - - col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + col0 * - + col1 / - - col1 + - CAST ( NULL AS INTEGER ) * 99 + + ( - - col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT + col2 AS col1, - col2, + + col2 FROM tab0
----
9 values hashing to 64968d6d29256af31bca501ca188e401

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT DISTINCT 58 * - - col2 DIV - col2 + - - col0 + - + ( - col0 ) AS col2 FROM tab2
----
34
70
92

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT 58 * - - col2 / - col2 + - - col0 + - + ( - col0 ) AS col2 FROM tab2
----
34
70
92

query I rowsort
SELECT 15 + - 95 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT + 77 + - 66 AS col2 FROM tab0 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + COUNT( * ) * + 29 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 99 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT + COUNT ( * ) * + 29 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 99 * col0 )
----
0

query I rowsort
SELECT - col2 * 81 / - + col0 * - + col0 FROM tab2 AS cor0 WHERE - 31 >= 32
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3138
SELECT - COUNT( + - 12 ) + + COUNT( * ) DIV - 63 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3138
SELECT - COUNT ( + - 12 ) + + COUNT ( * ) / - 63 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - col0 + - col2 * - col0 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT col0 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT col0 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 * 57 * 4 + col0 col1 FROM tab0 AS cor0
----
19944
22214
3516

query I rowsort
SELECT col0 + + 51 AS col0 FROM tab0 AS cor0
----
138
148
66

query I rowsort
SELECT DISTINCT + col0 + + col0 + - 24 - + ( + col0 ) + col0 FROM tab0 AS cor0
----
150
170
6

query II rowsort
SELECT col2 + 43 + 21 + + - 18, col0 FROM tab1
----
105
85
114
91
142
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3146
SELECT + col0 * - col2 / - col2 * + + col2 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT + col0 * - col2 / - col2 * + + col2 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + 80 AS col2 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 19 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 19 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT ALL - - COUNT( + col0 ) / - 12 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL - - COUNT ( + col0 ) / - 12 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT - + CAST( NULL AS SIGNED ) * 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT - + CAST ( NULL AS INTEGER ) * 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 6 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( - col0 IS NULL )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - 26 ) ) col0 FROM tab2
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + - 63 AS col0 FROM tab0 AS cor0
----
-16
-53
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT - col0 + - 41 FROM tab0 AS cor0
----
-128
-138
-56

query II rowsort
SELECT DISTINCT 90 + col1, - col1 AS col0 FROM tab1 AS cor0
----
104
-14
137
-47
95
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT + col0 * col2 + - - CAST( NULL AS SIGNED ) + - col1 * - - ( - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT + col0 * col2 + - - CAST ( NULL AS INTEGER ) + - col1 * - - ( - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL + 75 * + 15 + - col1 + + + 44 + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + 75 * + 15 + - col1 + + + 44 + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL + + MIN( DISTINCT CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + + MIN ( DISTINCT CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3162
SELECT ( ( - col2 ) ) * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ( ( - col2 ) ) * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + + col2 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT - col2 DIV col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT - col2 / col1 col1 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
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-3165
SELECT - col2 / - col2 col1 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT col2, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT + ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3167
SELECT + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT MIN( ALL - - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3168
SELECT MIN ( ALL - - col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 82 + + + 71 * - - 85 IS NOT NULL
----

query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
14
14
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 76 > + 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - col1 col2 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT ( + - ( ( + - ( COUNT( * ) ) ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT ( + - ( ( + - ( COUNT ( * ) ) ) ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 48
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE col0 = + col1 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT ALL + + COUNT( * ) AS col1, + 44 AS col2 FROM tab1 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-3177
SELECT ALL + + COUNT ( * ) AS col1, + 44 AS col2 FROM tab1 AS cor0
----
3
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT COUNT( * ) AS col2, + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-3178
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
9

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + MIN( ALL + + col2 ) col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL + MIN ( ALL + + col2 ) col0 FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3181
SELECT DISTINCT - CAST( + 29 AS SIGNED ) col2, + col0 * 47 * - col1 FROM tab0 AS cor0
----
-29
-4559
-29
-57105
-29
-85869

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3181
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) col2, + col0 * 47 * - col1 FROM tab0 AS cor0
----
-29
-4559
-29
-57105
-29
-85869

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3182
SELECT - CAST( + + col2 AS SIGNED ) col0, + 21, + col1 FROM tab2
----
9 values hashing to 2d39eb472a820a4c1afbbd5d3c90b493

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3182
SELECT - CAST ( + + col2 AS INTEGER ) col0, + 21, + col1 FROM tab2
----
9 values hashing to 2d39eb472a820a4c1afbbd5d3c90b493

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3183
SELECT DISTINCT * FROM tab0 WHERE - + col0 IN ( col1, + CAST( NULL AS SIGNED ), + + 93, col1, + col2 + ( + col2 ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-3183
SELECT DISTINCT * FROM tab0 WHERE - + col0 IN ( col1, + CAST ( NULL AS INTEGER ), + + 93, col1, + col2 + ( + col2 ), - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT MIN( + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3184
SELECT MIN ( + col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 56 * + - 1 * col2 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT ALL MAX( DISTINCT 79 ) - 4 + COUNT( * ) DIV + COUNT( * ) FROM tab2 WHERE ( col0 NOT IN ( - 27 * col0, + col2 + col2, - + col0 * + ( + col1 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL MAX ( DISTINCT 79 ) - 4 + COUNT ( * ) / + COUNT ( * ) FROM tab2 WHERE ( col0 NOT IN ( - 27 * col0, + col2 + col2, - + col0 * + ( + col1 ) ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + 41 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - + MIN( + col0 ) * - ( MAX( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
3542

skipif mysql # not compatible
query I rowsort label-3189
SELECT - + MIN ( + col0 ) * - ( MAX ( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
3542

query II rowsort
SELECT DISTINCT col1, + col2 FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * + col0 col2 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT DISTINCT + col0 * + - 30 FROM tab1
----
-1530
-2550
-2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL + MAX( ALL col0 ) * - CAST( - + 84 AS SIGNED ) AS col2 FROM tab0
----
8148

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + MAX ( ALL col0 ) * - CAST ( - + 84 AS INTEGER ) AS col2 FROM tab0
----
8148

query I rowsort
SELECT ALL + col2 * + col1 AS col1 FROM tab0 cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT DISTINCT - - 43 DIV + + 82 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - - 43 / + + 82 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + + MAX( ALL - + 17 ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + MAX ( ALL - + 17 ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-17

query II rowsort
SELECT - col2 AS col1, 66 FROM tab1 AS cor0
----
-59
66
-68
66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL MIN( col2 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT ALL MIN ( col2 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ( + - COUNT( * ) ) + + - 68 AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-3199
SELECT ( + - COUNT ( * ) ) + + - 68 AS col2 FROM tab1
----
-71

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 cor0
----
22

query I rowsort
SELECT ALL - + col0 + - - col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + MAX( + 14 ) FROM tab2, tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3203
SELECT + MAX ( + 14 ) FROM tab2, tab1 AS cor0
----
14

query I rowsort
SELECT ALL 69 - + col1 FROM tab1
----
22
55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT COUNT( * ) * - 79 - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-720

skipif mysql # not compatible
query I rowsort label-3205
SELECT COUNT ( * ) * - 79 - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-720

query I rowsort
SELECT DISTINCT col2 - + 74 AS col1 FROM tab0
----
-27
-64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - + MIN( ALL 74 ) col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3207
SELECT - + MIN ( ALL 74 ) col1 FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT + MIN( DISTINCT col1 ) DIV + 62 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT + MIN ( DISTINCT col1 ) / + 62 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * 38 FROM tab2 AS cor0
----
1520
2204
874

query I rowsort
SELECT DISTINCT + - 9 * - ( + + ( + + 52 ) ) + + col1 + col2 FROM tab1 AS cor0
----
532
578
583

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + ( - + 83 ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT + + col2 DIV - + col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3213
SELECT + + col2 / - + col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3214
SELECT ALL COUNT( * ) col1, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3214
SELECT ALL COUNT ( * ) col1, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3216
SELECT ALL + 38 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
38
-3

skipif mysql # not compatible
query II rowsort label-3216
SELECT ALL + 38 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
38
-3

query I rowsort
SELECT + col1 * col1 * + col0 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - + COUNT( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - - col1 + - + col0 AND + - 66 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3220
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 81 + - SUM( DISTINCT - col0 ) * - + 6 - 14 AS col1 FROM tab1
----
NULL
-1295

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 81 + - SUM ( DISTINCT - col0 ) * - + 6 - 14 AS col1 FROM tab1
----
NULL
-1295

query II rowsort
SELECT col0, 83 AS col0 FROM tab0
----
15
83
87
83
97
83

query II rowsort
SELECT DISTINCT - + col1, + 72 AS col0 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( 67 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL COUNT( * ) * + MAX( ALL + 53 ) + 45 * - - 93 FROM tab2 AS cor0
----
4344

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL COUNT ( * ) * + MAX ( ALL + 53 ) + 45 * - - 93 FROM tab2 AS cor0
----
4344

query I rowsort
SELECT - + col1 + + col2 + + 84 * - 13 AS col1 FROM tab2 AS cor0
----
-1101
-1120
-1129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - + 84 * + 68 * - 71 + - col0 col0 FROM tab1 AS cor0
----
-19061035
-2027845
-5677779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL COUNT( * ) + + + COUNT( DISTINCT CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL COUNT ( * ) + + + COUNT ( DISTINCT CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 56 + col2 AS col0 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT DISTINCT + 36 DIV 90 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + 36 / 90 + - + col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + + COUNT( * ) + - MIN( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + + COUNT ( * ) + - MIN ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
50

query III rowsort
SELECT * FROM tab0 WHERE ( ( - + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT ALL - MIN( DISTINCT col0 ) DIV + COUNT( * ) AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - MIN ( DISTINCT col0 ) / + COUNT ( * ) AS col2 FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT - CAST( NULL AS SIGNED ) * + 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT - CAST ( NULL AS INTEGER ) * + 56 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 - 97 AS col1 FROM tab2
----
-192
-192
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT COUNT( * ) - - ( - ( - COUNT( * ) ) ) * 35 AS col1 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-3235
SELECT COUNT ( * ) - - ( - ( - COUNT ( * ) ) ) * 35 AS col1 FROM tab0
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3236
SELECT DISTINCT + + 40 + + MAX( ALL - CAST( col2 AS SIGNED ) ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-3236
SELECT DISTINCT + + 40 + + MAX ( ALL - CAST ( col2 AS INTEGER ) ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - + 93 + + + COUNT( * ) FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - + 93 + + + COUNT ( * ) FROM tab2 cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT + COUNT( * ) * 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + COUNT ( * ) * 45 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - SUM( col2 ) FROM tab0 WHERE NOT ( + col2 ) BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - SUM ( col2 ) FROM tab0 WHERE NOT ( + col2 ) BETWEEN + col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3240
SELECT ALL * FROM tab2 WHERE NOT 39 NOT IN ( - CAST( 1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3240
SELECT ALL * FROM tab2 WHERE NOT 39 NOT IN ( - CAST ( 1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ( - ( - COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3241
SELECT ( - ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - COUNT( 63 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3242
SELECT - COUNT ( 63 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE 15 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 = col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - col2 ) > NULL
----

query I rowsort
SELECT 14 AS col0 FROM tab2 WHERE ( - 74 + 67 ) IS NOT NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 WHERE 63 * col1 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 WHERE 63 * col1 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 86 FROM tab0 WHERE NULL IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT 45 + COUNT( * ) * 20 AS col2 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT 45 + COUNT ( * ) * 20 AS col2 FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT ALL 3 * + 39 + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( 43 ) + + CAST( NULL AS SIGNED ) AND + 45 * + 63
----

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL 3 * + 39 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( 43 ) + + CAST ( NULL AS INTEGER ) AND + 45 * + 63
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3251
SELECT - 25 DIV + col0 + - CAST( col0 AS SIGNED ) * col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 25 / + col0 + - CAST ( col0 AS INTEGER ) * col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - col1 - - col0 IN ( col0 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT SUM( 15 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3254
SELECT SUM ( 15 ) FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 / - 63 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 / - 63 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 + col1 AS col1 FROM tab1
----
37
46
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col0 FROM tab1 cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT COUNT( col2 ) + + 31 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3259
SELECT COUNT ( col2 ) + + 31 FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL col2 + col1 * + 33 AS col2 FROM tab2 AS cor0
----
1706
2269
2581

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 39 NOT BETWEEN + col0 + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
52

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) BETWEEN ( + ( + 14 ) / 11 ) AND + 29
----

query I rowsort
SELECT 12 + + col2 * 84 FROM tab2 AS cor0 WHERE ( col1 ) >= ( + col1 + col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + col2 BETWEEN col1 AND col1
----

query I rowsort
SELECT + - ( + ( + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE 27 * + col2 BETWEEN 53 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE 27 * + col2 BETWEEN 53 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT + 50 * + col0 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-4753
3480
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - 5 + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - 5 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-5

query I rowsort
SELECT ALL + col2 + 78 * 41 FROM tab0 AS cor0
----
3208
3245
3297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT + - 34 + - CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-3272
SELECT + - 34 + - CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL - 20 + + col1 * + 16 FROM tab0 AS cor0
----
-4
1276
316

query I rowsort
SELECT 33 + + 83 FROM tab2
----
116
116
116

query III rowsort
SELECT * FROM tab0 WHERE + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL MIN( ALL col0 ) AS col1 FROM tab2 WHERE NOT + col0 <= 32
----
46

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL MIN ( ALL col0 ) AS col1 FROM tab2 WHERE NOT + col0 <= 32
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT ALL 88 - 1 DIV col2 AS col2 FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL 88 - 1 / col2 AS col2 FROM tab2
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col2 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT DISTINCT 18 DIV - col0 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) + - 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT 18 / - col0 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) + - 57 IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - - 7 ) * col0 FROM tab0 AS cor0
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT ( col2 ) * + col1 + + 98 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND - 20 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT ( col2 ) * + col1 + + 98 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND - 20 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + col1 FROM tab0 AS cor0 WHERE ( col0 ) = ( NULL )
----

query I rowsort
SELECT + 53 - - 7 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT col2 / 60 AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - - 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT + 17 * COUNT( ALL + - col0 ) * COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT + 17 * COUNT ( ALL + - col0 ) * COUNT ( * ) FROM tab0
----
153

query I rowsort
SELECT DISTINCT 2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
2

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - COUNT( + 51 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3289
SELECT - COUNT ( + 51 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 10 IN ( + 75 )
----

query I rowsort
SELECT DISTINCT + - col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + - col2 * - col0 * + + col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3293
SELECT - 18, col1 * + + 47 * - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
-18
NULL
-18
NULL
-18
NULL

skipif mysql # not compatible
query II rowsort label-3293
SELECT - 18, col1 * + + 47 * - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
-18
NULL
-18
NULL
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + - COUNT( * ) * 57 AS col1 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + - COUNT ( * ) * 57 AS col1 FROM tab0 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT - + ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3295
SELECT - + ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT ALL + 65 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1365
-5265
-65

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + 65 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT + 99 DIV + 44 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 99 / + 44 AS col0 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL 4 * - + ( + + col2 ) + + col2 FROM tab0 AS cor0
----
-141
-297
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 62 ) BETWEEN ( + 43 ) AND + col1
----
46
51
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 / + col0 + - 8 IS NOT NULL OR NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * + col2 col0 FROM tab2
----
123200
225388
26979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3304
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) BETWEEN col2 * + CAST( NULL AS DECIMAL ) - col1 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) BETWEEN col2 * + CAST ( NULL AS REAL ) - col1 AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> - 79 * 18
----

query I rowsort
SELECT DISTINCT - 45 + col2 + - 70 AS col0 FROM tab2
----
-57
-75
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL - + 12 + col0 FROM tab1 AS cor0
----
39
73
79

query I rowsort
SELECT - ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 37 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND + + 52 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT ALL - + col1 DIV + - 36 + - col1 AS col1 FROM tab0 cor0
----
-1
-21
-79

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - + col1 / + - 36 + - col1 AS col1 FROM tab0 cor0
----
-1
-21
-79

query I rowsort
SELECT ALL 8 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + MAX( - - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3314
SELECT + MAX ( - - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE + 76 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - ( + col2 ) * + col2 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT - 14 + + + col2 AS col0 FROM tab0
----
-4
33
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3319
SELECT CAST( NULL AS DECIMAL ) + + col2 + - CAST( - col0 AS SIGNED ) + col1 * - 49 / - 79 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT CAST ( NULL AS REAL ) + + col2 + - CAST ( - col0 AS INTEGER ) + col1 * - 49 / - 79 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3322
SELECT ALL - col0 + - + col2 * - col0, + CAST( CAST( - 39 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 cor0
----
1012
-39
2496
-39
4275
-39

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL - col0 + - + col2 * - col0, + CAST ( CAST ( - 39 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 cor0
----
1012
-39
2496
-39
4275
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 * - col0 + - + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL MIN( DISTINCT + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL MIN ( DISTINCT + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT + + SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + + SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - + 78 + + col0 - + 85 FROM tab1 cor0
----
-112
-72
-78

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( + 28 ) IS NULL
----

query I rowsort
SELECT + col2 + 30 * - + col2 * 10 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-14053
-29601
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + MAX( DISTINCT + - col2 ) * + + 31 - + - 71 * - + COUNT( * ) - + MAX( DISTINCT 42 ) + COUNT( + col1 ) AS col0 FROM tab2
----
-965

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + MAX ( DISTINCT + - col2 ) * + + 31 - + - 71 * - + COUNT ( * ) - + MAX ( DISTINCT 42 ) + COUNT ( + col1 ) AS col0 FROM tab2
----
-965

onlyif mysql # DIV for integer division: 
query II rowsort label-3331
SELECT + 84, - 78 DIV + + col1 AS col2 FROM tab0
----
84
-3
84
-78
84
0

skipif mysql # not compatible
query II rowsort label-3331
SELECT + 84, - 78 / + + col1 AS col2 FROM tab0
----
84
-3
84
-78
84
0

query I rowsort
SELECT DISTINCT - col2 - + ( + col0 ) FROM tab0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 59 AND col0 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL - - 17 + + CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3334
SELECT ALL - - 17 + + CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col1 col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT - col1 * - col2 DIV + + col2 + + col0 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - col1 * - col2 / + + col2 + + col0 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - col1 IS NOT NULL AND NOT ( + col2 * col0 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col1 ) + col0 NOT BETWEEN NULL AND + ( - + 24 ) * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT ALL + - CAST( NULL AS SIGNED ) * - + 38 * - COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + 38 * - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 81 * - - col0 + + - col1 - - + col2 * - col2 * - col0 NOT BETWEEN - col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab1 cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT + 38 DIV col0 * - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + 38 / col0 * - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE ( NOT + ( - - col0 ) BETWEEN - col2 AND + 75 )
----
87
97

query I rowsort
SELECT + - col1 * - col2 * - + 40 FROM tab1 AS cor0
----
-11800
-127840
-53760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT - 77 * + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT - 77 * + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT MAX( - col1 ) * - 2 - + COUNT( * ) DIV - MAX( - col0 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3349
SELECT MAX ( - col1 ) * - 2 - + COUNT ( * ) / - MAX ( - col0 ) FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT ALL - ( - col0 ) * CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - ( - col0 ) * CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT 42 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT 42 / - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( - ( + col0 ) ) * col1 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - 85 FROM tab0 WHERE NOT NULL = + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN + col2 * - col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL 45 AS col1 FROM tab0 WHERE + col1 IN ( + + 68 / - 98 * 40 - + - 6 )
----

query I rowsort
SELECT ALL - col0 * + - 14 FROM tab0 AS cor0
----
1218
1358
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
14

query I rowsort
SELECT + col2 FROM tab0 WHERE + col0 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + 8 col0 FROM tab1 cor0
----
4904
5023
6196

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + - COUNT( * ) + - 93 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3362
SELECT + - COUNT ( * ) + - 93 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 16 + + - 48 * + col0 AS col0 FROM tab0 AS cor0
----
-4160
-4640
-704

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3364
SELECT DISTINCT - col0 - + + col1 AS col2, CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-138
-91
-65
-51
-90
-85

skipif mysql # not compatible
query II rowsort label-3364
SELECT DISTINCT - col0 - + + col1 AS col2, CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-138
-91
-65
-51
-90
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT + - col0 DIV - col1 + - - 12 col0 FROM tab1 AS cor0
----
13
15
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3365
SELECT DISTINCT + - col0 / - col1 + - - 12 col0 FROM tab1 AS cor0
----
13
15
29

query I rowsort
SELECT 50 * - - 87 FROM tab1 cor0 WHERE 70 * + col2 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL 10 - + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL 10 - + COUNT ( * ) FROM tab2
----
7

query II rowsort
SELECT ALL + col1 AS col0, 84 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
84
67
84
77
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT SUM( ALL + - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3369
SELECT SUM ( ALL + - col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + - 60 AS col0 FROM tab0
----
-5220
-5820
-900

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( - ( + col2 ) * - ( - + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT + 42 * - col1 / CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT + 42 * - col1 / CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + ( ( COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3374
SELECT + ( ( COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + SUM( 33 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + SUM ( 33 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 69 IS NULL
----

query I rowsort
SELECT col2 + col2 + - 5 AS col0 FROM tab1 WHERE NOT ( - col1 ) <= ( NULL )
----

query I rowsort
SELECT + + 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query II rowsort
SELECT - col2 AS col2, + col1 * col0 AS col0 FROM tab1 cor0
----
-59
425
-68
4277
-96
714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 99 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 + - 10 col1 FROM tab1 AS cor0
----
-55
-55
-55

query III rowsort
SELECT DISTINCT col1, 48 * col0 * - - 86 + + - col1 + - + col0 + 23, + - 43 AS col2 FROM tab0 cor0
----
9 values hashing to fc8fff1f60c404037f56d4facbaa7d87

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT - MIN( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - MIN ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT - + MAX( 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT - + MAX ( 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT - COUNT( * ) + + - 45 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - COUNT ( * ) + + - 45 FROM tab0 cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT + col0 DIV col0 DIV - 43 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT + col0 / col0 / - 43 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3391
SELECT DISTINCT + 18 DIV - CAST( + col0 AS SIGNED ) col2 FROM tab0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT DISTINCT + 18 / - CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT DISTINCT COUNT( + col0 ) DIV 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT COUNT ( + col0 ) / 96 FROM tab0
----
0

query I rowsort
SELECT ALL 55 + - ( - + col2 ) FROM tab2
----
113
78
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + COUNT( * ) FROM tab0 WHERE + col1 < + + col2
----
1

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( * ) FROM tab0 WHERE + col1 < + + col2
----
1

query II rowsort
SELECT ALL ( + col0 ) * - - 12 AS col2, col2 AS col1 FROM tab2
----
552
23
768
40
900
58

query I rowsort
SELECT + col2 * - - 0 - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + + col0 - - - col2 FROM tab1 AS cor0 WHERE NOT + col2 IN ( + col1, - col0 )
----
-45
23
26

query I rowsort
SELECT ALL ( - + col2 ) + - + col0 + + - col1 * + 20 * + col2 * - + col1 FROM tab0 AS cor0
----
1784
6167278
88103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3399
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3399
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < col0 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - + col0 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL 92 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL 92 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT + col0 DIV - 2 FROM tab2
----
-23
-32
-37

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + col0 / - 2 FROM tab2
----
-23
-32
-37

query I rowsort
SELECT - 87 + + - col0 FROM tab0
----
-102
-174
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + + COUNT( * ) + - - 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
77

skipif mysql # not compatible
query I rowsort label-3405
SELECT + + COUNT ( * ) + - - 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 col2, 36 AS col1 FROM tab2
----
24
36
24
36
24
36

query I rowsort
SELECT 30 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3408
SELECT DISTINCT col2 * + col0 + - CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3408
SELECT DISTINCT col2 * + col0 + - CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 + - - col1 + + col0 - - ( + + 4 ) col2 FROM tab0 AS cor0
----
183
185
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3410
SELECT - + COUNT( 9 ) - 2 DIV - 19 AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3410
SELECT - + COUNT ( 9 ) - 2 / - 19 AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + + 85 + - 37 AS col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - 17 + - COUNT( * ) + + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - 17 + - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL COUNT( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL COUNT ( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ( - - col1 ), col1 + - + col0 + 83 + + ( + - ( 20 ) ) AS col2 FROM tab1
----
14
26
47
19
5
-17

query I rowsort
SELECT ( - col2 ) * - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT - - col1 DIV 72 + col2 AS col1 FROM tab2 AS cor0
----
23
41
58

skipif mysql # not compatible
query I rowsort label-3416
SELECT - - col1 / 72 + col2 AS col1 FROM tab2 AS cor0
----
23
41
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3418
SELECT - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( * ) * + 89 AS col2 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-3419
SELECT COUNT ( * ) * + 89 AS col2 FROM tab1
----
267

query II rowsort
SELECT col1, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 68 * - 90 FROM tab0
----
6120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL SUM( col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * - 92 * + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL SUM ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * - 92 * + + col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 27 + - col2 AS col1 FROM tab0 cor0
----
-20
-72
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT ALL + 50 DIV col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + 50 / col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col1 * - + 69 AS col2 FROM tab0
----
-1449
-5589
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT 85 + + CAST( + col2 AS SIGNED ) + + col0 * - + ( - col0 ) FROM tab2
----
2224
4221
5768

skipif mysql # not compatible
query I rowsort label-3430
SELECT 85 + + CAST ( + col2 AS INTEGER ) + + col0 * - + ( - col0 ) FROM tab2
----
2224
4221
5768

query I rowsort
SELECT DISTINCT col0 * + ( 12 ) FROM tab0
----
1044
1164
180

query I rowsort
SELECT + + col1 FROM tab1 WHERE col2 <> col0 - - + 83 * col1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 18 IN ( + 74 + - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 22 * ( - col2 ) FROM tab1
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + MAX( - col0 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + MAX ( - col0 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= - - ( + - 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT ( + ( - - col2 ) ) + - - col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT - 89 AS col2, col2 AS col2, + 7 AS col1 FROM tab2 cor0
----
9 values hashing to 8358456706053762c30fcdffcf11ca16

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - - MAX( ALL - 9 ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3440
SELECT - - MAX ( ALL - 9 ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3441
SELECT DISTINCT + - col2 + + - CAST( NULL AS SIGNED ) AS col2, col1 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3441
SELECT DISTINCT + - col2 + + - CAST ( NULL AS INTEGER ) AS col2, col1 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL + 61 - - COUNT( * ) AS col1 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + 61 - - COUNT ( * ) AS col1 FROM tab1
----
64

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE col0 * + + col1 + + col1 < ( NULL ) OR - col2 NOT IN ( + col1, col2 + ( 72 ), + col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3444
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT - col1 + - - 19 FROM tab0 AS cor0
----
-2
-62
18

query I rowsort
SELECT + col1 + - 70 AS col2 FROM tab1 AS cor0
----
-23
-56
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT - CAST( - - SUM( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CAST ( - - SUM ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 69 col0 FROM tab0 AS cor0
----
1449
5589
69

query II rowsort
SELECT ALL - 56 * + col1, col0 FROM tab1 AS cor0
----
-2632
91
-280
85
-784
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT COUNT( * ) AS col2, 95 FROM tab2
----
3
95

skipif mysql # not compatible
query II rowsort label-3450
SELECT COUNT ( * ) AS col2, 95 FROM tab2
----
3
95

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <> + col2 )
----

query I rowsort
SELECT 77 * col0 AS col1 FROM tab2 AS cor0
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT COUNT( * ) * + 92 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3453
SELECT COUNT ( * ) * + 92 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3454
SELECT + - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( NOT col2 / - col2 / + + col2 BETWEEN + 44 AND NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = + 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT - 25 + + col1 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL - + 1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + 96 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT + SUM( ALL + col0 ) + ( + COUNT( ALL 44 ) ) AS col0 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + SUM ( ALL + col0 ) + ( + COUNT ( ALL 44 ) ) AS col0 FROM tab2 AS cor0
----
188

query I rowsort
SELECT col1 * - + col0 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 28 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 34 + + 4 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * + 55 + + col1 + - - 17 AS col0 FROM tab2 AS cor0
----
-2462
-3426
-4041

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT DISTINCT + col2 DIV - - col0 - ( col1 ) + + 57 AS col0 FROM tab0
----
-21
36
57

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + col2 / - - col0 - ( col1 ) + + 57 AS col0 FROM tab0
----
-21
36
57

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 / + col0 = - - col0
----
15
87
97

query II rowsort
SELECT DISTINCT - 58 * col0 AS col2, col1 AS col1 FROM tab0 cor0
----
-5046
21
-5626
1
-870
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 * + + col1 - + - 69 * - + 66 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 * + + col1 - + - 69 * - + 66 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT 7 DIV - + MIN( + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT 7 / - + MIN ( + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * + col1 + - col2 FROM tab1 AS cor0
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + - MIN( ALL - col2 ) * - COUNT( * ) + - - ( + + SUM( - col1 ) ) - + - 64 + 79 FROM tab1 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + - MIN ( ALL - col2 ) * - COUNT ( * ) + - - ( + + SUM ( - col1 ) ) - + - 64 + 79 FROM tab1 AS cor0
----
-211

query I rowsort
SELECT + + 84 AS col0 FROM tab1 WHERE NOT + col0 * + 80 + + ( + - ( - - 26 ) ) * + col1 IS NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + COUNT( * ) * + 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3475
SELECT + COUNT ( * ) * + 29 FROM tab1
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 12 ) FROM tab2
----
12

query II rowsort
SELECT DISTINCT 42 AS col0, ( - + col0 ) AS col2 FROM tab1 WHERE + + 92 > + + 47
----
42
-51
42
-85
42
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT ( ( + 72 ) ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 * - col1 + ( - 10 ) AND - - col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE col2 + + col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL MAX( - 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL MAX ( - 33 ) FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 75 > ( + 91 - - col1 * + - col2 )
----
2

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 75 > ( + 91 - - col1 * + - col2 )
----
2

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( + - col1 ) / + col1 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3485
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * + 4 col1 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT + col1 * + 92 * + 54 AS col1 FROM tab0 AS cor0
----
104328
402408
4968

query II rowsort
SELECT - col0 AS col0, 15 FROM tab2
----
-46
15
-64
15
-75
15

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT DISTINCT CAST( - 2 AS SIGNED ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT CAST ( - 2 AS INTEGER ) AS col0 FROM tab0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL + MIN( CAST( - col0 AS SIGNED ) ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + MIN ( CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL + SUM( - - col2 ) + 92 col2 FROM tab0 cor0
----
248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3494
SELECT ALL + SUM ( - - col2 ) + 92 col2 FROM tab0 cor0
----
248

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT DISTINCT col0 + - ( + 23 ) DIV col2 * col1 DIV + 64 * + + col0 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT col0 + - ( + 23 ) / col2 * col1 / + 64 * + + col0 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - 89 - 37 * + COUNT( * ) AS col0 FROM tab0
----
-200

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - 89 - 37 * + COUNT ( * ) AS col0 FROM tab0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT COUNT( * ) - 80 * + 85 + - COUNT( * ) AS col1 FROM tab0 WHERE + col1 IS NULL
----
-6800

skipif mysql # not compatible
query I rowsort label-3498
SELECT COUNT ( * ) - 80 * + 85 + - COUNT ( * ) AS col1 FROM tab0 WHERE + col1 IS NULL
----
-6800

query I rowsort
SELECT col0 + - + 70 + + - 96 + - col0 * - 66 AS col1 FROM tab1
----
3251
5529
5931

query I rowsort
SELECT ALL col2 * - col1 + 82 AS col2 FROM tab0
----
-128
-17
-3725

query I rowsort
SELECT + 46 FROM tab1 WHERE - col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0
----
72

query I rowsort
SELECT DISTINCT 77 * + col2 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
377088
386214
476544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3504
SELECT - COUNT( * ) * + CAST( - + ( + COUNT( * ) ) AS SIGNED ), CAST( NULL AS SIGNED ) * 70 AS col2 FROM tab2 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3504
SELECT - COUNT ( * ) * + CAST ( - + ( + COUNT ( * ) ) AS INTEGER ), CAST ( NULL AS INTEGER ) * 70 AS col2 FROM tab2 AS cor0
----
9
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col2 * - 76 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT - - 6 FROM tab0 AS cor0 WHERE NOT NULL = col0 - + col2
----

query I rowsort
SELECT + col1 * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + col2 * col2 + col2 DIV col1 col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3509
SELECT + col2 * col2 + col2 / col1 col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3510
SELECT col0 AS col1, col1 + + 76 + col0 + + col0 * + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3510
SELECT col0 AS col1, col1 + + 76 + col0 + + col0 * + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - 36 * + col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT ALL + 31 DIV + - MIN( col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + 31 / + - MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - + 10 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + SUM( - - 68 ) AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3514
SELECT + SUM ( - - 68 ) AS col2 FROM tab2 AS cor0
----
204

query II rowsort
SELECT DISTINCT 76 AS col1, 43 AS col1 FROM tab2
----
76
43

query II rowsort
SELECT ALL - 56 AS col1, - col2 * + col0 AS col2 FROM tab1
----
-56
-4896
-56
-5015
-56
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT COUNT( 23 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3517
SELECT COUNT ( 23 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT col2 DIV col2 * - + col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT col2 / col2 * - + col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT ALL col2 DIV 77 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL col2 / 77 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + 50 * - 4 FROM tab1
----
-200
-200
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT DISTINCT col2 DIV ( col0 ) AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT col2 / ( col0 ) AS col1 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT - 44 * - CAST( NULL AS SIGNED ) / - + col2 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 44 * - CAST ( NULL AS INTEGER ) / - + col2 + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + col1 AS col0 FROM tab2 cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + col1 AS col0 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT + + 61 * + 79 + - - col2 * + col0 * - - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
295655
29894
73363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( + 77 ) ) col1 FROM tab1 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT COUNT( * ) + + + 63 * + COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT COUNT ( * ) + + + 63 * + COUNT ( * ) FROM tab2 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL 45 - + COUNT( * ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL 45 - + COUNT ( * ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT col2 * 22 + + + col0 * - col0 FROM tab2 AS cor0
----
-1610
-3216
-4349

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL - SUM( DISTINCT + col2 ) + 23 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - SUM ( DISTINCT + col2 ) + 23 FROM tab2 AS cor0
----
-98

query II rowsort
SELECT 57 AS col1, col0 AS col2 FROM tab0
----
57
15
57
87
57
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - ( col0 ) + col1 col1 FROM tab1
----
-14
-37
-47
-44
-5
-80

query I rowsort
SELECT DISTINCT 55 + col2 FROM tab1
----
114
123
151

query I rowsort
SELECT 54 - - col0 FROM tab1
----
105
139
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT - MIN( - 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - MIN ( - 37 ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT 62 - CAST( NULL AS SIGNED ) + + - 73 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT 62 - CAST ( NULL AS INTEGER ) + + - 73 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + - ( col0 ) + + - col2 * - 27 FROM tab1
----
1683
1974
2657

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT col2 - col2 DIV - 72 - col1 + + col1 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-3539
SELECT col2 - col2 / - 72 - col1 + + col1 AS col0 FROM tab1
----
59
68
97

query I rowsort
SELECT - col0 + - ( + col0 ) AS col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT 3 + - col2 AS col2 FROM tab2
----
-20
-37
-55

query I rowsort
SELECT ALL ( + ( col2 ) ) * - 96 * - + col1 - - 55 + - col2 AS col1 FROM tab1
----
128983
28316
306803

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) >= NULL AND ( NULL ) NOT IN ( + + col2 / 40 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3544
SELECT - MAX( - 35 ) + + 54, - CAST( NULL AS SIGNED ) * 32 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3544
SELECT - MAX ( - 35 ) + + 54, - CAST ( NULL AS INTEGER ) * 32 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
89
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT + 54 >= - - col2 ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + 8 ) AS col0 FROM tab1
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col0 FROM tab2
----
15
15
15

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE NOT + col1 * - col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - COUNT( * ) * + 68 AS col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - COUNT ( * ) * + 68 AS col2 FROM tab1 AS cor0
----
-204

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < - 14 + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COUNT( * ) * - COUNT( 58 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( * ) * - COUNT ( 58 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL COUNT( DISTINCT + 14 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3554
SELECT ALL COUNT ( DISTINCT + 14 ) col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + - 96 * - - col2 * + col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * 57 col0 FROM tab2
----
4161

query I rowsort
SELECT ALL col2 * - - col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT col1 * + col2 FROM tab1 WHERE NOT NULL > 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - MAX( + 5 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3559
SELECT - MAX ( + 5 ) FROM tab0
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - 67 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - 85 AS col2 FROM tab0
----
-3995
-8415
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL MAX( DISTINCT col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL MAX ( DISTINCT col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - COUNT( * ) + - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3564
SELECT DISTINCT + CAST( - ( + col0 ) AS SIGNED ), - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

skipif mysql # not compatible
query II rowsort label-3564
SELECT DISTINCT + CAST ( - ( + col0 ) AS INTEGER ), - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT + CAST( NULL AS SIGNED ) * AVG ( ALL - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT + CAST ( NULL AS INTEGER ) * AVG ( ALL - col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 53 * col2 * - col2 + + 86 AS col1 FROM tab1
----
-184407
-244986
-488362

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT + MIN( - 19 ) col2 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT DISTINCT + MIN ( - 19 ) col2 FROM tab1
----
-19

query I rowsort
SELECT col2 + + + ( + 46 ) AS col2 FROM tab1 AS cor0
----
105
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + + MIN( - - col2 ) + + COUNT( * ) + + - 36 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + + MIN ( - - col2 ) + + COUNT ( * ) + + - 36 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - 6 * - - COUNT( * ) + + - 18 AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - 6 * - - COUNT ( * ) + + - 18 AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT - 39 + + col0 + - + 32 + + - 60 + - col2 DIV - 51 + + - col1 FROM tab0 AS cor0
----
-197
-34
-65

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 39 + + col0 + - + 32 + + - 60 + - col2 / - 51 + + - col1 FROM tab0 AS cor0
----
-197
-34
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + 43 + + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 43 + + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT + COUNT( ALL - col2 ) + ( 48 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + COUNT ( ALL - col2 ) + ( 48 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT col1 + + + col0 + col2 AS col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab2 WHERE NULL < NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3575
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NULL < NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT - col2 DIV - + col0 + - col0 + - col2 AS col1 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-3576
SELECT - col2 / - + col0 + - col0 + - col2 AS col1 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL COUNT( ALL col2 ) - - ( - - 29 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL COUNT ( ALL col2 ) - - ( - - 29 ) FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * 48 col0 FROM tab0
----
-33840
-41760
-460944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col0 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT CAST( NULL AS SIGNED ) * - col0 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT CAST ( NULL AS INTEGER ) * - col0 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL MIN( - 55 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL MIN ( - 55 ) FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3582
SELECT ALL + 24 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-3582
SELECT ALL + 24 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24
3

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT - 67 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 / + col1 >= - + col2 * + col0 * ( + + col2 ) * - CAST( NULL AS SIGNED ) + - 67
----

skipif mysql # not compatible
query I rowsort label-3584
SELECT - 67 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 / + col1 >= - + col2 * + col0 * ( + + col2 ) * - CAST ( NULL AS INTEGER ) + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT + CAST( NULL AS SIGNED ) * + col1 / - 36 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT + CAST ( NULL AS INTEGER ) * + col1 / - 36 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT COUNT( 55 ) * MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT COUNT ( 55 ) * MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 * + col0 AS col1, + 34 AS col2 FROM tab1
----
4896
34
5015
34
6188
34

query I rowsort
SELECT ALL col2 * + + 62 FROM tab1
----
3658
4216
5952

query III rowsort
SELECT ALL * FROM tab2 WHERE 57 + + ( - - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT + 36 DIV ( - col2 ) AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 36 / ( - col2 ) AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT 89 + - 39 - + - 23 FROM tab0
----
73

query I rowsort
SELECT ALL + 57 * col0 FROM tab2
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( * ) + 5 AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) + 5 AS col1 FROM tab0
----
8

query I rowsort
SELECT ALL + - 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL OR NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT DISTINCT - col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT col2 * - + 41 + - col0 + 64 * + col1 AS col0 FROM tab1 AS cor0
----
-2184
-3091
129

query I rowsort
SELECT ALL 0 * + col1 + + 46 + + col1 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT DISTINCT col0 + 72 AS col2 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT ALL 40 * - - col2 AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND - col1
----
1600
2320
920

query I rowsort
SELECT ALL - col2 + - 78 AS col0 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT ALL - - 10 * + col2 + + col0 + + 97 - + col0 + col2 * - col2 FROM tab0 AS cor0
----
-1642
-8714
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + 45 * - 47 - - COUNT( * ) FROM tab1
----
-2112

skipif mysql # not compatible
query I rowsort label-3605
SELECT + 45 * - 47 - - COUNT ( * ) FROM tab1
----
-2112

query I rowsort
SELECT col2 - - ( - + col1 ) AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL 80 * - + ( - col2 ) AS col2 FROM tab2
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + SUM( + 15 ) * + + 19 FROM tab2
----
855

skipif mysql # not compatible
query I rowsort label-3608
SELECT + SUM ( + 15 ) * + + 19 FROM tab2
----
855

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT col1 * - ( col2 ) + col0 + CAST( - col1 AS SIGNED ), + 4 DIV - col2 col2 FROM tab2 AS cor0
----
-1178
0
-3093
0
-3878
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3609
SELECT DISTINCT col1 * - ( col2 ) + col0 + CAST ( - col1 AS INTEGER ), + 4 / - col2 col2 FROM tab2 AS cor0
----
-1178
0
-3093
0
-3878
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT ALL col1 DIV + - col2 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL col1 / + - col2 AS col1 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + 38 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - 53 * + - ( + - col0 ) FROM tab0 AS cor0
----
-4611
-5141
-795

query I rowsort
SELECT ALL - + 87 * col2 + + 48 + + col1 AS col2 FROM tab1 AS cor0
----
-5080
-5821
-8290

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN - 31 - - - col2 - - 90 * CAST( NULL AS SIGNED ) AND - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN - 31 - - - col2 - - 90 * CAST ( NULL AS INTEGER ) AND - 26 )
----
0

query I rowsort
SELECT + col0 * + 93 AS col1 FROM tab2 AS cor0
----
4278
5952
6975

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ALL - 50 DIV + col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - 50 / + col2 FROM tab0
----
-1
-5
0

query I rowsort
SELECT + 33 * - col1 AS col2 FROM tab0
----
-2673
-33
-693

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT - col2 AS col0, 13 FROM tab0
----
-10
13
-47
13
-99
13

query I rowsort
SELECT + ( col0 ) * - + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col2 * - col2 + + col1 AS col1 FROM tab2
----
-1523
-3297
-478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE - col0 <= + col1 * + col0 * - + col0 + - col2 * - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE - col0 <= + col1 * + col0 * - + col0 + - col2 * - - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3624
SELECT col2, col1 / + - col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3624
SELECT col2, col1 / + - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT + col2 AS col0, 18 + col0 AS col0 FROM tab2 AS cor0
----
23
64
40
82
58
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3626
SELECT ALL + ( - MIN( - col2 ) ) FROM tab1 AS cor0 WHERE + CAST( + col2 AS DECIMAL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + ( - MIN ( - col2 ) ) FROM tab1 AS cor0 WHERE + CAST ( + col2 AS REAL ) IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - COUNT( ALL - 95 ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3627
SELECT DISTINCT - COUNT ( ALL - 95 ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT col2 * + ( 20 ) FROM tab1 AS cor0 WHERE - 24 NOT BETWEEN ( col2 ) AND NULL
----
1180
1360
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT CAST( NULL AS SIGNED ) + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT CAST ( NULL AS INTEGER ) + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 71 + - col1 FROM tab1 cor0
----
-118
-76
-85

query I rowsort
SELECT DISTINCT col0 * - col0 + - 63 FROM tab1 AS cor0
----
-2664
-7288
-8344

query I rowsort
SELECT DISTINCT col0 - - + 5 FROM tab2 AS cor0
----
51
69
80

query I rowsort
SELECT - col2 + - - 26 * - + col0 AS col1 FROM tab2 AS cor0
----
-1219
-1704
-2008

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT + ( + 84 ) DIV - 52 + - - col2 * - 20 AS col1 FROM tab1 AS cor0
----
-1181
-1361
-1921

skipif mysql # not compatible
query I rowsort label-3635
SELECT + ( + 84 ) / - 52 + - - col2 * - 20 AS col1 FROM tab1 AS cor0
----
-1181
-1361
-1921

query II rowsort
SELECT DISTINCT col2, ( - - 30 ) * + 81 + + col2 - + ( - col2 ) AS col1 FROM tab1
----
59
2548
68
2566
96
2622

query I rowsort
SELECT ALL - col1 * + + col1 AS col0 FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT - - col0 + - col0 * + + col1 * + col1 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 75 * + 95 AS col0 FROM tab1
----
-7125
-7125
-7125

query I rowsort
SELECT col0 * + + col1 * ( - col1 ) AS col2 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT DISTINCT + col1 DIV col1 col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3642
SELECT DISTINCT + col1 / col1 col1 FROM tab0
----
1

query I rowsort
SELECT + - 91 * col1 * + 30 AS col1 FROM tab2 AS cor0
----
-139230
-182910
-210210

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL COUNT( * ) * SUM( - col1 ) col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3644
SELECT ALL COUNT ( * ) * SUM ( - col1 ) col1 FROM tab2 AS cor0
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT DISTINCT + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT - MAX( DISTINCT col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - MAX ( DISTINCT col2 ) FROM tab2
----
-58

query I rowsort
SELECT col1 * - ( + col1 ) + + - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 84 + - COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3648
SELECT 84 + - COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT - - col0 + 61 AS col2 FROM tab2 AS cor0
----
107
125
136

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - 78 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 BETWEEN 78 AND - 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT - - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - 57 FROM tab0 AS cor0 WHERE NOT + 3 * 74 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) + + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL - ( + MIN( + - 53 ) ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - ( + MIN ( + - 53 ) ) FROM tab0
----
53

query II rowsort
SELECT DISTINCT ( + col0 ) AS col2, - col1 + 23 FROM tab2
----
46
-28
64
-54
75
-44

query I rowsort
SELECT DISTINCT + 32 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-67
2545
662

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT - MIN( + + col0 ) + - MIN( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - MIN ( + + col0 ) + - MIN ( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + + ( + col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL + col2 + col0 * + col1 FROM tab0 cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + MIN( - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + MIN ( - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + COUNT( * ) * - + SUM( - 4 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3663
SELECT + COUNT ( * ) * - + SUM ( - 4 ) FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----

query I rowsort
SELECT DISTINCT + col1 * - 96 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 59 * - ( + + ( 4 ) ) + + 45 + 92 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT 98 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3667
SELECT 98 / + - col0 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 8 / + col0 / - + 3 + - col2 * 28 + col1 - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT MIN( col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3669
SELECT MIN ( col2 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT SUM( 10 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3670
SELECT SUM ( 10 ) FROM tab2
----
30

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 BETWEEN NULL AND - col0
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL ( - - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL ( - - COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( * ) * + SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) * + SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + - COUNT( + - ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + - COUNT ( + - ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( + 60 ) FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - - col0 * + 19 AS col1 FROM tab1 AS cor0
----
1615
1729
969

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT ALL COUNT( * ), + COUNT( * ) * - COUNT( 7 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-81

skipif mysql # not compatible
query II rowsort label-3677
SELECT ALL COUNT ( * ), + COUNT ( * ) * - COUNT ( 7 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + SUM( ALL + 43 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT + SUM ( ALL + 43 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
387

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col1 FROM tab0 cor0 WHERE NOT + col0 BETWEEN NULL AND col1
----
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL COUNT( * ) + + - 97 + - MAX( ALL 88 ) * + 17 FROM tab1 AS cor0
----
-1590

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL COUNT ( * ) + + - 97 + - MAX ( ALL 88 ) * + 17 FROM tab1 AS cor0
----
-1590

query I rowsort
SELECT col2 * + col1 + + col1 + 81 * - col0 FROM tab0 AS cor0
----
-6816
-7757
2673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col2 FROM tab2 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - + col2 + - 51 DIV + 7 FROM tab0 AS cor0
----
-106
-17
-54

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - + col2 + - 51 / + 7 FROM tab0 AS cor0
----
-106
-17
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - 67 * - - 64 * + CAST( COUNT( * ) AS SIGNED ) + - 10 FROM tab1 AS cor0
----
-12874

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 67 * - - 64 * + CAST ( COUNT ( * ) AS INTEGER ) + - 10 FROM tab1 AS cor0
----
-12874

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT col0 DIV col0 * - col0 + + - 13 FROM tab2
----
-59
-77
-88

skipif mysql # not compatible
query I rowsort label-3688
SELECT col0 / col0 * - col0 + + - 13 FROM tab2
----
-59
-77
-88

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab0 WHERE NOT 9 * + col2 * - 70 IS NULL
----
29

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 / col1 / + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COUNT( * ) AS col1 FROM tab0 WHERE col0 NOT BETWEEN - col1 AND + 76
----
2

skipif mysql # not compatible
query I rowsort label-3691
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE col0 NOT BETWEEN - col1 AND + 76
----
2

query I rowsort
SELECT DISTINCT + 86 + + col2 AS col0 FROM tab0
----
133
185
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT CAST( - 26 AS SIGNED ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT CAST ( - 26 AS INTEGER ) FROM tab2
----
-26

query I rowsort
SELECT col1 + - + 30 AS col2 FROM tab0
----
-29
-9
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3695
SELECT + MIN( ALL - col1 ) DIV CAST( - 83 AS SIGNED ) * - 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT + MIN ( ALL - col1 ) / CAST ( - 83 AS INTEGER ) * - 91 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE ( NOT + col0 IS NULL )
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * 18 + + 66 + - 38 + - - 44 FROM tab2 AS cor0
----
1116
486
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT - - col1 FROM tab0 AS cor0 WHERE ( NOT + 51 BETWEEN - - col2 * - 7 AND col1 * - CAST( + 58 AS SIGNED ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3698
SELECT - - col1 FROM tab0 AS cor0 WHERE ( NOT + 51 BETWEEN - - col2 * - 7 AND col1 * - CAST ( + 58 AS INTEGER ) )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL - col0 + 81 + - - 9 DIV col2 * + + col1 AS col1 FROM tab2 AS cor0
----
17
35
6

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - col0 + 81 + - - 9 / col2 * + + col1 AS col1 FROM tab2 AS cor0
----
17
35
6

query II rowsort
SELECT + 73 AS col2, - ( + col2 ) AS col2 FROM tab2 AS cor0
----
73
-23
73
-40
73
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT - 31 DIV col1 * + 26 FROM tab1 AS cor0
----
-156
-52
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - 31 / col1 * + 26 FROM tab1 AS cor0
----
-156
-52
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 47 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, + col2, col1 + + - col0, + col1 )
----

query I rowsort
SELECT + 63 * + + col1 * + 46 FROM tab2 cor0
----
147798
194166
223146

query I rowsort
SELECT - - ( + - ( + + 86 ) ) AS col1 FROM tab2 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ( + + 45 ) DIV col0 * - 4 * - - col2 * - 97 + + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3707
SELECT ( + + 45 ) / col0 * - 4 * - - col2 * - 97 + + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL 58 AS col0, col0 AS col0 FROM tab2 AS cor0
----
58
46
58
64
58
75

query I rowsort
SELECT + + 87 * - - col2 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT - - 33 * col2 FROM tab1 AS cor0
----
1947
2244
3168

query I rowsort
SELECT ALL + col2 + - + 75 AS col2 FROM tab1 AS cor0
----
-16
-7
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3713
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 4 * ( + + col0 ) BETWEEN + 7 AND - + CAST( + 97 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3713
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 4 * ( + + col0 ) BETWEEN + 7 AND - + CAST ( + 97 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT - ( MAX( ALL + 13 ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3714
SELECT - ( MAX ( ALL + 13 ) ) FROM tab2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT - ( + ( 36 ) ) + MAX( + col0 ) * + CAST( - 50 AS SIGNED ) FROM tab0
----
-4886

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - ( + ( 36 ) ) + MAX ( + col0 ) * + CAST ( - 50 AS INTEGER ) FROM tab0
----
-4886

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab0 WHERE ( + col0 + col0 ) IS NOT NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT 71 * + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT 71 * + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 - col0 / - col0 FROM tab0 WHERE ( - col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col1 * col2 AND col1
----

query I rowsort
SELECT 68 + col0 * 4 FROM tab1
----
272
408
432

query I rowsort
SELECT ALL 22 AS col0 FROM tab2
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT + col2 DIV - col0 + col1 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-3722
SELECT + col2 / - col0 + col1 FROM tab0
----
0
21
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - col1 ) + col1 col0 FROM tab1
----
1358
300
3243

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= ( - col0 + - 9 )
----

query I rowsort
SELECT ALL - 81 + ( col1 ) FROM tab1
----
-34
-67
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 78 col2 FROM tab0
----
-1170
-6786
-7566

query III rowsort
SELECT * FROM tab1 WHERE col1 >= - ( + 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 81 + - 26 FROM tab0
----
-107
-107
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT + 36 + - COUNT( * ) DIV + SUM( DISTINCT 73 * - col1 + col0 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 36 + - COUNT ( * ) / + SUM ( DISTINCT 73 * - col1 + col0 ) FROM tab2
----
36

query I rowsort
SELECT ALL ( - col1 ) * + col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT ( 75 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * 45 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3734
SELECT * FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN col1 + CAST( + col2 + - col0 AS SIGNED ) AND ( CAST( NULL AS SIGNED ) * - 60 + col0 )
----

skipif mysql # not compatible
query III rowsort label-3734
SELECT * FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN col1 + CAST ( + col2 + - col0 AS INTEGER ) AND ( CAST ( NULL AS INTEGER ) * - 60 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 44 col1 FROM tab0
----
2068
4356
440

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab2 WHERE NULL IN ( - 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( + 15 ) + + 59 * 90 FROM tab1
----
5325
5325
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT ALL col0 DIV 41 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL col0 / 41 AS col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT CAST( 91 AS SIGNED ) + - col2 FROM tab1
----
-5
23
32

skipif mysql # not compatible
query I rowsort label-3740
SELECT CAST ( 91 AS INTEGER ) + - col2 FROM tab1
----
-5
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT MAX( ALL col0 ) + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3741
SELECT MAX ( ALL col0 ) + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 16 * + col1 + + ( 33 - col2 ) FROM tab1
----
161
54
717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( 64 ) * + col1 col1 FROM tab0
----
1354
163
5231

query I rowsort
SELECT + col2 * + col2 + + col2 AS col1 FROM tab1 cor0
----
3540
4692
9312

query I rowsort
SELECT ALL col0 + 1 * - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + 4 AS col2 FROM tab1
----
55
89
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 70 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 70 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT 57 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT 57 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( - col1 + ( col0 ) ) AND ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( - col1 + ( col0 ) ) AND ( col1 )
----
0

query I rowsort
SELECT DISTINCT - 14 * col1 FROM tab2 cor0
----
-1078
-714
-938

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT - - ( 49 ) FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT - MAX( 11 ) * - 54 FROM tab0 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-3758
SELECT - MAX ( 11 ) * - 54 FROM tab0 AS cor0
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT 18 DIV + 76 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT 18 / + 76 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT ALL ( - + 63 ) DIV 71 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL ( - + 63 ) / 71 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT DISTINCT - col1 DIV 2 * - col0 FROM tab1
----
170
2093
357

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - col1 / 2 * - col0 FROM tab1
----
170
2093
357

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT col2 DIV - 44 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3762
SELECT col2 / - 44 col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + SUM( ALL 74 ) AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-3763
SELECT + SUM ( ALL 74 ) AS col2 FROM tab2
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3764
SELECT * FROM tab0 WHERE NOT + col2 * CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3764
SELECT * FROM tab0 WHERE NOT + col2 * CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL - CAST( - MAX( ALL col1 ) AS SIGNED ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - CAST ( - MAX ( ALL col1 ) AS INTEGER ) FROM tab2
----
77

query I rowsort
SELECT - col0 + - col2 + + col1 AS col2 FROM tab2
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT 8 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3767
SELECT 8 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 41 + - col2 AS col0 FROM tab2 AS cor0
----
-17
1
18

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> + 84
----

query III rowsort
SELECT * FROM tab0 WHERE 7 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + 95 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3774
SELECT DISTINCT CAST( col2 AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) / + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT + col0 DIV - col2 + - - col0 col1 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT + col0 / - col2 + - - col0 col1 FROM tab0 AS cor0
----
15
79
97

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE - 21 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + 22 AS col1 FROM tab1 AS cor0
----
-29
-63
-69

query I rowsort
SELECT + - 51 + + 86 AS col0 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT - - ( + - 5 ) + + + 79 AS col2 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT ALL - - col0 + + 58 AS col1 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT + + 12 + 89 AS col1 FROM tab1 AS cor0
----
101
101
101

query I rowsort
SELECT - 85 + + col0 FROM tab2 AS cor0
----
-10
-21
-39

query I rowsort
SELECT ALL - col0 + + 60 AS col1 FROM tab1
----
-25
-31
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT NULL IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT COUNT( * ) FROM tab0 WHERE + col1 / + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3785
SELECT COUNT ( * ) FROM tab0 WHERE + col1 / + col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col2 * + 8 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2 - + + col1, + 10 * + + col0 AS col2 FROM tab1
----
21
910
54
850
82
510

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT DISTINCT + ( COUNT( * ) ) AS col1, 90 FROM tab1
----
3
90

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, 90 FROM tab1
----
3
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT + MAX( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3790
SELECT + MAX ( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

query II rowsort
SELECT - - col2 - col0, + col0 + - 69 AS col0 FROM tab2 AS cor0
----
-17
6
-23
-23
-24
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 35 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE + + col0 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3793
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col1 + col2 + + col1 * 44 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col0 col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + 87 * - ( 57 ) + - - col2 + col2 FROM tab0 cor0
----
-4761
-4865
-4939

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3798
SELECT COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3798
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
3
NULL

query II rowsort
SELECT ALL 5, + 85 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
5
-179860
5
-348160
5
-478125

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - ( + - 24 ) AS col2 FROM tab0 cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL - col2 DIV 42 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - col2 / 42 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL + 87 * - COUNT( * ) FROM tab2 WHERE NOT + col0 * - col1 + col1 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + 87 * - COUNT ( * ) FROM tab2 WHERE NOT + col0 * - col1 + col1 / - col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL col0, 38 AS col0 FROM tab1
----
51
38
85
38
91
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col1 + - 42 * + 66 AS col2 FROM tab0
----
15
-2691
87
-2751
97
-2771

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3806
SELECT + col0, + CAST( + + 32 AS SIGNED ) * - col1 + - ( col2 ) FROM tab0
----
15
-2639
87
-682
97
-131

skipif mysql # not compatible
query II rowsort label-3806
SELECT + col0, + CAST ( + + 32 AS INTEGER ) * - col1 + - ( col2 ) FROM tab0
----
15
-2639
87
-682
97
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT MAX( + col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT MAX ( + col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + COUNT( * ) * COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3808
SELECT + COUNT ( * ) * COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + COUNT( * ) * - + 93 FROM tab2 AS cor0 WHERE - col0 BETWEEN + col1 AND 5
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + COUNT ( * ) * - + 93 FROM tab2 AS cor0 WHERE - col0 BETWEEN + col1 AND 5
----
0

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT 54 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + + 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - col2 * 7 * - ( col0 ) + - col1 + - + col1 FROM tab0 AS cor0
----
4773
6048
67219

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 BETWEEN col2 * + 54 - + 17 + + ( - col1 ) + + col1 AND 20
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - 79 - - - col1 AND - + col0
----

query I rowsort
SELECT DISTINCT + col0 * - 77 - - col0 FROM tab0 AS cor0
----
-1140
-6612
-7372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3816
SELECT col2 * - 78 - - ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT col2 * - 78 - - ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 22 * - col0 - - col2, col1 * + + col2 AS col2 FROM tab0
----
-1904
210
-2035
99
-283
3807

query I rowsort
SELECT ALL - col1 + - + 30 FROM tab1
----
-35
-44
-77

query I rowsort
SELECT DISTINCT + 25 - ( - + col2 ) * col0 + - col2 FROM tab1
----
4825
4981
6145

query I rowsort
SELECT ALL col1 * + col0 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - ( + - ( - col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - - 15 AS col1 FROM tab0
----
114
25
62

query I rowsort
SELECT 60 + - col1 AS col1 FROM tab1
----
13
46
55

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 * - - 27 + - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-72
-21
557
-81
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL MAX( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT 27 DIV + 45 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT 27 / + 45 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL COUNT( DISTINCT - 98 ) * ( - + 24 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL COUNT ( DISTINCT - 98 ) * ( - + 24 ) FROM tab0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 * - col0 col2 FROM tab2
----
2162
3008
3525

query II rowsort
SELECT - ( - - col0 ) AS col2, - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-51
-4896
-85
-5015
-91
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 22, + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL + - ( - col1 ) + + + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + - ( - col1 ) + + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND - - 67 / - 87 + - - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * 85 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col0 ) col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, - 43 * + col2 + - 11 + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT COUNT( * ) * - + 77, 77 AS col0 FROM tab2 AS cor0
----
-231
77

skipif mysql # not compatible
query II rowsort label-3838
SELECT COUNT ( * ) * - + 77, 77 AS col0 FROM tab2 AS cor0
----
-231
77

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - SUM( DISTINCT + ( col1 ) ) FROM tab2 WHERE NOT - - 75 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-3841
SELECT - SUM ( DISTINCT + ( col1 ) ) FROM tab2 WHERE NOT - - 75 IS NULL
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - col1 DIV + - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3843
SELECT - col1 / + - col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT 62 * - 85 * 90 + + 30 * COUNT( - + 35 ) AS col2 FROM tab1
----
-474210

skipif mysql # not compatible
query I rowsort label-3844
SELECT 62 * - 85 * 90 + + 30 * COUNT ( - + 35 ) AS col2 FROM tab1
----
-474210

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL + COUNT( * ) * - + 63 AS col2 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL + COUNT ( * ) * - + 63 AS col2 FROM tab1
----
-189

query I rowsort
SELECT DISTINCT 96 + - 73 FROM tab0
----
23

query I rowsort
SELECT DISTINCT + col2 * + + 43 FROM tab1
----
2537
2924
4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL - - CAST( NULL AS SIGNED ) * - 95 FROM tab1 WHERE + 8 + 66 + - 96 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 95 FROM tab1 WHERE + 8 + 66 + - 96 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + COUNT( DISTINCT 24 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COUNT ( DISTINCT 24 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 87 + - col1 - + 64 * - - col0 * - col1 FROM tab1 AS cor0
----
27282
273768
45769

query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 * col1 - - 72 AS col1 FROM tab0 AS cor0
----
268
308454
4569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 6 col0, 88 - ( + col0 ) + - 75 FROM tab1 AS cor0
----
6
-38
6
-72
6
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 col2 FROM tab2 cor0
----
74
74
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT DISTINCT 71 + - + 10 DIV + 52 * - - MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT 71 + - + 10 / + 52 * - - MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
71

query II rowsort
SELECT ALL + col0 AS col1, + col0 + - col1 AS col1 FROM tab0
----
15
-66
87
66
97
96

query I rowsort
SELECT - 83 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN + 78 AND + + col0
----

query I rowsort
SELECT + + 96 + - 98 * - col0 * + 11 * 76 FROM tab1 AS cor0
----
4178424
6963976
7455544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3859
SELECT DISTINCT - + col0 DIV - CAST( + 33 AS SIGNED ) + + 41, 26 AS col2 FROM tab0 AS cor0
----
41
26
43
26

skipif mysql # not compatible
query II rowsort label-3859
SELECT DISTINCT - + col0 / - CAST ( + 33 AS INTEGER ) + + 41, 26 AS col2 FROM tab0 AS cor0
----
41
26
43
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + col2 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL col0 * - CAST( - col1 AS SIGNED ) + ( ( + col2 ) ) FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL col0 * - CAST ( - col1 AS INTEGER ) + ( ( + col2 ) ) FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT - ( col2 ) + + col0 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT 50 + + - col0 AS col2 FROM tab1 AS cor0
----
-1
-35
-41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 34 NOT IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1, col1 * + ( + 71 ), 57 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT - 66 DIV 28 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 66 / 28 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3873
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1, 13 AS col1 FROM tab2 AS cor0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-3873
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, 13 AS col1 FROM tab2 AS cor0
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + MIN( ALL col2 ) AS col0 FROM tab0 WHERE NOT + + 27 < - col2 * ( + + ( - + 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT + MIN ( ALL col2 ) AS col0 FROM tab0 WHERE NOT + + 27 < - col2 * ( + + ( - + 86 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - + 58 > - col1 + - 71 + + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT ALL + 78 AS col0, col2 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
78
NULL
78
NULL
78
NULL

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL + 78 AS col0, col2 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
78
NULL
78
NULL
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL - COUNT( * ) * - + 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - COUNT ( * ) * - + 52 FROM tab0
----
156

query I rowsort
SELECT + col2 + + 27 AS col0 FROM tab1 cor0
----
123
86
95

query I rowsort
SELECT DISTINCT - - col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - + ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + ( col2 ) * 53 * + col0 AS col1 FROM tab1 AS cor0
----
-259488
-265795
-327964

query II rowsort
SELECT DISTINCT - 20 AS col0, col1 * - + col2 FROM tab1 AS cor0
----
-20
-1344
-20
-295
-20
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + col1 / - + col1 / - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + col1 / - + col1 / - + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT + ( 71 ) * COUNT( * ) + + 50 * - 38 FROM tab2 AS cor0
----
-1687

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + ( 71 ) * COUNT ( * ) + + 50 * - 38 FROM tab2 AS cor0
----
-1687

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 35 - - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 AS cor0 WHERE NOT NULL <= - 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - 22 col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # DIV for integer division: 
query II rowsort label-3888
SELECT col2 DIV - col1, - 24 col2 FROM tab0
----
-99
-24
0
-24
0
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3888
SELECT col2 / - col1, - 24 col2 FROM tab0
----
-99
-24
0
-24
0
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + ( - 76 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 82 * 6 FROM tab1
----
-492
-492
-492

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT ALL + 76 DIV col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL + 76 / col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT 79 * COUNT( * ) AS col1 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3892
SELECT 79 * COUNT ( * ) AS col1 FROM tab1
----
237

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - col0 BETWEEN - 74 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT + CAST( + col0 AS SIGNED ) - - + col1 AS col1 FROM tab2 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3894
SELECT + CAST ( + col0 AS INTEGER ) - - + col1 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT 22 FROM tab0 WHERE col1 * - - 2 * - col0 + 21 <= col2
----
22
22
22

query I rowsort
SELECT col1 * - + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col0 * - + 99 * - col1 FROM tab1
----
42075
423423
70686

query I rowsort
SELECT ALL + 75 + - 30 FROM tab1
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT + 78 * + SUM( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
14430

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3899
SELECT DISTINCT + 78 * + SUM ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
14430

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT + + 45 + + COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + + 45 + + COUNT ( * ) FROM tab1 AS cor0
----
48

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - 53 - + col0 FROM tab0
----
-140
-150
-68

query I rowsort
SELECT - col2 * - + col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + SUM( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 95 + + 33 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT - + col1 * + - col0 - + + 85 FROM tab0 AS cor0
----
1130
12
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT COUNT( + + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT COUNT ( + + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT COUNT( * ) col0, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3908
SELECT COUNT ( * ) col0, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT MIN( - 79 ) AS col0 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT MIN ( - 79 ) AS col0 FROM tab2
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 AS col1, 31 col1 FROM tab1
----
-9
31
-9
31
-9
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - - 72 + + 21 + + + COUNT( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 84 / - col2 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - - 72 + + 21 + + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 84 / - col2 IS NOT NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + + COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + + COUNT ( - col2 ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 8 / + col2 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3914
SELECT * FROM tab1 WHERE NOT - col2 IN ( + ( + CAST( NULL AS DECIMAL ) ) + - + col2, col1 * + ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3914
SELECT * FROM tab1 WHERE NOT - col2 IN ( + ( + CAST ( NULL AS REAL ) ) + - + col2, col1 * + ( + col0 ) )
----

query I rowsort
SELECT ALL - 1 + ( + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
14
86
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - col1 * col0 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT MIN( + + col0 ) + COUNT( * ) + ( 14 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3917
SELECT MIN ( + + col0 ) + COUNT ( * ) + ( 14 ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT MIN( DISTINCT + col0 ) + + 79 AS col1 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-3918
SELECT MIN ( DISTINCT + col0 ) + + 79 AS col1 FROM tab2
----
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ) + 82 col0, + col1 FROM tab0
----
-17
1
35
81
72
21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3921
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT + COUNT( * ) * COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) + - - 32 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3922
SELECT + COUNT ( * ) * COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) + - - 32 FROM tab1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0
----
10
10
10

query I rowsort
SELECT ALL col0 + + - 89 AS col0 FROM tab1 AS cor0
----
-38
-4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - - COUNT( * ) + + COUNT( * ) + + MIN( + col1 ) col1 FROM tab1 AS cor0 WHERE - 77 = - + 9
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3925
SELECT - - COUNT ( * ) + + COUNT ( * ) + + MIN ( + col1 ) col1 FROM tab1 AS cor0 WHERE - 77 = - + 9
----
NULL

query I rowsort
SELECT + 30 * + - col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT - ( col0 ) - - col2 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL ( + - ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL ( + - ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3930
SELECT * FROM tab0 cor0 WHERE col2 * ( col2 ) * - col0 * 20 - - + 13 - + + col1 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3930
SELECT * FROM tab0 cor0 WHERE col2 * ( col2 ) * - col0 * 20 - - + 13 - + + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT - col1 DIV + - col1 + - col0 + + col2 * ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-1663
-3438
-574

skipif mysql # not compatible
query I rowsort label-3931
SELECT - col1 / + - col1 + - col0 + + col2 * ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-1663
-3438
-574

query I rowsort
SELECT ALL - ( - + col1 ) * + + col2 * + + col1 * + - col1 AS col2 FROM tab2 AS cor0
----
-17444254
-18261320
-3050973

query I rowsort
SELECT DISTINCT col2 * 14 + + ( 97 ) - - col2 + col1 * - 54 * col2 FROM tab2 AS cor0
----
-165623
-208877
-62900

query II rowsort
SELECT DISTINCT + col0, 25 FROM tab1 cor0 WHERE col0 > - 13
----
51
25
85
25
91
25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> 51 * + 85
----

query I rowsort
SELECT col2 * + col0 * + 75 AS col0 FROM tab1 AS cor0
----
367200
376125
464100

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN 32 AND col1 + ( - 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT ALL - 41 DIV MIN( DISTINCT - col2 ) * + 29 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - 41 / MIN ( DISTINCT - col2 ) * + 29 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT ALL 94 DIV - ( + - col2 ) col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3939
SELECT ALL 94 / - ( + - col2 ) col0 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE + col2 / - col1 >= col0
----

query II rowsort
SELECT DISTINCT + 37, col0 * + col2 AS col1 FROM tab0
----
37
705
37
870
37
9603

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - 39
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3943
SELECT - 67 FROM tab2 cor0 WHERE NOT col0 + - + col1 = + + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 67 FROM tab2 cor0 WHERE NOT col0 + - + col1 = + + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - SUM( + - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - SUM ( + - col2 ) AS col1 FROM tab1 AS cor0
----
223

query II rowsort
SELECT + col2 AS col1, - 33 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

query I rowsort
SELECT ALL + + col0 * - - col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL + MAX( - + col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + MAX ( - + col0 ) FROM tab2 cor0
----
-46

query I rowsort
SELECT + - 70 * - + col0 * - - 5 AS col2 FROM tab1 AS cor0
----
17850
29750
31850

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT + SUM( 33 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + SUM ( 33 ) FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL COUNT( ALL 89 ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL COUNT ( ALL 89 ) AS col1 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - 52 + + COUNT( - col0 ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 52 + + COUNT ( - col0 ) AS col1 FROM tab2
----
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 29 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT - 33 + - - CAST( NULL AS SIGNED ) AS col2, ( - + col0 ) FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 33 + - - CAST ( NULL AS INTEGER ) AS col2, ( - + col0 ) FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT col1 * 72 * 97 + col2 FROM tab2 AS cor0
----
356207
467986
537808

query I rowsort
SELECT ALL + + col2 * - + 96 + + + col0 FROM tab1 AS cor0
----
-5579
-6437
-9165

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + - ( - COUNT( * ) ) - 53 + + 3 * 2 * 26 + - + COUNT( * ) FROM tab1 AS cor0 WHERE col0 = + 98 / - 39 * + col1
----
103

skipif mysql # not compatible
query I rowsort label-3956
SELECT + - ( - COUNT ( * ) ) - 53 + + 3 * 2 * 26 + - + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 = + 98 / - 39 * + col1
----
103

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25
25
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3958
SELECT + col2 AS col0, col0 - + col0 DIV col1 AS col2 FROM tab2 cor0
----
23
46
40
64
58
74

skipif mysql # not compatible
query II rowsort label-3958
SELECT + col2 AS col0, col0 - + col0 / col1 AS col2 FROM tab2 cor0
----
23
46
40
64
58
74

query I rowsort
SELECT DISTINCT + ( col2 ) + 31 + + col0 FROM tab1 AS cor0
----
175
178
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3960
SELECT CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 / - 83 = - 74
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL - 95 DIV + 31 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 95 / + 31 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * + - ( col1 ) col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - 32 + - 48 + + 63 FROM tab2 AS cor0
----
29
47
58

query II rowsort
SELECT DISTINCT + col0, col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + 20 FROM tab0 WHERE - - col1 - - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT + 86 + - + COUNT( * ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT + 86 + - + COUNT ( * ) FROM tab0
----
83

query I rowsort
SELECT + 18 * col1 AS col2 FROM tab2
----
1206
1386
918

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT + 67 - + 46 DIV + + col2 col0 FROM tab0
----
63
67
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3970
SELECT + 67 - + 46 / + + col2 col0 FROM tab0
----
63
67
67

query I rowsort
SELECT 79 - 9 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col2 ) + + 78 FROM tab2
----
20
38
55

query I rowsort
SELECT ALL + 99 + - col0 AS col0 FROM tab0 AS cor0
----
12
2
84

query I rowsort
SELECT ALL 41 + + - 84 + col1 * - + 63 AS col0 FROM tab2 AS cor0
----
-3256
-4264
-4894

query I rowsort
SELECT ALL + 30 + - - col1 AS col1 FROM tab2 AS cor0
----
107
81
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3976
SELECT DISTINCT - + CAST( + - col2 AS SIGNED ) + - 17 DIV ( col2 ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-3976
SELECT DISTINCT - + CAST ( + - col2 AS INTEGER ) + - 17 / ( col2 ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT + MIN( - col1 ) FROM tab2 cor0 WHERE - 26 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT + MIN ( - col1 ) FROM tab2 cor0 WHERE - 26 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
97

query I rowsort
SELECT ALL - - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT ALL + col2 DIV - ( 45 ) AS col0 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + col2 / - ( 45 ) AS col0 FROM tab0 cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT 73 * ( - COUNT( col1 ) ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 73 * ( - COUNT ( col1 ) ) FROM tab1 AS cor0
----
-219

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 40 * + + 46 AND - + col2 + - + col0 - + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 81 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3985
SELECT ALL - col2 AS col0, 49 * + CAST( + 28 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
1372
-68
1372
-96
1372

skipif mysql # not compatible
query II rowsort label-3985
SELECT ALL - col2 AS col0, 49 * + CAST ( + 28 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
1372
-68
1372
-96
1372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 4 col0 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT CAST( - - 85 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
85
85
85

skipif mysql # not compatible
query I rowsort label-3988
SELECT CAST ( - - 85 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT ALL + 57 DIV + 29 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + 57 / + 29 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 30 * + 20 * col1 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT - COUNT( * ) DIV + 51 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COUNT ( * ) / + 51 FROM tab0
----
0

query I rowsort
SELECT col1 * 58 FROM tab0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT + ( - 61 ) DIV + + 71 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT + ( - 61 ) / + + 71 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL - COUNT( * ) * + COUNT( * ) * + + 98 AS col1 FROM tab2
----
-882

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + + 98 AS col1 FROM tab2
----
-882

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL OR + - col1 IS NULL
----
116
46
80

query I rowsort
SELECT ALL col2 * ( - - col1 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL col2 + + + col0 + + - 31 * col1 DIV + col0 AS col1 FROM tab0 cor0
----
-105
196
90

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col2 + + + col0 + + - 31 * col1 / + col0 AS col1 FROM tab0 cor0
----
-105
196
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT - CAST( + + col2 AS SIGNED ) + ( - col0 ) + - col1, col0 FROM tab1 AS cor0
----
-149
85
-161
51
-206
91

skipif mysql # not compatible
query II rowsort label-4001
SELECT - CAST ( + + col2 AS INTEGER ) + ( - col0 ) + - col1, col0 FROM tab1 AS cor0
----
-149
85
-161
51
-206
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT + CAST( + col0 AS SIGNED ) + + + 34 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT + CAST ( + col0 AS INTEGER ) + + + 34 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - 83 + + COUNT( * ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - 83 + + COUNT ( * ) FROM tab1 AS cor0
----
-80

query II rowsort
SELECT DISTINCT col2 AS col0, + col2 + + 52 AS col1 FROM tab0 AS cor0
----
10
62
47
99
99
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT + + 34 + - + CAST( NULL AS SIGNED ) - + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT + + 34 + - + CAST ( NULL AS INTEGER ) - + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4006
SELECT ALL + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT CAST( NULL AS SIGNED ) * col0 + + 77 - - 76 + - 86 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT CAST ( NULL AS INTEGER ) * col0 + + 77 - - 76 + - 86 * + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 20 - - + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 20 - - + COUNT ( * ) FROM tab2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT ALL CAST( - 21 AS SIGNED ) FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL CAST ( - 21 AS INTEGER ) FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT - COUNT( * ) + + + 78 AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4010
SELECT - COUNT ( * ) + + + 78 AS col2 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - COUNT( * ) + + 15 AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4011
SELECT - COUNT ( * ) + + 15 AS col0 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT + col1 + col0 DIV 71 AS col2 FROM tab0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-4012
SELECT + col1 + col0 / 71 AS col2 FROM tab0
----
2
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( 76 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( 76 ) < NULL
----
0

query I rowsort
SELECT ALL - + 58 AS col0 FROM tab0 WHERE NOT 59 + col2 * + col0 IN ( + - ( 37 ), + ( - col2 ) + - 94 + col0 + - col2 * - ( - 40 ) )
----
-58
-58
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - col2 NOT IN ( - - col1, 13, ( - 62 ), 42 - + col0, 65 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 < + 57
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab0 WHERE - - 47 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - ( - + col2 ) - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 54 - + 77 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL - - ( + - 44 ) * + - col0 AS col1 FROM tab2 AS cor0
----
2024
2816
3300

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT COUNT( - 22 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT COUNT ( - 22 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT - COUNT( * ) DIV + 2 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - COUNT ( * ) / + 2 AS col0 FROM tab2 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT - col1 DIV + col2 AS col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4027
SELECT - col1 / + col2 AS col2 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT + 70 * + + ( - ( - 79 ) ) FROM tab0 AS cor0
----
5530
5530
5530

query I rowsort
SELECT - + col0 * + + 51 * + - col0 FROM tab1 AS cor0
----
132651
368475
422331

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 45 col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT col2 * 39 * col0 - + 60 AS col0 FROM tab0 AS cor0
----
27435
33870
374457

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4032
SELECT DISTINCT * FROM tab2 WHERE col0 > - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4032
SELECT DISTINCT * FROM tab2 WHERE col0 > - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4033
SELECT ALL + col2 * + col1 DIV + 1 AS col2, + col2 * + col0 FROM tab0
----
210
870
3807
705
99
9603

skipif mysql # not compatible
query II rowsort label-4033
SELECT ALL + col2 * + col1 / + 1 AS col2, + col2 * + col0 FROM tab0
----
210
870
3807
705
99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT col0 / + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT col0 / + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4035
SELECT COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + 36 * - COUNT( * ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 36 * - COUNT ( * ) FROM tab1
----
-108

query I rowsort
SELECT col2 * + ( col2 ) + 69 + - - ( 78 ) / + 95 * + 66 * + col2 FROM tab1 AS cor0 WHERE NOT col1 * col0 * col2 * - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + ( + MAX( DISTINCT col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4038
SELECT + ( + MAX ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT - col2, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4041
SELECT + ( - CAST( NULL AS DECIMAL ) ) + - + 82 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT + ( - CAST ( NULL AS REAL ) ) + - + 82 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 + + col0 + col0 FROM tab1 AS cor0
----
181
249
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - COUNT( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - COUNT ( * ) + - 20 AS col1 FROM tab1 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4045
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col0 / col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4045
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, - col0 / col1, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - MAX( ALL - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4046
SELECT - MAX ( ALL - col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT ALL - col1 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - - SUM( DISTINCT - 45 ) AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4049
SELECT - - SUM ( DISTINCT - 45 ) AS col2 FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4050
SELECT ALL * FROM tab0 WHERE col0 * + 68 + CAST( + 31 AS SIGNED ) * - CAST( col0 AS SIGNED ) NOT BETWEEN - col0 - - CAST( NULL AS SIGNED ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4050
SELECT ALL * FROM tab0 WHERE col0 * + 68 + CAST ( + 31 AS INTEGER ) * - CAST ( col0 AS INTEGER ) NOT BETWEEN - col0 - - CAST ( NULL AS INTEGER ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT + 13 - + col1 DIV + - 90 FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 13 - + col1 / + - 90 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT col2 - ( + col2 ) * + col1 AS col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4053
SELECT - CAST( - - CAST( + col2 AS SIGNED ) AS SIGNED ) * col2 + - + 58 + + - 1 DIV - - col1 * - col0 - - col1 AS col0 FROM tab1
----
-3534
-4635
-9260

skipif mysql # not compatible
query I rowsort label-4053
SELECT - CAST ( - - CAST ( + col2 AS INTEGER ) AS INTEGER ) * col2 + - + 58 + + - 1 / - - col1 * - col0 - - col1 AS col0 FROM tab1
----
-3534
-4635
-9260

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT ALL col0 DIV - 23 FROM tab1
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL col0 / - 23 FROM tab1
----
-2
-3
-3

query I rowsort
SELECT + 11 + - col2 AS col1 FROM tab0
----
-36
-88
1

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col1 + - ( - + col0 ) * + col2 col0 FROM tab1 AS cor0
----
5040
5092
8397

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT MAX( ALL col2 ) col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4058
SELECT DISTINCT MAX ( ALL col2 ) col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT 74 AS col2, - col0 AS col0 FROM tab0
----
74
-15
74
-87
74
-97

query II rowsort
SELECT col0 AS col1, 15 FROM tab1
----
51
15
85
15
91
15

query I rowsort
SELECT DISTINCT 83 * 32 FROM tab2
----
2656

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col0 + - - 68 * col1 > + 16 + ( col0 ) + - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + CAST( ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4063
SELECT + CAST ( ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 + ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4065
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4065
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( + + col2 ) <> - 79 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4068
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col0 * - col2, col1, col2, + 10, + + col1, - CAST( + 74 AS SIGNED ) + - + col2 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-4068
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col0 * - col2, col1, col2, + 10, + + col1, - CAST ( + 74 AS INTEGER ) + - + col2 * - + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - - col2 / + col2 ) IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + 66, + col1 FROM tab1 AS cor0
----
66
14
66
47
66
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * - col1 col1 FROM tab1 AS cor0
----
1833
195
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT + SUM( ALL col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT + SUM ( ALL col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 65 * - 20, col1 col2 FROM tab2
----
-1300
51
-1300
67
-1300
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT 1 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT 1 / - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 42 + + 83 + - col2 AS col2 FROM tab2
----
102
67
85

query III rowsort
SELECT * FROM tab0 WHERE NOT + 81 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 75 = + 53 + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL + ( 35 ) + - - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + ( 35 ) + - - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT - + CAST( NULL AS SIGNED ) * - + 82 col1 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4079
SELECT - + CAST ( NULL AS INTEGER ) * - + 82 col1 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT ALL 17 DIV + 45 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 17 / + 45 * col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + 27
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col1 ) + + 96 * + col0 IS NULL
----

query I rowsort
SELECT ALL + ( + + col0 ) + + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
128
150
92

query I rowsort
SELECT 48 * - - col0 + col0 AS col0 FROM tab2 cor0
----
2254
3136
3675

query I rowsort
SELECT DISTINCT col1 * + - 28 - - col0 + + ( 72 ) FROM tab1 AS cor0
----
-1153
-269
17

query I rowsort
SELECT DISTINCT + col2 + - 98 AS col2 FROM tab0 AS cor0
----
-51
-88
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4087
SELECT col0 + + col2 * + col1 + - col0 - - col0 * col2 DIV 15 + + col0 AS col2, + col0 + - col0 + + col1 FROM tab2 AS cor0
----
1289
51
3314
77
4251
67

skipif mysql # not compatible
query II rowsort label-4087
SELECT col0 + + col2 * + col1 + - col0 - - col0 * col2 / 15 + + col0 AS col2, + col0 + - col0 + + col1 FROM tab2 AS cor0
----
1289
51
3314
77
4251
67

query I rowsort
SELECT DISTINCT + + col1 + col2 + + + col2 * col0 * col1 FROM tab0 AS cor0
----
18301
57233
9703

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL col2 DIV - - col1 * - - 11 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL col2 / - - col1 * - - 11 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT 56 - 94, 99 AS col1 FROM tab1
----
-38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 - col2 col2 FROM tab1
----
-27
1
10

query I rowsort
SELECT ALL 91 FROM tab1 WHERE NULL IS NULL
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4093
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( + - 36 - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4093
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( + - 36 - CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * col2 - + 39 * + - col2 * 99 FROM tab0
----
183676
38710
392040

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT - MAX( ALL - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + - col0 * 11 FROM tab2 AS cor0
----
-506
-704
-825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT + COUNT( + col1 ) * + CAST( + + 48 AS SIGNED ) AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + COUNT ( + col1 ) * + CAST ( + + 48 AS INTEGER ) AS col2 FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT 34 * - 52 + - CAST( + 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1839
-1839
-1839

skipif mysql # not compatible
query I rowsort label-4098
SELECT 34 * - 52 + - CAST ( + 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1839
-1839
-1839

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + SUM( DISTINCT + + 86 ) AS col0 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-4099
SELECT + SUM ( DISTINCT + + 86 ) AS col0 FROM tab1 cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT + col2 * CAST( NULL AS SIGNED ) * - col2 + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT + col2 * CAST ( NULL AS INTEGER ) * - col2 + 11 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL + - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( - 73 ), col0 * + col1 * + - 24 / - 69 + - col1 + + col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( - 73 ), col0 * + col1 * + - 24 / - 69 + - col1 + + col2, + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 41 col0 FROM tab2 AS cor0
----
-1640
-2378
-943

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 AS col0, + col0 * - - col0 col2 FROM tab2 cor0
----
-23
2116
-40
4096
-58
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + COUNT( * ) * 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4106
SELECT + COUNT ( * ) * 65 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT - - COUNT( * ) * + + MIN( col1 ) col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT DISTINCT - - COUNT ( * ) * + + MIN ( col1 ) col2 FROM tab1 AS cor0
----
15

query II rowsort
SELECT - 50 * - ( col0 ), + col2 * col1 AS col2 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
4350
210
4850
99
750
3807

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4109
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 + - col0 AS col1 FROM tab0
----
NULL
-108
NULL
-96
NULL
-98

skipif mysql # not compatible
query II rowsort label-4109
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 + - col0 AS col1 FROM tab0
----
NULL
-108
NULL
-96
NULL
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT + col0 DIV + ( - 5 ) AS col1 FROM tab0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-4111
SELECT + col0 / + ( - 5 ) AS col1 FROM tab0
----
-17
-19
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( ALL - - 61 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( ALL - - 61 ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT + col2, 30 FROM tab0
----
10
30
47
30
99
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4114
SELECT DISTINCT - - 11 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - - 11 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT NULL <> + 62
----

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL OR col2 NOT BETWEEN + - ( + 53 ) * - 2 * - col0 AND - 4
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL 93 + - - COUNT( ALL + col0 ) AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL 93 + - - COUNT ( ALL + col0 ) AS col2 FROM tab2
----
96

query I rowsort
SELECT ALL + col1 * - - 39 FROM tab0
----
3159
39
819

query I rowsort
SELECT ALL 89 + + ( 7 ) + col1 * - - col2 + + - col0 FROM tab2 AS cor0
----
1223
3112
3907

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT - CAST( + CAST( + + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL < + 93
----

skipif mysql # not compatible
query I rowsort label-4121
SELECT - CAST ( + CAST ( + + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL < + 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - col1 * + 51 BETWEEN ( + col0 ) AND + 76
----

query I rowsort
SELECT col1 - - 95 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL COUNT( * ) * 45 + - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL COUNT ( * ) * 45 + - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT col0 - - - 54 + - col2 DIV col2 AS col1 FROM tab2
----
-9
20
9

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT col0 - - - 54 + - col2 / col2 AS col1 FROM tab2
----
-9
20
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT ALL col2 DIV + - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL col2 / + - col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT - ( - CAST( + - 38 AS SIGNED ) ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - ( - CAST ( + - 38 AS INTEGER ) ) FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 92 * - + COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-4128
SELECT 92 * - + COUNT ( * ) FROM tab0
----
-276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 27 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - + col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4131
SELECT DISTINCT + col2 AS col0, - 20 DIV - col0 * - + 66 AS col2 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-4131
SELECT DISTINCT + col2 AS col0, - 20 / - col0 * - + 66 AS col2 FROM tab2
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 60 - - col2 + + 36 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT - + COUNT( * ) * - + COUNT( * ) col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT DISTINCT - + COUNT ( * ) * - + COUNT ( * ) col0 FROM tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT 71 / - col0 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT 71 / - col0 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 89 * col1 * + + col2 + + - 19 FROM tab2 AS cor0 WHERE + 17 BETWEEN NULL AND - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL + - 42 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + - 42 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL + - 18 FROM tab0 cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4139
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN + + 1 AND - CAST( NULL AS SIGNED ) * ( - col0 ) * + col1 - - col0
----

skipif mysql # not compatible
query III rowsort label-4139
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN + + 1 AND - CAST ( NULL AS INTEGER ) * ( - col0 ) * + col1 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 87 * SUM( DISTINCT col0 ) + - SUM( col2 ) + 41 AS col2 FROM tab1
----
19567

skipif mysql # not compatible
query I rowsort label-4140
SELECT 87 * SUM ( DISTINCT col0 ) + - SUM ( col2 ) + 41 AS col2 FROM tab1
----
19567

query II rowsort
SELECT ALL + col0, 48 FROM tab0
----
15
48
87
48
97
48

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab1 WHERE NULL IS NULL
----
-11

query I rowsort
SELECT - col1 * + - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL 93 * - + 50 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4650
-4650
-4650

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 20 BETWEEN - - 75 AND - + ( - col0 ) + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4147
SELECT DISTINCT - COUNT( * ) - + ( 22 ) + + CAST( NULL AS SIGNED ) - - MIN( + col0 ) * CAST( 55 AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - COUNT ( * ) - + ( 22 ) + + CAST ( NULL AS INTEGER ) - - MIN ( + col0 ) * CAST ( 55 AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + col2 + + col2 AS col0 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col2 * + 33 + - 61 AS col2 FROM tab0 AS cor0
----
-1612
-3328
-391

query I rowsort
SELECT + col0 + + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + 43 * - + 91 AS col2 FROM tab1 AS cor0
----
-3913
-3913
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4153
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + - CAST( + col0 AS SIGNED ) < + - 77 * + 1 * col1 * + col2 + - col1
----

skipif mysql # not compatible
query III rowsort label-4153
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + - CAST ( + col0 AS INTEGER ) < + - 77 * + 1 * col1 * + col2 + - col1
----

query II rowsort
SELECT - + col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL + + col1 + + 17 FROM tab2 AS cor0
----
68
84
94

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 39 + + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 40 + - col1 FROM tab1 WHERE NULL IS NULL
----
-7
26
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * - col0 col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT + - SUM( DISTINCT - 31 ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + - SUM ( DISTINCT - 31 ) AS col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT - col0 * - col1 * 92 FROM tab2
----
215832
453376
462300

query I rowsort
SELECT + col0 + 97 AS col0 FROM tab2
----
143
161
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT 9 + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4162
SELECT 9 + - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT + col1 + - 46 AS col2 FROM tab0 AS cor0
----
-25
-45
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL 62 + - CAST( col1 AS SIGNED ) + - 85 + - + 66 * 31 FROM tab0 AS cor0
----
-2070
-2090
-2150

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL 62 + - CAST ( col1 AS INTEGER ) + - 85 + - + 66 * 31 FROM tab0 AS cor0
----
-2070
-2090
-2150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT + + col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + + col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col2, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT MAX( + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT MAX ( + col1 ) FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4169
SELECT - 86 DIV + 76, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-4169
SELECT - 86 / + 76, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1
NULL
-1
NULL
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL 55 * CAST( - col0 AS SIGNED ) FROM tab1
----
-2805
-4675
-5005

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 55 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-2805
-4675
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT ( - CAST( - + col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT ( - CAST ( - + col0 AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - - 45 AS col0 FROM tab0 AS cor0 WHERE - col0 < - ( + + col2 ) * + col1 + col0 + + col1
----
45

query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67

query I rowsort
SELECT + col2 - - col1 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4176
SELECT - - col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4176
SELECT - - col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + SUM( DISTINCT + 46 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4177
SELECT + SUM ( DISTINCT + 46 ) FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4178
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col0 FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 20 AS col2 FROM tab0 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 39 * + - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4183
SELECT + COUNT ( - col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 72 * - col0 AS col2, - col1 FROM tab1
----
3672
-14
6120
-5
6552
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + MAX( DISTINCT + 84 ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4186
SELECT + MAX ( DISTINCT + 84 ) AS col0 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col0 * col0 FROM tab1
----
-51
2601
-85
7225
-91
8281

query I rowsort
SELECT ( - 3 ) AS col2 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 85 col0, + 20 + - col1 FROM tab0
----
85
-1
85
-61
85
19

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE 43 >= - col0
----
51
67
77

query I rowsort
SELECT ALL 74 * col1 AS col0 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT ALL COUNT( * ) col1, + COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4192
SELECT ALL COUNT ( * ) col1, + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + + MAX( - 49 ) col2 FROM tab0 cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4193
SELECT + + MAX ( - 49 ) col2 FROM tab0 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - SUM( + + 10 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - SUM ( + + 10 ) FROM tab2
----
-30

query I rowsort
SELECT ALL 79 * + - col0 AS col0 FROM tab2
----
-3634
-5056
-5925

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT + col1 DIV + 40 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + col1 / + 40 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT 78 DIV - COUNT( col0 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4197
SELECT 78 / - COUNT ( col0 ) FROM tab2
----
-26

query II rowsort
SELECT DISTINCT 31 + col2 + + + col0 AS col2, + ( - col1 ) FROM tab1 AS cor0
----
175
-5
178
-14
190
-47

query I rowsort
SELECT DISTINCT - 98 + ( - col0 ) AS col1 FROM tab0 cor0
----
-113
-185
-195

query I rowsort
SELECT - col1 * col0 + - col1 FROM tab1 cor0
----
-430
-4324
-728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4201
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col2, + 99 AS col0 FROM tab2 AS cor0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2, + 99 AS col0 FROM tab2 AS cor0
----
NULL
99
NULL
99
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4202
SELECT - 11 + + - COUNT( * ), 37 AS col0 FROM tab1 AS cor0
----
-14
37

skipif mysql # not compatible
query II rowsort label-4202
SELECT - 11 + + - COUNT ( * ), 37 AS col0 FROM tab1 AS cor0
----
-14
37

query I rowsort
SELECT DISTINCT + 29 + - - 64 + - ( + col1 ) FROM tab2 AS cor0
----
16
26
42

query I rowsort
SELECT + + 64 * 29 + + - 37 + + col1 FROM tab1 AS cor0
----
1824
1833
1866

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT MAX( DISTINCT + 77 ) * + COUNT( - 68 ) + MIN( - + 35 ) + + MAX( DISTINCT - 6 ) FROM tab0
----
190

skipif mysql # not compatible
query I rowsort label-4205
SELECT MAX ( DISTINCT + 77 ) * + COUNT ( - 68 ) + MIN ( - + 35 ) + + MAX ( DISTINCT - 6 ) FROM tab0
----
190

query I rowsort
SELECT ( - col2 ) + col1 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 WHERE + 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL + + 0 AS col0 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + + 0 AS col0 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 11 * - col0 AS col1 FROM tab0
----
-1067
-165
-957

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col1 + + 7 <> - ( - 67 ) * + - col0 - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + col2 * col0 FROM tab0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col0 FROM tab2 WHERE NOT + - col1 + + + col2 IS NOT NULL
----

query I rowsort
SELECT + ( + - col0 ) - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT + COUNT( * ) DIV 43 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT + COUNT ( * ) / 43 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT + CAST( MIN( DISTINCT - col2 ) AS SIGNED ) + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4215
SELECT + CAST ( MIN ( DISTINCT - col2 ) AS INTEGER ) + COUNT ( * ) FROM tab1
----
-93

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( 96 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE col2 + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4217
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE col2 + - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT + col1 DIV + 78 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + col1 / + 78 FROM tab0
----
0
1

query I rowsort
SELECT - col1 * - 70 FROM tab0 WHERE NULL NOT BETWEEN - col1 * - col1 + + col2 / + 44 AND ( 13 * - col0 + col1 * 56 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT SUM( + 38 ) + ( 11 ) FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-4221
SELECT SUM ( + 38 ) + ( 11 ) FROM tab2
----
125

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 53 + col1 )
----

query I rowsort
SELECT col1 + col0 * 33 AS col1 FROM tab1
----
1697
2810
3050

query I rowsort
SELECT DISTINCT + 33 + + col2 FROM tab1
----
101
129
92

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 57 * + col2 NOT BETWEEN col2 + - col0 AND ( 8 )
----

query I rowsort
SELECT DISTINCT + ( - 39 ) FROM tab0
----
-39

query I rowsort
SELECT DISTINCT col0 * 16 AS col1 FROM tab2 WHERE NOT NULL IN ( 14 - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT 59 * - COUNT( * ) + - SUM( DISTINCT col2 + + col2 ) AS col2 FROM tab2
----
-419

skipif mysql # not compatible
query I rowsort label-4229
SELECT 59 * - COUNT ( * ) + - SUM ( DISTINCT col2 + + col2 ) AS col2 FROM tab2
----
-419

query I rowsort
SELECT ALL + col2 * - col2 + + 63 AS col1 FROM tab1 WHERE NULL IS NULL
----
-3418
-4561
-9153

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT - SUM( DISTINCT - 80 ) AS col1 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - SUM ( DISTINCT - 80 ) AS col1 FROM tab0
----
80

query I rowsort
SELECT DISTINCT - col2 + 90 FROM tab1
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT MAX( ALL - 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT MAX ( ALL - 72 ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL ( + MAX( ALL - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL ( + MAX ( ALL - col2 ) ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL = ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL = ( + col0 )
----
0

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab0
----
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT 41 - + MAX( col2 ) FROM tab2 WHERE col0 > - col1
----
-17

skipif mysql # not compatible
query I rowsort label-4238
SELECT 41 - + MAX ( col2 ) FROM tab2 WHERE col0 > - col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + ( ( - COUNT( DISTINCT col1 ) ) ) - - MIN( col0 + ( 72 ) ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-4239
SELECT + ( ( - COUNT ( DISTINCT col1 ) ) ) - - MIN ( col0 + ( 72 ) ) AS col1 FROM tab1
----
120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + 7 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - COUNT( ALL col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4241
SELECT - COUNT ( ALL col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - 78 + + col1 AS col0 FROM tab1 AS cor0
----
-31
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT ( COUNT( * ) ) + 7 AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT ( COUNT ( * ) ) + 7 AS col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT 99 + col1 AS col1 FROM tab1
----
104
113
146

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE + ( + 90 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT 8 FROM tab0 WHERE NULL < ( 77 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT COUNT( * ) * - COUNT( * ) + + 98 DIV MAX( DISTINCT + col0 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-4250
SELECT COUNT ( * ) * - COUNT ( * ) + + 98 / MAX ( DISTINCT + col0 ) FROM tab2
----
-8

query I rowsort
SELECT - col2 + + 68 * + 62 AS col2 FROM tab1
----
4120
4148
4157

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + 31 + - 35 * + MAX( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
2376

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + 31 + - 35 * + MAX ( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
2376

query I rowsort
SELECT ALL + + ( col0 ) * col0 + + col2 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT COUNT( * ) * + CAST( + MIN( + col1 ) * + COUNT( * ) AS SIGNED ) + + ( - 35 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT COUNT ( * ) * + CAST ( + MIN ( + col1 ) * + COUNT ( * ) AS INTEGER ) + + ( - 35 ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE 45 / 41 <> ( col0 - col2 )
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT - col2 + 1 FROM tab0 WHERE ( - col0 - - 12 ) IN ( - col2 )
----

query I rowsort
SELECT + 29 - col0 * - col2 AS col1 FROM tab0
----
734
899
9632

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT ALL col0 * + - 38 - col1 DIV col0 FROM tab1
----
-1938
-3230
-3458

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL col0 * + - 38 - col1 / col0 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND NULL OR NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND NULL OR NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 10 - col1 AS col0 FROM tab1
----
-37
-4
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT CAST( + + 76 AS SIGNED ) DIV 60 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT CAST ( + + 76 AS INTEGER ) / 60 AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT MIN( + + col1 ) + - 63 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-4264
SELECT MIN ( + + col1 ) + - 63 AS col1 FROM tab1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4265
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) - 95 AND + col0
----

skipif mysql # not compatible
query III rowsort label-4265
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) - 95 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4266
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL NOT IN ( 97 * CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4266
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL NOT IN ( 97 * CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT COUNT( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT COUNT ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT + MIN( ALL 28 ) AS col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + MIN ( ALL 28 ) AS col0 FROM tab2 AS cor0
----
28

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col1 + col0 * col2 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT + - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4272
SELECT + - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * + 0 * + + 53 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT 81 + - MIN( 18 ) FROM tab2 WHERE NOT - col0 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT 81 + - MIN ( 18 ) FROM tab2 WHERE NOT - col0 IS NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL COUNT( DISTINCT - ( col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COUNT ( DISTINCT - ( col1 ) ) AS col2 FROM tab2
----
3

query II rowsort
SELECT 28 * + col0, col1 FROM tab1
----
1428
14
2380
5
2548
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT COUNT( ALL + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4278
SELECT COUNT ( ALL + col2 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT - col0 DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4280
SELECT - col0 / + - col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT MAX( ALL - 58 ) + - 22 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-4282
SELECT MAX ( ALL - 58 ) + - 22 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT SUM( ALL + col1 ) + - MIN( ALL - col0 ) FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-4283
SELECT SUM ( ALL + col1 ) + - MIN ( ALL - col0 ) FROM tab1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL + COUNT( * ) + - COUNT( * ) * - + 95 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * - + 95 FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + ( + MAX( col0 ) ) + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + ( + MAX ( col0 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT + + CAST( 23 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-4286
SELECT + + CAST ( 23 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT ALL 5 + + COUNT( * ) DIV + 3 AS col1 FROM tab0 cor0 WHERE NOT ( NOT ( col2 + - col0 IS NOT NULL ) )
----
6

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL 5 + + COUNT ( * ) / + 3 AS col1 FROM tab0 cor0 WHERE NOT ( NOT ( col2 + - col0 IS NOT NULL ) )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT + - 49 DIV - col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4288
SELECT + - 49 / - col2 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + SUM( ALL col1 ) AS col2 FROM tab0 WHERE ( + + col1 * + col1 * col0 + col0 / - col2 + - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT + SUM ( ALL col1 ) AS col2 FROM tab0 WHERE ( + + col1 * + col1 * col0 + col0 / - col2 + - col2 ) IS NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = ( + 64 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 50 ) BETWEEN + col2 AND col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 45 >= + 80 - + - col1 OR NOT NULL BETWEEN ( + ( - ( col2 ) ) ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 14 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT + - ( + - col1 ) + - col0 + + 82 AS col0 FROM tab2 AS cor0
----
74
87
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT - + MIN( DISTINCT - ( ( - ( + col0 ) ) ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - + MIN ( DISTINCT - ( ( - ( + col0 ) ) ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT 46 + - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
190
193
205

query I rowsort
SELECT DISTINCT + 89 + - col2 AS col0 FROM tab2 AS cor0
----
31
49
66

query I rowsort
SELECT + - col0 + - 6 FROM tab0 AS cor0
----
-103
-21
-93

query I rowsort
SELECT - 32 * + - col1 FROM tab1 AS cor0 WHERE - 8 > + 7
----

query II rowsort
SELECT + col1 + - + ( - 18 ), 94 * - col2 * col1 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
69
-112608
85
-370309
95
-294448

query I rowsort
SELECT DISTINCT + col0 + + 85 AS col0 FROM tab2 AS cor0
----
131
149
160

query I rowsort
SELECT 62 + col1 + col2 * - + col1 + + - col0 + 7 * 52 FROM tab0 cor0
----
-3315
150
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT 49 FROM tab1 WHERE NULL NOT IN ( + 90, CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4303
SELECT 49 FROM tab1 WHERE NULL NOT IN ( + 90, CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT col0 + - - 70 + - col2 * - - col0 FROM tab0
----
-620
-713
-9436

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL COUNT( ( 87 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL COUNT ( ( 87 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 1 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT - MAX( ALL + ( col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT - MAX ( ALL + ( col0 ) ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 67 + - col2 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 > + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - ( - + 47 ) AS col1, - col0 FROM tab2 AS cor0
----
47
-46
47
-64
47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL COUNT( * ) + + 29 AS col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL COUNT ( * ) + + 29 AS col2 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - SUM( col0 ) - 47 AS col1 FROM tab2 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-4312
SELECT - SUM ( col0 ) - 47 AS col1 FROM tab2 AS cor0
----
-232

query I rowsort
SELECT + 21 * - col2 + - 21 AS col2 FROM tab2 cor0
----
-1239
-504
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT + ( - COUNT( * ) ) col1, - 70 + 68 FROM tab1
----
-3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4315
SELECT + ( - COUNT ( * ) ) col1, - 70 + 68 FROM tab1
----
-3
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT DISTINCT + 38 * 64 DIV - - 41 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + 38 * 64 / - - 41 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 / col0 / col1 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL + MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL + MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + - 36 AS col2 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + col1 * col0 + + 8 AS col1 FROM tab2 AS cor0
----
2354
4936
5033

query I rowsort
SELECT + col0 * - - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT ALL + 76 * col1 * - + 76 AS col1 FROM tab1 AS cor0
----
-271472
-28880
-80864

query I rowsort
SELECT DISTINCT ( - + 57 ) FROM tab2 WHERE NOT ( col1 + - - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + col1 * col0 FROM tab2 WHERE NOT + - col0 NOT IN ( - CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED ), - col2 * - 66 )
----

skipif mysql # not compatible
query I rowsort label-4324
SELECT + col1 * col0 FROM tab2 WHERE NOT + - col0 NOT IN ( - CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER ), - col2 * - 66 )
----

query I rowsort
SELECT + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT 4, + col0 FROM tab1
----
4
51
4
85
4
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT + CAST( NULL AS SIGNED ) * + - col2 / - 41 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT + CAST ( NULL AS INTEGER ) * + - col2 / - 41 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + + SUM( - col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4329
SELECT + + SUM ( - col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT ALL + col2 * col0 DIV - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + col2 * col0 / - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4331
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + 38 AS SIGNED ) * - 25 + - col0 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4331
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + 38 AS INTEGER ) * - 25 + - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + + 44 AS col0 FROM tab1
----
2068
220
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT + 58 * - + CAST( NULL AS SIGNED ) + + - AVG ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 58 * - + CAST ( NULL AS INTEGER ) + + - AVG ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 + + + col0 * + col2 ) AND NULL
----

query I rowsort
SELECT - col0 * - col2 FROM tab2 AS cor0 WHERE + col1 - - col0 * - + col0 BETWEEN - + 32 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + col1 * ( col1 ) FROM tab2
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + + col0 col1 FROM tab1
----
-32
2
8

query I rowsort
SELECT 95 - + col2 * ( + col1 ) * - col2 AS col0 FROM tab0
----
179024
2195
9896

query I rowsort
SELECT - col1 FROM tab2 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT 95 * - + col2 + + + col2 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT ALL - col2 - - 23 AS col1 FROM tab2
----
-17
-35
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 * 61 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 - - col1 AS col0 FROM tab0 AS cor0
----
10
31
47
128
99
100

query II rowsort
SELECT + col0, - 27 AS col1 FROM tab2 AS cor0 WHERE NOT 11 = + ( 51 )
----
46
-27
64
-27
75
-27

query I rowsort
SELECT DISTINCT 18 * + ( col2 ) + - 76 AS col2 FROM tab2 cor0
----
338
644
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT ALL - COUNT( * ) DIV - SUM( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( + 16 DIV col2 IN ( - col0 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - COUNT ( * ) / - SUM ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( + 16 / col2 IN ( - col0 ) ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL + SUM( 46 ) DIV + - 27 AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + SUM ( 46 ) / + - 27 AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT DISTINCT CAST( - 58 AS SIGNED ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT CAST ( - 58 AS INTEGER ) FROM tab1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab1 cor0
----
-91
-91
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT - - COUNT( * ) * - + 18 AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - - COUNT ( * ) * - + 18 AS col0 FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4353
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col2 BETWEEN col2 / 95 + + + 63 + + col0 + - - col1 + + col2 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4353
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col2 BETWEEN col2 / 95 + + + 63 + + col0 + - - col1 + + col2 * + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - ( - 42 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 40 * - + ( 50 ) AS col0 FROM tab0 AS cor0
----
-2000
-2000
-2000

query I rowsort
SELECT ALL 33 * + col2 + + + 64 + + - col2 FROM tab2 AS cor0
----
1344
1920
800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT DISTINCT 50 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 50 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
16

query I rowsort
SELECT - + 77 FROM tab2 cor0 WHERE NOT ( + 83 ) IS NULL
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab1 AS cor0 WHERE NOT 97 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4361
SELECT * FROM tab2 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) + + ( + - CAST( NULL AS SIGNED ) ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4361
SELECT * FROM tab2 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) + + ( + - CAST ( NULL AS INTEGER ) ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + ( - 31 ) + - COUNT( * ) col2 FROM tab2
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4362
SELECT + ( - 31 ) + - COUNT ( * ) col2 FROM tab2
----
-34

query I rowsort
SELECT ALL + 32 * col1 AS col1 FROM tab1
----
1504
160
448

query I rowsort
SELECT DISTINCT + + 19 * col0 + - 99 + - col2 FROM tab0 AS cor0
----
139
1544
1645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4365
SELECT ALL COUNT( * ) DIV COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + col2 <> + - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT DISTINCT + 95 + - col1 DIV col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + 95 + - col1 / col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL COUNT( * ) * 49 * - 47 FROM tab1
----
-6909

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL COUNT ( * ) * 49 * - 47 FROM tab1
----
-6909

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - ( + col0 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + - col0 IN ( + col0, CAST( + - 66 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4370
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + - col0 IN ( + col0, CAST ( + - 66 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4371
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4371
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + + col1 IS NOT NULL
----

query II rowsort
SELECT - + col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * - 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL 11 - - SUM( DISTINCT 39 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 11 - - SUM ( DISTINCT 39 ) FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT - SUM( + - col2 ) + + - COUNT( * ) AS col0 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - SUM ( + - col2 ) + + - COUNT ( * ) AS col0 FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( + col0 ) AND - 91 - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 50 <> + 41
----

query II rowsort
SELECT DISTINCT + col2 * + 58 - - col1 + col1, + col1 FROM tab1 AS cor0
----
3432
5
4038
47
5596
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 - - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 26 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + COUNT( * ) + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 WHERE NOT 48 + - - 33 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COUNT ( * ) + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT 48 + - - 33 <> NULL
----
0

query II rowsort
SELECT - 9, ( - 47 ) AS col0 FROM tab2 AS cor0
----
-9
-47
-9
-47
-9
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - SUM( DISTINCT 46 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4384
SELECT - SUM ( DISTINCT 46 ) FROM tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 92 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + + MIN( ALL - + 88 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + + MIN ( ALL - + 88 ) FROM tab0 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4387
SELECT - col2 AS col0, + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / - CAST( NULL AS SIGNED ) < - + col0
----

skipif mysql # not compatible
query II rowsort label-4387
SELECT - col2 AS col0, + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / - CAST ( NULL AS INTEGER ) < - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT DISTINCT - COUNT( * ) + + ( + + 78 ) FROM tab2 WHERE NOT + 34 + + + CAST( - + 93 AS SIGNED ) <= + col2
----
78

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - COUNT ( * ) + + ( + + 78 ) FROM tab2 WHERE NOT + 34 + + + CAST ( - + 93 AS INTEGER ) <= + col2
----
78

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 66 * col1 AS col2 FROM tab2
----
3366
4422
5082

query I rowsort
SELECT DISTINCT - col1 * - 17 AS col1 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - 48 * + COUNT( * ) * 11 + + + COUNT( * ) col1 FROM tab1
----
-1581

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4393
SELECT ALL - 48 * + COUNT ( * ) * 11 + + + COUNT ( * ) col1 FROM tab1
----
-1581

query II rowsort
SELECT col2 AS col1, - 27 AS col0 FROM tab2
----
23
-27
40
-27
58
-27

query I rowsort
SELECT col1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT + 9 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
9
9
9

query II rowsort
SELECT ALL + col1 * + col1 + - - 23 + col0 AS col0, - col1 FROM tab1 AS cor0
----
133
-5
2323
-47
270
-14

query I rowsort
SELECT col0 + - 75 * + 55 AS col0 FROM tab0
----
-4028
-4038
-4110

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT SUM( DISTINCT - ( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4399
SELECT SUM ( DISTINCT - ( - col0 ) ) FROM tab2
----
185

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - ( MIN( - col0 ) ) * 56 FROM tab0
----
5432

skipif mysql # not compatible
query I rowsort label-4401
SELECT - ( MIN ( - col0 ) ) * 56 FROM tab0
----
5432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4402
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( ( - - col1 ) ) - + + CAST( NULL AS SIGNED ) + + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4402
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( ( - - col1 ) ) - + + CAST ( NULL AS INTEGER ) + + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + - col0 NOT BETWEEN col0 AND - + 32 + - col1 * 74 AND col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - + SUM( col1 ) - - + COUNT( * ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4404
SELECT - + SUM ( col1 ) - - + COUNT ( * ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + - col0 AS col2 FROM tab1 cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT ALL - + 80 FROM tab2 cor0
----
-80
-80
-80

query III rowsort
SELECT + ( + col0 ), + col2 AS col2, - - col1 * col1 FROM tab2 AS cor0
----
9 values hashing to dc1a894d99535b0068cc2384cf7fa909

query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col0 FROM tab1 AS cor0 WHERE + col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT COUNT( * ), + 84 AS col2 FROM tab2
----
3
84

skipif mysql # not compatible
query II rowsort label-4409
SELECT COUNT ( * ), + 84 AS col2 FROM tab2
----
3
84

query II rowsort
SELECT DISTINCT col1 AS col1, col0 * col0 + + col2 FROM tab2
----
51
2139
67
5683
77
4136

query II rowsort
SELECT col1, - 38 AS col1 FROM tab2
----
51
-38
67
-38
77
-38

query I rowsort
SELECT ( 64 ) FROM tab0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 col0, col2 col2 FROM tab2
----
58
23
58
40
58
58

query I rowsort
SELECT ALL col2 * - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL = + ( col0 )
----

query I rowsort
SELECT col2 * 37 AS col1 FROM tab0 AS cor0
----
1739
3663
370

query I rowsort
SELECT + ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 18 * + + col0 FROM tab2 AS cor0 WHERE NULL <> ( 75 )
----

query II rowsort
SELECT ALL - col2 + - col2 AS col2, 78 FROM tab1 cor0
----
-118
78
-136
78
-192
78

query I rowsort
SELECT - + 0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT - - CAST( NULL AS SIGNED ) + + 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - CAST ( NULL AS INTEGER ) + + 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - - 72 FROM tab1
----
131
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT ALL 13 * - 50 * + col0 DIV - - 1 AS col0 FROM tab2
----
-29900
-41600
-48750

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL 13 * - 50 * + col0 / - - 1 AS col0 FROM tab2
----
-29900
-41600
-48750

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT - 5 * + COUNT( * ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - 5 * + COUNT ( * ) AS col0 FROM tab2
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 >= 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - + 17 AS col1 FROM tab1
----
-238
-799
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + - 90 AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + - 90 AS col0 FROM tab2
----
-87

query II rowsort
SELECT + + col0, - col2 * + - col0 + + col1 FROM tab0 AS cor0
----
15
786
87
891
97
9604

query II rowsort
SELECT + - 40 AS col0, 82 * + ( + 26 ) AS col1 FROM tab2 AS cor0
----
-40
2132
-40
2132
-40
2132

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT DISTINCT 18 + - SUM( DISTINCT + + col0 ) AS col2, - MIN( ALL + + 69 ) AS col1 FROM tab0 AS cor0
----
-181
-69

skipif mysql # not compatible
query II rowsort label-4431
SELECT DISTINCT 18 + - SUM ( DISTINCT + + col0 ) AS col2, - MIN ( ALL + + 69 ) AS col1 FROM tab0 AS cor0
----
-181
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + COUNT( DISTINCT + - col0 ) * ( COUNT( * ) ) + + 97 AS col1 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + COUNT ( DISTINCT + - col0 ) * ( COUNT ( * ) ) + + 97 AS col1 FROM tab1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - ( - - ( + + ( - COUNT( * ) ) ) ) FROM tab1 WHERE - col2 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT - ( - - ( + + ( - COUNT ( * ) ) ) ) FROM tab1 WHERE - col2 + - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT - ( + 8 ) AS col2 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT - - 65 * + 98 FROM tab2 AS cor0
----
6370
6370
6370

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 96 AS col2 FROM tab2 AS cor0
----
96

query II rowsort
SELECT ALL col0, 62 AS col0 FROM tab1 AS cor0
----
51
62
85
62
91
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - + col1 / - + col1 / - col2 * CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT - + col1 / - + col1 / - col2 * CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - - 3 AS SIGNED ) NOT IN ( col0, col2, col2, - + 82 )
----

skipif mysql # not compatible
query III rowsort label-4442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - - 3 AS INTEGER ) NOT IN ( col0, col2, col2, - + 82 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT DISTINCT - + 99 DIV - 58 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - + 99 / - 58 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT MIN( ALL - - 50 ) col2 FROM tab1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT MIN ( ALL - - 50 ) col2 FROM tab1
----
50

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( 17, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + 24 ) AS col2 FROM tab2
----
24
24
24

query I rowsort
SELECT + - 36 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( 41 ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL + - MIN( DISTINCT + - 60 ) + MAX( + - col2 ) + + - CAST( NULL AS SIGNED ) * COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + - MIN ( DISTINCT + - 60 ) + MAX ( + - col2 ) + + - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col2 AS col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT - - 24 * COUNT( * ) + - 97 col2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4453
SELECT DISTINCT - - 24 * COUNT ( * ) + - 97 col2 FROM tab1 AS cor0
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4454
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - 44 * - col1 - - col2 + - CAST( col1 AS DECIMAL ) + + - 35 + col1
----

skipif mysql # not compatible
query III rowsort label-4454
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - 44 * - col1 - - col2 + - CAST ( col1 AS REAL ) + + - 35 + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 20 > - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + - - col1 + - ( - ( + col0 ) ) * ( + + 45 ) + + - 72 FROM tab0 AS cor0
----
3885
4295
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT MAX( ALL + 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4457
SELECT MAX ( ALL + 87 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL + col2 + + - col2 * + ( + 20 ) * + - col0 + col2 * + col1 FROM tab1 AS cor0
----
100654
127024
99360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL SUM( DISTINCT - col2 ) * + 76 * - 14 FROM tab0
----
165984

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL SUM ( DISTINCT - col2 ) * + 76 * - 14 FROM tab0
----
165984

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT 25 * - 64 + + COUNT( * ) AS col1 FROM tab1 WHERE + - col1 IS NULL
----
-1600

skipif mysql # not compatible
query I rowsort label-4461
SELECT 25 * - 64 + + COUNT ( * ) AS col1 FROM tab1 WHERE + - col1 IS NULL
----
-1600

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4462
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) > CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4462
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) > CAST ( + col1 AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col0 ) >= NULL
----

query II rowsort
SELECT - col0 + + - col2 AS col2, - 63 + - col0 + col2 * 50 FROM tab2 AS cor0
----
-104
1873
-133
2762
-69
1041

query I rowsort
SELECT DISTINCT - 94 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT + 66 - + col2 AS col2 FROM tab1
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT + 29 IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT + + 82 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4470
SELECT + + 82 / + - col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - 23 AS col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

query I rowsort
SELECT + - 1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 BETWEEN ( + + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col0 * + 78 * + col2
----

query I rowsort
SELECT ALL + ( + 64 ) AS col0 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + COUNT( * ) * COUNT( ALL - + ( - col1 ) ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + COUNT ( * ) * COUNT ( ALL - + ( - col1 ) ) AS col1 FROM tab2 cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + ( - col1 ) * - col2 * - + col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + - COUNT( * ) * 74 + - + 47 FROM tab0 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-4479
SELECT + - COUNT ( * ) * 74 + - + 47 FROM tab0 AS cor0
----
-269

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - 85 ) BETWEEN col0 * 22 * col2 AND + col1 * + 0 * + - col1 * - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + COUNT( 71 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + COUNT ( 71 ) FROM tab2
----
3

query II rowsort
SELECT ALL 84, + col0 AS col0 FROM tab2
----
84
46
84
64
84
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) * col1 >= - col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL + CAST( 8 AS SIGNED ) FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + CAST ( 8 AS INTEGER ) FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT + - col2 * + + 54 * + + col0 AS col2 FROM tab1 AS cor0
----
-264384
-270810
-334152

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 30 FROM tab1 WHERE NOT ( - col0 ) > - col2
----
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + 65 + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + 65 + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4491
SELECT ALL col2 + + col1 + + 10 + + + ( - CAST( - + col2 AS SIGNED ) ) DIV + - ( + col0 ) FROM tab1 AS cor0
----
119
125
74

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL col2 + + col1 + + 10 + + + ( - CAST ( - + col2 AS INTEGER ) ) / + - ( + col0 ) FROM tab1 AS cor0
----
119
125
74

query I rowsort
SELECT ALL - 66 * col0 + - - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1200
-13224
-15714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col0 FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT ALL - 56 + col0 AS col0, - ( ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-41
-81
31
-21
41
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT 6 * - COUNT( * ) + + ( + + 7 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4495
SELECT 6 * - COUNT ( * ) + + ( + + 7 ) FROM tab1 AS cor0
----
-11

query II rowsort
SELECT col0, col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
51
85
85
91
91

query I rowsort
SELECT col2 * - col0 + + col1 AS col1 FROM tab1
----
-4882
-5010
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + + ( + col1 ) col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ( + + COUNT( * ) ) + - 49 AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4499
SELECT ( + + COUNT ( * ) ) + - 49 AS col0 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < col1 * - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - 82 - COUNT( * ) FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4501
SELECT - 82 - COUNT ( * ) FROM tab1 cor0
----
-85

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + col2 / + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4503
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4503
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + col1 + + ( + - col2 ) <> - + col1
----

query I rowsort
SELECT DISTINCT col2 * - - 63 AS col0 FROM tab2
----
1449
2520
3654

query I rowsort
SELECT ALL + 47 FROM tab2 AS cor0 WHERE col2 * - col2 + 3 = - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT SUM( + 78 ) AS col1 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-4508
SELECT SUM ( + 78 ) AS col1 FROM tab1 AS cor0
----
234

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 < col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * 74 * col2 AS col1 FROM tab2 AS cor0
----
-227920
-287564
-86802

query I rowsort
SELECT DISTINCT - - 35 * + col0 * + col2 FROM tab1 AS cor0
----
171360
175525
216580

query I rowsort
SELECT ALL - 52 * - 23 + + + 42 FROM tab0 AS cor0
----
1238
1238
1238

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT + col0 DIV - 80 - + + col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-4513
SELECT + col0 / - 80 - + + col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-15
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + SUM( DISTINCT col1 ) + + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT + SUM ( DISTINCT col1 ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) > NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, + 15 AS col0 FROM tab0
----
10
15
47
15
99
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL CAST( - - MIN( - + 68 ) AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL CAST ( - - MIN ( - + 68 ) AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
-68

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + 37 ) >= + 95 + - + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT MIN( - + 90 ) AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4521
SELECT MIN ( - + 90 ) AS col2 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 AS cor0 WHERE ( + 7 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4525
SELECT ALL col1, - 68 DIV + 70 + + + ( 7 ) + 0 AS col1 FROM tab2
----
51
7
67
7
77
7

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL col1, - 68 / + 70 + + + ( 7 ) + 0 AS col1 FROM tab2
----
51
7
67
7
77
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - 51 + - SUM( + col2 ) AS col0 FROM tab2
----
-172

skipif mysql # not compatible
query I rowsort label-4526
SELECT - 51 + - SUM ( + col2 ) AS col0 FROM tab2
----
-172

query II rowsort
SELECT DISTINCT col0, col1 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col0 NOT BETWEEN + - col2 * - + col2 AND col0 + - + col0 + + col1 + + ( + - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 48 ) AS col1 FROM tab2 cor0
----
-48
-48
-48

query II rowsort
SELECT DISTINCT + + col2, col1 * - 43 AS col0 FROM tab1 cor0
----
59
-215
68
-2021
96
-602

query I rowsort
SELECT ALL ( - ( + col0 ) ) + ( + ( 31 ) ) FROM tab2 AS cor0
----
-15
-33
-44

query II rowsort
SELECT ALL - - 95 + - - 9 AS col1, + col0 - + 47 FROM tab0 AS cor0
----
104
-32
104
40
104
50

query I rowsort
SELECT ALL - + col0 + + 92 * - col2 FROM tab2 AS cor0
----
-2162
-3744
-5411

query I rowsort
SELECT DISTINCT - col2 + 85 AS col0 FROM tab1 cor0
----
-11
17
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT - 38 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - 38 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT ALL + col2 * + col1 - - 96 AS col0 FROM tab1 AS cor0
----
1440
3292
391

query I rowsort
SELECT col0 * ( + + col0 ) FROM tab2 WHERE - 70 IS NOT NULL
----
2116
4096
5625

query I rowsort
SELECT 68 - + col1 AS col0 FROM tab1
----
21
54
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 + + 36 NOT BETWEEN NULL AND + + 13
----

query II rowsort
SELECT ALL col1 + + col2, ( + col2 ) * - + col2 AS col0 FROM tab2
----
117
-1600
125
-3364
74
-529

query I rowsort
SELECT + - 32 AS col0 FROM tab1 WHERE - + 30 + 34 = col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - ( 41 ) * 29 + col0 = + col0
----

query I rowsort
SELECT ALL col2 - 2 + + col1 * col1 AS col2 FROM tab1
----
2275
290
82

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT 1 + - COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-4546
SELECT 1 + - COUNT ( * ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT + ( + + 65 ) + + 21 FROM tab1
----
86
86
86

query I rowsort
SELECT col2 + + - 13 FROM tab2
----
10
27
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + ( 89 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + ( - col2 )
----

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + + col2 + 90 - 61 + - - col1 FROM tab1 AS cor0
----
139
144
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 57 ) col2 FROM tab2 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + MAX( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + MAX ( + + col1 ) FROM tab1
----
47

query I rowsort
SELECT col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - + 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT DISTINCT + SUM( - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT + SUM ( - + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT + CAST( + 47 AS SIGNED ) FROM tab1 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4560
SELECT + CAST ( + 47 AS INTEGER ) FROM tab1 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4561
SELECT + SUM( - + 88 ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-264
NULL

skipif mysql # not compatible
query II rowsort label-4561
SELECT + SUM ( - + 88 ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-264
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT 0 * + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1
----
74

query I rowsort
SELECT col1 * 78 + + col0 FROM tab2
----
4024
5301
6070

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL MAX( ALL - col0 ) * - MAX( ALL + col1 ) FROM tab1
----
2397

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL MAX ( ALL - col0 ) * - MAX ( ALL + col1 ) FROM tab1
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - 21 + - COUNT( - + col1 ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 21 + - COUNT ( - + col1 ) AS col0 FROM tab1
----
-24

query II rowsort
SELECT DISTINCT ( - 45 ) * - + 27 * + col1, col2 AS col1 FROM tab0
----
1215
99
25515
10
98415
47

query I rowsort
SELECT - 87 + - col0 + 99 * + col0 * + + col0 FROM tab1
----
257361
715103
819641

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT DISTINCT + COUNT( * ) * 81, SUM( ALL col1 ) * + 63 * 57 AS col2 FROM tab0
----
243
369873

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT + COUNT ( * ) * 81, SUM ( ALL col1 ) * + 63 * 57 AS col2 FROM tab0
----
243
369873

query I rowsort
SELECT DISTINCT + col1 + + + 44 AS col0 FROM tab2
----
111
121
95

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 * + ( - col1 ) + + 70 + 31 FROM tab2 AS cor0
----
-1378
-1842
-2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - col0 * - - col1, col0, - CAST( NULL AS SIGNED ), - ( + 23 ) * + col0 * - CAST( NULL AS SIGNED ) + 17, - col1 * - col2 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-4574
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - col0 * - - col1, col0, - CAST ( NULL AS INTEGER ), - ( + 23 ) * + col0 * - CAST ( NULL AS INTEGER ) + 17, - col1 * - col2 * + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + 0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT - col0 * - CAST( - ( 81 ) AS SIGNED ) + - 14 + - + col0 + - col2 * - col0 + + 1 FROM tab0 AS cor0
----
-538
-6277
1636

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - col0 * - CAST ( - ( 81 ) AS INTEGER ) + - 14 + - + col0 + - col2 * - col0 + + 1 FROM tab0 AS cor0
----
-538
-6277
1636

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE - col0 + 71 + + 4 IS NULL
----

query I rowsort
SELECT - + 56 + - col1 AS col2 FROM tab2 AS cor0
----
-107
-123
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4580
SELECT ALL CAST( NULL AS DECIMAL ) + - + MAX( + - 47 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL CAST ( NULL AS REAL ) + - + MAX ( + - 47 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 - - col0 + - 75 FROM tab1
----
69
72
84

query I rowsort
SELECT ( - 66 ) AS col1 FROM tab0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL col0 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL col0 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT DISTINCT - col1 - + - CAST( + - 89 AS SIGNED ) FROM tab2
----
-140
-156
-166

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - col1 - + - CAST ( + - 89 AS INTEGER ) FROM tab2
----
-140
-156
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT COUNT( * ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT COUNT ( * ) FROM tab1, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 67 * + + COUNT( DISTINCT + - 65 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 67 * + + COUNT ( DISTINCT + - 65 ) FROM tab0 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT - col2 DIV + col2 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - col2 / + col2 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 98 col1 FROM tab1 AS cor0
----
4998
8330
8918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4590
SELECT col1 * - - col1 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
196
NULL
2209
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-4590
SELECT col1 * - - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
196
NULL
2209
NULL
25
NULL

query I rowsort
SELECT col2 + + 95 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + - 63 col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - 28 * - col0 AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col0 FROM tab0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4595
SELECT ( + 35 ) DIV + 3 col2, - COUNT( * ) FROM tab2
----
11
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4595
SELECT ( + 35 ) / + 3 col2, - COUNT ( * ) FROM tab2
----
11
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT 11 + - SUM( ALL - - col2 ) + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT DISTINCT 11 + - SUM ( ALL - - col2 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT + col2 + - + col1 DIV + 41 AS col1 FROM tab1 AS cor0
----
59
67
96

skipif mysql # not compatible
query I rowsort label-4597
SELECT + col2 + - + col1 / + 41 AS col1 FROM tab1 AS cor0
----
59
67
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + MAX( ALL + col1 ) AS col1, MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
77
58

skipif mysql # not compatible
query II rowsort label-4598
SELECT + MAX ( ALL + col1 ) AS col1, MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
77
58

query I rowsort
SELECT ALL 94 + col2 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT col2 DIV 84 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4600
SELECT col2 / 84 - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + ( 8 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 66 * + col2 * + col2 + col1 <= - - 83 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - COUNT( * ) - - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT 76 DIV - col1 col2 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4606
SELECT DISTINCT 76 / - col1 col2 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 13 = NULL
----

query I rowsort
SELECT 53 * 40 * ( - col1 ) FROM tab2
----
-108120
-142040
-163240

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 5 * + col1 + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 < + col2 + - col1 * 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT MIN( + 43 ) * COUNT( * ) AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-4611
SELECT MIN ( + 43 ) * COUNT ( * ) AS col1 FROM tab0
----
129

query I rowsort
SELECT DISTINCT - ( 50 ) FROM tab1 cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4613
SELECT + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT ALL - col1 + + 79 AS col2, + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT - - col1 DIV - - 83 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT - - col1 / - - 83 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - COUNT( - - col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4616
SELECT - COUNT ( - - col2 ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + 49 + + COUNT( * ) FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + 49 + + COUNT ( * ) FROM tab2 cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT + 37 + COUNT( * ) DIV - + MIN( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + 37 + COUNT ( * ) / - + MIN ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37

query I rowsort
SELECT ( 84 ) * col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 31 AS col0 FROM tab0 cor0
----
-112
-32
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + MAX( DISTINCT + 13 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + MAX ( DISTINCT + 13 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT COUNT( * ) + + 26 AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4625
SELECT COUNT ( * ) + + 26 AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-4626
SELECT col0 + - col1 * - col1 + + - col1 DIV col0 AS col0, col1 FROM tab2
----
2646
51
4564
67
5992
77

skipif mysql # not compatible
query II rowsort label-4626
SELECT col0 + - col1 * - col1 + + - col1 / col0 AS col0, col1 FROM tab2
----
2646
51
4564
67
5992
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT + 15 + + - 28 * + COUNT( DISTINCT col0 ) + COUNT( * ) - - COUNT( * ) col2 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT + 15 + + - 28 * + COUNT ( DISTINCT col0 ) + COUNT ( * ) - - COUNT ( * ) col2 FROM tab0
----
-63

query I rowsort
SELECT - ( col0 ) + + 57 AS col1 FROM tab2
----
-18
-7
11

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 34 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col0 FROM tab1 WHERE - 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + + col2 col2 FROM tab0 AS cor0
----
-15
22
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT - col1 DIV col0 * col2 FROM tab0 AS cor0
----
-235
0
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT - col1 / col0 * col2 FROM tab0 AS cor0
----
-235
0
0

query I rowsort
SELECT ALL + + col2 + + 39 FROM tab1 AS cor0
----
107
135
98

query I rowsort
SELECT + 18 AS col0 FROM tab0 cor0
----
18
18
18

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 * + 72 FROM tab1
----
-51
3672
-85
6120
-91
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT + + 85 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + + 85 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL COUNT( * ) + + + MAX( - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL COUNT ( * ) + + + MAX ( - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT ( - - SUM( ALL + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT ( - - SUM ( ALL + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 15 * + col0 + col0 FROM tab2 AS cor0
----
1024
1200
736

query I rowsort
SELECT + col0 + 53 FROM tab1 cor0
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT - COUNT( ALL + + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - COUNT ( ALL + + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT - 24 * + MIN( - - 58 ) * + 46 AS col0 FROM tab2 AS cor0 WHERE - col0 / + - col1 IS NOT NULL
----
-64032

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - 24 * + MIN ( - - 58 ) * + 46 AS col0 FROM tab2 AS cor0 WHERE - col0 / + - col1 IS NOT NULL
----
-64032

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT 18 * - COUNT( * ) col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4643
SELECT 18 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - MIN( - 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4644
SELECT - MIN ( - 64 ) FROM tab0 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL > col0 ) )
----

query I rowsort
SELECT 33 * - col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - SUM( DISTINCT - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-4649
SELECT DISTINCT - col1 DIV + + col0 AS col1, + 49 + - col2 AS col1 FROM tab1
----
0
-10
0
-19
0
-47

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT - col1 / + + col0 AS col1, + 49 + - col2 AS col1 FROM tab1
----
0
-10
0
-19
0
-47

query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab2 WHERE - - col0 * - + col2 * - col0 + - 26 NOT BETWEEN NULL AND 50 - col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + ( - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4651
SELECT ALL + ( - COUNT ( * ) ) col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT 4 DIV + 52 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 4 / + 52 AS col1 FROM tab2
----
0

query I rowsort
SELECT - 60 + + 56 * col1 * + 94 AS col0 FROM tab1
----
247348
26260
73636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col2 + col1 col1, + col2 * 88 AS col0 FROM tab2
----
1224
2024
3157
3520
3953
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL MIN( - 82 ) AS col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL MIN ( - 82 ) AS col2 FROM tab1 AS cor0
----
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - col1 * - - col0 - - col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + COUNT( ALL col0 ) + + 26 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + COUNT ( ALL col0 ) + + 26 FROM tab1 cor0
----
29

query II rowsort
SELECT - col2, - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - col2 * + ( - col1 ) - - col2 * + col2 - + + ( + + col2 ) + + + col2 * + col2, col0 + + + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT - COUNT( + - ( - + col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - COUNT ( + - ( - + col0 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT 61 + - col0 * 6 FROM tab0
----
-29
-461
-521

query I rowsort
SELECT col1 * + 0 + - col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col0 + col0 * + - ( - + col2 ) + + 85 AS col2 FROM tab0
----
1042
805
9785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT + + ( SUM( ALL - 20 ) ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + + ( SUM ( ALL - 20 ) ) FROM tab2 AS cor0
----
-60

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( + col1 * + col1 - + 36 / + 11 + col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + - + 68 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + - + 68 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4669
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 30 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4669
SELECT DISTINCT CAST ( NULL AS REAL ) + - 30 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 58 <> + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT DISTINCT + 34 DIV - + col1 - + + col0 AS col2 FROM tab1
----
-53
-91

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + 34 / - + col1 - + + col0 AS col2 FROM tab1
----
-53
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL MAX( + 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL MAX ( + 68 ) FROM tab0 AS cor0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT + 21 + - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + CAST( NULL AS SIGNED ) <= - col1 * - col2 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + 21 + - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + CAST ( NULL AS INTEGER ) <= - col1 * - col2 + + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 * - col2 + + ( + col1 ) + - col1 AS col0, + col2 col0 FROM tab1 AS cor0
----
-1829
59
-2108
68
-2976
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT - - 94 - CAST( - 68 AS SIGNED ) / + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - 94 - CAST ( - 68 AS INTEGER ) / + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 55 + 72 + - 89 * + 64 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 AND ( + + ( col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4678
SELECT + 39 AS col2, + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
39
-3

skipif mysql # not compatible
query II rowsort label-4678
SELECT + 39 AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
39
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT MIN( ALL + - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4679
SELECT MIN ( ALL + - col1 ) AS col2 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + col2 * - - 60 FROM tab1
----
3540
4080
5760

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE + - 2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col2 * + + col1 >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT - col1 DIV 33 col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT DISTINCT - col1 / 33 col1 FROM tab0 AS cor0
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / 17 * + col1 * + - col1 + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 17 * + col1 * + - col1 + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + SUM( DISTINCT col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4688
SELECT + SUM ( DISTINCT col2 ) col2 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col2 ) * + col1 NOT IN ( 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT ALL - 44 DIV - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - 44 / - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
3
8

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE + col1 <= + 68 * - col2 + + col1
----

query I rowsort
SELECT DISTINCT + ( - 78 ) AS col0 FROM tab1
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col1 + 13 * col0 AS col0 FROM tab1
----
1110
1230
677

query I rowsort
SELECT DISTINCT col2 * 60 + col2 AS col2 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - COUNT( ALL 53 ) + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4696
SELECT - COUNT ( ALL 53 ) + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 * + 23 AS col2 FROM tab1
----
-782
-782
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL SUM( col0 ) * + 10 FROM tab1
----
2270

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL SUM ( col0 ) * + 10 FROM tab1
----
2270

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 62 BETWEEN + ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 / + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT CAST( NULL AS SIGNED ) * + 43 + CAST( CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT CAST ( NULL AS INTEGER ) * + 43 + CAST ( CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 87 + 79 * - col1 FROM tab0
----
-1572
-6312
8

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT col2 * - col1 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT col2 * - col1 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1 WHERE NOT ( col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT + 27 DIV - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4710
SELECT + 27 / - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT 75 + - ( + SUM( DISTINCT col1 ) + MIN( 22 ) ) AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT 75 + - ( + SUM ( DISTINCT col1 ) + MIN ( 22 ) ) AS col2 FROM tab1 AS cor0
----
-13

query III rowsort
SELECT * FROM tab2 cor0 WHERE 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + col2 - col2 * - col1 FROM tab0 AS cor0
----
310
6016
9900

query I rowsort
SELECT DISTINCT col2 - + 75 AS col1 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT DISTINCT col2 - - ( + col1 ) * - 20 FROM tab0
----
-1573
-410
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 50 ) BETWEEN col0 AND + col1
----
87
21
10
97
1
99

query I rowsort
SELECT - ( ( 94 ) ) AS col2 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

query I rowsort
SELECT + + 2 * col1 AS col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 98 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - - 77 * + CAST( - COUNT( * ) + SUM( + col1 + - ( col0 + col1 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-17710

skipif mysql # not compatible
query I rowsort label-4722
SELECT - - 77 * + CAST ( - COUNT ( * ) + SUM ( + col1 + - ( col0 + col1 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-17710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT + 82 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
4182
5494
6314

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 82 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT + 87 DIV + 64 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 87 / + 64 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - 7 * COUNT( * ) col0 FROM tab2
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4725
SELECT - 7 * COUNT ( * ) col0 FROM tab2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4726
SELECT col0 / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT col0 / CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + col1 / - 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col1 ) / - ( - col0 ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= 68 * - 7
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT col2 + col1 BETWEEN - ( 10 ) AND col2 * 73
----

query I rowsort
SELECT DISTINCT 80 * 66 FROM tab0
----
5280

query I rowsort
SELECT - ( - + 88 ) AS col0 FROM tab1
----
88
88
88

query I rowsort
SELECT ALL + 69 * + col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT DISTINCT + 41 * - 29 * col0 AS col1 FROM tab0
----
-103443
-115333
-17835

query I rowsort
SELECT DISTINCT - 2 + - - 57 + + col0 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT - SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + 77 ) + - col2 AS col2 FROM tab0 AS cor0
----
-124
-176
-87

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col1 + - 31 * 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + 94 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 94 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT + - 29 + - - 15 DIV - col2 AS col0 FROM tab0 AS cor0
----
-29
-29
-30

skipif mysql # not compatible
query I rowsort label-4740
SELECT + - 29 + - - 15 / - col2 AS col0 FROM tab0 AS cor0
----
-29
-29
-30

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT 1 * COUNT( ALL - col0 ) AS col0 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT 1 * COUNT ( ALL - col0 ) AS col0 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
0

query I rowsort
SELECT col2 * - 55 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT DISTINCT + col2 + - 27 AS col1 FROM tab0
----
-17
20
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 65 col1 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL 90 - MAX( DISTINCT - col2 ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL 90 - MAX ( DISTINCT - col2 ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4748
SELECT SUM ( col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT - - 31 DIV - 92 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - - 31 / - 92 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 54 + 75 FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL col0 + CAST( NULL AS SIGNED ) 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-4751
SELECT ALL col0 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= ( + col2 * - col1 - 41 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + 82
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT ALL ( + 66 ) + + + MIN( + CAST( 23 AS SIGNED ) ) * 83 col2 FROM tab2
----
1975

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT ALL ( + 66 ) + + + MIN ( + CAST ( 23 AS INTEGER ) ) * 83 col2 FROM tab2
----
1975

query II rowsort
SELECT ALL - col0 * col2, - col2 AS col2 FROM tab1
----
-4896
-96
-5015
-59
-6188
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - 5 DIV + + 65 - + col2 + - col1 + + col0 FROM tab1
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 5 / + + 65 - + col2 + - col1 + + col0 FROM tab1
----
-24
-59
21

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN col0 AND col1 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT COUNT( + CAST( NULL AS SIGNED ) ) + - 15 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-4758
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) + - 15 FROM tab2
----
-15

query I rowsort
SELECT DISTINCT 48 + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
128
164
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4761
SELECT DISTINCT SUM( ALL + col2 ) + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT SUM ( ALL + col2 ) + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - ( + 31 ) * 19 FROM tab2 AS cor0
----
-589
-589
-589

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * 47 AND - + col0 - col1
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT ALL + - AVG ( DISTINCT + 47 ) FROM tab1 AS cor0 WHERE NULL < + 16 + - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL - SUM( DISTINCT + 77 ) AS col0 FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - SUM ( DISTINCT + 77 ) AS col0 FROM tab1 cor0
----
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / - col1 * + 15 * - ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT + col0 DIV - 73 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT + col0 / - 73 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT 33 FROM tab1 WHERE NOT ( col0 * 33 BETWEEN + col1 AND + 16 )
----
33

query II rowsort
SELECT col1, + 47 * + col2 FROM tab1
----
14
4512
47
3196
5
2773

query I rowsort
SELECT ALL + 2 * + + col2 * + col1 FROM tab2
----
2346
6160
7772

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 30 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4774
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT col1 * + col1 + + - 91 FROM tab2
----
2510
4398
5838

query I rowsort
SELECT 24 + col1 AS col1 FROM tab0
----
105
25
45

query III rowsort
SELECT DISTINCT col2, + 16 AS col2, - col2 FROM tab2 cor0
----
9 values hashing to 21ec14d55ff959269c5111475bc8e1bd

query I rowsort
SELECT ALL + 16 + + + ( - col1 ) * + + col1 * col1 FROM tab1 AS cor0
----
-103807
-109
-2728

query I rowsort
SELECT col0 * + 34 FROM tab0 cor0
----
2958
3298
510

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 4 * 95 >= ( - + 8 * col2 )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT col1 + + col1 FROM tab1 AS cor0 WHERE - ( - + CAST( NULL AS SIGNED ) ) <= col2
----

skipif mysql # not compatible
query I rowsort label-4781
SELECT col1 + + col1 FROM tab1 AS cor0 WHERE - ( - + CAST ( NULL AS INTEGER ) ) <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT - col2 FROM tab2 WHERE ( - CAST( - 96 AS SIGNED ) ) NOT BETWEEN - CAST( 67 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4782
SELECT - col2 FROM tab2 WHERE ( - CAST ( - 96 AS INTEGER ) ) NOT BETWEEN - CAST ( 67 AS INTEGER ) AND ( NULL )
----

query II rowsort
SELECT ALL + col2 + - col0, ( - col2 ) AS col0 FROM tab1 AS cor0
----
-23
-68
-26
-59
45
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT - - col2 * - col1 * + col0 + - 24 * - CAST( NULL AS SIGNED ) + 66 + ( + 42 ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT - - col2 * - col1 * + col0 + - 24 * - CAST ( NULL AS INTEGER ) + 66 + ( + 42 ) + + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL col0 * - col0 * - CAST( + 65 AS SIGNED ) * + col1 + + - col1 FROM tab1 AS cor0
----
2348120
2366896
25298408

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL col0 * - col0 * - CAST ( + 65 AS INTEGER ) * + col1 + + - col1 FROM tab1 AS cor0
----
2348120
2366896
25298408

query I rowsort
SELECT + - 43 * col1 AS col0 FROM tab0 AS cor0
----
-3483
-43
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL 81 - + + COUNT( * ) - + - 15 AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 81 - + + COUNT ( * ) - + - 15 AS col1 FROM tab0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT - 10 + + col0 AS col2 FROM tab0 WHERE ( + - 53 ) >= + col1 - 52 DIV col1 * - + col0 * 82 * - 70 + 56
----
77
87

skipif mysql # not compatible
query I rowsort label-4788
SELECT - 10 + + col0 AS col2 FROM tab0 WHERE ( + - 53 ) >= + col1 - 52 / col1 * - + col0 * 82 * - 70 + 56
----
77
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4789
SELECT ALL 8 DIV - 50 * - + col0 AS col2, 19 + - ( + col1 ) * - col1 AS col2 FROM tab2
----
0
2620
0
4508
0
5948

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL 8 / - 50 * - + col0 AS col2, 19 + - ( + col1 ) * - col1 AS col2 FROM tab2
----
0
2620
0
4508
0
5948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT CAST( 58 AS SIGNED ) col1 FROM tab2
----
58
58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4790
SELECT CAST ( 58 AS INTEGER ) col1 FROM tab2
----
58
58
58

query I rowsort
SELECT - col0 FROM tab2 WHERE + + col2 - + 47 IS NULL
----

query I rowsort
SELECT ALL ( + + col0 ) - - ( + - 43 ) + col1 FROM tab1
----
22
47
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL MAX( - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL MAX ( - 11 ) AS col1 FROM tab0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col0 - col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4795
SELECT - col1 DIV - 42 + + col1 * ( CAST( - col2 AS SIGNED ) ) + + col0 FROM tab2 AS cor0
----
-1126
-3015
-3810

skipif mysql # not compatible
query I rowsort label-4795
SELECT - col1 / - 42 + + col1 * ( CAST ( - col2 AS INTEGER ) ) + + col0 FROM tab2 AS cor0
----
-1126
-3015
-3810

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT COUNT( * ) * + 77 FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4796
SELECT COUNT ( * ) * + 77 FROM tab2 cor0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ALL + 28 * + + 48 DIV - 6 FROM tab1
----
-224
-224
-224

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + 28 * + + 48 / - 6 FROM tab1
----
-224
-224
-224

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 IS NULL
----
59
68
96

query I rowsort
SELECT + - 34 AS col1 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + 59 * - 17 FROM tab0 AS cor0
----
-1003
-1003
-1003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * - - 11 col2 FROM tab2 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 44 col2 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT DISTINCT MIN( 25 ) * 89 AS col0 FROM tab1 WHERE NOT - col2 + - + col2 + - 21 * - col0 > CAST( - - col2 AS SIGNED ) + - col0 * + + ( - col1 ) * 65
----
2225

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT MIN ( 25 ) * 89 AS col0 FROM tab1 WHERE NOT - col2 + - + col2 + - 21 * - col0 > CAST ( - - col2 AS INTEGER ) + - col0 * + + ( - col1 ) * 65
----
2225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 > + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT COUNT( ALL + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT COUNT ( ALL + + col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 17 + - col2 FROM tab1
----
-113
-76
-85

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4809
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4809
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab2
----
NULL
3

query II rowsort
SELECT 82 AS col1, + col1 AS col1 FROM tab2 cor0
----
82
51
82
67
82
77

query I rowsort
SELECT + 4 * + col1 FROM tab1 cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT ALL CAST( CAST( - + 15 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( NULL IS NULL )
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL CAST ( CAST ( - + 15 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( NULL IS NULL )
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 < ( 0 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 < ( 0 * col0 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 * col0 col0 FROM tab1 cor0
----
-4284
-7140
-7644

query I rowsort
SELECT ALL - col1 + - 40 + + col1 + - 61 * col0 AS col0 FROM tab0 AS cor0
----
-5347
-5957
-955

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + - 3 + - col1 NOT BETWEEN col1 AND + col1 * - col1 + col0 / + col1 AND ( col2 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4818
SELECT ALL - col1 DIV col1 + - col0 - 12 * col1 * - - col1 * col0 * col2 + col2 AS col2, 36 * + col1 + + col0 * - 13 col2 FROM tab2 AS cor0
----
-182138905
1940
-234325818
1437
-33022320
1238

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4818
SELECT ALL - col1 / col1 + - col0 - 12 * col1 * - - col1 * col0 * col2 + col2 AS col2, 36 * + col1 + + col0 * - 13 col2 FROM tab2 AS cor0
----
-182138905
1940
-234325818
1437
-33022320
1238

query I rowsort
SELECT DISTINCT - - 42 + - col2 AS col0 FROM tab2 AS cor0
----
-16
19
2

query I rowsort
SELECT ALL - 66 * + col1 FROM tab1 WHERE NULL IS NULL
----
-3102
-330
-924

query II rowsort
SELECT col0 + + 40, + col0 FROM tab2
----
104
64
115
75
86
46

query I rowsort
SELECT ALL ( + - col2 ) - - 52 + col2 FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT - 34 * - col0 + - col2 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT - 34 * - col0 + - col2 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * - + ( - + col0 ) - + + 98 FROM tab0
----
607
772
9505

query I rowsort
SELECT + col2 * + 58 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT + ( - + col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + - 5 FROM tab2 AS cor0
----
-255
-335
-385

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + - 5 FROM tab2 AS cor0
----
-255
-335
-385

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - + ( + - col1 ) + + col1 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 62 * 46 AS col2 FROM tab2 AS cor0
----
-2852
-2852
-2852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT - ( - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + + ( - - col1 ) ) ) * + col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4833
SELECT DISTINCT 29 AS col2, MAX( DISTINCT ( - - col1 ) ) DIV - - 29 FROM tab0
----
29
2

skipif mysql # not compatible
query II rowsort label-4833
SELECT DISTINCT 29 AS col2, MAX ( DISTINCT ( - - col1 ) ) / - - 29 FROM tab0
----
29
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT - COUNT( * ) AS col1, + MAX( + col0 ) * - MAX( - - col1 ) AS col1 FROM tab2
----
-3
-5775

skipif mysql # not compatible
query II rowsort label-4834
SELECT - COUNT ( * ) AS col1, + MAX ( + col0 ) * - MAX ( - - col1 ) AS col1 FROM tab2
----
-3
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT ( + - CAST( col2 AS SIGNED ) ), col0 FROM tab0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-4835
SELECT ( + - CAST ( col2 AS INTEGER ) ), col0 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL + col1 * + + col0 AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 53 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL - - ( - col0 ) * CAST( NULL AS SIGNED ) + + col1 + col0 / + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - - ( - col0 ) * CAST ( NULL AS INTEGER ) + + col1 + col0 / + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT COUNT( * ) * + 47 + COUNT( * ) * 67 + - COUNT( * ) FROM tab0 AS cor0
----
339

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT COUNT ( * ) * + 47 + COUNT ( * ) * 67 + - COUNT ( * ) FROM tab0 AS cor0
----
339

query II rowsort
SELECT 34 + + col2 AS col1, col0 - + - col0 FROM tab0
----
133
194
44
174
81
30

query I rowsort
SELECT - col1 * + 95 + + + col2 FROM tab0
----
-1985
-7648
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 0 + - - col2 - - col1 * + - 50 col2 FROM tab2
----
-2527
-3292
-3810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT - + col2 + + col1 * col2 + + col0, col2 * + 24 * + CAST( - - col0 AS SIGNED ) FROM tab1 WHERE + + ( - 19 ) * + col0 * col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4844
SELECT - + col2 + + col1 * col2 + + col0, col2 * + 24 * + CAST ( - - col0 AS INTEGER ) FROM tab1 WHERE + + ( - 19 ) * + col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT DISTINCT - + AVG ( ALL - CAST( - - col2 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - + AVG ( ALL - CAST ( - - col2 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + 18 + + + 75 * + col2 FROM tab1 cor0
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE 79 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE 79 * - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT COUNT( ALL + - col2 ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4849
SELECT COUNT ( ALL + - col2 ) col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT MIN( DISTINCT 10 ) AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4850
SELECT MIN ( DISTINCT 10 ) AS col0 FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL ( + - COUNT( * ) ) + 72 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL ( + - COUNT ( * ) ) + 72 FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 11 - col2 * col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 26 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT DISTINCT col1, 58 FROM tab1
----
14
58
47
58
5
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * - + col1 * 12 AND - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 + + + 19 + - + col2 * + 90 IN ( + 53, col1 * + col1, + - col1 * + 72 + - col0 + col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + 56 + - col1 AS col2 FROM tab1 AS cor0
----
100
136
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + 45 col0 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT - col1 * - 72 + + 64 + - col0 FROM tab0 cor0
----
1489
39
5881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( * ) - + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( * ) - + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + 44 + + + col0 col1 FROM tab1
----
-14
95
-47
135
-5
129

query II rowsort
SELECT + col0 AS col0, + 83 AS col0 FROM tab0
----
15
83
87
83
97
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col1 + + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT col2 AS col0, + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4866
SELECT col2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 > NULL
----

query I rowsort
SELECT ALL - col1 * + - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - SUM( DISTINCT - 72 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - SUM ( DISTINCT - 72 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT - ( + 26 ) * - 91 AS col2 FROM tab1 AS cor0
----
2366
2366
2366

query I rowsort
SELECT DISTINCT + 94 * 41 * - col0 AS col2 FROM tab2 AS cor0
----
-177284
-246656
-289050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT - CAST( + + ( + col0 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT - CAST ( + + ( + col0 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - col1 * col1, 70 * 10 AS col1 FROM tab0 AS cor0
----
-1
700
-441
700
-6561
700

query I rowsort
SELECT ALL + + ( - - 85 ) AS col2 FROM tab0 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab0 AS cor0 WHERE NOT 92 IS NOT NULL
----

query I rowsort
SELECT - 11 + - 54 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4877
SELECT + - CAST( - + COUNT( * ) AS SIGNED ), COUNT( + - col1 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4877
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ), COUNT ( + - col1 ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT DISTINCT + 91 DIV + col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + 91 / + col2 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT ALL col2 * + + col1 AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
28
37
9

query I rowsort
SELECT DISTINCT + 64 + - col0 FROM tab0
----
-23
-33
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4883
SELECT ALL + col1 + + + ( CAST( NULL AS SIGNED ) ), ( col2 ) FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL + col1 + + + ( CAST ( NULL AS INTEGER ) ), ( col2 ) FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT ALL - col0 AS col0, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT - ( + 67 ) * col1 + col2 - - 47 FROM tab0
----
-1350
-5333
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - SUM( - col1 ) - - 42 AS col1 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-4886
SELECT - SUM ( - col1 ) - - 42 AS col1 FROM tab0 AS cor0
----
145

query I rowsort
SELECT DISTINCT - - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 68 * - - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL 78 AS col1, col0 AS col1 FROM tab2
----
78
46
78
64
78
75

query I rowsort
SELECT ALL col2 * - - col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ( + MAX( + col0 ) ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4892
SELECT ( + MAX ( + col0 ) ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL - 8 / - - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 52 * + col0 AS col0 FROM tab1
----
2652
4420
4732

query II rowsort
SELECT + col2 AS col0, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT MIN( ALL + + col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4896
SELECT MIN ( ALL + + col0 ) col2 FROM tab0
----
15

query I rowsort
SELECT ALL - col2 + + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-45
23
26

query II rowsort
SELECT + col1 AS col1, + col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL - MAX( 77 ) + 73 col0 FROM tab2 cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT ALL - MAX ( 77 ) + 73 col0 FROM tab2 cor0
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 53 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + col1, col2 / + - 98, + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 1 + - 4 col0 FROM tab0 AS cor0
----
-25
-5
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + col1 * - col0 + - CAST( NULL AS SIGNED ) + - - 9 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + col1 * - col0 + - CAST ( NULL AS INTEGER ) + - - 9 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL

query I rowsort
SELECT - 63 * - + col2 + col0 * + - 85 AS col1 FROM tab2
----
-2461
-2721
-2920

query I rowsort
SELECT ALL + 30 * + - ( 19 ) FROM tab1
----
-570
-570
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT col2 ) col0 FROM tab2 WHERE NULL = + 74
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 = - + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 89 + - 10 FROM tab2
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4911
SELECT DISTINCT col1 DIV - 9, col1 FROM tab1
----
-1
14
-5
47
0
5

skipif mysql # not compatible
query II rowsort label-4911
SELECT DISTINCT col1 / - 9, col1 FROM tab1
----
-1
14
-5
47
0
5

query I rowsort
SELECT col2 * col2 * + 64 AS col1 FROM tab0
----
141376
627264
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT + 32 * - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT + 32 * - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
-93

query I rowsort
SELECT ALL - 68 * - 96 * ( 19 ) FROM tab2
----
124032
124032
124032

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL 87 * - + 50 + + - COUNT( * ) + + 21 * - 89 FROM tab1 AS cor0
----
-6222

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL 87 * - + 50 + + - COUNT ( * ) + + 21 * - 89 FROM tab1 AS cor0
----
-6222

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4917
SELECT + + col0 * CAST( NULL AS DECIMAL ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT + + col0 * CAST ( NULL AS REAL ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + COUNT( * ) - 52 AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-4919
SELECT + COUNT ( * ) - 52 AS col1 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT + CAST( - 6 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + CAST ( - 6 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 / - col2 AND + ( col2 ) / + - 16
----

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 / - col2 AND + ( col2 ) / + - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 76 * + 58 * - - ( + + COUNT( * ) ) * COUNT( ALL - col2 ) FROM tab1 cor0
----
39672

skipif mysql # not compatible
query I rowsort label-4924
SELECT 76 * + 58 * - - ( + + COUNT ( * ) ) * COUNT ( ALL - col2 ) FROM tab1 cor0
----
39672

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4925
SELECT - - COUNT( * ) DIV - - 42 * - 41, - 72 AS col2 FROM tab0 cor0
----
0
-72

skipif mysql # not compatible
query II rowsort label-4925
SELECT - - COUNT ( * ) / - - 42 * - 41, - 72 AS col2 FROM tab0 cor0
----
0
-72

query I rowsort
SELECT col1 * + 41 FROM tab2 AS cor0
----
2091
2747
3157

query II rowsort
SELECT 71 AS col2, + col1 + - 69 FROM tab2 AS cor0
----
71
-18
71
-2
71
8

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 15 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + col1 * - col0 * + 41 FROM tab0 AS cor0
----
2341305
393723
749070

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - SUM( - ( 47 ) ) * + 99 FROM tab1 AS cor0
----
13959

skipif mysql # not compatible
query I rowsort label-4930
SELECT - SUM ( - ( 47 ) ) * + 99 FROM tab1 AS cor0
----
13959

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT - col0 DIV - ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4931
SELECT - col0 / - ( + col2 ) AS col1 FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 25 < NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 - - col1
----

query II rowsort
SELECT + + col0, col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + + 22 + + - col0 + - 11 AS col2 FROM tab2 AS cor0
----
-35
-53
-64

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 > - col2 * col1
----
51
67
77

query II rowsort
SELECT ALL - col1, - ( - col1 ) + col1 AS col2 FROM tab0
----
-1
2
-21
42
-81
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4938
SELECT * FROM tab2 WHERE - col0 * + - CAST( NULL AS SIGNED ) * 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4938
SELECT * FROM tab2 WHERE - col0 * + - CAST ( NULL AS INTEGER ) * 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - 79 AS col2 FROM tab2
----
-15
-33
-4

query I rowsort
SELECT 26 + - 89 AS col2 FROM tab0
----
-63
-63
-63

query II rowsort
SELECT ALL col1, - 89 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-89
67
-89
77
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT + + ( - + CAST( NULL AS SIGNED ) ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + + ( - + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + col1 >= NULL
----

query I rowsort
SELECT ALL - col1 - - + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT - MIN( - col0 ) DIV 34 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - MIN ( - col0 ) / 34 AS col2 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT - SUM( ALL + + col0 ) * - 96 * + + COUNT( * ) FROM tab0 AS cor0
----
57312

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - SUM ( ALL + + col0 ) * - 96 * + + COUNT ( * ) FROM tab0 AS cor0
----
57312

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4947
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - + col2 * + 87 AS col2, - 0 AS col2 FROM tab1 AS cor0
----
-5133
0
-5916
0
-8352
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, + 54 AS col0 FROM tab2
----
51
54
67
54
77
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL + COUNT( * ) + - MAX( col1 ) FROM tab0 WHERE + 98 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + COUNT ( * ) + - MAX ( col1 ) FROM tab0 WHERE + 98 IS NULL
----
NULL

query I rowsort
SELECT + 26 * + 73 AS col2 FROM tab0
----
1898
1898
1898

query II rowsort
SELECT DISTINCT col1, col1 + + col2 FROM tab0
----
1
100
21
31
81
128

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, 8 col2 FROM tab1
----
-51
8
-85
8
-91
8

query I rowsort
SELECT DISTINCT + col0 + + col1 + 76 + + 73 + 63 * + - 94 - - + 17 AS col2 FROM tab1
----
-5618
-5666
-5691

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE - col0 <> col2
----
-3

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE - col0 <> col2
----
-3

query I rowsort
SELECT + 92 * - + 88 FROM tab1 AS cor0
----
-8096
-8096
-8096

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 54 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0, - 39 FROM tab2 AS cor0
----
46
-39
64
-39
75
-39

query I rowsort
SELECT col0 * 53 FROM tab2 cor0
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - - 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-4963
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 = col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 + 18 * 29 col0 FROM tab2 AS cor0
----
614
614
614

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4967
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * + - col0 * - ( - 45 ) * + + 14 - - - ( + - 42 ) + - col0 * - col2 ) <> - col0 * 72
----

skipif mysql # not compatible
query III rowsort label-4967
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * + - col0 * - ( - 45 ) * + + 14 - - - ( + - 42 ) + - col0 * - col2 ) <> - col0 * 72
----

query II rowsort
SELECT ALL + col0 + - - col1 + 1 + - col2, + col0 AS col2 FROM tab2 AS cor0
----
102
64
75
46
85
75

query I rowsort
SELECT ALL - 58 + - 42 + col2 AS col1 FROM tab0 cor0
----
-1
-53
-90

query I rowsort
SELECT - + col2 + 3 * 42 AS col2 FROM tab1 AS cor0
----
30
58
67

query I rowsort
SELECT - - 18 + + col2 AS col1 FROM tab2 AS cor0
----
41
58
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + - COUNT( * ) + - + 6 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4972
SELECT + - COUNT ( * ) + - + 6 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL + - CAST( - + col2 AS SIGNED ) + - 25 AS col1 FROM tab0 AS cor0
----
-15
22
74

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + - CAST ( - + col2 AS INTEGER ) + - 25 AS col1 FROM tab0 AS cor0
----
-15
22
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT ALL col1 DIV + col1 - - col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL col1 / + col1 - - col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT + 35 - - - SUM( DISTINCT + 58 ) col0 FROM tab0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4975
SELECT DISTINCT + 35 - - - SUM ( DISTINCT + 58 ) col0 FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT - 77 * + + MIN( - col0 ) AS col2, COUNT( * ) AS col1 FROM tab2
----
5775
3

skipif mysql # not compatible
query II rowsort label-4976
SELECT - 77 * + + MIN ( - col0 ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
5775
3

query I rowsort
SELECT col2 * - ( + 10 ) AS col1 FROM tab1
----
-590
-680
-960

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( ( NOT 3 NOT BETWEEN NULL AND 63 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT COUNT( * ) - 92 - + 33 DIV 48 * 84 AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4979
SELECT COUNT ( * ) - 92 - + 33 / 48 * 84 AS col0 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT ALL - ( + - col1 ) * - 61 + - 99 + + + col1 * - 42 FROM tab1 AS cor0
----
-1541
-4940
-614

query I rowsort
SELECT DISTINCT 72 * - + 92 * + 75 AS col0 FROM tab0 AS cor0
----
-496800

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - MAX( col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4982
SELECT - MAX ( col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE + 45 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 83 + col0 AS col2 FROM tab1 AS cor0
----
-4182
-6970
-7462

query I rowsort
SELECT - + col1 * + - col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT - 28 * - col1 AS col2 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT - col1 * col1 DIV - + col2 FROM tab0 AS cor0
----
0
139
44

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - col1 * col1 / - + col2 FROM tab0 AS cor0
----
0
139
44

query I rowsort
SELECT + + ( col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + - MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( + 83 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT + - MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( + 83 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT ALL 3 DIV + COUNT( DISTINCT - 73 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL 3 / + COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT + col2 * - + col2 - + + 90 DIV col2 - + col0 AS col1 FROM tab0 AS cor0
----
-196
-2225
-9898

skipif mysql # not compatible
query I rowsort label-4991
SELECT + col2 * - + col2 - + + 90 / col2 - + col0 AS col1 FROM tab0 AS cor0
----
-196
-2225
-9898

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT ALL + col1 DIV ( col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + col1 / ( col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT DISTINCT + + 18 AS col2, - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
18
-3

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT + + 18 AS col2, - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
18
-3

query I rowsort
SELECT ALL + col1 * + 82 * + col2 AS col2 FROM tab1
----
110208
24190
262072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ( + - 40 ) DIV + - COUNT( * ) AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4996
SELECT ( + - 40 ) / + - COUNT ( * ) AS col0 FROM tab0
----
13

query I rowsort
SELECT + 66 + - 3 * - 26 * - col1 * - - 43 AS col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT ALL - col2 + + + col0 * col1 DIV col0 - - - col2 AS col1 FROM tab1 AS cor0
----
-113
-178
-89

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - col2 + + + col0 * col1 / col0 - - - col2 AS col1 FROM tab1 AS cor0
----
-113
-178
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ( + + col0 ) + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5000
SELECT ( + + col0 ) + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT ALL - + 59 + + col0 FROM tab0 AS cor0
----
-44
28
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT col2 DIV + 30 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT col2 / + 30 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT + - 59 AS col2 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL col2 + + col0 FROM tab2 cor0 WHERE - 20 * col2 IS NOT NULL
----
104
133
69

query I rowsort
SELECT - ( - + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL CAST( NULL AS SIGNED ) + ( - col1 ) + - 44 * 57 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL CAST ( NULL AS INTEGER ) + ( - col1 ) + - 44 * 57 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 33 + col2 AS col2 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT DISTINCT 13 * - col1 - + 1 AS col1 FROM tab2
----
-1002
-664
-872

query I rowsort
SELECT + 12 + + + col0 AS col1 FROM tab2
----
58
76
87

query I rowsort
SELECT col1 + - + 19 AS col2 FROM tab0
----
-18
2
62

query I rowsort
SELECT - col0 + 56 + - + 22 FROM tab0
----
-53
-63
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 18 + - + COUNT( ALL col2 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT 18 + - + COUNT ( ALL col2 ) col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT CAST( - - CAST( - + col1 AS SIGNED ) AS SIGNED ) + + 18 + + col2 * - col1 FROM tab2
----
-1206
-3139
-3935

skipif mysql # not compatible
query I rowsort label-5014
SELECT CAST ( - - CAST ( - + col1 AS INTEGER ) AS INTEGER ) + + 18 + + col2 * - col1 FROM tab2
----
-1206
-3139
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT + CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + CAST ( NULL AS INTEGER ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + MIN( - 34 ) + - 3 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-5016
SELECT + MIN ( - 34 ) + - 3 FROM tab0
----
-37

query II rowsort
SELECT ( - col2 ) + + 98 * - - col0 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
1423
-47
8516
-10
9407
-99

query I rowsort
SELECT col2 + - col0 * col2 FROM tab1 cor0
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT + + 51 AS col2 FROM tab2 cor0
----
51

query I rowsort
SELECT ALL - + 19 * + + col1 * - - col1 AS col2 FROM tab2 AS cor0
----
-112651
-49419
-85291

query II rowsort
SELECT + 98, + col1 FROM tab1 AS cor0 WHERE NOT ( + + col0 ) * - - ( + col1 ) NOT BETWEEN NULL AND + col0 + + - 15 - + col0 + - - col1 / + + col1
----

query I rowsort
SELECT 23 * col0 AS col0 FROM tab2 AS cor0
----
1058
1472
1725

query I rowsort
SELECT ALL - 58 AS col0 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT 56 + + + col0 AS col2 FROM tab2
----
102
120
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + SUM( + col1 ) * + COUNT( * ) AS col0 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + SUM ( + col1 ) * + COUNT ( * ) AS col0 FROM tab0
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT DISTINCT + col2 DIV + 21 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + col2 / + 21 AS col2 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT col0 + - col0 DIV + + col0 AS col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5027
SELECT col0 + - col0 / + + col0 AS col1 FROM tab2
----
45
63
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT 56, COUNT( * ) AS col2 FROM tab2
----
56
3

skipif mysql # not compatible
query II rowsort label-5028
SELECT 56, COUNT ( * ) AS col2 FROM tab2
----
56
3

query II rowsort
SELECT - - col2, col2 AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + - col0 * - 95 AND col0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - - 25 AS col2 FROM tab2 AS cor0
----
100
71
89

query II rowsort
SELECT + col0 AS col1, + col2 * 99 AS col0 FROM tab0 AS cor0
----
15
4653
87
990
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT DISTINCT + 74 + - col1 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + 74 + - col1 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - COUNT( DISTINCT - - col2 ) + + 78 AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5034
SELECT - COUNT ( DISTINCT - - col2 ) + + 78 AS col1 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + + COUNT( DISTINCT - 65 ) FROM tab2 AS cor0 WHERE col2 * - 96 * - col0 - - ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT + + COUNT ( DISTINCT - 65 ) FROM tab2 AS cor0 WHERE col2 * - 96 * - col0 - - ( - col0 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, - col2 col2 FROM tab0 AS cor0 WHERE col0 / 50 NOT BETWEEN + col2 AND NULL
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT - + ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col2 + - - ( col2 ) FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE - ( - 42 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5039
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - ( - 42 ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 * ( + - col0 ) + col1 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
4646
9792
9975

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT + COUNT( * ) + 92 col1 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5041
SELECT DISTINCT + COUNT ( * ) + 92 col1 FROM tab2 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT + 49 DIV + col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5042
SELECT + 49 / + col2 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + 53 * - MAX( ALL + col1 ) + - - MIN( 60 ) AS col0 FROM tab1 AS cor0
----
-2431

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 53 * - MAX ( ALL + col1 ) + - - MIN ( 60 ) AS col0 FROM tab1 AS cor0
----
-2431

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT MAX( col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5044
SELECT MAX ( col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL col2 + + 88 FROM tab1
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT 87 * 42 - COUNT( * ) AS col1 FROM tab2
----
3651

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT 87 * 42 - COUNT ( * ) AS col1 FROM tab2
----
3651

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 32 * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 / + col2 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 95 + + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 43 * - - 54 * 35 AS col1 FROM tab0 AS cor0
----
81270
81270
81270

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT - - col0 DIV col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5055
SELECT - - col0 / col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT + + CAST( 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5056
SELECT + + CAST ( 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT + ( - 27 ) AS col0 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - 55 / - 55 FROM tab1 WHERE ( NOT ( NULL ) <= - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5059
SELECT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5060
SELECT DISTINCT - ( col0 ) AS col0, + col0 DIV - col2 + + 82 col1 FROM tab0 AS cor0
----
-15
82
-87
74
-97
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5060
SELECT DISTINCT - ( col0 ) AS col0, + col0 / - col2 + + 82 col1 FROM tab0 AS cor0
----
-15
82
-87
74
-97
82

query I rowsort
SELECT - - 92 AS col1 FROM tab2 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col2 col1, col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

query I rowsort
SELECT - col0 * col2 + + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col0
----

query II rowsort
SELECT col2 * 77 * - col2, - col1 AS col2 FROM tab2
----
-123200
-77
-259028
-67
-40733
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT + col1 DIV 56 DIV - - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5068
SELECT + col1 / 56 / - - col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 37 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 79 AS col2 FROM tab0 AS cor0
----
-2
58
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 0 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + + 50 col2 FROM tab0 cor0
----
140
140
140

query I rowsort
SELECT ALL - + 20 + - col0 FROM tab2 AS cor0
----
-66
-84
-95

query I rowsort
SELECT 6 * 53 AS col2 FROM tab0
----
318
318
318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT ALL 95 DIV + COUNT( * ) col2 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5076
SELECT ALL 95 / + COUNT ( * ) col2 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT DISTINCT + + 83 * - CAST( NULL AS SIGNED ) + - - col2 / - CAST( col2 AS SIGNED ) * - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + + 83 * - CAST ( NULL AS INTEGER ) + - - col2 / - CAST ( col2 AS INTEGER ) * - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5078
SELECT 53 - + col2 AS col1, 80 DIV + 58 FROM tab1 AS cor0
----
-15
1
-43
1
-6
1

skipif mysql # not compatible
query II rowsort label-5078
SELECT 53 - + col2 AS col1, 80 / + 58 FROM tab1 AS cor0
----
-15
1
-43
1
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT COUNT( * ) - - - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5079
SELECT COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col0 + + - col0 * + col1 AS col0 FROM tab1 cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL - 33 + + 72 / + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col1 <> + - 71
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 34 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + SUM( ALL - - ( col0 ) ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT + SUM ( ALL - - ( col0 ) ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT col1 DIV - + col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT col1 / - + col0 AS col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT + ( ( + ( - - col2 ) ) ) AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 94 <> NULL
----

query II rowsort
SELECT ALL + col0 * - - col2 AS col1, - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
-14
5015
-5
6188
-47

query I rowsort
SELECT col0 + - col2 / + col1 * col2 * - - ( col1 ) + + 78 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT + COUNT( - + col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + COUNT ( - + col2 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT 51 + 95 * + COUNT( - + col1 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-5092
SELECT 51 + 95 * + COUNT ( - + col1 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL + col0 * - ( CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + col0 * - ( CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + MIN( 45 ) + - + MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5094
SELECT + MIN ( 45 ) + - + MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT 86 * - MAX( DISTINCT - col1 ) FROM tab1
----
430

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT 86 * - MAX ( DISTINCT - col1 ) FROM tab1
----
430

query I rowsort
SELECT - col1 + + 45 - - - 78 AS col2 FROM tab0
----
-114
-34
-54

query I rowsort
SELECT ALL + col0 + - col0 * + - 75 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT ALL + 87 * col1 AS col2 FROM tab1
----
1218
4089
435

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT + col1 + + ( col1 ) DIV col1 AS col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-5099
SELECT + col1 + + ( col1 ) / col1 AS col1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5100
SELECT - 5 + + 30 * + 52 * - CAST( NULL AS DECIMAL ), - COUNT( * ) AS col2 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5100
SELECT - 5 + + 30 * + 52 * - CAST ( NULL AS REAL ), - COUNT ( * ) AS col2 FROM tab0
----
NULL
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT + CAST( 71 AS SIGNED ) + 7 AS col1 FROM tab1
----
78
78
78

skipif mysql # not compatible
query I rowsort label-5101
SELECT + CAST ( 71 AS INTEGER ) + 7 AS col1 FROM tab1
----
78
78
78

query II rowsort
SELECT ALL - col1 * - - col0 + - - col1 * - col2, + col0 * - + col0 FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - COUNT( * ) DIV 62 * - - MAX( + - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT - COUNT ( * ) / 62 * - - MAX ( + - col2 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL + 55 + + col1 * - - CAST( NULL AS SIGNED ) + + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + 55 + + col1 * - - CAST ( NULL AS INTEGER ) + + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + + 39 - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + + 39 - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

query I rowsort
SELECT DISTINCT + - 57 AS col2 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - - col2 + + col1 + - - col0 + col1 AS col2 FROM tab0 AS cor0
----
139
198
224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT + 51 * CAST( col2 AS SIGNED ) * - 13 + - 19 FROM tab2 AS cor0 WHERE NOT col1 * - 96 >= - 58
----
-15268
-26539
-38473

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 51 * CAST ( col2 AS INTEGER ) * - 13 + - 19 FROM tab2 AS cor0 WHERE NOT col1 * - 96 >= - 58
----
-15268
-26539
-38473

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT + col0 DIV - 54 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5109
SELECT + col0 / - 54 col2 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 18 * 23 AND + col0
----

query II rowsort
SELECT col2 AS col2, 53 FROM tab2 AS cor0
----
23
53
40
53
58
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL + COUNT( * ) * + 44 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + COUNT ( * ) * + 44 FROM tab2 AS cor0
----
132

query I rowsort
SELECT + 30 AS col2 FROM tab1 cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT ALL + col1 * col1 DIV + - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + col1 * col1 / + - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT DISTINCT + + ( + CAST( NULL AS SIGNED ) ) / SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT + + ( + CAST ( NULL AS INTEGER ) ) / SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 90 * col2 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - COUNT( * ) * + + 36 AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-5117
SELECT - COUNT ( * ) * + + 36 AS col1 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT + SUM( - 77 ) AS col1 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + SUM ( - 77 ) AS col1 FROM tab1
----
-231

query I rowsort
SELECT DISTINCT col0 * + col1 * - + 49 AS col2 FROM tab0
----
-4753
-59535
-89523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT + CAST( 84 AS SIGNED ) * - + col2 AS col1 FROM tab1
----
-4956
-5712
-8064

skipif mysql # not compatible
query I rowsort label-5120
SELECT + CAST ( 84 AS INTEGER ) * - + col2 AS col1 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT ALL 95 * - - col2 AS col0 FROM tab2
----
2185
3800
5510

query II rowsort
SELECT - + col0 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 26 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - COUNT( * ) * - 89 col2 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT - COUNT ( * ) * - 89 col2 FROM tab0 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL MAX( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL MAX ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 94 * + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + ( + col2 ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5128
SELECT SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT 55 * - COUNT( * ) + 73 AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT 55 * - COUNT ( * ) + 73 AS col0 FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT DISTINCT + - 89 DIV + + col1 + 51 AS col1 FROM tab2 cor0
----
50

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + - 89 / + + col1 + 51 AS col1 FROM tab2 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + + 58 + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + + 58 + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT DISTINCT + col1, - ( col1 ) + - + CAST( NULL AS SIGNED ) + + col1 * col0 / col2 / + col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5133
SELECT DISTINCT + col1, - ( col1 ) + - + CAST ( NULL AS INTEGER ) + + col1 * col0 / col2 / + col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT 69 + col0 AS col1 FROM tab2
----
115
133
144

onlyif mysql # DIV for integer division: 
query II rowsort label-5135
SELECT DISTINCT + 40 DIV + + col2 + - col1 + + 23 * + - col2 + + ( col2 ) AS col0, - 49 FROM tab1 WHERE NOT + + col2 + - col2 IS NULL
----
-1303
-49
-1543
-49
-2126
-49

skipif mysql # not compatible
query II rowsort label-5135
SELECT DISTINCT + 40 / + + col2 + - col1 + + 23 * + - col2 + + ( col2 ) AS col0, - 49 FROM tab1 WHERE NOT + + col2 + - col2 IS NULL
----
-1303
-49
-1543
-49
-2126
-49

query III rowsort
SELECT * FROM tab2 WHERE + + ( + + col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5137
SELECT ALL col2 + + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL col2 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT + MAX( DISTINCT + ( - ( + 56 ) ) ) AS col1 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + MAX ( DISTINCT + ( - ( + 56 ) ) ) AS col1 FROM tab2
----
-56

query I rowsort
SELECT ( - ( + + col2 ) ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + COUNT( * ) * - + 10 + 34 + - + 95 AS col1 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5140
SELECT + COUNT ( * ) * - + 10 + 34 + - + 95 AS col1 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - + col0 + - 33 * + col1 AS col1 FROM tab1 AS cor0
----
-1642
-250
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL 20 DIV - col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL 20 / - col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL - COUNT( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COUNT ( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 24 * + col0 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
1104
1536
1800

query I rowsort
SELECT 59 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 + + 49 FROM tab1
----
-2
-36
-42

query I rowsort
SELECT + col1 + col1 * - col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + ( - col2 ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT - ( col1 ) DIV + 12 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-5149
SELECT - ( col1 ) / + 12 FROM tab2
----
-4
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL 34 - + ( - COUNT( * ) ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL 34 - + ( - COUNT ( * ) ) AS col2 FROM tab1
----
37

query I rowsort
SELECT DISTINCT + col2 * + 63 FROM tab2 WHERE ( + col0 + - col0 ) IS NOT NULL
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL 68 + - ( 6 ) * ( 73 * - COUNT( * ) ) AS col2 FROM tab1
----
1382

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 68 + - ( 6 ) * ( 73 * - COUNT ( * ) ) AS col2 FROM tab1
----
1382

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT COUNT( * ) + 64 col1 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5153
SELECT COUNT ( * ) + 64 col1 FROM tab2
----
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 21 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col1 FROM tab1
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT DISTINCT col1 DIV + col1 + + ( + col1 ) AS col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT col1 / + col1 + + ( + col1 ) AS col1 FROM tab0
----
2
22
82

query I rowsort
SELECT + col2 + 62 AS col2 FROM tab1
----
121
130
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT - 86 DIV - col0 + col1 AS col2 FROM tab1
----
15
47
6

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 86 / - col0 + col1 AS col2 FROM tab1
----
15
47
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 61 ) <> NULL
----

query I rowsort
SELECT - 96 FROM tab0 WHERE ( + 4 ) NOT BETWEEN ( 70 * - col2 + 66 ) AND 29
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col0 ) * + col2 AND - 33 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - ( - COUNT( * ) ) - + 77 * - 76 AS col1 FROM tab0
----
5855

skipif mysql # not compatible
query I rowsort label-5162
SELECT - ( - COUNT ( * ) ) - + 77 * - 76 AS col1 FROM tab0
----
5855

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 31 FROM tab2 WHERE NOT ( col2 ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 79 + COUNT( * ) col1 FROM tab2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5166
SELECT 79 + COUNT ( * ) col1 FROM tab2
----
82

query I rowsort
SELECT DISTINCT col0 * - 60 + col1 AS col0 FROM tab1
----
-3046
-5095
-5413

query I rowsort
SELECT - 54 + - col0 FROM tab0 WHERE + 99 + - col2 IS NOT NULL
----
-141
-151
-69

query I rowsort
SELECT ALL + col2 * col1 + - col0 * + col2 AS col0 FROM tab0
----
-660
-9504
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT + MIN( ALL + col2 ) * 96 FROM tab0 AS cor0
----
960

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + MIN ( ALL + col2 ) * 96 FROM tab0 AS cor0
----
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 NOT BETWEEN + 52 AND NULL
----

query I rowsort
SELECT ALL - 35 AS col1 FROM tab0 AS cor0 WHERE ( ( 67 ) ) >= + col2
----
-35
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN - col1 * + 1 + col1 AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 8 * 97 AS col1 FROM tab0
----
776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + 65 col2 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT + - 84 FROM tab2 cor0
----
-84

query I rowsort
SELECT ALL - 48 FROM tab0 AS cor0 WHERE - col1 * 81 > ( col1 )
----

query I rowsort
SELECT - col0 + - 54 AS col0 FROM tab0 AS cor0
----
-141
-151
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 35 + ( col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + SUM( DISTINCT + col0 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-5181
SELECT + SUM ( DISTINCT + col0 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
230

query I rowsort
SELECT DISTINCT + col0 + 6 AS col2 FROM tab2 AS cor0 WHERE 75 <> - 39 + - ( - col2 )
----
52
70
81

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE + col0 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + + 29 + - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5184
SELECT + + 29 + - COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT col0 * col0 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT - 83 + - col2 AS col1 FROM tab1 AS cor0
----
-142
-151
-179

query I rowsort
SELECT DISTINCT + col2 / - 66 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT 56 + - ( 72 + - COUNT( + col1 ) * - COUNT( * ) ) DIV - 45 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5188
SELECT 56 + - ( 72 + - COUNT ( + col1 ) * - COUNT ( * ) ) / - 45 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + 13 + - ( + MIN( col0 ) ) + + COUNT( DISTINCT col0 - + col0 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-5189
SELECT + 13 + - ( + MIN ( col0 ) ) + + COUNT ( DISTINCT col0 - + col0 ) FROM tab2
----
-32

query I rowsort
SELECT DISTINCT - 92 + col2 AS col0 FROM tab0
----
-45
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + 59 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + 59 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ( + 15 ) FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT 67 AS col2 FROM tab1 WHERE CAST( + 89 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5194
SELECT 67 AS col2 FROM tab1 WHERE CAST ( + 89 AS INTEGER ) >= NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE col1 IN ( ( ( - col2 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 79 * + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT - MAX( DISTINCT col0 ) * MAX( + 81 ) FROM tab0 AS cor0
----
-7857

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - MAX ( DISTINCT col0 ) * MAX ( + 81 ) FROM tab0 AS cor0
----
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5198
SELECT ALL + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col1 - + col0 - col0 AS col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT + COUNT( * ) DIV - ( COUNT( col0 ) ) + + 69 - 75 * - 83 AS col0 FROM tab0 AS cor0
----
6293

skipif mysql # not compatible
query I rowsort label-5200
SELECT + COUNT ( * ) / - ( COUNT ( col0 ) ) + + 69 - 75 * - 83 AS col0 FROM tab0 AS cor0
----
6293

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 95 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE ( - ( 63 ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT COUNT( * ) - 98 DIV 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT COUNT ( * ) - 98 / 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1
----
42

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 2 * 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e4edd2ddcb8ec84f3593db888b192f9

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT - 60 + - col2 NOT BETWEEN + 83 AND 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 col1 FROM tab1 AS cor0
----
19
19
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT DISTINCT + - ( - 55 ) * + col2 AS col0 FROM tab0 AS cor0
----
2585
5445
550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, ( 24 ) AS col2 FROM tab1 AS cor0
----
-51
24
-85
24
-91
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5213
SELECT - col0, + col1 DIV - - 14 AS col2 FROM tab1 cor0
----
-51
1
-85
0
-91
3

skipif mysql # not compatible
query II rowsort label-5213
SELECT - col0, + col1 / - - 14 AS col2 FROM tab1 cor0
----
-51
1
-85
0
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT 35 * COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT 40 > + + 52 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT 35 * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT 40 > + + 52 + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT - MAX( ALL - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - MAX ( ALL - col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + MAX( + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT DISTINCT col1 * + - col0 * - 30 * - - ( col2 ) * - col2 AS col1 FROM tab1
----
-197406720
-44382750
-593305440

query I rowsort
SELECT DISTINCT + 32 * - 39 FROM tab1
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5221
SELECT ALL CAST( + 50 AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL CAST ( + 50 AS INTEGER ) / COUNT ( * ) AS col0 FROM tab2
----
16

query I rowsort
SELECT col0 + col0 AS col0 FROM tab0 WHERE NOT ( - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT COUNT( * ) * + 75 AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5223
SELECT COUNT ( * ) * + 75 AS col0 FROM tab2
----
225

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 BETWEEN - + col1 + col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 3 / 66 NOT BETWEEN + + 64 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + + col1 ) * + + 66 FROM tab1 AS cor0
----
3102
330
924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT 57 * col2 * - 15 - + + col0 * + col2 FROM tab0 AS cor0
----
-40890
-9420
-94248

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col1 BETWEEN ( - 6 ) + + 13 AND NULL
----

query I rowsort
SELECT DISTINCT - 47 * + col2 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT - col1 DIV - + 69 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5231
SELECT - col1 / - + 69 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5232
SELECT ALL - 53 * - + col2 * + col2 AS col0, CAST( - col0 AS SIGNED ) + col1 AS col1 FROM tab1
----
184493
-80
245072
-44
488448
-37

skipif mysql # not compatible
query II rowsort label-5232
SELECT ALL - 53 * - + col2 * + col2 AS col0, CAST ( - col0 AS INTEGER ) + col1 AS col1 FROM tab1
----
184493
-80
245072
-44
488448
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-5233
SELECT 43 DIV - - 35 - - + col1 col2, col2 + 61 AS col2 FROM tab2 AS cor0
----
52
84
68
119
78
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5233
SELECT 43 / - - 35 - - + col1 col2, col2 + 61 AS col2 FROM tab2 AS cor0
----
52
84
68
119
78
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5234
SELECT 9 AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5234
SELECT 9 AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 col1 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col1 ) * 31 col2 FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL - SUM( + 58 ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-174

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - SUM ( + 58 ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT COUNT( * ) * 58 AS col1 FROM tab0 AS cor0 WHERE - 23 * 72 + + col0 + - 20 * + 94 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT COUNT ( * ) * 58 AS col1 FROM tab0 AS cor0 WHERE - 23 * 72 + + col0 + - 20 * + 94 IS NULL
----
0

query I rowsort
SELECT + col0 * 35 FROM tab0 AS cor0
----
3045
3395
525

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + - col2 ) BETWEEN + col0 + + + ( + 40 ) AND + 84
----

query I rowsort
SELECT DISTINCT + 93 - - col0 FROM tab1
----
144
178
184

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 - + + 46 * - + col0 <= + col1 - col0
----

query I rowsort
SELECT 68 + - + 64 FROM tab2
----
4
4
4

query II rowsort
SELECT ALL - col0 AS col2, - col1 + - 74 AS col2 FROM tab1
----
-51
-88
-85
-79
-91
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT + CAST( NULL AS SIGNED ) * + col1 / - - 49 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT + CAST ( NULL AS INTEGER ) * + col1 / - - 49 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + COUNT( * ) + 73 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5246
SELECT + COUNT ( * ) + 73 FROM tab0
----
76

query I rowsort
SELECT + ( - 36 ) AS col0 FROM tab0 WHERE + - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - - col0 ) IN ( 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT MAX( + 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5249
SELECT MAX ( + 12 ) AS col1 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT 8, COUNT( * ) * - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
8
729

skipif mysql # not compatible
query II rowsort label-5250
SELECT 8, COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
8
729

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + 40 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab0 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 25 <= - - 81 + - col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5254
SELECT + COUNT( * ) DIV + 36 AS col2, 10 AS col2 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query II rowsort label-5254
SELECT + COUNT ( * ) / + 36 AS col2, 10 AS col2 FROM tab0 AS cor0
----
0
10

query I rowsort
SELECT ALL - + ( - 86 ) AS col0 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT col1 * - col1 * + col2 FROM tab2
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( + 1 )
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 3 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + col1 + - - col2 FROM tab0
----
118
143
197

query I rowsort
SELECT 82 + - col0 AS col0 FROM tab1
----
-3
-9
31

query I rowsort
SELECT DISTINCT + 9 + + + col1 FROM tab0
----
10
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - SUM( + + 90 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-5262
SELECT - SUM ( + + 90 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-270

query I rowsort
SELECT - col0 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + + col1 * + col0 col1 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL 16 + + - col0 FROM tab1 AS cor0
----
-35
-69
-75

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + 40 NOT BETWEEN - col0 AND ( - col1 + - + 55 * 73 + - + col0 - col0 + col1 * - col2 )
----
51
85
91

query I rowsort
SELECT DISTINCT - 89 * + 93 FROM tab0 cor0
----
-8277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5268
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 81 * - + 59 * - col0 FROM tab0
----
-415773
-463563
-71685

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 / - + ( + col0 ) - - col0 AS col1 FROM tab0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT ALL + COUNT( * ), - 51 col0 FROM tab1, tab2 cor0
----
9
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5271
SELECT ALL + COUNT ( * ), - 51 col0 FROM tab1, tab2 cor0
----
9
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5272
SELECT DISTINCT + col0 + + + col0 * 26 DIV - col2 AS col2 FROM tab1 AS cor0
----
38
48
57

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT + col0 + + + col0 * 26 / - col2 AS col2 FROM tab1 AS cor0
----
38
48
57

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> col0 OR NOT + col2 - - - col1 - + + col0 >= NULL
----

query I rowsort
SELECT - ( - - col2 ) * - col1 * - col1 FROM tab1 cor0
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5275
SELECT ALL - - CAST( - - col0 AS SIGNED ) DIV + col2 - - - 49 DIV + ( CAST( - ( + col1 ) AS SIGNED ) ) + + col0 AS col0 FROM tab0 AS cor0
----
146
15
97

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - - CAST ( - - col0 AS INTEGER ) / + col2 - - - 49 / + ( CAST ( - ( + col1 ) AS INTEGER ) ) + + col0 AS col0 FROM tab0 AS cor0
----
146
15
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 84 > - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 31 col1 FROM tab2
----
1240
1798
713

query I rowsort
SELECT col0 FROM tab0 WHERE + - col2 * 55 NOT IN ( + - 76 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL SUM ( col1 ) FROM tab0
----
103

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT 14 + + + col2 + col1 / + 15 / - + 88 NOT BETWEEN + + ( 71 ) AND NULL AND NOT NULL > col2 + col2
----

query II rowsort
SELECT DISTINCT col0 + 3 AS col1, col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * 85 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL + - col1 DIV - + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + - col1 / - + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 60
----

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE - 40 = NULL
----

query II rowsort
SELECT ALL + - col1 AS col2, col1 * 58 AS col2 FROM tab1 AS cor0
----
-14
812
-47
2726
-5
290

query II rowsort
SELECT + + 47 AS col1, 57 AS col1 FROM tab0 AS cor0
----
47
57
47
57
47
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + ( + + COUNT( * ) ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5289
SELECT + ( + + COUNT ( * ) ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-27

query I rowsort
SELECT ALL + + 9 AS col2 FROM tab0 AS cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 col2, + 98 FROM tab2 AS cor0
----
61
98
61
98
61
98

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT DISTINCT - 49 + - COUNT( * ), - MAX( - - 61 ) AS col0 FROM tab0
----
-52
-61

skipif mysql # not compatible
query II rowsort label-5293
SELECT DISTINCT - 49 + - COUNT ( * ), - MAX ( - - 61 ) AS col0 FROM tab0
----
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - col1 + col0 * - 87 * ( - col1 ) FROM tab1 AS cor0
----
36970
372052
62104

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 * col0 + + col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT - col1 + - ( + - col1 ) DIV - 97 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - col1 + - ( + - col1 ) / - 97 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT + col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT + col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5299
SELECT - MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-5300
SELECT col1 AS col1, 26 DIV + - col1 AS col1 FROM tab1 AS cor0
----
14
-1
47
0
5
-5

skipif mysql # not compatible
query II rowsort label-5300
SELECT col1 AS col1, 26 / + - col1 AS col1 FROM tab1 AS cor0
----
14
-1
47
0
5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5301
SELECT DISTINCT + - COUNT( * ) AS col0, 34 FROM tab0 AS cor0
----
-3
34

skipif mysql # not compatible
query II rowsort label-5301
SELECT DISTINCT + - COUNT ( * ) AS col0, 34 FROM tab0 AS cor0
----
-3
34

query I rowsort
SELECT DISTINCT + - 94 + + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT - + col2 AS col0 FROM tab1 cor0 WHERE + col1 * + 38 + 63 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT + col0 - ( - - CAST( NULL AS SIGNED ) ) + ( + col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + col0 - ( - - CAST ( NULL AS INTEGER ) ) + ( + col2 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT + 50 + col0 AS col0 FROM tab1
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + 98 - + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + 98 - + COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + 65 AS col2 FROM tab2 WHERE + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - SUM( col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5310
SELECT - SUM ( col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT - ( ( SUM( ALL - col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5311
SELECT - ( ( SUM ( ALL - col0 ) ) ) FROM tab0
----
199

query I rowsort
SELECT col2 - + col0 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT - COUNT( 9 ) FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - COUNT ( 9 ) FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 21 + - + 44 FROM tab0 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col2 + + ( + + col2 ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT - - AVG ( 81 ) * CAST( NULL AS SIGNED ) + - + ( 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col0 >= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT - - AVG ( 81 ) * CAST ( NULL AS INTEGER ) + - + ( 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col0 >= - col2
----
NULL

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT col0 * - 44 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - + COUNT( * ) + + + MIN( ALL col2 ) + 15 * + 60 FROM tab0 AS cor0
----
907

skipif mysql # not compatible
query I rowsort label-5318
SELECT - + COUNT ( * ) + + + MIN ( ALL col2 ) + 15 * + 60 FROM tab0 AS cor0
----
907

query I rowsort
SELECT - col1 + + - 76 FROM tab1 cor0
----
-123
-81
-90

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT COUNT( * ) + ( 59 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5321
SELECT COUNT ( * ) + ( 59 ) FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT ALL - COUNT( * ) AS col0, - 16 col0 FROM tab2
----
-3
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5322
SELECT ALL - COUNT ( * ) AS col0, - 16 col0 FROM tab2
----
-3
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL + MAX( + 28 ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + MAX ( + 28 ) AS col2 FROM tab1
----
28

query I rowsort
SELECT DISTINCT - col0 * ( - 11 ) * + col0 - col0 + col2 FROM tab1 cor0
----
28656
79449
91068

query I rowsort
SELECT - ( - 75 ) FROM tab1 cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5326
SELECT col0 - col0 AS col2, + 9 * CAST( - 86 AS SIGNED ) * - 28 FROM tab2
----
0
21672
0
21672
0
21672

skipif mysql # not compatible
query II rowsort label-5326
SELECT col0 - col0 AS col2, + 9 * CAST ( - 86 AS INTEGER ) * - 28 FROM tab2
----
0
21672
0
21672
0
21672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT - col2 * + col1 - + 94 FROM tab2 AS cor0 WHERE NOT NULL <> col0 * CAST( NULL AS SIGNED ) * 48
----

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - col2 * + col1 - + 94 FROM tab2 AS cor0 WHERE NOT NULL <> col0 * CAST ( NULL AS INTEGER ) * 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + MAX( ALL + - col0 ) + - 18 * COUNT( * ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + MAX ( ALL + - col0 ) + - 18 * COUNT ( * ) FROM tab1 AS cor0
----
-105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col1 + - col0 AND 97
----

query II rowsort
SELECT ALL - col1, 70 AS col0 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN ( 38 ) AND 23
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5331
SELECT ( - 66 ) DIV + + MIN( col0 ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5331
SELECT ( - 66 ) / + + MIN ( col0 ) FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT CAST( + col0 AS SIGNED ) * - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 * + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5332
SELECT CAST ( + col0 AS INTEGER ) * - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 36 FROM tab1 WHERE - 37 + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - MAX( DISTINCT + ( - - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - MAX ( DISTINCT + ( - - col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE - col2 * + 43 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * 77 AS col1 FROM tab2
----
1771
3080
4466

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5337
SELECT DISTINCT 26 AS col1, col0 + + 34 DIV + - 90 * + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
26
46
26
64
26
75

skipif mysql # not compatible
query II rowsort label-5337
SELECT DISTINCT 26 AS col1, col0 + + 34 / + - 90 * + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
26
46
26
64
26
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - SUM( DISTINCT + - col0 ) * + 13 * 5 - - SUM( ALL - col2 ) FROM tab0 AS cor0
----
12779

skipif mysql # not compatible
query I rowsort label-5338
SELECT - SUM ( DISTINCT + - col0 ) * + 13 * 5 - - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
12779

query I rowsort
SELECT + col0 + col2 * + 97 + - col0 + - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5728
6643
9326

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + MAX ( - col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT DISTINCT 85 DIV + - 38 AS col2 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT 85 / + - 38 AS col2 FROM tab2 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL + - ( + COUNT( * ) ) + 61 AS col2 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + - ( + COUNT ( * ) ) + 61 AS col2 FROM tab1 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 48 NOT IN ( col0, col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 30 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 30 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + 96 ) AS col1 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT - - 42 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - - 42 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 24 <= + - 35
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5349
SELECT DISTINCT col2 col2, + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ), + col0 FROM tab2
----
9 values hashing to 9453b5e223eb2d0ea6a50f6a18fa53c1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5349
SELECT DISTINCT col2 col2, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ), + col0 FROM tab2
----
9 values hashing to 9453b5e223eb2d0ea6a50f6a18fa53c1

query I rowsort
SELECT ( + + 33 ) + 54 AS col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ( + COUNT( * ) ) + - 33 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5351
SELECT ( + COUNT ( * ) ) + - 33 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - - col1 + - col2 + - + 72 * + ( - col0 ) * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-131533
-7082
-87446

query I rowsort
SELECT ALL - col1 + + + 22 AS col0 FROM tab0 AS cor0
----
-59
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - MAX( col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5354
SELECT - MAX ( col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - 6
----

query I rowsort
SELECT - col2 * + 90 FROM tab1
----
-5310
-6120
-8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT + CAST( NULL AS SIGNED ) - MAX( - - 30 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT + CAST ( NULL AS INTEGER ) - MAX ( - - 30 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 - 28 AS col1 FROM tab1
----
23
57
63

query I rowsort
SELECT + col1 - - + 60 FROM tab1
----
107
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
31
31
31

query II rowsort
SELECT 29, + col0 AS col0 FROM tab1 cor0
----
29
51
29
85
29
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + + col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 7 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ( + SUM( DISTINCT + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5365
SELECT ( + SUM ( DISTINCT + col0 ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 77 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 77 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT ALL - 97 + + COUNT( * ) FROM tab1 WHERE - CAST( - 14 AS SIGNED ) IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - 97 + + COUNT ( * ) FROM tab1 WHERE - CAST ( - 14 AS INTEGER ) IS NULL
----
-97

query I rowsort
SELECT DISTINCT col2 * + + 50 * + - col2 AS col0 FROM tab2 AS cor0
----
-168200
-26450
-80000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL + ( + 30 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + ( + 30 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5370
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 98 * + 18 / + col1 + + ( - 83 ), - col2 * + - CAST( NULL AS SIGNED ) * - 15 * + 21 )
----

skipif mysql # not compatible
query III rowsort label-5370
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 98 * + 18 / + col1 + + ( - 83 ), - col2 * + - CAST ( NULL AS INTEGER ) * - 15 * + 21 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + ( - ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + col1 * + 6 FROM tab1
----
282
30
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT + 94 + COUNT( * ) col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5375
SELECT DISTINCT + 94 + COUNT ( * ) col2 FROM tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT + col0 + - + col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT + + col2 * - col2 * + 28 + col2 + - 14 * col2 * col1 - col1 - + - col0 * + - col0 FROM tab0 cor0
----
-115409
-13320
-285125

query I rowsort
SELECT DISTINCT 57 + col1 FROM tab0 AS cor0
----
138
58
78

query I rowsort
SELECT ALL - + col2 * + - 30 AS col0 FROM tab2 AS cor0
----
1200
1740
690

query I rowsort
SELECT ALL + ( + 16 ) * 3 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL + 20 * + + COUNT( * ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + 20 * + + COUNT ( * ) AS col1 FROM tab0
----
60

query II rowsort
SELECT col1 * 35 AS col2, col2 FROM tab0
----
2835
47
35
99
735
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT col2 * + - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT col2 * + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - col2 - - - ( + col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT - 93 DIV + - COUNT( + 38 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - 93 / + - COUNT ( + 38 ) FROM tab2
----
31

query I rowsort
SELECT - 73 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-3554
-4697
-9289

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT COUNT( * ) + + 20 * COUNT( * ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5387
SELECT COUNT ( * ) + + 20 * COUNT ( * ) AS col0 FROM tab2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5388
SELECT ALL + col1 / col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + col1 / col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 72 ) col0 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - + col1 * - - col2 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT COUNT( * ) * + - COUNT( * ), + 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
14

skipif mysql # not compatible
query II rowsort label-5391
SELECT COUNT ( * ) * + - COUNT ( * ), + 14 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
14

query I rowsort
SELECT - - 76 * - - 90 AS col0 FROM tab2 AS cor0
----
6840
6840
6840

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab2 cor0 WHERE NOT ( col1 ) < 61 / + col0
----
-49

query II rowsort
SELECT DISTINCT col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + 92 * + 19 AS col1 FROM tab0
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT COUNT( - 43 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT COUNT ( - 43 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + 36 NOT BETWEEN ( col0 ) AND col0
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT + SUM( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5401
SELECT + SUM ( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + + SUM( + - 15 ) * + + 11 AS col1 FROM tab2 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-5402
SELECT + + SUM ( + - 15 ) * + + 11 AS col1 FROM tab2 AS cor0
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - + COUNT( * ) * SUM( - col0 ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-5403
SELECT - + COUNT ( * ) * SUM ( - col0 ) FROM tab0 AS cor0
----
597

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 + - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( col0 ) + - 72 AS col2 FROM tab0 AS cor0
----
-159
-169
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL - MIN( ALL 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - MIN ( ALL 62 ) FROM tab1
----
-62

query I rowsort
SELECT + + col2 FROM tab1 WHERE - col2 * - col1 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT - COUNT( - + 5 ) * + - ( + - 37 ) AS col0 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - COUNT ( - + 5 ) * + - ( + - 37 ) AS col0 FROM tab1 AS cor0
----
-111

query I rowsort
SELECT ( 57 ) AS col1 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + + 99 + + col1 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT ALL 48 * col2 + - col0 + - + ( + col0 ) FROM tab0
----
2226
306
4558

query III rowsort
SELECT * FROM tab2 WHERE - + ( + 2 ) * + 58 IS NULL
----

query I rowsort
SELECT 74 + col1 FROM tab2
----
125
141
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 94 AS col0, - col1 * + 63 + - 37 col2 FROM tab0
----
94
-100
94
-1360
94
-5140

query I rowsort
SELECT DISTINCT col1 - + - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT + col1 * - 40 + - ( col0 ) FROM tab0
----
-137
-3255
-927

query I rowsort
SELECT col0 * + + col0 + - 90 + col0 FROM tab2
----
2072
4070
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COUNT( * ) + + 55 AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5420
SELECT COUNT ( * ) + + 55 AS col2 FROM tab2
----
58

query I rowsort
SELECT 86 + - col2 * - col1 FROM tab0 cor0
----
185
296
3893

query I rowsort
SELECT ALL - col0 * - col1 * + col0 + + col0 * - 2 AS col1 FROM tab1 AS cor0
----
35955
36312
389025

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT - + 85 DIV col2 + - col1 + + 41 * + col0 * + ( + col2 ) AS col2 FROM tab1 cor0
----
200722
205609
253660

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + 85 / col2 + - col1 + + 41 * + col0 * + ( + col2 ) AS col2 FROM tab1 cor0
----
200722
205609
253660

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + - COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT + - COUNT ( * ) col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5426
SELECT + + col2 DIV CAST( + 20 AS SIGNED ) * - col0 col2 FROM tab2 AS cor0
----
-128
-150
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT + + col2 / CAST ( + 20 AS INTEGER ) * - col0 col2 FROM tab2 AS cor0
----
-128
-150
-46

query I rowsort
SELECT DISTINCT + 83 * col2 * 80 AS col0 FROM tab1 AS cor0
----
391760
451520
637440

query I rowsort
SELECT col0 * + col2 * + + 2 AS col0 FROM tab2 AS cor0
----
2116
5120
8700

query I rowsort
SELECT DISTINCT - - 37 FROM tab1 cor0
----
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > + 6 / col0 - + 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) * 30 col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5431
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) * 30 col2 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5432
SELECT ALL - 50 DIV col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL - 50 / col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT col1 * + 58 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT - ( + + 31 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - 35 * - col1 * + col2 AS col0 FROM tab1
----
10325
111860
47040

query I rowsort
SELECT DISTINCT ( 12 ) FROM tab1
----
12

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + COUNT( ALL col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5439
SELECT + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL - MAX( + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - MAX ( + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + + col1 * - 48 AS col2 FROM tab0 cor0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT 89 + - + 43 + 98 * COUNT( * ) * + 47 * 32 col1 FROM tab2
----
442222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5442
SELECT DISTINCT 89 + - + 43 + 98 * COUNT ( * ) * + 47 * 32 col1 FROM tab2
----
442222

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL - 0 + MAX( ALL - 28 ) - - - 94 + - + 8 FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - 0 + MAX ( ALL - 28 ) - - - 94 + - + 8 FROM tab1 AS cor0
----
-130

query I rowsort
SELECT DISTINCT + col1 + + + 84 AS col1 FROM tab0 cor0
----
105
165
85

query I rowsort
SELECT ALL + col2 * + 25 + + 10 FROM tab0 AS cor0
----
1185
2485
260

query I rowsort
SELECT ALL - col0 - - col0 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL SUM( ALL + + col0 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL SUM ( ALL + + col0 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5448
SELECT DISTINCT CAST( + ( + col1 ) AS SIGNED ) + ( 82 ), 20 + - - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5448
SELECT DISTINCT CAST ( + ( + col1 ) AS INTEGER ) + ( 82 ), 20 + - - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 67 FROM tab1 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL MIN( DISTINCT - 34 ) FROM tab1 WHERE col2 * - 95 IS NOT NULL
----
-34

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL MIN ( DISTINCT - 34 ) FROM tab1 WHERE col2 * - 95 IS NOT NULL
----
-34

query II rowsort
SELECT DISTINCT + col2 - + 69 AS col0, + col2 AS col2 FROM tab1
----
-1
68
-10
59
27
96

query I rowsort
SELECT + col1 * - 82 FROM tab1
----
-1148
-3854
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COUNT( ALL - + 28 ) * - COUNT( * ) + - 13 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( ALL - + 28 ) * - COUNT ( * ) + - 13 FROM tab1
----
-22

query I rowsort
SELECT + col0 * - col2 * + col0 * + col1 - + col0 AS col0 FROM tab0 cor0
----
-1589577
-856590
-931588

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - - 18 * MAX( + + col1 ) + + + 75 * MAX( + 90 ) + - 23 AS col0 FROM tab1 AS cor0
----
7573

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - - 18 * MAX ( + + col1 ) + + + 75 * MAX ( + 90 ) + - 23 AS col0 FROM tab1 AS cor0
----
7573

query II rowsort
SELECT ( col1 ) AS col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT - CAST( - 48 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5457
SELECT - CAST ( - 48 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * - 32 col0 FROM tab1 AS cor0
----
2144
2144
2144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT ALL 40 AS col2 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab0
----
81

query I rowsort
SELECT DISTINCT 62 * + - ( + col0 ) FROM tab2
----
-2852
-3968
-4650

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5463
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 59 * CAST( NULL AS DECIMAL ) + + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5463
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 59 * CAST ( NULL AS REAL ) + + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - + 63 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT DISTINCT - ( col1 ) DIV + col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT - ( col1 ) / + col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( + - col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT - col1 * + - 93 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # aggregate syntax: 
query II rowsort label-5468
SELECT DISTINCT COUNT( * ) AS col2, 55 AS col0 FROM tab0 AS cor0
----
3
55

skipif mysql # not compatible
query II rowsort label-5468
SELECT DISTINCT COUNT ( * ) AS col2, 55 AS col0 FROM tab0 AS cor0
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + + COUNT( 75 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + + COUNT ( 75 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT + COUNT( * ) * + MAX( ALL + col2 ), 65 AS col0 FROM tab2 AS cor0
----
174
65

skipif mysql # not compatible
query II rowsort label-5471
SELECT + COUNT ( * ) * + MAX ( ALL + col2 ), 65 AS col0 FROM tab2 AS cor0
----
174
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT DISTINCT - col0 DIV 70 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT - col0 / 70 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ( + + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5474
SELECT 1 AS col1, + MAX( DISTINCT + 84 ) + ( - + COUNT( * ) ) * - + 57 FROM tab2 cor0
----
1
255

skipif mysql # not compatible
query II rowsort label-5474
SELECT 1 AS col1, + MAX ( DISTINCT + 84 ) + ( - + COUNT ( * ) ) * - + 57 FROM tab2 cor0
----
1
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab1
----
74
74
74

query I rowsort
SELECT - - col2 * - 81 * - - 12 FROM tab2 WHERE NOT 69 + + col0 + - + col1 IS NULL
----
-22356
-38880
-56376

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT - COUNT( * ) * - 31 FROM tab0 WHERE ( - 24 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - COUNT ( * ) * - 31 FROM tab0 WHERE ( - 24 ) = ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 / + + 76 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5479
SELECT CAST( - col1 AS SIGNED ), col2 col0 FROM tab0
----
-1
99
-21
10
-81
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5479
SELECT CAST ( - col1 AS INTEGER ), col2 col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT DISTINCT - col2 DIV - col1 + - - 10 + - col1 FROM tab1 AS cor0
----
-36
16
2

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - col2 / - col1 + - - 10 + - col1 FROM tab1 AS cor0
----
-36
16
2

query I rowsort
SELECT ALL col1 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5482
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) + COUNT( - col1 ) * CAST( COUNT( * ) AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) + COUNT ( - col1 ) * CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + 82 = col1
----
0

skipif mysql # not compatible
query I rowsort label-5483
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + 82 = col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 - + + 81 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5485
SELECT - + SUM( col0 ) DIV - 17 AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5485
SELECT - + SUM ( col0 ) / - 17 AS col2 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - - MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - - MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col0 + - 41 FROM tab1 AS cor0
----
10
44
50

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND + - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL + 59 * COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + 59 * COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT DISTINCT + - CAST( 0 AS SIGNED ) + - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5490
SELECT DISTINCT + - CAST ( 0 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col0 * + ( - col2 ) - + + 73 AS col2 FROM tab1 cor0
----
-4969
-5088
-6261

query I rowsort
SELECT ALL + col0 + + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - + col2 + - col0 - - + col2 * col2 * + col1 FROM tab0 AS cor0
----
178867
2003
9605

query II rowsort
SELECT 45 + + - col1, + col2 FROM tab0 WHERE NULL < + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + COUNT( * ) * + 56 - - 41 FROM tab1
----
209

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + COUNT ( * ) * + 56 - - 41 FROM tab1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL 85 - - COUNT( * ) + + + 82 AS col0 FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL 85 - - COUNT ( * ) + + + 82 AS col0 FROM tab0
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT DISTINCT CAST( + + col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 16 BETWEEN - 12 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + + 37 AS col2 FROM tab2 AS cor0
----
37

query II rowsort
SELECT ( + + col0 ), col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + MIN( - ( + col2 ) ) + - 23 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-122

skipif mysql # not compatible
query I rowsort label-5501
SELECT + MIN ( - ( + col2 ) ) + - 23 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT - MAX( ALL + 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - MAX ( ALL + 91 ) FROM tab0
----
-91

query I rowsort
SELECT ALL + - 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col1 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT + ( col1 ) * - - col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col0 * col0 + - - col2 + col0 + 53 * col0 AS col2 FROM tab2 AS cor0
----
4623
7592
9733

query I rowsort
SELECT ALL - ( + col1 ) * + 35 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT - COUNT( * ) * - 93 AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - COUNT ( * ) * - 93 AS col1 FROM tab1 AS cor0
----
279

query I rowsort
SELECT - ( + - 95 ) * col0 FROM tab0 AS cor0
----
1425
8265
9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + col0 col0 FROM tab2 AS cor0
----
2162
4160
5700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / - 44 * + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT - COUNT( + + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - COUNT ( + + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 + + col0 + - + col1 * + 44 FROM tab0 AS cor0
----
-3502
-827
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + MAX( DISTINCT - 82 ) AS col0 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + MAX ( DISTINCT - 82 ) AS col0 FROM tab1
----
-82

query II rowsort
SELECT DISTINCT + - col1 AS col1, ( - + col2 ) * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT col2 + - - 24 + 82 FROM tab1
----
165
174
202

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT 1 DIV + col1 + - + ( - col2 ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5518
SELECT 1 / + col1 + - + ( - col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ( - 50 ) AS col2 FROM tab1 WHERE 40 < + - 67
----

query I rowsort
SELECT - col2 / - - 17 + + 57 FROM tab0 WHERE - col0 + + 75 BETWEEN NULL AND + 87 + - 60 + + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT DISTINCT + - COUNT( * ) AS col2, 61 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-3
61

skipif mysql # not compatible
query II rowsort label-5521
SELECT DISTINCT + - COUNT ( * ) AS col2, 61 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-3
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT DISTINCT MAX( ALL - 81 ) * 47 AS col2, - ( + 86 ) AS col0 FROM tab1
----
-3807
-86

skipif mysql # not compatible
query II rowsort label-5522
SELECT DISTINCT MAX ( ALL - 81 ) * 47 AS col2, - ( + 86 ) AS col0 FROM tab1
----
-3807
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT + col0 + ( + + col0 ) FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + ( + col0 ) / 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT ALL + col0 DIV col2 + + + 97 FROM tab1 cor0
----
97
98
98

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + col0 / col2 + + + 97 FROM tab1 cor0
----
97
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT + 81 + + MIN( + col0 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + 81 + + MIN ( + col0 ) FROM tab0 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT ALL - col2 DIV - + col0 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - col2 / - + col0 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + SUM( col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5529
SELECT + SUM ( col0 ) AS col1 FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT COUNT( + col2 ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT COUNT ( + col2 ) - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT - ( - + ( - 63 ) ) - - + col2 AS col1 FROM tab2
----
-23
-40
-5

query II rowsort
SELECT col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 35 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE NOT - col2 <> - + col2
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 + 80 / + - 37 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 49 * + + 92 FROM tab0 AS cor0
----
4508
4508
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT col2 DIV - 83 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT col2 / - 83 AS col2 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col2 col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - + MAX( col2 ) col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5542
SELECT - + MAX ( col2 ) col0 FROM tab0 cor0
----
-99

query II rowsort
SELECT - 52, col0 FROM tab2 AS cor0
----
-52
46
-52
64
-52
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT + COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5544
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT MAX( ALL - col2 ) DIV 80 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT MAX ( ALL - col2 ) / 80 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - 86, + ( - + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
-86
-77
-86
2
-86
32

query I rowsort
SELECT ALL + 28 + + col0 AS col2 FROM tab1 AS cor0
----
113
119
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * ( - col1 ) col0 FROM tab0 AS cor0
----
-2025
-25
-525

query I rowsort
SELECT DISTINCT - 11 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5550
SELECT DISTINCT 38 * + + CAST( + - MAX( ALL col0 ) AS SIGNED ) col2 FROM tab0
----
-3686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5550
SELECT DISTINCT 38 * + + CAST ( + - MAX ( ALL col0 ) AS INTEGER ) col2 FROM tab0
----
-3686

query I rowsort
SELECT ALL - col2 * + 80 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT ( - col0 ) FROM tab0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + - 65 * 89 FROM tab2
----
266110
370240
433875

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col2 + + - col0 + 2 + + col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT 13 + + + 40 + + + COUNT( * ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5555
SELECT 13 + + + 40 + + + COUNT ( * ) FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT + COUNT( * ) + + 38 * + 19 + 59 AS col2 FROM tab0 AS cor0
----
784

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + COUNT ( * ) + + 38 * + 19 + 59 AS col2 FROM tab0 AS cor0
----
784

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT SUM( - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT SUM ( - col1 ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT ALL 85 - + col0 AS col2 FROM tab1
----
-6
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - + 23 * col2 col1 FROM tab2 AS cor0
----
-1587
-3480
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5562
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 26 + + 71 * - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) = + - col1
----

skipif mysql # not compatible
query III rowsort label-5562
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 26 + + 71 * - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) = + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT col1 / CAST( NULL AS SIGNED ) + - + col1 - ( col1 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT col1 / CAST ( NULL AS INTEGER ) + - + col1 - ( col1 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + + 14 - + col2 FROM tab0 AS cor0
----
-33
-85
4

query I rowsort
SELECT + col1 - col1 * - - 31 + - col0 - col0 AS col0 FROM tab0 cor0
----
-224
-2460
-804

query II rowsort
SELECT ALL col1 AS col1, - ( ( - 85 ) ) - - 5 FROM tab1 AS cor0
----
14
90
47
90
5
90

query I rowsort
SELECT DISTINCT col2 * - col1 * + + 14 AS col2 FROM tab1
----
-18816
-4130
-44744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL + CAST( NULL AS SIGNED ) / + ( - - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( - - col0 ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 7 * col1 AS col2 FROM tab1
----
329
35
98

query I rowsort
SELECT + ( + 38 ) AS col2 FROM tab1
----
38
38
38

query I rowsort
SELECT ( + col2 ) * - col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 65 IS NULL )
----

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1, tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT col0 + + 37 + - col2 * + col2 FROM tab0 AS cor0
----
-2157
-9667
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 49 col1 FROM tab1 AS cor0
----
2
35
44

query I rowsort
SELECT DISTINCT + col1 + - - col1 AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT CAST( + 40 AS SIGNED ) + col0 AS col0 FROM tab0
----
127
137
55

skipif mysql # not compatible
query I rowsort label-5581
SELECT CAST ( + 40 AS INTEGER ) + col0 AS col0 FROM tab0
----
127
137
55

query I rowsort
SELECT col1 * - + col1 + - col2 AS col2 FROM tab0
----
-100
-451
-6608

query II rowsort
SELECT col1, + 61 FROM tab2
----
51
61
67
61
77
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT + - col0 - ( + - col2 ) FROM tab1 WHERE NOT NULL IN ( col2, - 88, + col1 * + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + - col0 - ( + - col2 ) FROM tab1 WHERE NOT NULL IN ( col2, - 88, + col1 * + CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT COUNT( * ) DIV + 59 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) / + 59 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - MAX( ALL - - col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT - MAX ( ALL - - col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
-96

query II rowsort
SELECT col2 AS col0, 38 FROM tab1
----
59
38
68
38
96
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT ALL 55 * - col2 + - col2 FROM tab1 AS cor0
----
-3304
-3808
-5376

query I rowsort
SELECT col2 * - + col1 - - col0 FROM tab2 cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + ( - - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5591
SELECT + ( - - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - SUM( ALL - 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5592
SELECT - SUM ( ALL - 94 ) FROM tab2 AS cor0
----
282

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT - col1 DIV col1 + 35 FROM tab0 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-5594
SELECT - col1 / col1 + 35 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT ( + + 45 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT DISTINCT + - col1 DIV - + col1 - + col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + - col1 / - + col1 - + col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-5597
SELECT col2 DIV col1, col1 AS col0 FROM tab1 AS cor0
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-5597
SELECT col2 / col1, col1 AS col0 FROM tab1 AS cor0
----
1
47
11
5
6
14

query I rowsort
SELECT DISTINCT + + col0 * - col2 * - 61 FROM tab0 AS cor0
----
43005
53070
585783

query I rowsort
SELECT col0 * - + 64 AS col0 FROM tab2 cor0
----
-2944
-4096
-4800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + 96 IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5602
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query II rowsort
SELECT - col2 AS col1, + ( 10 ) AS col1 FROM tab0
----
-10
10
-47
10
-99
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5604
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-5604
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL - ( - 88 ) AS col2 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT 16 FROM tab1 AS cor0 WHERE 25 <= NULL
----

query II rowsort
SELECT + - col2 AS col2, + 97 FROM tab2 AS cor0
----
-23
97
-40
97
-58
97

query I rowsort
SELECT DISTINCT + col1 * - col1 + - - col0 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5609
SELECT - col0 col0, - 1 DIV - ( - 99 ) col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5609
SELECT - col0 col0, - 1 / - ( - 99 ) col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query II rowsort
SELECT 53 AS col1, + ( - col0 ) * col0 FROM tab0 AS cor0
----
53
-225
53
-7569
53
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - + col2 / + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT + MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5612
SELECT + MAX ( - col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 10 ) + + + col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT + col2 * - 33 FROM tab1 WHERE col0 + CAST( NULL AS SIGNED ) * col1 BETWEEN - 61 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + col2 * - 33 FROM tab1 WHERE col0 + CAST ( NULL AS INTEGER ) * col1 BETWEEN - 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + SUM( DISTINCT + col1 ) * - MAX( DISTINCT - 57 ) FROM tab1
----
3762

skipif mysql # not compatible
query I rowsort label-5615
SELECT + SUM ( DISTINCT + col1 ) * - MAX ( DISTINCT - 57 ) FROM tab1
----
3762

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5616
SELECT col2 * CAST( NULL AS DECIMAL ) + col2 * 14 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT col2 * CAST ( NULL AS REAL ) + col2 * 14 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT + COUNT( * ) * ( COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5617
SELECT + COUNT ( * ) * ( COUNT ( * ) ) FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 + + 81 )
----

query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 AS col0 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5620
SELECT ALL + 67 DIV 56 + COUNT( ALL - 97 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + 67 / 56 + COUNT ( ALL - 97 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
4

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab0 WHERE 91 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 15 col1 FROM tab1 WHERE NOT + col0 BETWEEN ( - 54 / col1 ) AND + 30
----
111
74
83

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + col2
----

query I rowsort
SELECT col0 + col2 FROM tab2 WHERE NOT - col0 BETWEEN - 37 AND ( NULL )
----
104
133
69

query I rowsort
SELECT col0 + 20 * + col1 AS col2 FROM tab2
----
1066
1415
1604

query I rowsort
SELECT 56 + col1 FROM tab0
----
137
57
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5628
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + 18 NOT BETWEEN ( CAST( NULL AS DECIMAL ) * col0 ) AND col2 / col0
----

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + 18 NOT BETWEEN ( CAST ( NULL AS REAL ) * col0 ) AND col2 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT - COUNT( * ) * + 31 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - COUNT ( * ) * + 31 FROM tab2
----
-93

query I rowsort
SELECT ALL 38 FROM tab1 WHERE NOT + col0 NOT IN ( col1 )
----

query I rowsort
SELECT col1 * + 38 - col0 * ( 37 + 64 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT 19 * ( col2 ) + col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL ( - 83 ) * col2 FROM tab0
----
-39