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
----
-3901
-8217
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - COUNT( DISTINCT ( 95 ) ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5634
SELECT - COUNT ( DISTINCT ( 95 ) ) AS col0 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT 29 * ( + CAST( col0 AS SIGNED ) ) + 28 FROM tab2
----
1362
1884
2203

skipif mysql # not compatible
query I rowsort label-5635
SELECT 29 * ( + CAST ( col0 AS INTEGER ) ) + 28 FROM tab2
----
1362
1884
2203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * + col0 col2 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT 91 * + 56 + COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( - col1 * - col2 - 38 )
----
5096

skipif mysql # not compatible
query I rowsort label-5637
SELECT 91 * + 56 + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( - col1 * - col2 - 38 )
----
5096

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( 10 + 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT ALL col1 DIV 62 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL col1 / 62 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL SUM( DISTINCT + col2 ) + + 1 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL SUM ( DISTINCT + col2 ) + + 1 FROM tab0
----
157

query I rowsort
SELECT - 66 * col0 + col1 FROM tab1
----
-3352
-5605
-5959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT + 68 * 93 + col0 FROM tab1 WHERE NULL <= + col2 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 68 * 93 + col0 FROM tab1 WHERE NULL <= + col2 / - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - col0 * + 32 + col1 AS col0 FROM tab0
----
-2763
-3103
-399

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL + MAX( ALL col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL + MAX ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT 59 * COUNT( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT 59 * COUNT ( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

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

query I rowsort
SELECT DISTINCT - col2 * col2 - + col1 AS col1 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * 56 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * 56 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ALL 79 - - 56 FROM tab2
----
135
135
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5654
SELECT ALL COUNT( * ) DIV 46 AS col1 FROM tab1 WHERE 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL COUNT ( * ) / 46 AS col1 FROM tab1 WHERE 68 IS NULL
----
0

query I rowsort
SELECT DISTINCT + - col2 * 84 FROM tab1 AS cor0
----
-4956
-5712
-8064

query I rowsort
SELECT - col0 / - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT - 77 DIV + ( COUNT( * ) ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5660
SELECT - 77 / + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL - MIN( col1 ) * + MAX( ALL col2 - col1 * + 52 ) FROM tab0 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - MIN ( col1 ) * + MAX ( ALL col2 - col1 * + 52 ) FROM tab0 cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT - 50 DIV - 99 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - 50 / - 99 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 12 * + col0 * 6 FROM tab2
----
-3312
-4608
-5400

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 13 < 25 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT + MIN( DISTINCT - ( + col1 ) ) FROM tab1 WHERE ( NULL ) NOT IN ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + MIN ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE ( NULL ) NOT IN ( 47 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5673
SELECT + SUM( DISTINCT + + CAST( 31 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5673
SELECT + SUM ( DISTINCT + + CAST ( 31 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT + col0 + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
141
142
97

query I rowsort
SELECT - 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT ALL - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT 53 + MIN( ALL - 24 ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5678
SELECT 53 + MIN ( ALL - 24 ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL + + 18 + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
103
109
69

query I rowsort
SELECT + + col1 + + col0 + - 64 FROM tab2 AS cor0
----
33
77
78

query I rowsort
SELECT + ( 20 ) FROM tab0
----
20
20
20

query I rowsort
SELECT DISTINCT - 84 - + - col2 AS col2 FROM tab2
----
-26
-44
-61

query I rowsort
SELECT ALL 60 / col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - - 40 + + 73 AND ( NULL )
----

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

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

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

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

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

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

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

query I rowsort
SELECT - - 92 - - 62 AS col1 FROM tab1 AS cor0
----
154
154
154

query I rowsort
SELECT ALL + ( - 34 ) + + col2 FROM tab2 AS cor0
----
-11
24
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5692
SELECT + SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
121

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

query I rowsort
SELECT - 23 + - + 29 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52

query I rowsort
SELECT ALL + col0 * - 84 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT DISTINCT ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( - - ( 27 ) AS SIGNED ) - CAST( + col1 AS SIGNED ) + 2 IN ( + col2 * - col2 - + ( ( - 44 ) ) * col1 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( - - ( 27 ) AS INTEGER ) - CAST ( + col1 AS INTEGER ) + 2 IN ( + col2 * - col2 - + ( ( - 44 ) ) * col1 )
----
46
64
75

query I rowsort
SELECT + - ( 68 ) * - col0 FROM tab1 AS cor0
----
3468
5780
6188

query I rowsort
SELECT DISTINCT 69 * - 75 FROM tab1 AS cor0
----
-5175

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5700
SELECT - - col2 AS col2, col0 DIV col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-5700
SELECT - - col2 AS col2, col0 / col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
10
1
47
1
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT + col0 DIV + ( - + col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5701
SELECT + col0 / + ( - + col0 ) FROM tab2
----
-1
-1
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5705
SELECT ALL AVG ( DISTINCT - 3 ) * MIN( + - ( + CAST( NULL AS DECIMAL ) ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT ALL AVG ( DISTINCT - 3 ) * MIN ( + - ( + CAST ( NULL AS REAL ) ) ) col2 FROM tab2
----
NULL

query II rowsort
SELECT 34, col0 FROM tab0
----
34
15
34
87
34
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( 0 ) NOT IN ( - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + 57 * + 13 AS col0 FROM tab1 AS cor0
----
741
741
741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT DISTINCT col1 * - CAST( + + ( 55 ) AS SIGNED ) FROM tab1 AS cor0
----
-2585
-275
-770

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT col1 * - CAST ( + + ( 55 ) AS INTEGER ) FROM tab1 AS cor0
----
-2585
-275
-770

query II rowsort
SELECT ALL - col0, 90 AS col2 FROM tab2 AS cor0
----
-46
90
-64
90
-75
90

query I rowsort
SELECT + - 88 * - - 74 FROM tab1 cor0
----
-6512
-6512
-6512

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT DISTINCT + col2 * + 31 + col2 + + 94 + + col2 * col1 * col0 DIV 94 AS col2 FROM tab0 AS cor0
----
2205
3364
608

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT + col2 * + 31 + col2 + + 94 + + col2 * col1 * col0 / 94 AS col2 FROM tab0 AS cor0
----
2205
3364
608

query I rowsort
SELECT + 26 * ( 36 ) * col2 * ( col1 ) + col0 * 24 FROM tab2 AS cor0
----
1099032
2884416
3639096

query I rowsort
SELECT + col1 * - ( + 17 ) FROM tab0
----
-1377
-17
-357

query I rowsort
SELECT ALL - + col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE + col0 >= - - col0
----
-51
-85
-91

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

query I rowsort
SELECT DISTINCT + 13 * 23 + - 3 FROM tab2 AS cor0
----
296

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

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

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

skipif mysql # not compatible
query I rowsort label-5722
SELECT 22 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT ALL + - 22 DIV 21 * + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + - 22 / 21 * + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + - 43 AS col2 FROM tab0 AS cor0
----
-33
4
56

query I rowsort
SELECT ALL + ( - 29 ) + + ( - col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
-46
-52
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT + 50 - + - MIN( + 94 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
144
3

skipif mysql # not compatible
query II rowsort label-5726
SELECT + 50 - + - MIN ( + 94 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
144
3

query I rowsort
SELECT DISTINCT + 65 + - 98 + - 13 - - + col1 FROM tab2 cor0
----
21
31
5

query I rowsort
SELECT ALL 99 - - + 85 FROM tab0
----
184
184
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE col2 IN ( - 3 * - col0 + + col1 + + col0 + - col2 - - 17 )
----

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE col2 IN ( - 3 * - col0 + + col1 + + col0 + - col2 - - 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL - 49 * + ( - COUNT( * ) ) AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - 49 * + ( - COUNT ( * ) ) AS col1 FROM tab2
----
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - 5 * - COUNT( * ) + + + COUNT( * ) + 42 AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5732
SELECT - 5 * - COUNT ( * ) + + + COUNT ( * ) + 42 AS col1 FROM tab1
----
60

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

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

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

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

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

query II rowsort
SELECT col0 * - - col0, 32 * - ( + col0 ) AS col2 FROM tab0
----
225
-480
7569
-2784
9409
-3104

query I rowsort
SELECT - col2 + + - col2 AS col1 FROM tab0 WHERE NOT + 12 NOT BETWEEN + - col2 + - col2 AND col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT - COUNT( ALL ( + col1 ) ) * MIN( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col2 + + 39 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - COUNT ( ALL ( + col1 ) ) * MIN ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col2 + + 39 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT DISTINCT MAX ( col2 ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT col0 * + 63 * + col0 FROM tab1
----
163863
455175
521703

query I rowsort
SELECT DISTINCT 19 * + col1 FROM tab0
----
1539
19
399

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT - 48 * + + SUM( DISTINCT 62 ) 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-5744
SELECT - 48 * + + SUM ( DISTINCT 62 ) col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

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

query I rowsort
SELECT - col0 * - + 35 FROM tab0
----
3045
3395
525

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

query I rowsort
SELECT DISTINCT + - col0 * 56 * - 61 + + col0 + - col1 FROM tab2 AS cor0
----
157131
218611
256208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT ALL - AVG ( + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE + ( + col2 ) / - col0 = 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL - AVG ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0 WHERE + ( + col2 ) / - col0 = 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5750
SELECT ALL * FROM tab2 AS cor0 WHERE - 49 NOT BETWEEN col2 / + + col2 + - CAST( NULL AS SIGNED ) / + 68 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5750
SELECT ALL * FROM tab2 AS cor0 WHERE - 49 NOT BETWEEN col2 / + + col2 + - CAST ( NULL AS INTEGER ) / + 68 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5751
SELECT - CAST( - col2 AS DECIMAL ) FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) - - col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5751
SELECT - CAST ( - col2 AS REAL ) FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) - - col2 <= NULL
----

query I rowsort
SELECT ALL - 47 + - ( - col0 ) FROM tab1 AS cor0
----
38
4
44

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

query II rowsort
SELECT ALL - col1 - col0 AS col2, 1 FROM tab2 AS cor0
----
-141
1
-142
1
-97
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT DISTINCT COUNT( * ) * + + 77 - + 14 AS col0, + MAX( - col0 ) col1 FROM tab2
----
217
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5756
SELECT DISTINCT COUNT ( * ) * + + 77 - + 14 AS col0, + MAX ( - col0 ) col1 FROM tab2
----
217
-46

query I rowsort
SELECT ALL - 22 + + ( + - col0 ) * 16 AS col1 FROM tab2
----
-1046
-1222
-758

query I rowsort
SELECT + 44 - - 38 AS col1 FROM tab1
----
82
82
82

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col2 BETWEEN + 34 / col0 + + 64 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 58 AS col0, 60 FROM tab0 AS cor0
----
-58
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col0, 75 )
----

query I rowsort
SELECT - 81 * + col2 AS col1 FROM tab2 cor0
----
-1863
-3240
-4698

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - MIN( - 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - MIN ( - 12 ) FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT - col0 DIV + + col1 + + + ( - col0 ) AS col1 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-5768
SELECT - col0 / + + col1 + + + ( - col0 ) AS col1 FROM tab0
----
-15
-194
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - col1 ) + col1 * + 69 col2 FROM tab2 AS cor0
----
3570
4690
5390

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL + - 64 + - MIN( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + - 64 + - MIN ( ALL + 86 ) AS col2 FROM tab1 AS cor0
----
-150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - col1 * - - col2 + 50 * - + 17 / + 36 + + 29
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 87 * + col1 / col2 < ( + 17 )
----
97
1
99

query I rowsort
SELECT ALL - col0 * - - 35 - - col2 FROM tab2 cor0
----
-1587
-2200
-2567

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT 41 DIV - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT 41 / - + col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT - COUNT( * ) * + SUM( - 97 ) AS col1, 71 FROM tab2
----
873
71

skipif mysql # not compatible
query II rowsort label-5778
SELECT - COUNT ( * ) * + SUM ( - 97 ) AS col1, 71 FROM tab2
----
873
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 col1, col2 FROM tab0 AS cor0
----
-82
10
-82
47
-82
99

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = ( ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT COUNT( * ) + 40 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( * ) + 40 FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT + CAST( - col0 AS SIGNED ) * + col2 + - 81 + + + col1 - - col2 col1 FROM tab1
----
-4867
-5032
-6154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5785
SELECT + CAST ( - col0 AS INTEGER ) * + col2 + - 81 + + + col1 - - col2 col1 FROM tab1
----
-4867
-5032
-6154

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col1 + - col0 col2 FROM tab2
----
51
5
67
-8
77
13

query II rowsort
SELECT - 32 AS col0, col2 FROM tab0
----
-32
10
-32
47
-32
99

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

query I rowsort
SELECT - col2 * + - col2 FROM tab1
----
3481
4624
9216

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

query I rowsort
SELECT + + 56 * col0 FROM tab0 cor0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT ALL - 16 DIV col1 + - - col2 AS col2 FROM tab0 AS cor0
----
10
47
83

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - 16 / col1 + - - col2 AS col2 FROM tab0 AS cor0
----
10
47
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT 84 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT 84 / + col2 AS col1 FROM tab1
----
0
1
1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col2 FROM tab1 cor0
----
53
53
53

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

query I rowsort
SELECT + col2 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT + 96 * - + col2 + + col2 FROM tab1 AS cor0
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5802
SELECT col1 * - 9 + col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-30
NULL
-355
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-5802
SELECT col1 * - 9 + col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-30
NULL
-355
NULL
14
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col2 + - col0 - + 61 NOT BETWEEN - col2 AND col1
----

query I rowsort
SELECT - 11 * - 7 AS col2 FROM tab2
----
77
77
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5806
SELECT * FROM tab2 WHERE ( NOT - 93 NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5806
SELECT * FROM tab2 WHERE ( NOT - 93 NOT BETWEEN NULL AND - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 < 41
----
51
14
96
85
5
59

query II rowsort
SELECT ALL - 89, col1 AS col0 FROM tab1
----
-89
14
-89
47
-89
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT DISTINCT - 76 DIV - + ( + COUNT( * ) ) + MIN( - 73 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - 76 / - + ( + COUNT ( * ) ) + MIN ( - 73 ) FROM tab1 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL - col0 + + + 72 + - - col1 * - col0 * + CAST( - - col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-383685
-4625448
-9628

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - col0 + + + 72 + - - col1 * - col0 * + CAST ( - - col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-383685
-4625448
-9628

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - 38 - - COUNT( * ) col2 FROM tab1 AS cor0
----
-35

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

query I rowsort
SELECT DISTINCT - - col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - - 84 + + col1 FROM tab1 cor0
----
131
89
98

query I rowsort
SELECT DISTINCT + 4 * - - col1 - + ( - col2 ) FROM tab0
----
103
371
94

query I rowsort
SELECT DISTINCT + col1 + - 90 * + + col1 AS col2 FROM tab0 WHERE NOT - ( - 16 ) = NULL
----

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

query I rowsort
SELECT col2 * - - 45 + - - col0 AS col1 FROM tab1 AS cor0
----
2740
3151
4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT - col2 * + col2 * 39 + + col2 FROM tab2 AS cor0 WHERE NULL <= + CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5818
SELECT - col2 * + col2 * 39 + + col2 FROM tab2 AS cor0 WHERE NULL <= + CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT - + 12 * - ( - - 13 ) FROM tab0 AS cor0
----
156
156
156

query II rowsort
SELECT col1 * 90 AS col1, + 17 AS col0 FROM tab2 cor0
----
4590
17
6030
17
6930
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT MAX( ALL - - 58 ) col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5821
SELECT DISTINCT MAX ( ALL - - 58 ) col1 FROM tab1 AS cor0
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL + MIN( - col2 ) col1 FROM tab0
----
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5824
SELECT DISTINCT col0 * ( + 64 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
5568
NULL
6208
NULL
960
NULL

skipif mysql # not compatible
query II rowsort label-5824
SELECT DISTINCT col0 * ( + 64 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
5568
NULL
6208
NULL
960
NULL

query I rowsort
SELECT ALL - col1 * col0 / col0 * 72 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 + - 33 / + + col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT - - 49 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT - - 49 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT 21 + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT 21 + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT ALL - 8 AS col1, col2 AS col1 FROM tab1
----
-8
59
-8
68
-8
96

query I rowsort
SELECT DISTINCT 3 * 59 FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5834
SELECT DISTINCT col1 AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5834
SELECT DISTINCT col1 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT 98 BETWEEN - col1 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-5836
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT 98 BETWEEN - col1 AND col0
----
3

query I rowsort
SELECT ALL col2 + + + 52 FROM tab1 AS cor0
----
111
120
148

query II rowsort
SELECT 33, - 6 * - 8 AS col2 FROM tab1 cor0
----
33
48
33
48
33
48

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

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

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE + col2 BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 56 AS col2 FROM tab1 AS cor0
----
59
56
68
56
96
56

query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 > - col0
----

query I rowsort
SELECT - col2 * col0 FROM tab1 AS cor0 WHERE + col0 NOT IN ( - - col2, - ( - col0 ) * col0, 25 + - col2, 97 * - col1 )
----
-4896
-5015
-6188

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 46 + + - col2 AS col1 FROM tab2 AS cor0
----
-12
23
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + - COUNT( * ) * COUNT( * ) + - 97 col0 FROM tab1 AS cor0
----
-106

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 99 col2 FROM tab0 AS cor0
----
4653
9801
990

query I rowsort
SELECT - - 1 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + col1 * - - 27 AS col2 FROM tab1 AS cor0 WHERE col1 IN ( + + col1, CAST( NULL AS SIGNED ), col2 )
----
1269
135
378

skipif mysql # not compatible
query I rowsort label-5852
SELECT + col1 * - - 27 AS col2 FROM tab1 AS cor0 WHERE col1 IN ( + + col1, CAST ( NULL AS INTEGER ), col2 )
----
1269
135
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT + - col0 + - + CAST( - + 9 AS SIGNED ) FROM tab2 cor0
----
-37
-55
-66

skipif mysql # not compatible
query I rowsort label-5853
SELECT + - col0 + - + CAST ( - + 9 AS INTEGER ) FROM tab2 cor0
----
-37
-55
-66

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + 50 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 6 * + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 - + col2 AS col2 FROM tab0
----
-98
11
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - MIN( DISTINCT - 12 ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - MIN ( DISTINCT - 12 ) AS col1 FROM tab0 AS cor0
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - COUNT( * ) * - + MAX( DISTINCT + 34 ) col1 FROM tab0 AS cor0
----
102

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5861
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= CAST( + + 15 AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query III rowsort label-5861
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= CAST ( + + 15 AS REAL ) + - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL SUM( + 60 ) AS col2 FROM tab2, tab2 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL SUM ( + 60 ) AS col2 FROM tab2, tab2 AS cor0
----
540

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - 48 * - 96 + - col0 <= col1 * - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT CAST( col0 AS SIGNED ) * - + 17 + + col1 AS col2 FROM tab1
----
-1440
-1500
-853

skipif mysql # not compatible
query I rowsort label-5867
SELECT CAST ( col0 AS INTEGER ) * - + 17 + + col1 AS col2 FROM tab1
----
-1440
-1500
-853

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

skipif mysql # not compatible
query I rowsort label-5868
SELECT CAST ( + + 49 AS INTEGER ) FROM tab1
----
49
49
49

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

query I rowsort
SELECT + col0 * + + 69 AS col2 FROM tab2
----
3174
4416
5175

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 15 BETWEEN NULL AND + 69 * - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 25 * + 81 + + col2 + + 72 AS col2 FROM tab1 AS cor0
----
2156
2165
2193

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5874
SELECT * FROM tab1 AS cor0 WHERE - 89 / 83 - - CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5874
SELECT * FROM tab1 AS cor0 WHERE - 89 / 83 - - CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 72 * + col2 + + col0 FROM tab1 AS cor0
----
-4163
-4805
-6861

query I rowsort
SELECT DISTINCT - 89 + col0 - col1 AS col1 FROM tab2 AS cor0
----
-102
-81
-94

query I rowsort
SELECT + ( - col2 ) * + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + 53 * - 66 FROM tab0
----
-3498
-3498
-3498

query I rowsort
SELECT ALL - 78 * 84 AS col1 FROM tab1
----
-6552
-6552
-6552

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5881
SELECT DISTINCT - 45 * - + 53 AS col1, CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
2385
15
2385
87
2385
97

skipif mysql # not compatible
query II rowsort label-5881
SELECT DISTINCT - 45 * - + 53 AS col1, CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
2385
15
2385
87
2385
97

query I rowsort
SELECT - 19 * - ( + col2 ) FROM tab0
----
1881
190
893

query I rowsort
SELECT + 37 * + col2 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - COUNT( * ) * - 79 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-5884
SELECT - COUNT ( * ) * - 79 FROM tab0
----
237

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 = + 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 41 * + col2 - + col0 FROM tab1 AS cor0
----
2334
2697
3885

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

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

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

query I rowsort
SELECT + 70 + - + col1 AS col2 FROM tab0 AS cor0
----
-11
49
69

query I rowsort
SELECT + + 44 + + col2 FROM tab2 AS cor0
----
102
67
84

query I rowsort
SELECT DISTINCT + col2 - - 91 FROM tab1
----
150
159
187

query I rowsort
SELECT col0 + - - col1 + + 45 FROM tab0
----
141
143
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT ALL - + col1 DIV - 12 AS col0 FROM tab2 WHERE NOT + + col2 IS NULL
----
4
5
6

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - + col1 / - 12 AS col0 FROM tab2 WHERE NOT + + col2 IS NULL
----
4
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab1, tab0 AS cor0
----
13

query I rowsort
SELECT - 60 * - 48 * + col0 * - - col2 FROM tab0 AS cor0
----
2030400
2505600
27656640

query I rowsort
SELECT + ( + col2 ) * + + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

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

query I rowsort
SELECT - 16 * col0 * col2 * - col2 FROM tab1 AS cor0
----
4734160
6732544
7520256

query I rowsort
SELECT + 28 * col2 * col1 FROM tab2 cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT + + MIN( 1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT + + MIN ( 1 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5902
SELECT DISTINCT - col2 * - 52 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 NOT IN ( + col0 / - ( 10 ), 71, + + col0, - CAST( - - col0 AS SIGNED ) / + col2 * + CAST( col2 AS DECIMAL ) * + col1 + 32 )
----

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT - col2 * - 52 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 NOT IN ( + col0 / - ( 10 ), 71, + + col0, - CAST ( - - col0 AS INTEGER ) / + col2 * + CAST ( col2 AS REAL ) * + col1 + 32 )
----

query I rowsort
SELECT - + 36 AS col2 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT NULL IN ( + 21 - - col1, + col2 * - col2, + col1 + + col1, + col2 + + - col0, - 88 * - col1, + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT NULL IN ( + 21 - - col1, + col2 * - col2, + col1 + + col1, + col2 + + - col0, - 88 * - col1, + + CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5907
SELECT col0 col0, - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5907
SELECT col0 col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL ( + - col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + 54 AS col2 FROM tab2
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT DISTINCT + - col0 FROM tab2 WHERE col0 * + + col0 IN ( + - ( + col0 ), col1, + 47 * CAST( NULL AS SIGNED ) + - - col1 )
----

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + - col0 FROM tab2 WHERE col0 * + + col0 IN ( + - ( + col0 ), col1, + 47 * CAST ( NULL AS INTEGER ) + - - col1 )
----

query I rowsort
SELECT col0 + + col2 + + col0 * ( + ( - col1 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-281
-4118
-567

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT ALL 9 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 9 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 43 AS col1, 74 FROM tab1
----
43
74
43
74
43
74

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

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

query I rowsort
SELECT 23 + 50 AS col0 FROM tab2 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT COUNT( * ) + COUNT( * ) + - COUNT( * ) * + + COUNT( * ) * + MIN( - col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
2193

skipif mysql # not compatible
query I rowsort label-5918
SELECT COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) * + + COUNT ( * ) * + MIN ( - col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
2193

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 82 * - + col2, 57 col0 FROM tab0
----
-3854
57
-8118
57
-820
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT DISTINCT col0 col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( - - ( 46 ), col0, + 18 * ( ( - col1 ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5921
SELECT DISTINCT col0 col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( - - ( 46 ), col0, + 18 * ( ( - col1 ) ) )
----

query I rowsort
SELECT + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

skipif mysql # not compatible
query II rowsort label-5923
SELECT ( 19 ) * 77 * + + 17 AS col2, - COUNT ( * ) FROM tab2
----
24871
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT 68 DIV + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
0
4

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT 68 / + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL + 80 + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + 80 + COUNT ( * ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT - - 57 + + col2 FROM tab2 AS cor0
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + MIN( DISTINCT col0 ) + + 99 * - COUNT( * ) AS col2 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-5927
SELECT + MIN ( DISTINCT col0 ) + + 99 * - COUNT ( * ) AS col2 FROM tab1
----
-246

query I rowsort
SELECT col0 * col2 + 58 AS col1 FROM tab1
----
4954
5073
6246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT + col1 AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - CAST( NULL AS SIGNED ) ) AND 49 + - col1 + - col2
----

skipif mysql # not compatible
query I rowsort label-5929
SELECT + col1 AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - CAST ( NULL AS INTEGER ) ) AND 49 + - col1 + - col2
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * + - col2 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT col0 * + - col1 + - col2 * col1 + - col2 FROM tab0
----
-2047
-295
-5069

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT 22 DIV - 63 + - - col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5932
SELECT 22 / - 63 + - - col1 AS col0 FROM tab2
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + 40 + + + 55 col0 FROM tab1
----
-1425
-1425
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT - COUNT( * ) + SUM( + col1 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - COUNT ( * ) + SUM ( + col1 ) FROM tab0 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5936
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = col1 ) OR NOT NULL = ( CAST( NULL AS SIGNED ) / + col0 )
----

skipif mysql # not compatible
query III rowsort label-5936
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = col1 ) OR NOT NULL = ( CAST ( NULL AS INTEGER ) / + col0 )
----

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IN ( + col0, + col0, - 87 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col2, 79 FROM tab0
----
37
79
37
79
37
79

query I rowsort
SELECT ALL + - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT ALL ( - 84 ) * + 55 FROM tab2
----
-4620
-4620
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

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

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

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

query I rowsort
SELECT - - 11 * + 95 FROM tab0 AS cor0
----
1045
1045
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - + COUNT( * ) * + - SUM( + - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-5946
SELECT - + COUNT ( * ) * + - SUM ( + - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-468

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND - col2 + 41 - 50 * + 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT COUNT( * ) AS col1, - COUNT( * ) * - 72 AS col2 FROM tab0 AS cor0
----
3
216

skipif mysql # not compatible
query II rowsort label-5948
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * - 72 AS col2 FROM tab0 AS cor0
----
3
216

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5951
SELECT - ( - 55 ), CAST( 29 AS SIGNED ) DIV 6 * 99 AS col2 FROM tab1
----
55
396
55
396
55
396

skipif mysql # not compatible
query II rowsort label-5951
SELECT - ( - 55 ), CAST ( 29 AS INTEGER ) / 6 * 99 AS col2 FROM tab1
----
55
396
55
396
55
396

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT DISTINCT - 47 * + COUNT( * ), MIN( - - 31 ) * + COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
-141
93

skipif mysql # not compatible
query II rowsort label-5952
SELECT DISTINCT - 47 * + COUNT ( * ), MIN ( - - 31 ) * + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
-141
93

query I rowsort
SELECT ALL col1 * - col0 + - + 14 - 98 FROM tab0
----
-1327
-1939
-209

query I rowsort
SELECT DISTINCT - 68 + + 51 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT - + 40 * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - + 40 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT DISTINCT col2 + col1 + + + col2 * - col2 * col1 DIV + col1 FROM tab2
----
-1483
-3239
-455

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT col2 + col1 + + + col2 * - col2 * col1 / + col1 FROM tab2
----
-1483
-3239
-455

query I rowsort
SELECT ALL - - col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT + col1 * col0 FROM tab2 AS cor0 WHERE - col0 + + - 75 * - 65 - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT ( + col1 ) * + + col2 + + 64 + CAST( NULL AS SIGNED ) * + 41 * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT ( + col1 ) * + + col2 + + 64 + CAST ( NULL AS INTEGER ) * + 41 * - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - ( + 2 ) + + + 96 FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL 92 + + COUNT( * ) * + - 68 AS col0 FROM tab1
----
-112

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 92 + + COUNT ( * ) * + - 68 AS col0 FROM tab1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + SUM( ALL + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + SUM ( ALL + col0 ) AS col2 FROM tab0
----
199

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col1 col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 63 * + + 30 FROM tab0
----
1890
1890
1890

query II rowsort
SELECT col2 * 60 AS col1, col1 FROM tab1
----
3540
5
4080
47
5760
14

query I rowsort
SELECT DISTINCT + - 36 * - + 20 FROM tab1 AS cor0
----
720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - + col1 ) NOT BETWEEN col1 - - + col2 AND - 16 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT + col1 DIV - + ( - 55 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT + col1 / - + ( - 55 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT MAX( - - col0 ) FROM tab0 cor0 WHERE NOT ( NOT 71 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT MAX ( - - col0 ) FROM tab0 cor0 WHERE NOT ( NOT 71 IS NULL )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5973
SELECT MIN( - CAST( - + col1 AS SIGNED ) ) AS col2, + SUM( - - col0 ) * CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5973
SELECT MIN ( - CAST ( - + col1 AS INTEGER ) ) AS col2, + SUM ( - - col0 ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
51
NULL

query I rowsort
SELECT ALL + + 28 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5976
SELECT ALL - 97 - + + 20 / - - COUNT( * ) / CAST( NULL AS DECIMAL ) AS col1, 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL - 97 - + + 20 / - - COUNT ( * ) / CAST ( NULL AS REAL ) AS col1, 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * ( - + 8 ) - + ( - + col2 ) AS col2, - 11 col2 FROM tab0 AS cor0
----
167
-11
706
-11
875
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT SUM( ALL - + ( + - 18 ) ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5980
SELECT SUM ( ALL - + ( + - 18 ) ) FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT + - col0 * + col2 DIV + + col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5981
SELECT + - col0 * + col2 / + + col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 * 80 AS col2 FROM tab1 AS cor0
----
4720
5440
7680

query I rowsort
SELECT + col1 * + 83 AS col0 FROM tab1 AS cor0
----
1162
3901
415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * 35 col1 FROM tab0 AS cor0
----
-1575
-1575
-1575

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5988
SELECT ALL - col2 / + ( + 20 ) col1 FROM tab1 WHERE - 92 NOT BETWEEN NULL AND - ( - + CAST( - - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5988
SELECT ALL - col2 / + ( + 20 ) col1 FROM tab1 WHERE - 92 NOT BETWEEN NULL AND - ( - + CAST ( - - col0 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT - COUNT( - 41 ), COUNT( * ) col2 FROM tab2
----
-3
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT - 16 + + CAST( NULL AS SIGNED ) / - 40 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT - 16 + + CAST ( NULL AS INTEGER ) / - 40 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - 11 * + - col2 + col0 FROM tab0 AS cor0
----
1187
218
613

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

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

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

query I rowsort
SELECT + 92 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT - 96 - + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-155
-164
-192

skipif mysql # not compatible
query I rowsort label-5995
SELECT - 96 - + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-155
-164
-192

query I rowsort
SELECT col1 - 70 + - - col0 AS col2 FROM tab0 AS cor0
----
26
28
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - ( + MIN( ALL - col2 ) ) - - 48 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-5998
SELECT - ( + MIN ( ALL - col2 ) ) - - 48 FROM tab2 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT ALL - 0 * - col2 DIV + + col2 + - col2 - col1 + - + ( col1 ) DIV - ( col2 ) FROM tab2
----
-116
-124
-72

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - 0 * - col2 / + + col2 + - col2 - col1 + - + ( col1 ) / - ( col2 ) FROM tab2
----
-116
-124
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL col2 - col0 + - - col2 FROM tab1
----
141
33
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT col2 DIV 49 + + 18 FROM tab0
----
18
18
20

skipif mysql # not compatible
query I rowsort label-6003
SELECT col2 / 49 + + 18 FROM tab0
----
18
18
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT 73 DIV 99 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6004
SELECT 73 / 99 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 37 * 15 + + col0 * - 31 AS col0 FROM tab2 AS cor0
----
-1981
-2539
-2880

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6006
SELECT 59 * CAST( NULL AS DECIMAL ) + 10, + ( col1 ) FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6006
SELECT 59 * CAST ( NULL AS REAL ) + 10, + ( col1 ) FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL + - col1 * col0 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT DISTINCT CAST( NULL AS SIGNED ) * 66 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 66 AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1, col0 * + + col2 AS col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL + 41 * + + col2 * + CAST( - col2 AS SIGNED ) + - + 30 AS col2 FROM tab0 AS cor0
----
-401871
-4130
-90599

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + 41 * + + col2 * + CAST ( - col2 AS INTEGER ) + - + 30 AS col2 FROM tab0 AS cor0
----
-401871
-4130
-90599

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + + SUM( 2 ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6011
SELECT DISTINCT + + SUM ( 2 ) col1 FROM tab0 AS cor0
----
6

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 89 BETWEEN NULL AND + - 85 - col1 * - col2 * - 75
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL + 17 * 38 * + - COUNT( * ) FROM tab1 AS cor0
----
-1938

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + 17 * 38 * + - COUNT ( * ) FROM tab1 AS cor0
----
-1938

query I rowsort
SELECT 11 + + col1 FROM tab2 AS cor0
----
62
78
88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT + 25 + ( - + 78 ) + + - CAST( NULL AS SIGNED ) - + col1 * - + 66 - 12 * - - col0 + + 89 + - + ( 32 ) * ( + 50 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT + 25 + ( - + 78 ) + + - CAST ( NULL AS INTEGER ) - + col1 * - + 66 - 12 * - - col0 + + 89 + - + ( 32 ) * ( + 50 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT - col2 DIV - ( - + col0 ) + 90 AS col1 FROM tab1
----
89
90
90

skipif mysql # not compatible
query I rowsort label-6019
SELECT - col2 / - ( - + col0 ) + 90 AS col1 FROM tab1
----
89
90
90

query I rowsort
SELECT col2 * - 82 * 21 FROM tab2
----
-39606
-68880
-99876

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

query I rowsort
SELECT DISTINCT - col1 * - 1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + COUNT( * ) * - 46 AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + COUNT ( * ) * - 46 AS col0 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - + ( + 41 ) * + 83 - + col0 / + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 57 + + col1 AS col0 FROM tab2 AS cor0
----
108
124
134

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + ( + 23 ) + - 6 + + COUNT( + + col1 ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + ( + 23 ) + - 6 + + COUNT ( + + col1 ) AS col2 FROM tab0 AS cor0
----
20

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

query I rowsort
SELECT - col2 + + 27 AS col2 FROM tab1
----
-32
-41
-69

query I rowsort
SELECT - col1 * 80 + + - col0 AS col0 FROM tab1
----
-1171
-3851
-485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( col2 ) + + 69 - + + col2 col0 FROM tab1
----
3491
4625
9189

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT - ( - - 3 ) DIV + MIN( ALL + - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT - ( - - 3 ) / + MIN ( ALL + - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) + 22 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6036
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) + 22 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 40 - - 75 AND ( - col1 ) / col0 + ( col0 )
----

query II rowsort
SELECT + - 85 * - + 1 AS col0, - 35 * - col0 * 10 + + 16 * - col1 AS col1 FROM tab2 AS cor0
----
85
15284
85
21168
85
25178

query II rowsort
SELECT + + col0, - col2 - - col1 FROM tab2 AS cor0
----
46
28
64
37
75
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL + ( SUM( - + 25 ) ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + ( SUM ( - + 25 ) ) FROM tab0
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + 74 - 10 AND NULL
----

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 80 * ( 38 ) AS col2, + 76 + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
-3040
1134
-3040
2636
-3040
4426

query I rowsort
SELECT DISTINCT - + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 25 * - ( 30 ) > NULL
----

query I rowsort
SELECT + col1 * col0 * + + 73 * + 81 AS col0 FROM tab1 AS cor0
----
2513025
25289901
4221882

query I rowsort
SELECT ALL 8 + + col2 FROM tab1 AS cor0
----
104
67
76

query I rowsort
SELECT col1 * + col2 + + + col0 * col0 FROM tab0 AS cor0
----
4032
7779
9508

query I rowsort
SELECT - col2 * - col1 * col0 * col1 + - col0 * + ( col0 ) - col2 AS col1 FROM tab1 AS cor0
----
118091
13660943
956919

query II rowsort
SELECT col2 * col2 * + col2 * + + col2, col2 FROM tab2
----
11316496
58
2560000
40
279841
23

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

query I rowsort
SELECT ALL 79 * 91 FROM tab0
----
7189
7189
7189

query I rowsort
SELECT DISTINCT - col2 * 21 AS col2 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT - 79 * + - col0 + - col0 FROM tab0
----
1170
6786
7566

query III rowsort
SELECT * FROM tab2 WHERE + - 90 BETWEEN NULL AND + 6
----

query I rowsort
SELECT 9 + + + 1 FROM tab1 AS cor0
----
10
10
10

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

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

query I rowsort
SELECT - col0 - + col0 + - + col0 AS col1 FROM tab2
----
-138
-192
-225

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE col2 * - col0 * col0 >= ( + 50 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 97 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT DISTINCT col2 DIV - - 49 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT col2 / - - 49 AS col1 FROM tab0
----
0
2

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

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

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

query II rowsort
SELECT DISTINCT - 91 AS col1, col1 AS col1 FROM tab0
----
-91
1
-91
21
-91
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT MAX( + + 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT MAX ( + + 77 ) FROM tab1
----
77

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

query II rowsort
SELECT ALL col1, - 62 * + - 36 AS col2 FROM tab1
----
14
2232
47
2232
5
2232

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

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

query I rowsort
SELECT ALL 88 * - + col0 FROM tab1
----
-4488
-7480
-8008

query I rowsort
SELECT col1 * + + 25 FROM tab0
----
2025
25
525

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + MAX( ALL - + col2 ) * + + 92 + 12 col2 FROM tab1 AS cor0
----
-5416

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6082
SELECT + MAX ( ALL - + col2 ) * + + 92 + 12 col2 FROM tab1 AS cor0
----
-5416

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT - + 87 * - + 43 + SUM( - 72 ) AS col2 FROM tab2 cor0
----
3525

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - + 87 * - + 43 + SUM ( - 72 ) AS col2 FROM tab2 cor0
----
3525

query I rowsort
SELECT ALL - col2 + + 13 + - - col1 AS col1 FROM tab2 AS cor0
----
22
41
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + MIN( - 17 ) + 24 - 14 AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6085
SELECT + MIN ( - 17 ) + 24 - 14 AS col2 FROM tab0 AS cor0
----
-7

query II rowsort
SELECT 49 AS col0, 28 * - 49 FROM tab0
----
49
-1372
49
-1372
49
-1372

query I rowsort
SELECT col1 * + 17 AS col2 FROM tab2
----
1139
1309
867

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

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT ( + COUNT ( 86 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 75 * - 98 FROM tab1
----
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT 95 DIV - + col1 FROM tab0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-6090
SELECT 95 / - + col1 FROM tab0
----
-1
-4
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT ALL + 42 DIV + ( + 42 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + 42 / + ( + 42 ) AS col1 FROM tab0
----
1
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL = 29
----

query I rowsort
SELECT ALL - 9 - - + 96 AS col2 FROM tab0 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + col2 + + col0 * col1 + 26 col0 FROM tab1 AS cor0
----
4407
546
872

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

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 0 - - + 26 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL - 40 DIV - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6096
SELECT ALL - 40 / - col0 col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col2 BETWEEN ( 20 ) AND ( - 41 )
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT - MAX( DISTINCT - col1 ) + 35 col1 FROM tab1
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6100
SELECT - MAX ( DISTINCT - col1 ) + 35 col1 FROM tab1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6101
SELECT ALL COUNT( * ) DIV 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL COUNT ( * ) / 80 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT ALL ( 98 ) DIV 89 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL ( 98 ) / 89 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL SUM( DISTINCT 54 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL SUM ( DISTINCT 54 ) FROM tab1
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT col2 - + 7 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) <= 26 + + col0
----

skipif mysql # not compatible
query I rowsort label-6106
SELECT col2 - + 7 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <= 26 + + col0
----

query I rowsort
SELECT + col0 + col1 * 59 AS col2 FROM tab2
----
3055
4028
4607

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

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL NOT IN ( + 62 )
----

query I rowsort
SELECT DISTINCT 7 * 1 - - 7 AS col1 FROM tab2
----
14

query I rowsort
SELECT ( col0 ) + + 82 * col2 AS col2 FROM tab2
----
1932
3344
4831

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 99 * SUM( - 76 ) + + COUNT( - col2 ) FROM tab0
----
-22569

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 99 * SUM ( - 76 ) + + COUNT ( - col2 ) FROM tab0
----
-22569

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab1 WHERE col1 + 27 < - col2
----

query I rowsort
SELECT 99 - + ( 73 ) FROM tab2 WHERE NOT NULL <> ( col0 / - 76 )
----

query I rowsort
SELECT + col0 - 61 AS col1 FROM tab0 WHERE 79 NOT BETWEEN - col0 * col2 AND col1 - col0
----
-46
26
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) < 86 + + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab0 WHERE col0 + col2 * - 55 > ( col2 )
----

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab1
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6120
SELECT DISTINCT * FROM tab2 WHERE col2 * 64 BETWEEN ( - col2 ) + col1 AND ( + CAST( 93 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6120
SELECT DISTINCT * FROM tab2 WHERE col2 * 64 BETWEEN ( - col2 ) + col1 AND ( + CAST ( 93 AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = ( + col2 + 94 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col1 + - 50 * 6
----

query I rowsort
SELECT ( - 32 ) AS col2 FROM tab1
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT ( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6125
SELECT ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + col1 * - 4 AS col2 FROM tab0 AS cor0
----
-324
-4
-84

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6131
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) / + 7 col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL 23 + COUNT( * ) FROM tab2 AS cor0 WHERE + 31 > ( NULL )
----
23

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 23 + COUNT ( * ) FROM tab2 AS cor0 WHERE + 31 > ( NULL )
----
23

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + CAST ( + col1 AS REAL ) FROM tab2 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 16 * + 25 AS col2 FROM tab0 AS cor0
----
415
487
497

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT - - 44 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - - 44 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col2 AND ( col1 - - 82 )
----
51
14
96

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 86 * - COUNT ( * ) FROM tab0 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + + 17 + - COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6139
SELECT + + 17 + - COUNT ( * ) FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 - + col0 ) BETWEEN - 75 / + col1 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL SUM( ALL 92 ) - 58 AS col1 FROM tab1
----
218

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL SUM ( ALL 92 ) - 58 AS col1 FROM tab1
----
218

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 - + 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL ( 44 ) + COUNT( * ) * - 76 FROM tab2 WHERE NOT col2 IN ( col0 )
----
-184

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL ( 44 ) + COUNT ( * ) * - 76 FROM tab2 WHERE NOT col2 IN ( col0 )
----
-184

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col0 * - 39 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) + col2 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + 26 + + 64 col0 FROM tab0 AS cor0
----
1260
1260
1260

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE - 57 * + 92 + 56 IS NOT NULL
----
14
47
5

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

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

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

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

query I rowsort
SELECT DISTINCT 89 - - col1 + 86 - col1 AS col2 FROM tab1
----
175

query I rowsort
SELECT ALL - 97 * + - 80 FROM tab2
----
7760
7760
7760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + SUM( - 30 ) col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT + SUM ( - 30 ) col0 FROM tab0 AS cor0
----
-90

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

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

query I rowsort
SELECT DISTINCT 68 * 43 AS col0 FROM tab2 AS cor0
----
2924

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND - col1 / ( - col2 ) + 8
----

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT 7 IN ( 79 )
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT 70 + - COUNT( * ) * 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
70

skipif mysql # not compatible
query I rowsort label-6163
SELECT 70 + - COUNT ( * ) * 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
70

query I rowsort
SELECT ALL - col0 * 57 + col0 * - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-4738
-7744
-9900

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT ALL + 58 DIV - 26 AS col1 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + 58 / - 26 AS col1 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT col2 * - 37 - col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL ) OR NOT + col1 NOT BETWEEN + ( col2 ) AND 28 + - CAST( 76 AS SIGNED )
----
-2268
-2607
-3603

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT col2 * - 37 - col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL ) OR NOT + col1 NOT BETWEEN + ( col2 ) AND 28 + - CAST ( 76 AS INTEGER )
----
-2268
-2607
-3603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6168
SELECT DISTINCT * FROM tab0 WHERE col0 + + 87 + + 66 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6168
SELECT DISTINCT * FROM tab0 WHERE col0 + + 87 + + 66 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT ALL + 75 DIV col0 * - + 30 AS col1 FROM tab0
----
-150
0
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + 75 / col0 * - + 30 AS col1 FROM tab0
----
-150
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT - 43 DIV - col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 43 / - col1 FROM tab1
----
0
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - MAX( col1 ) * + + 46 FROM tab2
----
-3542

skipif mysql # not compatible
query I rowsort label-6171
SELECT - MAX ( col1 ) * + + 46 FROM tab2
----
-3542

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6173
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL - col0 * + + col2, col1 FROM tab0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT DISTINCT + 74 * + ( col0 ) AS col1 FROM tab2
----
3404
4736
5550

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( 18 / - 77 + - col0 * + col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( 19 ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

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

query I rowsort
SELECT - 75 + - + 98 FROM tab0
----
-173
-173
-173

query I rowsort
SELECT - - ( + col0 ) + 22 AS col2 FROM tab1 AS cor0
----
107
113
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT - col2 * + 95 * + 69 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= - 65 + col0
----

skipif mysql # not compatible
query I rowsort label-6186
SELECT - col2 * + 95 * + 69 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= - 65 + col0
----

query I rowsort
SELECT DISTINCT - 4 / + 74 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ( + COUNT( ALL 49 ) ) FROM tab2 AS cor0 WHERE - col2 > col1 + + - 24 * - + 67 + 15
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT ( + COUNT ( ALL 49 ) ) FROM tab2 AS cor0 WHERE - col2 > col1 + + - 24 * - + 67 + 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT + 22 + ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 3 / CAST( NULL AS SIGNED ) * + 92 ) BETWEEN ( 8 ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6189
SELECT + 22 + ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 3 / CAST ( NULL AS INTEGER ) * + 92 ) BETWEEN ( 8 ) AND col1
----

query I rowsort
SELECT DISTINCT + col0 + - + 78 - 44 * col0 + 14 AS col0 FROM tab0 AS cor0
----
-3805
-4235
-709

query I rowsort
SELECT ALL + col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT DISTINCT + 45 + col1 DIV - 5 FROM tab0 AS cor0
----
29
41
45

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + 45 + col1 / - 5 FROM tab0 AS cor0
----
29
41
45

query I rowsort
SELECT ALL col2 * + - col1 + + 56 * + 90 + + 86 FROM tab0 AS cor0
----
1319
4916
5027

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT - SUM( 17 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT - SUM ( 17 ) FROM tab1
----
-51

query I rowsort
SELECT - col1 * 16 FROM tab1
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - COUNT( DISTINCT + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6196
SELECT - COUNT ( DISTINCT + col1 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 74 - - 20 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT ( - - MAX( + - col2 ) ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6198
SELECT DISTINCT ( - - MAX ( + - col2 ) ) col0 FROM tab0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT DISTINCT - ( - MAX( ALL 77 ) ) AS col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - ( - MAX ( ALL 77 ) ) AS col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE col1 > + col1 + - + 65
----
59
68
96

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6205
SELECT - - SUM ( DISTINCT - 50 ) FROM tab1 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 36 )
----

query I rowsort
SELECT ALL 21 AS col0 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + 50 * + SUM( + + col0 ) AS col0 FROM tab1 AS cor0
----
11350

skipif mysql # not compatible
query I rowsort label-6208
SELECT + 50 * + SUM ( + + col0 ) AS col0 FROM tab1 AS cor0
----
11350

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT col0 DIV col2 col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT col0 / col2 col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT 59 * - - col1 DIV + - col1 FROM tab1 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-6210
SELECT 59 * - - col1 / + - col1 FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT DISTINCT + 22 * + - col0 + 48 + - col1 FROM tab2 WHERE NOT + col1 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT + 22 * + - col0 + 48 + - col1 FROM tab2 WHERE NOT + col1 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * + col1 col2 FROM tab1
----
2115
225
630

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

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

query I rowsort
SELECT ALL 72 * - col1 FROM tab2
----
-3672
-4824
-5544

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

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL + 46 * - COUNT( * ) * + 45 + + MIN( ALL - 77 ) FROM tab0 AS cor0
----
-6287

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL + 46 * - COUNT ( * ) * + 45 + + MIN ( ALL - 77 ) FROM tab0 AS cor0
----
-6287

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 40 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT ALL 34 FROM tab1 AS cor0 WHERE - col2 / 13 * col2 - - - col2 - - col2 * + - col0 NOT IN ( CAST( + col2 AS SIGNED ) )
----
34
34
34

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 34 FROM tab1 AS cor0 WHERE - col2 / 13 * col2 - - - col2 - - col2 * + - col0 NOT IN ( CAST ( + col2 AS INTEGER ) )
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - MIN( - 70 ) FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-6222
SELECT - MIN ( - 70 ) FROM tab0 cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6223
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - - 45 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - - 45 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL - 36 DIV - + col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - 36 / - + col2 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + - col2 + col0 * + + 58 AS col1 FROM tab1 AS cor0
----
2862
4871
5210

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6230
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) - - - 80 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) - - - 80 FROM tab1 AS cor0
----
-80

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

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - COUNT ( * ) - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + 7 - - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + 7 - - COUNT ( * ) FROM tab2
----
10

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

query I rowsort
SELECT DISTINCT + col0 - + col1 + - 74 * + - col0 FROM tab2
----
3399
4723
5558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6236
SELECT DISTINCT + CAST( - CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col1, MAX( ALL + col1 ) AS col0 FROM tab1
----
-3
47

skipif mysql # not compatible
query II rowsort label-6236
SELECT DISTINCT + CAST ( - CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) AS col1, MAX ( ALL + col1 ) AS col0 FROM tab1
----
-3
47

query II rowsort
SELECT + col2 * + - ( - 89 ), + col0 AS col1 FROM tab1 WHERE + col0 NOT BETWEEN + 83 AND - 78
----
5251
85
6052
91
8544
51

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

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

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

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

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

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

query I rowsort
SELECT - 49 * col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - + 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - COUNT( * ) * - + 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-6242
SELECT - COUNT ( * ) * - + 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6243
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + CAST( - - 69 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6243
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + CAST ( - - 69 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
3

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

query I rowsort
SELECT ALL - 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-80

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= - 24
----

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

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 20 + + - col1 FROM tab0 cor0
----
-1
-61
19

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) NOT IN ( + - col2 + - 17 ) )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + - ( + col0 ) ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL < ( NULL ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6257
SELECT + CAST( 51 AS SIGNED ), - 94 AS col2 FROM tab2
----
51
-94
51
-94
51
-94

skipif mysql # not compatible
query II rowsort label-6257
SELECT + CAST ( 51 AS INTEGER ), - 94 AS col2 FROM tab2
----
51
-94
51
-94
51
-94

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

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

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

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + 2 * + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL - 29 + + 56 AS col2 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL - + 2 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 12 * + col0 - + ( col1 ) col2 FROM tab0 AS cor0
----
-1152
-1262
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6264
SELECT ALL col0 / CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL col0 / CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ( - - col1 ) - + + col2 FROM tab2
----
28
37
9

query I rowsort
SELECT + col1 - + col0 + - col2 FROM tab1
----
-112
-133
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT + ( + MAX( ALL - 9 ) ) * - + COUNT( * ) + + 42 * 45 col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
1917

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6267
SELECT + ( + MAX ( ALL - 9 ) ) * - + COUNT ( * ) + + 42 * 45 col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
1917

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6269
SELECT ALL * FROM tab1 WHERE NOT + col1 * - 37 + col2 - - CAST( + ( 96 ) AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6269
SELECT ALL * FROM tab1 WHERE NOT + col1 * - 37 + col2 - - CAST ( + ( 96 ) AS INTEGER ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT + COUNT( * ) * - COUNT( * ), 67 AS col2 FROM tab2 cor0
----
-9
67

skipif mysql # not compatible
query II rowsort label-6270
SELECT + COUNT ( * ) * - COUNT ( * ), 67 AS col2 FROM tab2 cor0
----
-9
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT DISTINCT 73 DIV 42 * col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT 73 / 42 * col1 AS col0 FROM tab1
----
14
47
5

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6274
SELECT - col0, + ( + col0 ) + ( 2 ) DIV - col0 + + + col0 - + col2 + - + 27 col0 FROM tab2
----
-46
42
-64
61
-75
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6274
SELECT - col0, + ( + col0 ) + ( 2 ) / - col0 + + + col0 - + col2 + - + 27 col0 FROM tab2
----
-46
42
-64
61
-75
65

query I rowsort
SELECT DISTINCT ( - 97 ) FROM tab1 cor0
----
-97

query I rowsort
SELECT ALL + 67 AS col0 FROM tab1 cor0
----
67
67
67

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

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

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

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

query I rowsort
SELECT ALL col0 + + 59 AS col1 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT - ( - 76 ) FROM tab2 AS cor0
----
76
76
76

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

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

query I rowsort
SELECT DISTINCT + col0 * + col0 * - + 44 AS col2 FROM tab0
----
-333036
-413996
-9900

onlyif mysql # DIV for integer division: 
query II rowsort label-6283
SELECT DISTINCT col0 col2, - col0 DIV + + col0 AS col1 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6283
SELECT DISTINCT col0 col2, - col0 / + + col0 AS col1 FROM tab2
----
46
-1
64
-1
75
-1

query I rowsort
SELECT ALL col1 * - - 76 * + col0 + - col2 FROM tab1
----
32241
324984
54168

query I rowsort
SELECT col0 * - col2 * - col1 + - ( - col2 ) AS col0 FROM tab1
----
25134
290904
68640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 79 + - col0 col0, 5 FROM tab1
----
-130
5
-164
5
-170
5

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

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

query I rowsort
SELECT DISTINCT 42 + + 19 + + - col2 * - - 94 FROM tab2 AS cor0
----
-2101
-3699
-5391

query I rowsort
SELECT + + col1 + - + 61 AS col0 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT DISTINCT - 41 * + + col2 FROM tab0
----
-1927
-4059
-410

query II rowsort
SELECT - + 32 - + 3, - 67 AS col2 FROM tab0 AS cor0
----
-35
-67
-35
-67
-35
-67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * + col2 + - ( - col1 ) col1 FROM tab2 AS cor0
----
2098
3637
5229

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0 cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * col0 + - col0 col1 FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT - col0 + - 60 col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-147
NULL
-157
NULL
-75
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6297
SELECT ALL + 58 + + 51 DIV + - 34 AS col0, - ( + col1 ) AS col2 FROM tab1 AS cor0
----
57
-14
57
-47
57
-5

skipif mysql # not compatible
query II rowsort label-6297
SELECT ALL + 58 + + 51 / + - 34 AS col0, - ( + col1 ) AS col2 FROM tab1 AS cor0
----
57
-14
57
-47
57
-5

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

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

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

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

query II rowsort
SELECT ALL + 18, 57 AS col2 FROM tab1 AS cor0
----
18
57
18
57
18
57

query II rowsort
SELECT ALL + col0 * + 81 * + 77, + col2 AS col1 FROM tab0 cor0
----
542619
10
604989
99
93555
47

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

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

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 + + + 52 * 20 ) <> col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT + - COUNT( * ) + + - 72 DIV + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6305
SELECT + - COUNT ( * ) + + - 72 / + COUNT ( * ) FROM tab0 AS cor0
----
-27

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

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

query I rowsort
SELECT DISTINCT + 45 + - 31 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ( col1 ) * - - 6 + 56 FROM tab2
----
362
458
518

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL ( MAX( - 74 ) ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL ( MAX ( - 74 ) ) AS col0 FROM tab1
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT MIN( - 38 ) col1 FROM tab0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6311
SELECT MIN ( - 38 ) col1 FROM tab0
----
-38

query I rowsort
SELECT + 93 - - - col1 FROM tab0 AS cor0
----
12
72
92

query I rowsort
SELECT ALL + + 18 + + 39 * col2 AS col0 FROM tab1 AS cor0
----
2319
2670
3762

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL + + 19 - 10 * 78 AS col0, MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
-761
1

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL + + 19 - 10 * 78 AS col0, MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
-761
1

query I rowsort
SELECT 62 + + + 5 AS col0 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT 63 + + 88 AS col1 FROM tab0 AS cor0
----
151
151
151

query I rowsort
SELECT - 64 FROM tab1 WHERE NULL >= col2
----

query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0 WHERE col2 + + - col2 + - 32 = col1 * + col2 - + - 28 + - col0
----

query I rowsort
SELECT - col0 * - 0 * - + col2 AS col2 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - - COUNT( * ) * + 43 * + COUNT( * ) FROM tab2 cor0
----
387

skipif mysql # not compatible
query I rowsort label-6321
SELECT - - COUNT ( * ) * + 43 * + COUNT ( * ) FROM tab2 cor0
----
387

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT - + 86 AS col0, COUNT( * ) * + - 98 FROM tab2 AS cor0
----
-86
-294

skipif mysql # not compatible
query II rowsort label-6322
SELECT - + 86 AS col0, COUNT ( * ) * + - 98 FROM tab2 AS cor0
----
-86
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT - COUNT( * ) * - COUNT( - col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6323
SELECT - COUNT ( * ) * - COUNT ( - col2 ) FROM tab2 AS cor0
----
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 47 ) AS col0, col1 col2 FROM tab0
----
47
1
47
21
47
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT + + COUNT( * ) FROM tab2 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT - col1 <> NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT 37 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6330
SELECT 37 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 col0 FROM tab0 AS cor0
----
1215
1827
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) * + CAST( NULL AS SIGNED ) * - + CAST( 45 AS SIGNED ) AS col2 FROM tab0 WHERE NOT col2 <> 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + CAST ( 45 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 <> 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6334
SELECT + col2 AS col2, col1 * + CAST( NULL AS SIGNED ) * + 95 / - col2 * - col1 col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6334
SELECT + col2 AS col2, col1 * + CAST ( NULL AS INTEGER ) * + 95 / - col2 * - col1 col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

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

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

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

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

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

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT ALL - 88 + - - SUM( ALL + 70 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - 88 + - - SUM ( ALL + 70 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL COUNT( * ) AS col0, + 10 AS col1 FROM tab0, tab1 cor0
----
9
10

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL COUNT ( * ) AS col0, + 10 AS col1 FROM tab0, tab1 cor0
----
9
10

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

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

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

query I rowsort
SELECT DISTINCT col2 * 90 AS col1 FROM tab1
----
5310
6120
8640

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

query I rowsort
SELECT - 67 * - 85 + - col0 FROM tab0
----
5598
5608
5680

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col0 + col2 + - 81 >= col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - - 98 * - col0 FROM tab2
----
-4457
-6195
-7283

query I rowsort
SELECT ALL + ( 15 ) + + + 71 AS col0 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT - col0 * - 99 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
5049
8415
9009

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col2 + col2 + + 4 IN ( - - col1 * 39, 37 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT + col1 DIV + col2 - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6354
SELECT + col1 / + col2 - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT + col0 - - col2 DIV + col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-6355
SELECT + col0 - - col2 / + col2 FROM tab0
----
16
88
98

query II rowsort
SELECT ALL + + 58 AS col2, 61 FROM tab0 AS cor0
----
58
61
58
61
58
61

query I rowsort
SELECT ALL + ( + 78 ) * + col0 * - + col1 AS col1 FROM tab2 AS cor0
----
-182988
-384384
-391950

query I rowsort
SELECT - col1 * - - 17 FROM tab2 AS cor0
----
-1139
-1309
-867

query I rowsort
SELECT ALL - - 20 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT ALL COUNT( * ) AS col0, - 88 * + COUNT( * ) col0 FROM tab0
----
3
-264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - MIN( - + 61 ) * - 19 AS col2 FROM tab2
----
-1159

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - MIN ( - + 61 ) * - 19 AS col2 FROM tab2
----
-1159

onlyif mysql # DIV for integer division: 
query II rowsort label-6362
SELECT 69 AS col1, - col0 DIV 98 FROM tab2
----
69
0
69
0
69
0

skipif mysql # not compatible
query II rowsort label-6362
SELECT 69 AS col1, - col0 / 98 FROM tab2
----
69
0
69
0
69
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - 24 <> - col1 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - 24 <> - col1 - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col2, 60 FROM tab1 cor0
----
59
60
68
60
96
60

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT - 64 < - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - COUNT( * ) + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-6367
SELECT - COUNT ( * ) + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT - 29 + - col1 + + 72 DIV + col1 AS col2 FROM tab1 AS cor0
----
-20
-38
-75

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - 29 + - col1 + + 72 / + col1 AS col2 FROM tab1 AS cor0
----
-20
-38
-75

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

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

query I rowsort
SELECT ALL - 20 + - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-101
-21
-41

query I rowsort
SELECT DISTINCT - 5 + + 63 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ( - + ( COUNT( * ) ) ) * - + ( + 70 ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6372
SELECT ( - + ( COUNT ( * ) ) ) * - + ( + 70 ) FROM tab1 AS cor0
----
210

query I rowsort
SELECT ALL 62 + - col2 FROM tab1
----
-34
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL + MIN( ALL + col0 ) * 25 * - COUNT( * ) AS col1 FROM tab2
----
-3450

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + MIN ( ALL + col0 ) * 25 * - COUNT ( * ) AS col1 FROM tab2
----
-3450

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

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

query I rowsort
SELECT DISTINCT + ( + 36 ) * + col1 AS col2 FROM tab0
----
2916
36
756

query I rowsort
SELECT 37 * - + col0 FROM tab2
----
-1702
-2368
-2775

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 24 col2 FROM tab1
----
1416
1632
2304

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 98 + - col1 + + 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT COUNT( * ) * 68 AS col1 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-6382
SELECT COUNT ( * ) * 68 AS col1 FROM tab0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 - col0 col0 FROM tab0
----
-12
-2
70

query I rowsort
SELECT DISTINCT + - col1 + - 72 FROM tab2 AS cor0
----
-123
-139
-149

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT - col1 DIV + - ( - + 80 ) + 21 + + col1 * - col0 FROM tab0 AS cor0
----
-1195
-1806
-76

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - col1 / + - ( - + 80 ) + 21 + + col1 * - col0 FROM tab0 AS cor0
----
-1195
-1806
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT + COUNT( * ) + + 95 col2 FROM tab0
----
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL + + COUNT( DISTINCT 70 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + + COUNT ( DISTINCT 70 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + + COUNT( * ) * + 16 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6391
SELECT + + COUNT ( * ) * + 16 FROM tab1 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2
-2
-2

query I rowsort
SELECT - col2 * + - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ( - col0 ) * - col1 + ( col0 ) + col1 FROM tab2 AS cor0
----
2443
5069
5167

query I rowsort
SELECT + 16 * + 38 AS col1 FROM tab0 AS cor0
----
608
608
608

query I rowsort
SELECT - col0 * + 89 FROM tab2 cor0
----
-4094
-5696
-6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + ( - col2 ) + + - col0 + + col1 * - 38 col1 FROM tab0 AS cor0 WHERE + 48 * - col1 < NULL
----

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

query I rowsort
SELECT DISTINCT + - 93 AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT MIN( ALL - 19 ) col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6400
SELECT DISTINCT MIN ( ALL - 19 ) col1 FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - COUNT( * ) * - COUNT( ALL + col2 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - 66
----
0

skipif mysql # not compatible
query I rowsort label-6401
SELECT - COUNT ( * ) * - COUNT ( ALL + col2 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - MAX( + 82 ) col2 FROM tab1, tab2 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT - MAX ( + 82 ) col2 FROM tab1, tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT - + ( + ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL COUNT( * ) + - - 61 FROM tab1 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL COUNT ( * ) + - - 61 FROM tab1 cor0
----
64

query I rowsort
SELECT - - col0 + 9 FROM tab0 AS cor0
----
106
24
96

query I rowsort
SELECT - + 91 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ALL + 96 FROM tab2 WHERE - 52 * col2 / col1 - col1 - col1 NOT BETWEEN + col2 AND NULL
----
96
96
96

query I rowsort
SELECT + col2 FROM tab0 WHERE 9 + - col0 + - col2 * 38 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT + COUNT( * ) col0 FROM tab0 WHERE - col0 / - col1 * + - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT + COUNT ( * ) col0 FROM tab0 WHERE - col0 / - col1 * + - col1 IS NULL
----
0

query II rowsort
SELECT + col0 AS col0, + col1 + col2 * + 49 FROM tab0 AS cor0
----
15
2384
87
511
97
4852

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

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + MAX ( ALL + 20 ) + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
26

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

query I rowsort
SELECT ALL + 88 + col0 * - col1 - + col0 + + col0 + - + col2 - col1 * - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-3454
-7960
-8881

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT + 88 * - 12 + + - CAST( NULL AS SIGNED ) + + + 97 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT + 88 * - 12 + + - CAST ( NULL AS INTEGER ) + + + 97 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query III rowsort label-6417
SELECT * FROM tab2 AS cor0 WHERE CAST ( + 24 AS INTEGER ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - - 75 AS col2, + 7 FROM tab1 WHERE NOT NULL IN ( 38 * + - col2, 16 + + 49 / col2 * + col0, - + 33 + 41, 27 )
----

query I rowsort
SELECT col0 + - + 69 AS col1 FROM tab2
----
-23
-5
6

query II rowsort
SELECT ALL - col2 - - - col1, col1 + + + col0 * - col0 * - col0 * + + 5 + - col1 AS col1 FROM tab1
----
-110
663255
-115
3767855
-64
3070625

query III rowsort
SELECT * FROM tab0 WHERE NULL < - col2
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6423
SELECT DISTINCT col2 DIV + col0 AS col2, - col2 AS col0 FROM tab0
----
0
-10
1
-99
3
-47

skipif mysql # not compatible
query II rowsort label-6423
SELECT DISTINCT col2 / + col0 AS col2, - col2 AS col0 FROM tab0
----
0
-10
1
-99
3
-47

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col1 col1, col1 FROM tab1
----
37
14
44
47
80
5

query I rowsort
SELECT col2 + + col0 - col1 * + - col2 FROM tab0
----
295
307
3869

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

query I rowsort
SELECT ALL - col2 - - 9 + 82 * - 74 + 53 + col2 + col1 FROM tab1 AS cor0
----
-5959
-5992
-6001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6431
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

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

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

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

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

query II rowsort
SELECT ALL - 47 AS col2, col0 FROM tab2 AS cor0
----
-47
46
-47
64
-47
75

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

query I rowsort
SELECT col2 * - 55 - + col2 AS col0 FROM tab2 AS cor0
----
-1288
-2240
-3248

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL + MAX( DISTINCT + 18 ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + MAX ( DISTINCT + 18 ) AS col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT 9 AS col0 FROM tab2 WHERE NOT col2 + col2 - 47 - + + col2 + + col2 * - 32 * col2 + + 52 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT ALL + col1 DIV - + 80 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + col1 / - + 80 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + COUNT( * ) * + MAX( + 8 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6443
SELECT + COUNT ( * ) * + MAX ( + 8 ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 52 - - + SUM( ALL 97 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT 52 - - + SUM ( ALL 97 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 6 * + col1 + + + 80 - + 50 AS col1 FROM tab0
----
156
36
516

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6447
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 96, col0, col0 + + + CAST( ( - col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6447
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 96, col0, col0 + + + CAST ( ( - col2 ) AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 27, + col0 FROM tab2
----
27
46
27
64
27
75

query I rowsort
SELECT 35 + - + col0 FROM tab0
----
-52
-62
20

query I rowsort
SELECT ALL col2 + - 66 + - 40 AS col1 FROM tab2
----
-48
-66
-83

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

query I rowsort
SELECT ALL + 60 + - + 33 * - 14 FROM tab0 AS cor0
----
522
522
522

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE - 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE - 71 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 8 FROM tab2 AS cor0 WHERE 22 * - + 4 - col2 IS NOT NULL
----
-8
-8
-8

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

query I rowsort
SELECT ALL - col2 + 16 + - 49 FROM tab1 AS cor0
----
-101
-129
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT SUM( + + 41 ) FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-6458
SELECT SUM ( + + 41 ) FROM tab1 cor0
----
123

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

skipif mysql # not compatible
query I rowsort label-6459
SELECT ( + SUM ( + col0 ) ) FROM tab2 cor0
----
185

query I rowsort
SELECT + 50 * - ( 45 ) FROM tab1
----
-2250
-2250
-2250

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

query I rowsort
SELECT - 69 * - col2 AS col1 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT - col0 * 44 AS col1 FROM tab2
----
-2024
-2816
-3300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 * ( - 35 ) - + - 80, + col0 col2 FROM tab1
----
-2020
51
-2020
85
-2020
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 43 + - col2 = NULL
----

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

query I rowsort
SELECT ALL col0 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT DISTINCT + 97 * - 42 FROM tab2 AS cor0
----
-4074

onlyif mysql # DIV for integer division: 
query II rowsort label-6470
SELECT ALL - - col2 DIV 14 + + 53 AS col2, ( + + col1 ) DIV + 56 AS col0 FROM tab0 AS cor0
----
53
0
56
1
60
0

skipif mysql # not compatible
query II rowsort label-6470
SELECT ALL - - col2 / 14 + + 53 AS col2, ( + + col1 ) / + 56 AS col0 FROM tab0 AS cor0
----
53
0
56
1
60
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT + col0 DIV - col2 + col1 * - 71 FROM tab1 cor0
----
-3338
-356
-994

skipif mysql # not compatible
query I rowsort label-6471
SELECT + col0 / - col2 + col1 * - 71 FROM tab1 cor0
----
-3338
-356
-994

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6472
SELECT DISTINCT 98 * CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 98 * CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT MAX( - ( - 24 ) ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6476
SELECT MAX ( - ( - 24 ) ) FROM tab2
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6477
SELECT + ( 86 ) / + col0 + + col1 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT + ( 86 ) / + col0 + + col1 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE + col2 <= ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE + col2 <= ( + col2 )
----
3

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

query I rowsort
SELECT + col0 + ( col2 ) * 86 * - col1 AS col2 FROM tab1 AS cor0
----
-115533
-25285
-274765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + 76 col0 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 / - ( + + col0 ) + - 48 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6482
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 / - ( + + col0 ) + - 48 col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + + 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
94

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

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

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

query I rowsort
SELECT + 93 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL - MAX( ALL - 84 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - MAX ( ALL - 84 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT 45 - 64 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - COUNT( * ) + + 11 * SUM( + + col0 ) AS col0 FROM tab0 cor0
----
2186

skipif mysql # not compatible
query I rowsort label-6491
SELECT - COUNT ( * ) + + 11 * SUM ( + + col0 ) AS col0 FROM tab0 cor0
----
2186

query I rowsort
SELECT + - 14 + - 60 + - ( - col1 ) FROM tab1 AS cor0
----
-27
-60
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT ALL + + COUNT( * ) + - - 55 AS col0, - 83 + 62 AS col2 FROM tab0 AS cor0
----
58
-21

skipif mysql # not compatible
query II rowsort label-6493
SELECT ALL + + COUNT ( * ) + - - 55 AS col0, - 83 + 62 AS col2 FROM tab0 AS cor0
----
58
-21

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

query I rowsort
SELECT DISTINCT + 25 + + 20 AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - 10 + col0 + ( + 51 ) FROM tab2 AS cor0
----
105
116
87

query I rowsort
SELECT DISTINCT col2 - - 49 AS col2 FROM tab0
----
148
59
96

query I rowsort
SELECT DISTINCT + col0 - - + 17 FROM tab0
----
104
114
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT + col0 * col2 * col0 DIV - + 55 AS col1 FROM tab2
----
-2978
-5931
-884

skipif mysql # not compatible
query I rowsort label-6499
SELECT + col0 * col2 * col0 / - + 55 AS col1 FROM tab2
----
-2978
-5931
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + MIN( DISTINCT - 61 ) AS col0 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-6500
SELECT + MIN ( DISTINCT - 61 ) AS col0 FROM tab0
----
-61

query I rowsort
SELECT - col1 * - 89 FROM tab0
----
1869
7209
89

query I rowsort
SELECT DISTINCT + - 24 AS col1 FROM tab0 WHERE NOT - 14 <> + - col2
----

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

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

query I rowsort
SELECT DISTINCT + - 90 * 1 FROM tab1 cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT DISTINCT MIN( ALL - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 94 * col0 FROM tab0
----
1410
8178
9118

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 64 - + col0 + + - col1 * - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL + SUM( DISTINCT - col1 ) * - 96 AS col0 FROM tab2
----
18720

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + SUM ( DISTINCT - col1 ) * - 96 AS col0 FROM tab2
----
18720

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL - SUM( + 90 ) * COUNT( * ) + + 86 col0 FROM tab1 AS cor0
----
-724

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6509
SELECT ALL - SUM ( + 90 ) * COUNT ( * ) + + 86 col0 FROM tab1 AS cor0
----
-724

query I rowsort
SELECT - 25 * + + col2 FROM tab1 AS cor0
----
-1475
-1700
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT - col1 * 48 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6511
SELECT - col1 * 48 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6512
SELECT - - COUNT ( * ) + + COUNT ( * ) / 27 AS col0 FROM tab1 AS cor0
----
3

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL CAST ( - - 32 AS INTEGER ) FROM tab0
----
32
32
32

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

query I rowsort
SELECT ALL + 25 * + col1 + - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1107
254
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL + MAX( ALL + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + MAX ( ALL + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL + 21 + - - col0 + - col2 AS col1 FROM tab2
----
38
44
45

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

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE + 50 BETWEEN 65 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * - col2 + + col1 col0 FROM tab0 AS cor0
----
-609
-762
-9505

query I rowsort
SELECT 48 + - + col0 + - 24 AS col0 FROM tab0 AS cor0
----
-63
-73
9

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

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - ( 82 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE 60 IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT 94 * - col1 * - col2 + + col1 - + col0 + + 2 - - + CAST( col1 AS SIGNED ) * + + col2 + + 71 * - + col0 AS col2 FROM tab0
----
13709
2424
360668

skipif mysql # not compatible
query I rowsort label-6529
SELECT 94 * - col1 * - col2 + + col1 - + col0 + + 2 - - + CAST ( col1 AS INTEGER ) * + + col2 + + 71 * - + col0 AS col2 FROM tab0
----
13709
2424
360668

query III rowsort
SELECT * FROM tab0 WHERE - 19 = + 13 - - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN + - 83 - + 13 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + 36 IS NULL
----

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

query I rowsort
SELECT col0 * - 47 + + - col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-2213
-3085
-3592

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

skipif mysql # not compatible
query I rowsort label-6535
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - 98 col0 FROM tab1 AS cor0
----
-103
-112
-145

onlyif mysql # DIV for integer division: 
query II rowsort label-6537
SELECT DISTINCT - col0 DIV - + col1 + - col0, + col0 FROM tab0 AS cor0
----
-15
15
-83
87
0
97

skipif mysql # not compatible
query II rowsort label-6537
SELECT DISTINCT - col0 / - + col1 + - col0, + col0 FROM tab0 AS cor0
----
-15
15
-83
87
0
97

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT + col0 DIV col0 + - 3 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6539
SELECT + col0 / col0 + - 3 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2
-2
-2

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

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

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

query I rowsort
SELECT DISTINCT - 94 * 42 FROM tab2
----
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6544
SELECT * FROM tab0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6544
SELECT * FROM tab0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - - SUM( DISTINCT col1 ) col2 FROM tab1 AS cor0 WHERE NOT col0 - + col2 IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT - - SUM ( DISTINCT col1 ) col2 FROM tab1 AS cor0 WHERE NOT col0 - + col2 IS NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT + 68 * ( CAST( + + 61 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
4148
4148
4148

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 68 * ( CAST ( + + 61 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
4148
4148
4148

query II rowsort
SELECT - col2 * - col2 AS col1, 16 AS col0 FROM tab0 AS cor0
----
100
16
2209
16
9801
16

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

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT COUNT ( * ) + + 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query III rowsort
SELECT * FROM tab2 WHERE NOT + 14 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 NOT BETWEEN + + 34 AND 46
----

query I rowsort
SELECT ( - 18 ) AS col1 FROM tab0
----
-18
-18
-18

query II rowsort
SELECT ALL + + 7, col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
7
1
7
21
7
81

query I rowsort
SELECT ALL + 72 * 78 AS col0 FROM tab2 AS cor0
----
5616
5616
5616

query I rowsort
SELECT - - col0 * + 5 AS col0 FROM tab1 AS cor0
----
255
425
455

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * col2 + + 93 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT col2 DIV - - 26 + + 46 FROM tab1 AS cor0
----
48
49

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT col2 / - - 26 + + 46 FROM tab1 AS cor0
----
48
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - - MIN( - + 60 ) AS col1 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6557
SELECT - - MIN ( - + 60 ) AS col1 FROM tab0 cor0
----
-60

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT + ( + SUM( DISTINCT col1 ) ) AS col1, 80 FROM tab1 AS cor0
----
66
80

skipif mysql # not compatible
query II rowsort label-6559
SELECT + ( + SUM ( DISTINCT col1 ) ) AS col1, 80 FROM tab1 AS cor0
----
66
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL AVG ( DISTINCT col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL AVG ( DISTINCT col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 + + 64 AS col0 FROM tab1
----
111
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT COUNT( * ) + COUNT( 78 ) col2 FROM tab2
----
6

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

query II rowsort
SELECT ALL + col1 * + + col2 * + ( - + 44 ) AS col2, + 69 AS col1 FROM tab1
----
-12980
69
-140624
69
-59136
69

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT DISTINCT - col2 - 46 DIV - - 6 FROM tab0 AS cor0
----
-106
-17
-54

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - col2 - 46 / - - 6 FROM tab0 AS cor0
----
-106
-17
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT ALL - col0 DIV - col1 AS col2 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - col0 / - col1 AS col2 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT - SUM( ALL col1 ) DIV + ( 85 ) - - 23 + - + 84 + + COUNT( * ) + + + 96 * + 47 * + CAST( AVG ( - CAST( - 59 AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
266150

skipif mysql # not compatible
query I rowsort label-6569
SELECT - SUM ( ALL col1 ) / + ( 85 ) - - 23 + - + 84 + + COUNT ( * ) + + + 96 * + 47 * + CAST ( AVG ( - CAST ( - 59 AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
266150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT + 8 DIV - 71 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6570
SELECT + 8 / - 71 * + COUNT ( * ) FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT DISTINCT col0, col1 * + 26 AS col0 FROM tab1
----
51
364
85
130
91
1222

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

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

query I rowsort
SELECT DISTINCT 7 * - + 30 FROM tab1
----
-210

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

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

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

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

query I rowsort
SELECT col2 * - col2 * + col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT ALL ( col0 ) * + 15 FROM tab2 WHERE NOT CAST( - ( col0 ) AS SIGNED ) * col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL ( col0 ) * + 15 FROM tab2 WHERE NOT CAST ( - ( col0 ) AS INTEGER ) * col1 = NULL
----

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

query I rowsort
SELECT ALL + col2 + - 19 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( 67 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT COUNT( ALL + 34 ) AS col0 FROM tab1 WHERE NOT + col1 / - col1 < + col0
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT COUNT ( ALL + 34 ) AS col0 FROM tab1 WHERE NOT + col1 / - col1 < + col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL - col0 * 4 AS col0 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT col2 * 89 + - 19 FROM tab1
----
5232
6033
8525

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT + 39 * + ( + CAST( + SUM( - col2 ) AS SIGNED ) ) FROM tab2
----
-4719

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 39 * + ( + CAST ( + SUM ( - col2 ) AS INTEGER ) ) FROM tab2
----
-4719

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 34 ) / col2 NOT BETWEEN col2 AND + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT COUNT( * ) * 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-6594
SELECT COUNT ( * ) * 92 FROM tab0
----
276

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

query I rowsort
SELECT - col0 * - 9 AS col2 FROM tab2
----
414
576
675

query III rowsort
SELECT ALL * FROM tab0 WHERE - 47 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6598
SELECT * FROM tab2 WHERE NOT col1 - + CAST( CAST( NULL AS DECIMAL ) + + 18 * - col1 AS SIGNED ) / + 22 IN ( + 52 )
----

skipif mysql # not compatible
query III rowsort label-6598
SELECT * FROM tab2 WHERE NOT col1 - + CAST ( CAST ( NULL AS REAL ) + + 18 * - col1 AS INTEGER ) / + 22 IN ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL ( - ( COUNT( * ) ) ) * + 47 AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL ( - ( COUNT ( * ) ) ) * + 47 AS col2 FROM tab0
----
-141

query I rowsort
SELECT col2 + - col2 * + col0 AS col1 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT ALL + col1 + ( col1 ) AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT col1 * 35 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT + ( col2 ) FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT + col2 + 18 AS col1 FROM tab1
----
114
77
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - ( 9 )
----

query I rowsort
SELECT + col0 + 85 AS col0 FROM tab2
----
131
149
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL 51 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 + + 36 AS col2 FROM tab0
----
-45
15
35

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

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

query I rowsort
SELECT DISTINCT col2 + 45 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 - ( + 25 + - 72 )
----

query I rowsort
SELECT + 80 * + col2 - - 67 * 80 AS col0 FROM tab1 cor0
----
10080
10800
13040

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

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

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

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

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

query I rowsort
SELECT - 97 + 63 FROM tab1 AS cor0
----
-34
-34
-34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL COUNT( * ) * + 15 AS col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL COUNT ( * ) * + 15 AS col1 FROM tab1 AS cor0
----
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT DISTINCT + col2 DIV - 15 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT + col2 / - 15 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - + col1 * 80 AS col0 FROM tab0 AS cor0
----
-1680
-6480
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6623
SELECT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6623
SELECT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 19 FROM tab2 WHERE NOT - ( 98 ) IN ( col1 / ( + col1 ) )
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + ( col2 ) ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT + 25 DIV col2 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + 25 / col2 AS col1 FROM tab0
----
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT ALL col0 DIV col2 * + ( + 31 ) AS col1 FROM tab2
----
31
31
62

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL col0 / col2 * + ( + 31 ) AS col1 FROM tab2
----
31
31
62

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

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - MAX ( ALL + 59 ) FROM tab2
----
-59

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

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL MAX ( ALL - 77 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 13 / + col2 NOT IN ( col1 * 12 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT - COUNT( + col2 ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - COUNT ( + col2 ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT + COUNT( * ) + - 41 FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + COUNT ( * ) + - 41 FROM tab1 cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 + + 9 col2 FROM tab1 AS cor0
----
12
12
12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + + col0 col0 FROM tab0 AS cor0
----
155
165
83

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

query I rowsort
SELECT ALL + col1 + + col1 + - ( + ( - col2 ) ) FROM tab0 AS cor0
----
101
209
52

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

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

query I rowsort
SELECT ALL col0 + - 49 AS col1 FROM tab0 AS cor0
----
-34
38
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - 82 + - COUNT( * ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6642
SELECT - 82 + - COUNT ( * ) FROM tab0 AS cor0
----
-85

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

query I rowsort
SELECT - 53 + - col2 AS col2 FROM tab0 AS cor0
----
-100
-152
-63

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

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

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

query I rowsort
SELECT 37 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) - col1 + - ( - 57 ) AS col0 FROM tab0
----
-43
-71
26

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

query I rowsort
SELECT DISTINCT 86 + - 89 FROM tab1 AS cor0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / + col1 * + + 88 + ( - col1 - + CAST( 17 AS SIGNED ) * + col2 ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col1 * + + 88 + ( - col1 - + CAST ( 17 AS INTEGER ) * + col2 ) * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT - 77 * - - ( - COUNT( * ) ) + + 36 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - 77 * - - ( - COUNT ( * ) ) + + 36 FROM tab1 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT CAST( NULL AS SIGNED ) * - 1 AS col1 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 / + 54 - + col2 + 3 * - ( col0 ) ) IN ( - 96 * - 97 )
----

query I rowsort
SELECT 34 + + 48 + + + ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
129
87
96

query I rowsort
SELECT 97 * - col1 + ( - - ( + 59 ) ) AS col0 FROM tab0 AS cor0
----
-1978
-38
-7798

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 9 / 75
----

query I rowsort
SELECT DISTINCT - col0 * - - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + - col2 * + ( 79 ) + - + col1 FROM tab2 AS cor0
----
-1868
-3237
-4649

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT DISTINCT - 81 DIV + col1 AS col0 FROM tab1 cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - 81 / + col1 AS col0 FROM tab1 cor0
----
-1
-16
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT - + COUNT( * ) + 10 FROM tab2 cor0 WHERE NOT 88 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-6663
SELECT - + COUNT ( * ) + 10 FROM tab2 cor0 WHERE NOT 88 IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - 66 * + COUNT( * ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-6664
SELECT - 66 * + COUNT ( * ) FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6665
SELECT DISTINCT * FROM tab1 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6665
SELECT DISTINCT * FROM tab1 WHERE NULL < - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT col0 DIV + + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6667
SELECT col0 / + + col0 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 57 <> ( - ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * + col2 * - - col1 col0 FROM tab0
----
-121824
-3168
-6720

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT DISTINCT - 99 * col0 DIV + 15 FROM tab2
----
-303
-422
-495

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - 99 * col0 / + 15 FROM tab2
----
-303
-422
-495

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

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

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6675
SELECT ALL + COUNT( * ) / 41 * + COUNT( 2 ) + SUM( + 16 ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + COUNT ( * ) / 41 * + COUNT ( 2 ) + SUM ( + 16 ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 57 + - + ( + 14 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

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

query I rowsort
SELECT - 53 + + col1 * ( + - col0 ) AS col2 FROM tab2
----
-2399
-4981
-5078

query I rowsort
SELECT DISTINCT 63 FROM tab1 WHERE NOT ( col0 + + col1 + 99 ) IS NULL
----
63

query I rowsort
SELECT 20 * + col2 + 89 AS col2 FROM tab2 AS cor0
----
1249
549
889

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT - 54 DIV + - col1 + - + col1 + - col2 FROM tab2 AS cor0
----
-117
-125
-73

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - 54 / + - col1 + - + col1 + - col2 FROM tab2 AS cor0
----
-117
-125
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT DISTINCT 37 + COUNT( * ) AS col0 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT 37 + COUNT ( * ) AS col0 FROM tab1 cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT ( - 78 ) * + 1 * + 94 + + 94 + - 55 DIV + + 68 FROM tab1 cor0
----
-7238

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT ( - 78 ) * + 1 * + 94 + + 94 + - 55 / + + 68 FROM tab1 cor0
----
-7238

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + 87 IN ( - col2 ) )
----

query II rowsort
SELECT DISTINCT + + 98 - - + 5 AS col0, col1 FROM tab2 AS cor0
----
103
51
103
67
103
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT - 3 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT - 3 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT + ( - 7 ) * - 87 AS col0, - MIN( col0 ) - - MIN( - col1 + 88 * + 26 ) FROM tab0 AS cor0 WHERE 52 IS NOT NULL
----
609
2192

skipif mysql # not compatible
query II rowsort label-6689
SELECT + ( - 7 ) * - 87 AS col0, - MIN ( col0 ) - - MIN ( - col1 + 88 * + 26 ) FROM tab0 AS cor0 WHERE 52 IS NOT NULL
----
609
2192

query I rowsort
SELECT DISTINCT - col0 * - - col2 + + + ( ( col1 ) ) AS col1 FROM tab2
----
-1007
-2483
-4283

query II rowsort
SELECT ALL + col1 AS col1, + 4 * - + 97 AS col1 FROM tab1
----
14
-388
47
-388
5
-388

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 35 NOT BETWEEN + col2 AND - 92 / 69 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + ( - - 12 ) - 83 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - 5 - - 63 * - 64 AS col1 FROM tab0
----
-4037

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

query I rowsort
SELECT col2 - - 16 + - col0 * - col0 AS col0 FROM tab1 WHERE NULL < + - 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT - col0 DIV + 56 AS col2 FROM tab1 AS cor0 WHERE + col0 * + + col0 + + - col1 >= + - 39 + - col1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT - col0 / + 56 AS col2 FROM tab1 AS cor0 WHERE + col0 * + + col0 + + - col1 >= + - 39 + - col1
----
-1
-1
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + 88 + - COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6700
SELECT + 88 + - COUNT ( * ) FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT DISTINCT - MIN( ALL + + 20 ), COUNT( * ) AS col0 FROM tab2
----
-20
3

skipif mysql # not compatible
query II rowsort label-6701
SELECT DISTINCT - MIN ( ALL + + 20 ), COUNT ( * ) AS col0 FROM tab2
----
-20
3

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

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

query I rowsort
SELECT ALL + 72 * + + 90 AS col1 FROM tab2 AS cor0
----
6480
6480
6480

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT + col2 * + col0 + col1 DIV col1 FROM tab1 cor0
----
4897
5016
6189

skipif mysql # not compatible
query I rowsort label-6706
SELECT + col2 * + col0 + col1 / col1 FROM tab1 cor0
----
4897
5016
6189

query I rowsort
SELECT ALL 38 * 70 FROM tab0 AS cor0
----
2660
2660
2660

query I rowsort
SELECT - 13 * 53 AS col2 FROM tab2 AS cor0
----
-689
-689
-689

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT - - col0 DIV col0 * + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6709
SELECT - - col0 / col0 * + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-6710
SELECT + 21 * + - ( + CAST ( NULL AS INTEGER ) ) * - 19 * + - col1 + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab1 AS cor0
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL - 16 * - - SUM( 59 ) FROM tab2
----
-2832

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - 16 * - - SUM ( 59 ) FROM tab2
----
-2832

query I rowsort
SELECT ALL 81 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT col0 AS col2, ( ( + - col2 ) ) + - col1 - col1 AS col2 FROM tab2
----
46
-125
64
-194
75
-192

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( 96 )
----

query II rowsort
SELECT ALL 64 AS col1, + col0 FROM tab1
----
64
51
64
85
64
91

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col1 + + col1 / 80 ) IS NULL OR ( NULL ) BETWEEN + col2 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT COUNT( - ( - + 76 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT COUNT ( - ( - + 76 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT DISTINCT - - ( + COUNT( * ) ), - 36 * + - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
972

skipif mysql # not compatible
query II rowsort label-6724
SELECT DISTINCT - - ( + COUNT ( * ) ), - 36 * + - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
972

query I rowsort
SELECT 32 - - col0 FROM tab2 AS cor0
----
107
78
96

query I rowsort
SELECT - + col2 - - - 31 - - col1 * + 11 FROM tab1 AS cor0
----
-35
27
418

query I rowsort
SELECT DISTINCT - col0 + + 24 FROM tab0 AS cor0
----
-63
-73
9

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

query I rowsort
SELECT + 33 - + col0 * - col1 * + + col2 + 44 FROM tab0 AS cor0
----
18347
57182
9680

query I rowsort
SELECT DISTINCT - col1 + - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL + - col0 - - + 79 + - col2 FROM tab1 AS cor0
----
-65
-68
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6732
SELECT DISTINCT + MAX( + - CAST( + + 15 AS SIGNED ) ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6732
SELECT DISTINCT + MAX ( + - CAST ( + + 15 AS INTEGER ) ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT ALL - - col0 DIV - col1 + - 15 - col2 AS col2 FROM tab0 AS cor0
----
-211
-29
-62

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - - col0 / - col1 + - 15 - col2 AS col2 FROM tab0 AS cor0
----
-211
-29
-62

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab1 WHERE NOT - 21 NOT BETWEEN - col2 AND - 22
----

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

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

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

query I rowsort
SELECT DISTINCT 38 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - + MAX( ALL - col0 ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT - + MAX ( ALL - col0 ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + + + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT 7 * - col2 IN ( - - col0, col2, col2 * - 52, 25 )
----
-59
-68
-96

query I rowsort
SELECT + 54 * + col0 + + + col2 AS col1 FROM tab0 AS cor0
----
4708
5337
857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6742
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 * - 1 * col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT 65 AS col2, 60 FROM tab1
----
65
60
65
60
65
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6745
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - + col2 <> + col1 * col0
----

skipif mysql # not compatible
query III rowsort label-6745
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - + col2 <> + col1 * col0
----

query II rowsort
SELECT - + col0, - 62 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-46
72726
-64
190960
-75
240932

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

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

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

query II rowsort
SELECT DISTINCT + - col0, col1 - + - col0 AS col1 FROM tab0 AS cor0
----
-15
96
-87
108
-97
98

query II rowsort
SELECT DISTINCT - 90 AS col0, col0 + col2 AS col0 FROM tab2 AS cor0
----
-90
104
-90
133
-90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ( 45 ) * - - 46 * - COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
-6210

skipif mysql # not compatible
query I rowsort label-6751
SELECT ( 45 ) * - - 46 * - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
-6210

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN ( + - col2 + - col0 + + - col1 * col2 ) AND + 51 * + + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL ( - MAX( + - 74 ) ) * + - MAX( ALL + 88 ) FROM tab1
----
-6512

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL ( - MAX ( + - 74 ) ) * + - MAX ( ALL + 88 ) FROM tab1
----
-6512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT + col2 AS col0 FROM tab2 WHERE NOT - 90 * - 99 * + col2 + + CAST( + 49 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6754
SELECT + col2 AS col0 FROM tab2 WHERE NOT - 90 * - 99 * + col2 + + CAST ( + 49 AS INTEGER ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL + 81 + + ( MIN( ALL + + ( - col0 ) ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL + 81 + + ( MIN ( ALL + + ( - col0 ) ) ) FROM tab2
----
6

query I rowsort
SELECT 3 * - col1 FROM tab2
----
-153
-201
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT CAST( - + ( CAST( - SUM( 95 ) AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-6757
SELECT CAST ( - + ( CAST ( - SUM ( 95 ) AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
285

query I rowsort
SELECT ALL 19 * + 40 AS col1 FROM tab2
----
760
760
760

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

query I rowsort
SELECT ALL - 71 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-152
-72
-92

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

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

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

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

query I rowsort
SELECT + 73 + - 99 - col0 AS col2 FROM tab1
----
-111
-117
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT - MAX( DISTINCT + ( col1 ) ) + + 39 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - MAX ( DISTINCT + ( col1 ) ) + + 39 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6766
SELECT - ( CAST( NULL AS DECIMAL ) ) * + ( CAST( col0 AS SIGNED ) ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6766
SELECT - ( CAST ( NULL AS REAL ) ) * + ( CAST ( col0 AS INTEGER ) ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT + - ( + + MAX( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE - 2 * - - 11 > - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + - ( + + MAX ( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE - 2 * - - 11 > - - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, col1 + + + 90 col1 FROM tab2 AS cor0
----
46
141
64
167
75
157

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

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

query I rowsort
SELECT 96 - 35 AS col1 FROM tab1
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col2 col0 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - ( + col2 ) * - col2 * + col2 * + col1 + - 77 + - 59 FROM tab0 WHERE NOT col0 * - col0 <= NULL
----

query I rowsort
SELECT ALL + col1 * + - 21 FROM tab2
----
-1071
-1407
-1617

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col2, + ( + col0 ) + + 58 AS col1 FROM tab2 AS cor0
----
-23
104
-40
122
-58
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT - 33 DIV - - 31 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6781
SELECT - 33 / - - 31 AS col1 FROM tab0 cor0
----
-1
-1
-1

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col2 <> ( - - ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE 82 + + col0 + + + 0 + - col0 * + 57 * + - 22 * 10 IN ( - 0, - col1 + + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE 82 + + col0 + + + 0 + - col0 * + 57 * + - 22 * 10 IN ( - 0, - col1 + + 73 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT + SUM( DISTINCT - - col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( col1 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-6785
SELECT + SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( col1 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
156

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2 AS col2, 67 + - 1 col0 FROM tab2 AS cor0
----
-1058
66
-2560
66
-4350
66

query I rowsort
SELECT col0 * - 36 + - + col1 FROM tab2 AS cor0
----
-1707
-2381
-2767

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT 96 DIV 87 * col2 col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT 96 / 87 * col2 col1 FROM tab1 cor0
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL COUNT( * ) * + 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL COUNT ( * ) * + 16 FROM tab0
----
48

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

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

query I rowsort
SELECT col0 + 49 AS col1 FROM tab1
----
100
134
140

query I rowsort
SELECT ALL col0 + - col1 + + col1 + 45 - - col0 * + col1 FROM tab2 AS cor0
----
2437
5037
5145

query I rowsort
SELECT ALL - 64 + + + col0 AS col0 FROM tab1 AS cor0
----
-13
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT - 14 + 91 + + COUNT( * ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - 14 + 91 + + COUNT ( * ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT DISTINCT - 35 - 62 AS col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - + col1 BETWEEN NULL AND + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6799
SELECT - col2 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-6799
SELECT - col2 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT 40 + + 29 + 12 - + 25 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT + col0 + - 10 - col1 AS col1 FROM tab1 cor0
----
27
34
70

query I rowsort
SELECT ALL col2 * + 13 FROM tab0 AS cor0
----
1287
130
611

query I rowsort
SELECT ALL - - 60 AS col1 FROM tab2 cor0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + + ( + col2 ) + - 34 <> + col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 70 AS col0, col2 + + col2 AS col2 FROM tab1
----
-70
118
-70
136
-70
192

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - 33 * col0 AS col2, 66 * + col1 col0 FROM tab1 cor0
----
-161568
924
-165495
330
-204204
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT + 37 + + - COUNT( DISTINCT + 6 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-6811
SELECT + 37 + + - COUNT ( DISTINCT + 6 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
36

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + 40 + col1 - - - 9 * col1 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1972
34465
933

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT + col2 DIV + col2 + - col1 * - 64 FROM tab2 AS cor0
----
3265
4289
4929

skipif mysql # not compatible
query I rowsort label-6818
SELECT + col2 / + col2 + - col1 * - 64 FROM tab2 AS cor0
----
3265
4289
4929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 62 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 98 AS col0 FROM tab1
----
5782
6664
9408

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

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

query I rowsort
SELECT col0 * - + 19 AS col0 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT COUNT( * ) * COUNT( * ) * 97 FROM tab2
----
873

skipif mysql # not compatible
query I rowsort label-6823
SELECT COUNT ( * ) * COUNT ( * ) * 97 FROM tab2
----
873

query I rowsort
SELECT + 97 + + col2 AS col2 FROM tab1 AS cor0
----
156
165
193

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

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

query I rowsort
SELECT DISTINCT col2 * + + 88 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL + + col2 * + col0 - ( + col0 ) + col1 - - + col0 DIV + 86 FROM tab0 AS cor0
----
771
805
9508

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + + col2 * + col0 - ( + col0 ) + col1 - - + col0 / + 86 FROM tab0 AS cor0
----
771
805
9508

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

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

query II rowsort
SELECT ALL + col2 * + - 66 - col0, + 21 AS col0 FROM tab2 AS cor0
----
-1564
21
-2704
21
-3903
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT + MIN( + 75 ) * - + 65 col2 FROM tab0
----
-4875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6832
SELECT DISTINCT + MIN ( + 75 ) * - + 65 col2 FROM tab0
----
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL 32 * 65 * - COUNT( * ) col1 FROM tab0
----
-6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6833
SELECT ALL 32 * 65 * - COUNT ( * ) col1 FROM tab0
----
-6240

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

query II rowsort
SELECT DISTINCT + - 38 * - - 22 AS col0, 20 FROM tab1 AS cor0
----
-836
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT - col0 DIV 34 AS col2 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT - col0 / 34 AS col2 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT - 74 DIV + - 7 AS col1 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6837
SELECT - 74 / + - 7 AS col1 FROM tab0 AS cor0
----
10
10
10

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

query I rowsort
SELECT DISTINCT col1 * - 38 + col1 AS col2 FROM tab0 AS cor0
----
-2997
-37
-777

query I rowsort
SELECT ALL + + ( col2 ) + 32 FROM tab2 AS cor0
----
55
72
90

query I rowsort
SELECT + + col0 * - + col0 AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT col0 + + 59 FROM tab1 AS cor0
----
110
144
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - 75 + - + col1 IS NULL
----

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

query II rowsort
SELECT ALL - col0 AS col0, col0 AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0 WHERE - col2 - + + col2 - - col1 * - - col1 < 81 * - - col1
----
35
35
35

query III rowsort
SELECT * FROM tab2 WHERE - - 12 > NULL
----

query I rowsort
SELECT + 11 + + col1 AS col1 FROM tab2
----
62
78
88

query I rowsort
SELECT + 29 + 92 AS col2 FROM tab2
----
121
121
121

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

query I rowsort
SELECT - 77 + + 65 * - - col2 * + 46 AS col2 FROM tab0
----
140453
295933
29823

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6852
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 + col2, + col2 + + col0 + - col2 + col1 / + col1 * + + 77, + col1, - 10 * - col1, - col0 + - CAST( 67 AS SIGNED ), + + 43 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-6852
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 + col2, + col2 + + col0 + - col2 + col1 / + col1 * + + 77, + col1, - 10 * - col1, - col0 + - CAST ( 67 AS INTEGER ), + + 43 * - + col0 )
----

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

query I rowsort
SELECT ALL - 93 + - 6 + + 40 FROM tab1
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + - 94 - - col0 * - col0 col1 FROM tab1 cor0
----
-2770
-7394
-8450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT DISTINCT CAST( - 29 AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6856
SELECT DISTINCT CAST ( - 29 AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT 13 * - MAX( DISTINCT + 21 ) FROM tab2, tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT 13 * - MAX ( DISTINCT + 21 ) FROM tab2, tab0 AS cor0
----
-273

query I rowsort
SELECT + ( + 72 ) * col0 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT ALL + 12 / - + 41 FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT col0 * - - col1 * - - col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT SUM( - - 88 ) * + - 40 FROM tab1 AS cor0
----
-10560

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT SUM ( - - 88 ) * + - 40 FROM tab1 AS cor0
----
-10560

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

query I rowsort
SELECT DISTINCT + - 97 AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT ALL CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6867
SELECT DISTINCT - 57 * 30 DIV + col2 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-29
NULL
-42
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT - 57 * 30 / + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-29
NULL
-42
NULL
-74
NULL

query II rowsort
SELECT col0, - col1 + - col0 FROM tab1
----
51
-65
85
-90
91
-138

query II rowsort
SELECT ALL 11, ( + + col2 ) * + col1 AS col2 FROM tab1
----
11
1344
11
295
11
3196

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( ( 73 ) ) * - - col2 col0 FROM tab2 AS cor0
----
116800
245572
38617

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

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

skipif mysql # not compatible
query I rowsort label-6876
SELECT CAST ( NULL AS INTEGER ) + + - 47 * + + COUNT ( DISTINCT - - col0 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL - CAST( + + 23 AS SIGNED ) + - + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-24
-464
-6584

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - CAST ( + + 23 AS INTEGER ) + - + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-24
-464
-6584

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL - 52 + + - SUM( - col0 ) FROM tab1 cor0
----
175

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - 52 + + - SUM ( - col0 ) FROM tab1 cor0
----
175

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + col1 * - + 80
----

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

query I rowsort
SELECT ALL + 37 + 49 AS col2 FROM tab0 AS cor0
----
86
86
86

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

query I rowsort
SELECT DISTINCT + ( + 69 ) + - 10 * - + col2 FROM tab0 AS cor0
----
1059
169
539

query I rowsort
SELECT + col0 + + ( 5 ) - + col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + + 59 * col1 AS col2 FROM tab2 AS cor0
----
3009
3953
4543

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT MAX( + 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6888
SELECT MAX ( + 55 ) FROM tab2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT + COUNT( * ) * SUM( - - col1 ) * + COUNT( * ) * + - COUNT( DISTINCT col2 ) + - 43 + COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
-2824

skipif mysql # not compatible
query I rowsort label-6889
SELECT + COUNT ( * ) * SUM ( - - col1 ) * + COUNT ( * ) * + - COUNT ( DISTINCT col2 ) + - 43 + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
-2824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 23 * col1 col2 FROM tab1
----
1013
226
56

query I rowsort
SELECT - ( + col2 ) - 54 - + col0 * + 19 FROM tab1
----
-1119
-1728
-1851

query II rowsort
SELECT ALL + col1 + - + 74 AS col2, + 2 * + col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-53
174
-73
194
7
30

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

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 * - 94 * - 26 * - col2 NOT IN ( - col2 - + col1, - col2, + - 66, + ( + col1 ), col1 + col1 + - + col1 * - + col1, - 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + col0 + - 75 col2 FROM tab2 cor0
----
1259
1781
2100

query I rowsort
SELECT DISTINCT - 69 + 43 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + 19 + SUM( 8 ) - + + 84 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 19 + SUM ( 8 ) - + + 84 FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT COUNT( 76 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT COUNT ( 76 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + - 23 * + col0 * - + col1 + col1 FROM tab1 AS cor0
----
16436
9780
98418

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

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

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

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

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

query I rowsort
SELECT ALL ( + 43 ) * + col0 AS col0 FROM tab1
----
2193
3655
3913

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6905
SELECT ALL - col2 + - + CAST( NULL AS SIGNED ) * + col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6905
SELECT ALL - col2 + - + CAST ( NULL AS INTEGER ) * + col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT + - 95 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + - 95 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT COUNT( * ) + - 32 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6908
SELECT COUNT ( * ) + - 32 FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT - COUNT( * ) * - 60 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - COUNT ( * ) * - 60 FROM tab2
----
180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
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-6911
SELECT + SUM ( - col1 ) col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL ( 22 ) + - + CAST( col2 AS SIGNED ) * 48 AS col2 FROM tab0 AS cor0
----
-2234
-458
-4730

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL ( 22 ) + - + CAST ( col2 AS INTEGER ) * 48 AS col2 FROM tab0 AS cor0
----
-2234
-458
-4730

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

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 WHERE + col1 <= - col2
----

query II rowsort
SELECT DISTINCT - 81 * - col0 * + col1 + + col1 AS col2, 64 FROM tab2
----
190077
64
399245
64
407092
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE NULL <> - col2 * - - col2
----

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

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

query I rowsort
SELECT ALL - col1 + 42 * - 17 FROM tab1
----
-719
-728
-761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT + 3 * CAST( - col1 AS SIGNED ) * col0 + + col0 * - col1 AS col0 FROM tab1
----
-1700
-17108
-2856

skipif mysql # not compatible
query I rowsort label-6919
SELECT + 3 * CAST ( - col1 AS INTEGER ) * col0 + + col0 * - col1 AS col0 FROM tab1
----
-1700
-17108
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT - + SUM( 13 ) AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT - + SUM ( 13 ) AS col2 FROM tab0 AS cor0
----
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6923
SELECT + ( - COUNT( - col0 ) ) * + MAX( DISTINCT - - col2 ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6923
SELECT + ( - COUNT ( - col0 ) ) * + MAX ( DISTINCT - - col2 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + 42 * - - col0 FROM tab1 cor0
----
-2142
-3570
-3822

query I rowsort
SELECT ALL - + 77 AS col0 FROM tab0 AS cor0 WHERE NOT 56 * - col0 IS NULL
----
-77
-77
-77

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

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

query I rowsort
SELECT ALL - 24 * + 8 FROM tab0
----
-192
-192
-192

query I rowsort
SELECT + 9 * 93 AS col1 FROM tab0
----
837
837
837

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ( - col2 ) DIV + 27 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ( - col2 ) / + 27 AS col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL + ( 26 ) * + col2 AS col2 FROM tab1
----
1534
1768
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 + + 60 * col0 col2 FROM tab1
----
14
3111
47
5551
5
5185

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

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

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

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

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

query I rowsort
SELECT - + 30 FROM tab1 WHERE NOT ( NOT col2 = 39 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 * col2 + - + 55 + + col1, 15 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4611
15
5364
15
7543
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL COUNT( * ) * COUNT( * ) + + - COUNT( * ) + + MAX( + 63 ) AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) + + MAX ( + 63 ) AS col0 FROM tab0
----
69

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + - COUNT( * ) * 32 - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-279

skipif mysql # not compatible
query I rowsort label-6943
SELECT + - COUNT ( * ) * 32 - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL - - 34 + COUNT( * ) + + 9 * COUNT( * ) * + + COUNT( * ) * + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
71485

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - - 34 + COUNT ( * ) + + 9 * COUNT ( * ) * + + COUNT ( * ) * + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
71485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6945
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 AS col1, 71 AS col0 FROM tab2 WHERE NOT NULL <= - col2
----

skipif mysql # not compatible
query II rowsort label-6945
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 AS col1, 71 AS col0 FROM tab2 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT ALL col2 * - - col1 * - 31 + 11 AS col2 FROM tab1
----
-41653
-9134
-99065

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 82 * - + 11 NOT BETWEEN ( + + 96 ) AND col2 + + + ( - col0 ) * - + col1
----
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT - - 74 - + 13 - - COUNT( + col1 ) FROM tab1 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - - 74 - + 13 - - COUNT ( + col1 ) FROM tab1 cor0
----
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT DISTINCT CAST( col0 AS SIGNED ) + - - 65 AS col1 FROM tab1 cor0
----
116
150
156

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - - 65 AS col1 FROM tab1 cor0
----
116
150
156

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

query I rowsort
SELECT + 40 - + col2 FROM tab1
----
-19
-28
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - 80 - + - COUNT( * ) AS col1 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-6954
SELECT - 80 - + - COUNT ( * ) AS col1 FROM tab1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT 34 * + 96 - - MIN( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT 34 * + 96 - - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL 11 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
11
11
11

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

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

query II rowsort
SELECT col2, + col0 - 7 FROM tab1 AS cor0
----
59
78
68
84
96
44

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

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

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

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

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

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

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

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

query I rowsort
SELECT - 59 * - col1 + - col1 FROM tab0 AS cor0
----
1218
4698
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - - MAX( + 82 ) * - 55 AS col1 FROM tab2 AS cor0
----
-4510

skipif mysql # not compatible
query I rowsort label-6968
SELECT - - MAX ( + 82 ) * - 55 AS col1 FROM tab2 AS cor0
----
-4510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + - 15 * - + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6970
SELECT + - 15 * - + COUNT ( * ) FROM tab0 AS cor0
----
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT - col1 DIV - 53 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - col1 / - 53 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT 65 + - - col2 + - col2 DIV 83 FROM tab0
----
112
163
75

skipif mysql # not compatible
query I rowsort label-6973
SELECT 65 + - - col2 + - col2 / 83 FROM tab0
----
112
163
75

query I rowsort
SELECT ALL - ( + - 67 ) FROM tab2
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - MAX( - col0 ) + - + COUNT( * ) * + - ( - - 91 ) FROM tab1
----
324

skipif mysql # not compatible
query I rowsort label-6975
SELECT - MAX ( - col0 ) + - + COUNT ( * ) * + - ( - - 91 ) FROM tab1
----
324

query I rowsort
SELECT ALL + 13 + + col2 FROM tab1
----
109
72
81

query I rowsort
SELECT DISTINCT + col0 * - + col1 * + + 49 + + col0 * ( + 96 ) * ( + + ( - 89 ) ) AS col1 FROM tab0 AS cor0
----
-187695
-832851
-833521

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
-47

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

query I rowsort
SELECT + - 76 + - col2 AS col0 FROM tab2 AS cor0
----
-116
-134
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6983
SELECT - 34 + - - col1 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-6983
SELECT - 34 + - - col1 / CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - + col2 + + + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT 61 + - 8 + - col2 AS col0 FROM tab2 cor0
----
-5
13
30

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

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

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

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

query I rowsort
SELECT + col0 * - + 96 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT DISTINCT col0 * ( - - col0 ) AS col1 FROM tab0
----
225
7569
9409

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT col1 * + 54 AS col0 FROM tab0
----
1134
4374
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT CAST( + 76 AS SIGNED ) * - col0 FROM tab2
----
-3496
-4864
-5700

skipif mysql # not compatible
query I rowsort label-6993
SELECT CAST ( + 76 AS INTEGER ) * - col0 FROM tab2
----
-3496
-4864
-5700

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

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

query I rowsort
SELECT DISTINCT - - 31 * - + 97 + + col0 FROM tab0 AS cor0
----
-2910
-2920
-2992

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab1 cor0 WHERE NULL > + 89 * - - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT COUNT( * ) + + 14 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( * ) + + 14 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 2 * + - col1 + - col2 + - col2 AS col1 FROM tab0 cor0
----
-200
-256
-62

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

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

query I rowsort
SELECT ALL - col2 * - col0 + + col2 FROM tab2 AS cor0
----
1081
2600
4408

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > - + 22 / + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7003
SELECT + col1 DIV col2 AS col1, - 28 AS col1 FROM tab2
----
1
-28
1
-28
2
-28

skipif mysql # not compatible
query II rowsort label-7003
SELECT + col1 / col2 AS col1, - 28 AS col1 FROM tab2
----
1
-28
1
-28
2
-28

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

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

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

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

query I rowsort
SELECT 88 * - col1 * - + 2 AS col1 FROM tab0
----
14256
176
3696

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7007
SELECT + col1 DIV - + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7007
SELECT + col1 / - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT col2 + + 66 FROM tab2
----
106
124
89

query I rowsort
SELECT ALL + ( col1 ) + - 76 * - + col2 FROM tab1 cor0
----
4489
5215
7310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 + - + col0 col2 FROM tab1 AS cor0
----
340
4186
663

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

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

query I rowsort
SELECT ALL + col1 + - - 32 + - 45 FROM tab2 AS cor0
----
38
54
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7014
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7014
SELECT DISTINCT - - CAST ( NULL AS REAL ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - 69 AS col0 FROM tab2
----
-69
-69
-69

query II rowsort
SELECT DISTINCT + col1 AS col2, + col0 * + + col2 + + - 54 + col2 * - col0 * - 76 AS col1 FROM tab1
----
14
376938
47
476422
5
386101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL SUM( ALL + + 89 ) FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL SUM ( ALL + + 89 ) FROM tab1
----
267

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7020
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 DIV + col1 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-7020
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 / + col1 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

query I rowsort
SELECT - 26 * + - col2 AS col2 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT ALL + + CAST( - + 19 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1216
-1425
-874

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + + CAST ( - + 19 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1216
-1425
-874

query I rowsort
SELECT + + col2 * + + col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT - 38 DIV + SUM( + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT - 38 / + SUM ( + col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT col1 DIV - 22 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7025
SELECT col1 / - 22 AS col0 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + 16 * col1 * - col0 AS col2 FROM tab0 WHERE NOT - col2 > + col2
----
-1552
-19440
-29232

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT 14 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT CAST( - col1 AS SIGNED ) * + - 27 * - 93 FROM tab2 cor0
----
-128061
-168237
-193347

skipif mysql # not compatible
query I rowsort label-7031
SELECT CAST ( - col1 AS INTEGER ) * + - 27 * - 93 FROM tab2 cor0
----
-128061
-168237
-193347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT DISTINCT - MAX( - CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-97

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

query II rowsort
SELECT - + col0 * col1 AS col0, 69 FROM tab1 AS cor0
----
-425
69
-4277
69
-714
69

query I rowsort
SELECT DISTINCT - ( col2 ) + - col2 + col2 * + 94 + - - 44 FROM tab0 AS cor0
----
4368
9152
964

query I rowsort
SELECT DISTINCT col2 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

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

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

query I rowsort
SELECT - col2 + + - 7 AS col0 FROM tab0
----
-106
-17
-54

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + - 73 col0 FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT - - ( MAX( DISTINCT + CAST( - col2 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7040
SELECT - - ( MAX ( DISTINCT + CAST ( - col2 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + COUNT( * ) + COUNT( - 24 + - col2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7041
SELECT + COUNT ( * ) + COUNT ( - 24 + - col2 ) AS col1 FROM tab2
----
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7042
SELECT - COUNT ( * ) / MIN ( DISTINCT - col1 ) col1 FROM tab0
----
0

query I rowsort
SELECT col2 + col2 FROM tab2 WHERE NOT NULL IN ( + 36 + + col2 )
----

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

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

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

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col1 NOT IN ( col2 )
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT 16 DIV - COUNT( * ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7048
SELECT 16 / - COUNT ( * ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT + 20 DIV COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7049
SELECT + 20 / COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT - 37 DIV + col1 FROM tab0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-7050
SELECT - 37 / + col1 FROM tab0
----
-1
-37
0

query I rowsort
SELECT ALL 82 + - col2 FROM tab1
----
-14
14
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7052
SELECT + col1 * CAST( NULL AS DECIMAL ) + - ( - 37 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT + col1 * CAST ( NULL AS REAL ) + - ( - 37 ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL + MAX( - 66 ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + MAX ( - 66 ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7056
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 26 * CAST( NULL AS SIGNED ) AND + col2 * - col1
----

skipif mysql # not compatible
query III rowsort label-7056
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 26 * CAST ( NULL AS INTEGER ) AND + col2 * - col1
----

query I rowsort
SELECT DISTINCT + 97 * col0 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 = col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col1 BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - 57 NOT BETWEEN ( col1 + 73 ) AND col2
----

query I rowsort
SELECT ALL - 0 FROM tab0 WHERE NOT + col1 * - col1 IN ( + 29 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * 3 col0 FROM tab1
----
-139
-226
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + + col0 col1 FROM tab1
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + COUNT( * ) FROM tab0 WHERE - col0 * - col0 + 72 = ( col1 + - col0 / - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - col0 * - col0 + 72 = ( col1 + - col0 / - 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7065
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + 57 col1 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7065
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + 57 col1 FROM tab0
----
56

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

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

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

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

query I rowsort
SELECT DISTINCT 30 + - 89 * + col1 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-1839
-59
-7179

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

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

query I rowsort
SELECT + ( ( 38 ) ) * - 96 FROM tab1
----
-3648
-3648
-3648

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) < 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - SUM( - col2 ) + 62 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-7073
SELECT - SUM ( - col2 ) + 62 FROM tab1
----
285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT + 47 DIV - 93 + + COUNT( * ) * + 38 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 47 / - 93 + + COUNT ( * ) * + 38 FROM tab0 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT ALL + col2 DIV col0 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + col2 / col0 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT - 91 FROM tab1 AS cor0 WHERE ( + ( + col0 ) * col0 ) IN ( - col0 / - col1 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 60 col2 FROM tab2 AS cor0
----
-1380
-2400
-3480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT - SUM( DISTINCT + col1 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - SUM ( DISTINCT + col1 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-309

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

query I rowsort
SELECT ALL + - 72 * col2 FROM tab2 AS cor0
----
-1656
-2880
-4176

query I rowsort
SELECT + - col1 * - 15 FROM tab2 AS cor0
----
1005
1155
765

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

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab2 WHERE 30 * col1 IS NOT NULL
----
-141
-142
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT - 83 * SUM( + col0 ) FROM tab1
----
-18841

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - 83 * SUM ( + col0 ) FROM tab1
----
-18841

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - 90 * - + COUNT( ALL - col0 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - 90 * - + COUNT ( ALL - col0 ) FROM tab0
----
270

query I rowsort
SELECT DISTINCT - col2 + - - 56 * 22 AS col2 FROM tab2
----
1174
1192
1209

query I rowsort
SELECT - col2 + col0 FROM tab2 WHERE col1 + - col2 IS NOT NULL
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7094
SELECT DISTINCT + 57 DIV 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + 57 / 71 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ALL COUNT( DISTINCT - 91 ) + - MIN( 81 ) col2 FROM tab1 AS cor0
----
-80

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

query I rowsort
SELECT - - ( - col1 ) + 41 FROM tab2 AS cor0
----
-10
-26
-36

query I rowsort
SELECT ALL + + col0 - - 14 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1119
-207
83

query III rowsort
SELECT * FROM tab0 WHERE ( + + col2 + col1 ) IN ( - ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7100
SELECT 13 AS col0, - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

skipif mysql # not compatible
query II rowsort label-7100
SELECT 13 AS col0, - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT - COUNT( * ) DIV - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT - COUNT ( * ) / - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7108
SELECT DISTINCT - - 85 DIV - - CAST( + CAST( 84 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - - 85 / - - CAST ( + CAST ( 84 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - - col0 NOT IN ( - col2 * - 44 )
----

query I rowsort
SELECT 10 * - 19 FROM tab2
----
-190
-190
-190

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT SUM ( DISTINCT - - col0 ) col1 FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT ALL - 50 DIV col1 DIV - - col1 AS col2 FROM tab0
----
-50
0
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - 50 / col1 / - - col1 AS col2 FROM tab0
----
-50
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT DISTINCT MAX( ALL - 88 ) DIV + 61 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT MAX ( ALL - 88 ) / + 61 FROM tab0
----
-1

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

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

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

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

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

query I rowsort
SELECT + + col2 - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 < - col1
----
-28
-37

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

query I rowsort
SELECT 90 AS col1 FROM tab0 cor0
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT ALL + MIN( - CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + MIN ( - CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + + 97 * + - col1 * 24 AS col2 FROM tab0 WHERE NULL IS NULL
----
-188568
-2328
-48888

query I rowsort
SELECT ALL 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 78 + - col2 + + + 69 AND - col2
----

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

query I rowsort
SELECT DISTINCT 73 * - - col1 + + + col0 FROM tab0 AS cor0
----
1620
170
5928

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * - 48 + + col0 + - 65 IS NULL
----

query I rowsort
SELECT 33 + - + 62 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT ALL - col1 + - ( - + col0 ) + + col0 DIV - - 79 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - col1 + - ( - + col0 ) + + col0 / - - 79 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + 51 * + col0 col1, col1 AS col1 FROM tab1 cor0
----
2587
14
4330
5
4594
47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT ALL - MAX( DISTINCT col1 ), - 25 AS col2 FROM tab0
----
-81
-25

skipif mysql # not compatible
query II rowsort label-7134
SELECT ALL - MAX ( DISTINCT col1 ), - 25 AS col2 FROM tab0
----
-81
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( ( + 82 ) )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT MIN( DISTINCT + + CAST( - col0 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT 54 DIV + col1 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-7138
SELECT 54 / + col1 FROM tab1 AS cor0
----
1
10
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT + - col0 * col2 * 60 DIV + 8 FROM tab2 AS cor0
----
-19200
-32625
-7935

skipif mysql # not compatible
query I rowsort label-7139
SELECT + - col0 * col2 * 60 / + 8 FROM tab2 AS cor0
----
-19200
-32625
-7935

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

query I rowsort
SELECT ALL + col1 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT MIN( ALL - col2 ) * - MIN( ALL - 13 ) AS col1 FROM tab1 AS cor0
----
-1248

skipif mysql # not compatible
query I rowsort label-7142
SELECT MIN ( ALL - col2 ) * - MIN ( ALL - 13 ) AS col1 FROM tab1 AS cor0
----
-1248

query II rowsort
SELECT DISTINCT - 2 * + col2, col2 AS col2 FROM tab0 AS cor0
----
-198
99
-20
10
-94
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT - - 52 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7144
SELECT - - 52 / col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT + COUNT( * ) * 6 * + 85 * + - COUNT( * ) * 9 AS col1, 8 AS col0 FROM tab2 AS cor0
----
-41310
8

skipif mysql # not compatible
query II rowsort label-7146
SELECT + COUNT ( * ) * 6 * + 85 * + - COUNT ( * ) * 9 AS col1, 8 AS col0 FROM tab2 AS cor0
----
-41310
8

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

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

query I rowsort
SELECT + + 32 AS col0 FROM tab0 AS cor0 WHERE NOT 47 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT SUM( ALL 2 ) * + COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7150
SELECT SUM ( ALL 2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT - 90 DIV + col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - 90 / + col2 AS col0 FROM tab2
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col1 col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT 79 * + + 39 AS col2 FROM tab0
----
3081
3081
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + MAX( + 48 ) * + 0 AS col0 FROM tab0 WHERE NOT col2 - ( - - 29 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT + MAX ( + 48 ) * + 0 AS col0 FROM tab0 WHERE NOT col2 - ( - - 29 ) IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7157
SELECT MAX ( ALL + - col2 ) col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT - SUM( ALL + 60 ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-7158
SELECT - SUM ( ALL + 60 ) AS col0 FROM tab0
----
-180

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

query II rowsort
SELECT - 67, 10 AS col1 FROM tab2 AS cor0
----
-67
10
-67
10
-67
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT DISTINCT + + col2 DIV 73 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + + col2 / 73 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 + + - col2 * - + 65 AS col2 FROM tab1
----
3920
4511
6291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + - + col0 + col1 col2 FROM tab0
----
-42
-72
90

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

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - - 60 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col2 FROM tab2 WHERE NOT - - col2 / + 97 = + 81 / - col1
----
46
64
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7167
SELECT * FROM tab0 cor0 WHERE ( col1 + - col1 + col1 / + + 24 - 44 ) IN ( + 79 * + col2 * - - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-7167
SELECT * FROM tab0 cor0 WHERE ( col1 + - col1 + col1 / + + 24 - 44 ) IN ( + 79 * + col2 * - - CAST ( NULL AS INTEGER ) * + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / + + ( - col2 ) * + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL ( + col2 ) - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

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

query I rowsort
SELECT DISTINCT - 57 - col2 FROM tab1
----
-116
-125
-153

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

skipif mysql # not compatible
query I rowsort label-7172
SELECT - CAST ( NULL AS REAL ) * + col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT - COUNT( * ) DIV - 55 - + - 43 + - MIN( ALL col0 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-7174
SELECT - COUNT ( * ) / - 55 - + - 43 + - MIN ( ALL col0 ) AS col1 FROM tab1
----
-8

query I rowsort
SELECT ALL + 63 - - col0 FROM tab0
----
150
160
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT 48 - + SUM( ALL - ( col2 ) ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT 48 - + SUM ( ALL - ( col2 ) ) AS col0 FROM tab0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 51 - + - col1 col1 FROM tab1
----
116
141
189

query I rowsort
SELECT DISTINCT col0 + - - 63 FROM tab0
----
150
160
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> + + col2
----

query I rowsort
SELECT DISTINCT 67 * + col1 FROM tab1 cor0
----
3149
335
938

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT - - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 21 * - 94 AS col0 FROM tab2 AS cor0
----
1974

query I rowsort
SELECT - - col1 * + 7 FROM tab0 AS cor0
----
147
567
7

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7188
SELECT ALL + col0 AS col0, + CAST( NULL AS SIGNED ) * + + col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7188
SELECT ALL + col0 AS col0, + CAST ( NULL AS INTEGER ) * + + col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT + MAX( col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7189
SELECT DISTINCT + MAX ( col2 ) col2 FROM tab0
----
99

query I rowsort
SELECT ALL col1 * + col1 / + + 90 AS col1 FROM tab2 WHERE NOT - + ( col2 ) + - col2 + - 24 * - ( 93 ) IS NOT NULL
----

query I rowsort
SELECT 17 * + ( col1 ) FROM tab2
----
1139
1309
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col1 <> ( ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-7192
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col1 <> ( ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - 22 col2 FROM tab0
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT col0 + - - 16 + + CAST( - 74 AS SIGNED ) FROM tab2 AS cor0
----
-12
17
6

skipif mysql # not compatible
query I rowsort label-7194
SELECT col0 + - - 16 + + CAST ( - 74 AS INTEGER ) FROM tab2 AS cor0
----
-12
17
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7195
SELECT + col1 + - col0 AS col0, - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66
-21
-96
-1
66
-81

skipif mysql # not compatible
query II rowsort label-7195
SELECT + col1 + - col0 AS col0, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66
-21
-96
-1
66
-81

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

query I rowsort
SELECT - + 16 + ( - 31 ) * - 83 AS col0 FROM tab2 AS cor0
----
2557
2557
2557

query I rowsort
SELECT - 55 + - 21 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - 74 * - 21 * - 34 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 63a4913cf4ab5fee99b11d69d56c5f78

query I rowsort
SELECT + 91 - - col2 FROM tab1 AS cor0
----
150
159
187

query I rowsort
SELECT col1 - + 65 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - + COUNT( * ) - 37 FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7202
SELECT - + COUNT ( * ) - 37 FROM tab0 cor0
----
-40

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

query I rowsort
SELECT - col1 + - - col0 AS col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < - 0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + COUNT( * ) + + 41 * - 12 * + 16 AS col1 FROM tab2 AS cor0
----
-7869

skipif mysql # not compatible
query I rowsort label-7206
SELECT + COUNT ( * ) + + 41 * - 12 * + 16 AS col1 FROM tab2 AS cor0
----
-7869

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col0 col1 FROM tab1
----
-144
-147
-159

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

query I rowsort
SELECT - 10 / + 12 AS col2 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL - col0 - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL - col0 - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT - COUNT( ALL - CAST( col2 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7212
SELECT - COUNT ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab2
----
-3

query II rowsort
SELECT - 72 * - col0, col2 FROM tab1
----
3672
96
6120
59
6552
68

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + ( col0 ) < + + col2
----
23
40
58

query I rowsort
SELECT - 90 * - - col0 * - - col2 AS col2 FROM tab1
----
-440640
-451350
-556920

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

query I rowsort
SELECT + col0 * - 19 FROM tab1 cor0
----
-1615
-1729
-969

query I rowsort
SELECT + + col0 * + 64 FROM tab2 AS cor0
----
2944
4096
4800

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT CAST( - 94 AS SIGNED ) col2 FROM tab1, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7221
SELECT CAST ( - 94 AS INTEGER ) col2 FROM tab1, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT - 54 AS col2, - COUNT( * ) AS col1 FROM tab0
----
-54
-3

skipif mysql # not compatible
query II rowsort label-7222
SELECT - 54 AS col2, - COUNT ( * ) AS col1 FROM tab0
----
-54
-3

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

skipif mysql # not compatible
query II rowsort label-7223
SELECT - col1, - 44 / col0 + + 97 AS col1 FROM tab1 AS cor0
----
-14
97
-47
97
-5
97

query I rowsort
SELECT + 92 * + col1 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT DISTINCT - col2 + - CAST( - - col2 AS SIGNED ) - 67 * + 89 FROM tab0 AS cor0
----
-5983
-6057
-6161

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - col2 + - CAST ( - - col2 AS INTEGER ) - 67 * + 89 FROM tab0 AS cor0
----
-5983
-6057
-6161

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < - col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT COUNT( ALL 53 ) * + + 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT COUNT ( ALL 53 ) * + + 45 FROM tab1
----
135

query I rowsort
SELECT - 64 * + + col0 AS col1 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT + + 52 + + + CAST( + 78 AS SIGNED ) + + 0 FROM tab1 WHERE NOT - 61 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7235
SELECT + + 52 + + + CAST ( + 78 AS INTEGER ) + + 0 FROM tab1 WHERE NOT - 61 <= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7238
SELECT DISTINCT * FROM tab2 WHERE NOT - 59 / - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7238
SELECT DISTINCT * FROM tab2 WHERE NOT - 59 / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT DISTINCT 11 * + + 2 DIV - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT 11 * + + 2 / - col0 AS col0 FROM tab2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL COUNT( ALL + - col0 ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL COUNT ( ALL + - col0 ) * - + COUNT ( * ) FROM tab1
----
-9

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

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL COUNT ( * ) * - - COUNT ( * ) + COUNT ( * ) FROM tab0
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 / col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT DISTINCT - COUNT( * ) + - 9 col2, MIN( 81 ) AS col1 FROM tab2 AS cor0
----
-12
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7247
SELECT DISTINCT - COUNT ( * ) + - 9 col2, MIN ( 81 ) AS col1 FROM tab2 AS cor0
----
-12
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT + col1 AS col2, CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE - col0 * + col1 IS NOT NULL
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-7248
SELECT + col1 AS col2, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE - col0 * + col1 IS NOT NULL
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7250
SELECT - 33 + + COUNT( DISTINCT 52 ) + - - 15, 10 AS col1 FROM tab2 cor0
----
-17
10

skipif mysql # not compatible
query II rowsort label-7250
SELECT - 33 + + COUNT ( DISTINCT 52 ) + - - 15, 10 AS col1 FROM tab2 cor0
----
-17
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT - 29 * + SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT 90 IS NULL )
----
-5655

skipif mysql # not compatible
query I rowsort label-7251
SELECT - 29 * + SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT 90 IS NULL )
----
-5655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * 50, + col0 col0 FROM tab2
----
2300
46
3200
64
3750
75

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

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

query I rowsort
SELECT ( - col2 ) * 40 FROM tab0 AS cor0
----
-1880
-3960
-400

query I rowsort
SELECT ALL + col1 + - + ( - 80 ) FROM tab1 AS cor0 WHERE NOT - 49 * col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7256
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT - col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - 71 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7257
SELECT - col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - 71 IS NOT NULL
----

query I rowsort
SELECT - 59 - + col0 + - col1 FROM tab1 AS cor0
----
-124
-149
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT - COUNT( * ) + + + 10 FROM tab2 WHERE NULL <= - 77 * 71 + - col0 + - ( - col1 ) - - col1 * col1
----
10

skipif mysql # not compatible
query I rowsort label-7259
SELECT - COUNT ( * ) + + + 10 FROM tab2 WHERE NULL <= - 77 * 71 + - col0 + - ( - col1 ) - - col1 * col1
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) > - col0
----

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

query I rowsort
SELECT DISTINCT - 12 * 36 * - 82 * - 28 AS col0 FROM tab0
----
-991872

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

skipif mysql # not compatible
query I rowsort label-7263
SELECT CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT ( 31 ) AS col2 FROM tab2
----
31

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

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL MAX ( DISTINCT + - col2 ) FROM tab1
----
-59

query I rowsort
SELECT - 29 * col0 FROM tab2 cor0
----
-1334
-1856
-2175

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT + col0 * col2 DIV - 29 FROM tab0
----
-24
-30
-331

skipif mysql # not compatible
query I rowsort label-7269
SELECT + col0 * col2 / - 29 FROM tab0
----
-24
-30
-331

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7270
SELECT ALL + CAST( - col1 AS DECIMAL ) * - col2 + + 79 / - + col0 AS col0 FROM tab0 AS cor0 WHERE col0 - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + CAST ( - col1 AS REAL ) * - col2 + + 79 / - + col0 AS col0 FROM tab0 AS cor0 WHERE col0 - + col0 IS NULL
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 48 * + 33 FROM tab0 AS cor0
----
-1584
-1584
-1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7279
SELECT - MIN( 8 ) DIV 3 col1, COUNT( * ) + + 71 FROM tab0
----
-2
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7279
SELECT - MIN ( 8 ) / 3 col1, COUNT ( * ) + + 71 FROM tab0
----
-2
74

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + 98 + col2 IN ( - col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 46 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + + 72 + - col0 * - + 89 FROM tab0 AS cor0
----
1454
7825
8804

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

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

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

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - 72 + - COUNT ( * ) FROM tab0 AS cor0
----
-75

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

query I rowsort
SELECT ALL + col0 * + 79 AS col2 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT 45 - + COUNT( * ) AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-7289
SELECT 45 - + COUNT ( * ) AS col0 FROM tab2
----
42

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

query I rowsort
SELECT DISTINCT + col1 * 97 * 68 AS col1 FROM tab1
----
310012
32980
92344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7292
SELECT COUNT( * ) * - COUNT( * ) * + COUNT( col2 ) / 2 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( * ) * - COUNT ( * ) * + COUNT ( col2 ) / 2 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT - ( + col1 ) + - 34 * - ( CAST( NULL AS SIGNED ) ) / + col2 * + col1 + - 96 * + + 91 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT - ( + col1 ) + - 34 * - ( CAST ( NULL AS INTEGER ) ) / + col2 * + col1 + - 96 * + + 91 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7295
SELECT DISTINCT + col1 AS col0, - col0 + - 77 DIV - col2 FROM tab0 AS cor0
----
1
-97
21
-80
81
-14

skipif mysql # not compatible
query II rowsort label-7295
SELECT DISTINCT + col1 AS col0, - col0 + - 77 / - col2 FROM tab0 AS cor0
----
1
-97
21
-80
81
-14

query I rowsort
SELECT ALL col1 * - ( - - 35 ) FROM tab2 AS cor0
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT ALL 78 * - + COUNT( * ) col1, + MIN( 8 ) AS col1 FROM tab2
----
-234
8

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

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

query I rowsort
SELECT + col1 * + + 2 FROM tab1 AS cor0
----
10
28
94

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 40 + + + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + - - 56 FROM tab1
----
103
61
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7304
SELECT col2 * - + col1 + + + col1 AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
-189
NULL
-3726
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-7304
SELECT col2 * - + col1 + + + col1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
-189
NULL
-3726
NULL
-98
NULL

query I rowsort
SELECT + 27 + + col1 AS col2 FROM tab2 AS cor0
----
104
78
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7306
SELECT ALL 23, CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7306
SELECT ALL 23, CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
23
NULL

query II rowsort
SELECT DISTINCT 43 AS col1, + 88 FROM tab1 cor0
----
43
88

query II rowsort
SELECT col0 * + col2 AS col0, 34 + - - 13 AS col0 FROM tab2
----
1058
47
2560
47
4350
47

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

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

query I rowsort
SELECT DISTINCT 72 * - + ( - + col2 ) FROM tab2
----
1656
2880
4176

query I rowsort
SELECT ALL + col2 + ( + 64 ) + 36 FROM tab1
----
159
168
196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 / + 35 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 IS NULL
----

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

query I rowsort
SELECT + 31 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + 51 * + COUNT( - + col0 ) + + - ( - 87 ) * COUNT( * ) FROM tab1
----
414

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 51 * + COUNT ( - + col0 ) + + - ( - 87 ) * COUNT ( * ) FROM tab1
----
414

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <= 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL - + 50 * COUNT( * ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - + 50 * COUNT ( * ) FROM tab0 AS cor0
----
-150

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + + SUM( ALL - 28 ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7324
SELECT + + SUM ( ALL - 28 ) AS col1 FROM tab0 AS cor0
----
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col0 * + 28 FROM tab0
----
-2436
-2716
-420

query II rowsort
SELECT + col1, 73 FROM tab0
----
1
73
21
73
81
73

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

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

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT col1 AS col0, 53 AS col0, - col2 FROM tab1 AS cor0
----
9 values hashing to bb4fbaea507df190f2dc22f073bc5d30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 WHERE NOT 82 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT ALL + col0 DIV - col0 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + col0 / - col0 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

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

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

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

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

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

query I rowsort
SELECT - - col2 * - col2 + - col2 FROM tab2 AS cor0
----
-1640
-3422
-552

query I rowsort
SELECT ALL col1 * - col2 + col2 FROM tab1 WHERE NOT - 51 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col0 FROM tab0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - MIN( ALL 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - MIN ( ALL 85 ) FROM tab2
----
-85

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

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

skipif mysql # not compatible
query I rowsort label-7345
SELECT MAX ( DISTINCT - - 14 ) FROM tab0 AS cor0
----
14

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7347
SELECT - col0 / - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query II rowsort
SELECT + 21 * - - col2 AS col1, + 69 + - col2 AS col0 FROM tab0
----
2079
-30
210
59
987
22

query I rowsort
SELECT - col1 * + + 18 + + 16 AS col2 FROM tab1 AS cor0
----
-236
-74
-830

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

skipif mysql # not compatible
query III rowsort label-7353
SELECT DISTINCT col0 * + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 92 FROM tab2 cor0
----
92

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT 56 AS col1, COUNT( + ( 45 ) ) FROM tab2
----
56
3

skipif mysql # not compatible
query II rowsort label-7356
SELECT 56 AS col1, COUNT ( + ( 45 ) ) FROM tab2
----
56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT + MIN( + 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + MIN ( + 51 ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT - 44 + - + col1 AS col0 FROM tab2 AS cor0
----
-111
-121
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - 56 * - COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7359
SELECT - 56 * - COUNT ( * ) FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) * + 5 * COUNT( ALL - col0 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) * + 5 * COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - - COUNT( * ) + + - 76 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - - COUNT ( * ) + + - 76 FROM tab1 AS cor0
----
-73

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND 76 AND ( NULL ) <= ( col2 )
----

query I rowsort
SELECT - col0 + + 58 + - 3 FROM tab2 AS cor0
----
-20
-9
9

query I rowsort
SELECT + - 65 * + col2 FROM tab1 AS cor0 WHERE + 83 / col2 IS NOT NULL
----
-3835
-4420
-6240

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 64 * - col2 * + col2 * 22 col2 FROM tab2 AS cor0
----
-2252840
-4736570
-744855

query I rowsort
SELECT ALL 92 * + 46 + + col0 AS col0 FROM tab0 cor0
----
4247
4319
4329

query I rowsort
SELECT ALL - col1 * - - col2 * + col2 * col0 + + col2 * + 1 AS col0 FROM tab1 AS cor0
----
-1479366
-19776780
-6580128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab0 cor0
----
37
37
37

query II rowsort
SELECT DISTINCT col1, col2 - - col0 FROM tab0 AS cor0
----
1
196
21
97
81
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT 12 * COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7372
SELECT 12 * COUNT ( * ) FROM tab1
----
36

query III rowsort
SELECT * FROM tab0 WHERE - - 24 < NULL
----

query I rowsort
SELECT DISTINCT 25 * 93 FROM tab1
----
2325

query I rowsort
SELECT 53 - + 17 FROM tab1
----
36
36
36

query I rowsort
SELECT DISTINCT 82 * - - col2 * - col2 * col0 AS col0 FROM tab1
----
-24262570
-34504288
-38541312

query I rowsort
SELECT 60 * + 71 - - 71 + - - col2 FROM tab2
----
4354
4371
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - - COUNT( * ) col2 FROM tab1 AS cor0
----
3

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - 83 - + - col2 FROM tab1
----
14
13
47
-15
5
-24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT + SUM( ALL ( 45 ) ) AS col1 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + SUM ( ALL ( 45 ) ) AS col1 FROM tab2 AS cor0
----
135

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

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

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

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

query I rowsort
SELECT col0 * + + 57 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT DISTINCT COUNT( - col0 ) AS col1, + 12 + + 3 + 43 FROM tab1
----
3
58

skipif mysql # not compatible
query II rowsort label-7387
SELECT DISTINCT COUNT ( - col0 ) AS col1, + 12 + + 3 + 43 FROM tab1
----
3
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + 36 + - col2 * + + col1
----

query I rowsort
SELECT DISTINCT + col0 + - + col1 + + 89 * ( + 24 ) AS col2 FROM tab1
----
2173
2180
2216

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT - + COUNT( * ) * 82 + + COUNT( * ) + 40 AS col0 FROM tab0 AS cor0
----
-203

skipif mysql # not compatible
query I rowsort label-7392
SELECT - + COUNT ( * ) * 82 + + COUNT ( * ) + 40 AS col0 FROM tab0 AS cor0
----
-203

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7395
SELECT ALL + - col0 * 77 / col0 + CAST( NULL AS SIGNED ) + - + 44 + + - col0 * + col1 * - ( + 43 ) + + col2, 39 * 23 AS col2 FROM tab1 WHERE NOT + 87 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL + - col0 * 77 / col0 + CAST ( NULL AS INTEGER ) + - + 44 + + - col0 * + col1 * - ( + 43 ) + + col2, 39 * 23 AS col2 FROM tab1 WHERE NOT + 87 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7396
SELECT * FROM tab2 AS cor0 WHERE + col0 / - col1 + col1 * CAST( NULL AS DECIMAL ) NOT IN ( col2, col0 ) AND NOT col1 + + col1 + + ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7396
SELECT * FROM tab2 AS cor0 WHERE + col0 / - col1 + col1 * CAST ( NULL AS REAL ) NOT IN ( col2, col0 ) AND NOT col1 + + col1 + + ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT ALL + - 20 - - 0 DIV + - 8 FROM tab0 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + - 20 - - 0 / + - 8 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - 54 + 34 FROM tab2 AS cor0
----
-20
-20
-20

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

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

query I rowsort
SELECT ALL - ( col1 ) * + 85 FROM tab2 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7402
SELECT - col2 + - col1 AS col0, CAST( NULL AS SIGNED ) + + 7 AS col0 FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-7402
SELECT - col2 + - col1 AS col0, CAST ( NULL AS INTEGER ) + + 7 AS col0 FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT + ( - + col0 ) * - col2 + CAST( + 96 AS SIGNED ) FROM tab0
----
801
966
9699

skipif mysql # not compatible
query I rowsort label-7403
SELECT + ( - + col0 ) * - col2 + CAST ( + 96 AS INTEGER ) FROM tab0
----
801
966
9699

query I rowsort
SELECT + 26 * + + col2 FROM tab0
----
1222
2574
260

query I rowsort
SELECT 35 FROM tab0 WHERE NULL NOT IN ( - 42 * + col2 / 81 + 40 + - + 33, + 4 * + - col2 )
----

query I rowsort
SELECT ALL + 19 - - col2 AS col1 FROM tab2
----
42
59
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7407
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1, SUM( ALL - col1 ) AS col1 FROM tab1
----
-3
-66

skipif mysql # not compatible
query II rowsort label-7407
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1, SUM ( ALL - col1 ) AS col1 FROM tab1
----
-3
-66

query III rowsort
SELECT * FROM tab0 WHERE - 88 - + 66 * - - col2 + + 27 - - - col0 IS NULL
----

query I rowsort
SELECT 97 * - + 27 FROM tab0 AS cor0
----
-2619
-2619
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL - MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
99

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT - col0 DIV col2 - col1 FROM tab1 AS cor0
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-7414
SELECT - col0 / col2 - col1 FROM tab1 AS cor0
----
-14
-48
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT DISTINCT 15 AS col2, COUNT( ALL 22 ) AS col1 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT 15 AS col2, COUNT ( ALL 22 ) AS col1 FROM tab0 AS cor0
----
15
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT ALL + - 17 DIV COUNT( * ) - - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + - 17 / COUNT ( * ) - - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

query I rowsort
SELECT - + 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 8 + - col0 + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 > + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > + 95 + + col2 + 92 * + col0 * col1 * - col1 * - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT 99, + SUM( DISTINCT + 16 ) col2 FROM tab0
----
99
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7421
SELECT 99, + SUM ( DISTINCT + 16 ) col2 FROM tab0
----
99
16

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

skipif mysql # not compatible
query I rowsort label-7422
SELECT COUNT ( ALL + - 51 ) FROM tab2
----
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7424
SELECT ALL - - col2 AS col0, + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-7424
SELECT ALL - - col2 AS col0, + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

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

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

query I rowsort
SELECT 89 + - col1 + + col0 AS col1 FROM tab2
----
76
84
97

query I rowsort
SELECT ALL - + col2 + + col1 FROM tab1 cor0 WHERE NOT 88 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 22 + - 92 * - col1 AS col0 FROM tab1 AS cor0
----
1266
4302
438

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT - + col0 DIV - 36 - + col1 - - 11 * + 79 col1 FROM tab0 AS cor0
----
788
850
870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7432
SELECT DISTINCT - + col0 / - 36 - + col1 - - 11 * + 79 col1 FROM tab0 AS cor0
----
788
850
870

query I rowsort
SELECT ALL - 32 - col2 + col0 AS col0 FROM tab2 AS cor0
----
-15
-8
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT DISTINCT COUNT( - 10 ) + + MAX( DISTINCT col1 ), + 70 AS col0 FROM tab0 AS cor0
----
84
70

skipif mysql # not compatible
query II rowsort label-7434
SELECT DISTINCT COUNT ( - 10 ) + + MAX ( DISTINCT col1 ), + 70 AS col0 FROM tab0 AS cor0
----
84
70

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

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

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

skipif mysql # not compatible
query I rowsort label-7436
SELECT 4 - 39 + - COUNT ( * ) / + ( + + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT 76 - + ( + COUNT( * ) ) * - + COUNT( * ) + + + COUNT( * ) + - - 17 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7437
SELECT 76 - + ( + COUNT ( * ) ) * - + COUNT ( * ) + + + COUNT ( * ) + - - 17 FROM tab0
----
105

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

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT - MAX ( ALL - col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7439
SELECT ALL * FROM tab2 WHERE NOT + col2 * + + 5 BETWEEN col1 / - - col1 * ( + col2 ) + 68 - + 69 AND - + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7439
SELECT ALL * FROM tab2 WHERE NOT + col2 * + + 5 BETWEEN col1 / - - col1 * ( + col2 ) + 68 - + 69 AND - + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER )
----

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

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 = + 73 + + - col1
----
1
21
81

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <= - 95 - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT ALL - COUNT( * ), + COUNT( * ) + + + 85 AS col0 FROM tab0
----
-3
88

skipif mysql # not compatible
query II rowsort label-7446
SELECT ALL - COUNT ( * ), + COUNT ( * ) + + + 85 AS col0 FROM tab0
----
-3
88

query I rowsort
SELECT - - 47 * + col0 AS col0 FROM tab2 AS cor0
----
2162
3008
3525

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < + + 68 * - col0 * + + col2
----

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

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

query I rowsort
SELECT ALL - col0 * - + 34 AS col0 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT SUM( DISTINCT 10 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7451
SELECT SUM ( DISTINCT 10 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT - 78 * - MIN( - 13 ) AS col1 FROM tab0 AS cor0
----
-1014

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - 78 * - MIN ( - 13 ) AS col1 FROM tab0 AS cor0
----
-1014

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT ALL - - col1 DIV + 63 + col1 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL - - col1 / + 63 + col1 FROM tab2 AS cor0
----
51
68
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 < + 88 + + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT ALL col1 DIV 57 * - + col1 + 68 AS col1 FROM tab2 AS cor0
----
-9
1
68

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL col1 / 57 * - + col1 + 68 AS col1 FROM tab2 AS cor0
----
-9
1
68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + COUNT( * ) * MAX( ALL - - col2 ) + COUNT( * ) FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COUNT ( * ) * MAX ( ALL - - col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
300

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

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

query I rowsort
SELECT ALL + + 56 + + col0 AS col0 FROM tab0 AS cor0
----
143
153
71

query I rowsort
SELECT DISTINCT col2 + + col1 - - - 86 FROM tab1 AS cor0
----
-22
24
29

query I rowsort
SELECT + col0 * col2 * 49 AS col1 FROM tab0 AS cor0
----
34545
42630
470547

query I rowsort
SELECT 79 * - + col2 FROM tab0
----
-3713
-7821
-790

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

query I rowsort
SELECT - col0 + - 70 * - - ( + ( 95 ) ) AS col0 FROM tab1 AS cor0
----
-6701
-6735
-6741

query I rowsort
SELECT col1 + 35 FROM tab1 cor0
----
40
49
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT + - 24 * - 53 + + 80 AS col1, + MAX( - col1 ) FROM tab1 AS cor0
----
1352
-5

skipif mysql # not compatible
query II rowsort label-7470
SELECT + - 24 * - 53 + + 80 AS col1, + MAX ( - col1 ) FROM tab1 AS cor0
----
1352
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT DISTINCT - 28 * + + col2 * CAST( col2 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0 WHERE col0 / col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - 28 * + + col2 * CAST ( col2 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0 WHERE col0 / col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 28 + + col2 * - 45 FROM tab1 AS cor0
----
-2683
-3088
-4348

query I rowsort
SELECT DISTINCT 13 * - ( + + 80 ) AS col2 FROM tab1
----
-1040

query I rowsort
SELECT col1 * + 69 * - 2 AS col2 FROM tab0
----
-11178
-138
-2898

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

skipif mysql # not compatible
query I rowsort label-7476
SELECT + 1 * COUNT ( + col0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( + + 48 ) AS col2 FROM tab0
----
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT + + col0 * col0 + 10 - - col2 DIV + 85 AS col1 FROM tab0 AS cor0
----
235
7579
9420

skipif mysql # not compatible
query I rowsort label-7479
SELECT + + col0 * col0 + 10 - - col2 / + 85 AS col1 FROM tab0 AS cor0
----
235
7579
9420

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

query II rowsort
SELECT DISTINCT - + 35 AS col1, 96 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-35
96

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

query I rowsort
SELECT - col1 + + 2 FROM tab1 AS cor0
----
-12
-3
-45

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

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

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

query I rowsort
SELECT DISTINCT - 82 FROM tab1 AS cor0 WHERE NOT + 57 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - + col2 + + - col2 < col1 / + 98 * - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT - + col2 DIV 37 col0 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7489
SELECT DISTINCT - + col2 / 37 col0 FROM tab1 AS cor0
----
-1
-2

query II rowsort
SELECT DISTINCT + col1 AS col0, - 36 * + + col1 + - col2 * - col1 AS col2 FROM tab0
----
1
63
21
-546
81
891

query I rowsort
SELECT col2 * + 4 FROM tab2
----
160
232
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT + CAST( + + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7492
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7493
SELECT col1 DIV + ( + CAST( - 92 AS SIGNED ) ) AS col2 FROM tab1
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL MIN ( + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT col1 * + + ( 30 ) FROM tab2
----
1530
2010
2310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + - - col2 + - ( - - col2 ) col0 FROM tab1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT DISTINCT - COUNT( * ) - - + 46 DIV + 73 AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - COUNT ( * ) - - + 46 / + 73 AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + + 21 * + col0 AS col2 FROM tab2 AS cor0
----
1304
1517
943

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT - + 92 DIV + + MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7502
SELECT - + 92 / + + MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - col0 + - 28 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT + 99 col1, + COUNT( * ) FROM tab2
----
99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7504
SELECT + 99 col1, + COUNT ( * ) FROM tab2
----
99
3

query II rowsort
SELECT + col1, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT col0 * + + 66 DIV - - 22 AS col1 FROM tab2
----
138
192
225

skipif mysql # not compatible
query I rowsort label-7506
SELECT col0 * + + 66 / - - 22 AS col1 FROM tab2
----
138
192
225

query I rowsort
SELECT DISTINCT - ( + 27 ) FROM tab2
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 81 AS col2 FROM tab0
----
15
81
87
81
97
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT 46, - COUNT( * ) AS col1 FROM tab2 cor0
----
46
-3

skipif mysql # not compatible
query II rowsort label-7509
SELECT 46, - COUNT ( * ) AS col1 FROM tab2 cor0
----
46
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7510
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7511
SELECT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE 92 - col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col2 = NULL
----

query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab1 WHERE NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ( COUNT( * ) ) AS col2 FROM tab0 WHERE NULL = 75
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL = 75
----
0

query I rowsort
SELECT 70 AS col0 FROM tab0 WHERE + col0 <= col0
----
70
70
70

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col2
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + 75 * + 35 <= - col2 - - col2 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT 95 + MIN( DISTINCT 39 ) FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-7521
SELECT 95 + MIN ( DISTINCT 39 ) FROM tab2
----
134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7523
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7523
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * - 11 AS col2 FROM tab1
----
-1056
-649
-748

query I rowsort
SELECT DISTINCT - 82 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT 59 * - COUNT( * ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT 59 * - COUNT ( * ) FROM tab0
----
-177

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN col2 AND ( + 84 )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + col0 col2 FROM tab2
----
112
123
94

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL COUNT( - col0 ) * 87 AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL COUNT ( - col0 ) * 87 AS col1 FROM tab0
----
261

query I rowsort
SELECT - col0 * + 44 AS col0 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT + 38 * + 8 FROM tab2
----
304
304
304

query I rowsort
SELECT + ( + col0 ) * col1 + + ( 4 + 18 ) AS col1 FROM tab2
----
2368
4950
5047

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - 11 / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7536
SELECT ALL * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) * - ( 9 ) + 22 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7536
SELECT ALL * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) * - ( 9 ) + 22 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 66 - col1 ) IS NULL
----

query I rowsort
SELECT col1 * 99 AS col1 FROM tab0
----
2079
8019
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NOT + col1 / + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7539
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NOT + col1 / + col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 26 >= ( - col1 + col2 )
----
15
81
47

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT 74 + COUNT( DISTINCT 61 - col0 * col0 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-7542
SELECT 74 + COUNT ( DISTINCT 61 - col0 * col0 ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + SUM( col2 ) + - 45 AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + SUM ( col2 ) + - 45 AS col1 FROM tab2
----
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / 18 ) IN ( + 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7545
SELECT ALL * FROM tab1 cor0 WHERE 23 - + col1 BETWEEN ( - 36 ) AND - CAST( NULL AS SIGNED ) / - col1
----

skipif mysql # not compatible
query III rowsort label-7545
SELECT ALL * FROM tab1 cor0 WHERE 23 - + col1 BETWEEN ( - 36 ) AND - CAST ( NULL AS INTEGER ) / - col1
----

query I rowsort
SELECT ALL col2 - - 63 FROM tab0 AS cor0
----
110
162
73

query I rowsort
SELECT - 82 * + 5 AS col2 FROM tab0 AS cor0
----
-410
-410
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT - 72 DIV + col0 AS col2 FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT - 72 / + col0 AS col2 FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
-4
0
0

query I rowsort
SELECT ALL 54 - 11 AS col2 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - 63 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 63 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 6 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 - + col1 ) < - ( - col0 )
----

query I rowsort
SELECT 96 * - col0 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT + col0 * - - 75 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE 50 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT DISTINCT MIN( ALL + CAST( col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT MIN ( ALL + CAST ( col0 AS INTEGER ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + 42 * + COUNT( DISTINCT 88 ) AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + 42 * + COUNT ( DISTINCT 88 ) AS col0 FROM tab2
----
42

query I rowsort
SELECT ( 73 ) * - 42 FROM tab2
----
-3066
-3066
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT - COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 15 * - col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
1215
15
315

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 15 BETWEEN - 18 * + 51 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 87 + - 18 * - 9 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 47 / + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > col2 + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col1 + - col1 ) IS NULL
----

query I rowsort
SELECT + col2 * - col0 + ( col1 ) FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( col2 + + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 72 IS NULL
----

query I rowsort
SELECT col2 * + 87 + - col2 * col1 FROM tab0 AS cor0
----
282
660
8514

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 = NULL
----

query I rowsort
SELECT DISTINCT - 82 + + + col2 FROM tab2 AS cor0
----
-24
-42
-59

query I rowsort
SELECT DISTINCT + col0 * + - 53 - + col0 AS col2 FROM tab1 cor0
----
-2754
-4590
-4914

query I rowsort
SELECT ALL - 5 * + - col0 - + 97 FROM tab2
----
133
223
278

query III rowsort
SELECT * FROM tab0 WHERE - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT MAX( + col0 ) * - 29 AS col2 FROM tab1
----
-2639

skipif mysql # not compatible
query I rowsort label-7576
SELECT MAX ( + col0 ) * - 29 AS col2 FROM tab1
----
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT DISTINCT col2 * 32 - - 0 DIV - col1 AS col2 FROM tab1
----
1888
2176
3072

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT col2 * 32 - - 0 / - col1 AS col2 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT 18 * col1 AS col2 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + 48 * COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + 48 * COUNT ( * ) FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT + col0 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col0 <> ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT - col2 - + 96 * + - col1 FROM tab1
----
1248
421
4444

query I rowsort
SELECT + ( - + 21 ) - + ( + col0 ) AS col1 FROM tab2
----
-67
-85
-96

query I rowsort
SELECT - col2 * 99 - col1 AS col0 FROM tab0
----
-1011
-4734
-9802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 - col1 col2 FROM tab1
----
13
46
55

query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) < 26 - - col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT col0 + + 9 + - - col1 DIV col1 col2 FROM tab2 AS cor0
----
56
74
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7588
SELECT DISTINCT col0 + + 9 + - - col1 / col1 col2 FROM tab2 AS cor0
----
56
74
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - SUM( - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - SUM ( - col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col0 / col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT col2 + col0 * - col1 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 47 <= - - col1 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7595
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7596
SELECT - CAST( - + col1 AS SIGNED ) DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT - CAST ( - + col1 AS INTEGER ) / - + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7598
SELECT + col2 / + ( - col0 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT + col2 / + ( - col0 ) * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN ( - col0 - + + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7600
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7600
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT ( - + 86 ) AS col2 FROM tab1
----
-86
-86
-86

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 29 * + + 79 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col0, - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT SUM( ALL + 70 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-7604
SELECT SUM ( ALL + 70 ) FROM tab1
----
210

query II rowsort
SELECT col1, ( col1 ) + - 40 AS col0 FROM tab2
----
51
11
67
27
77
37

query I rowsort
SELECT 37 AS col2 FROM tab0 WHERE NOT + col0 + col2 + - + col0 - col2 IS NULL
----
37
37
37

query II rowsort
SELECT ALL col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL COUNT( * ) FROM tab1 WHERE ( - col1 ) >= col0 * + CAST( NULL AS SIGNED ) * 91
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( - col1 ) >= col0 * + CAST ( NULL AS INTEGER ) * 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT ALL - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 * - 33 FROM tab2
----
1518
2112
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT + 81 + col0 + + + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 81 + col0 + + + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 13 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT DISTINCT - - ( col0 ) + + col2 DIV col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - - ( col0 ) + + col2 / col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - MIN( + + 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7614
SELECT - MIN ( + + 38 ) FROM tab0 AS cor0
----
-38

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + MIN( - col1 ) - - SUM( DISTINCT + - 65 ) FROM tab1 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + MIN ( - col1 ) - - SUM ( DISTINCT + - 65 ) FROM tab1 AS cor0
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT DISTINCT - - col0 + + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - - col0 + + col2 / - col1 AS col0 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * - - col2 * + col1 * col0 FROM tab0 AS cor0
----
1589490
856575
931491

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * - - col2 * + col1 * col0 FROM tab0 AS cor0
----
1589490
856575
931491

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
45

query I rowsort
SELECT - col1 + + - 68 FROM tab1 AS cor0
----
-115
-73
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT - CAST( - col1 AS SIGNED ) FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7621
SELECT - CAST ( - col1 AS INTEGER ) FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL col2 - - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL col2 - - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT + col2 DIV + col0 AS col0 FROM tab0 WHERE ( - ( + - 4 ) ) NOT BETWEEN 38 AND col0 * + col1 + - col0 * col2 + 27
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7623
SELECT + col2 / + col0 AS col0 FROM tab0 WHERE ( - ( + - 4 ) ) NOT BETWEEN 38 AND col0 * + col1 + - col0 * col2 + 27
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( - + 50 ) FROM tab0 WHERE NOT - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( - + 50 ) FROM tab0 WHERE NOT - - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT + 42 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT + 42 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT - MAX( - - 81 ) DIV - ( COUNT( * ) ) + - 52 AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7626
SELECT - MAX ( - - 81 ) / - ( COUNT ( * ) ) + - 52 AS col1 FROM tab1
----
-25

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( + ( col2 ) ) IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT col1, col2 * 9 * col0 FROM tab0
----
1
86427
21
7830
81
6345

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL MAX( ( - - 52 ) ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL MAX ( ( - - 52 ) ) FROM tab2
----
52

query I rowsort
SELECT DISTINCT - col0 + - col2 * - + ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-295970
-420875
-470067

query I rowsort
SELECT 99 * + col2 * - - col1 FROM tab1 cor0
----
133056
29205
316404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT - CAST( - + col0 AS SIGNED ) - col2 + 39 AS col2 FROM tab2 cor0
----
56
62
63

skipif mysql # not compatible
query I rowsort label-7632
SELECT - CAST ( - + col0 AS INTEGER ) - col2 + 39 AS col2 FROM tab2 cor0
----
56
62
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL 58 + + - COUNT( * ) + - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL 58 + + - COUNT ( * ) + - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + + 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT - col2 DIV 77 * - col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - col2 / 77 * - col1 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7637
SELECT - - COUNT( * ) + + 25 FROM tab2 WHERE NOT - + CAST( NULL AS DECIMAL ) + + col2 + + 10 * - col1 + - ( + col0 ) IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-7637
SELECT - - COUNT ( * ) + + 25 FROM tab2 WHERE NOT - + CAST ( NULL AS REAL ) + + col2 + + 10 * - col1 + - ( + col0 ) IS NOT NULL
----
28

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0, tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - COUNT( ( col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7639
SELECT - COUNT ( ( col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7640
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 45 + CAST( + - col1 AS SIGNED ) ) IN ( + col2, col0 )
----

skipif mysql # not compatible
query III rowsort label-7640
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 45 + CAST ( + - col1 AS INTEGER ) ) IN ( + col2, col0 )
----

query I rowsort
SELECT ALL - ( + - 7 ) AS col0 FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + 28 BETWEEN ( col1 ) AND - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL - - MAX( col1 ) * - SUM( ALL 42 ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
17766

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - - MAX ( col1 ) * - SUM ( ALL 42 ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17766

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL MAX( ALL - col2 ) * + 57 AS col1 FROM tab1 AS cor0
----
-3363

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL MAX ( ALL - col2 ) * + 57 AS col1 FROM tab1 AS cor0
----
-3363

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL ( - - ( - col1 ) ) DIV 57 * 53 FROM tab0 cor0
----
-53
0
0

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL ( - - ( - col1 ) ) / 57 * 53 FROM tab0 cor0
----
-53
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT + + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT + + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 1 * + + col1 * - col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7649
SELECT ALL + + CAST( + 35 AS SIGNED ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + + CAST ( + 35 AS INTEGER ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + col0 * - col2 - + 22 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV + - col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / + - col2 FROM tab2 cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT + MAX( DISTINCT + + 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + MAX ( DISTINCT + + 62 ) FROM tab2
----
62

query I rowsort
SELECT ALL - 45 AS col0 FROM tab0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT - col1 DIV - 6 AS col2 FROM tab0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-7654
SELECT - col1 / - 6 AS col2 FROM tab0
----
0
13
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + 46 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 47 * - col2 * + + 40 * col1 AS col2 FROM tab2
----
-2205240
-5790400
-7305680

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE + - ( + col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT - 14 + + col0 + 47 AS col0 FROM tab1
----
118
124
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT DISTINCT col1 - - col1 * - col2 FROM tab2 WHERE ( - 41 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT col1 - - col1 * - col2 FROM tab2 WHERE ( - 41 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT - 93 - + CAST( NULL AS SIGNED ) + - - 86 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 93 - + CAST ( NULL AS INTEGER ) + - - 86 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - - 58 + - MAX( DISTINCT - + col2 ) AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - - 58 + - MAX ( DISTINCT - + col2 ) AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT + ( 77 ) * + col2 - - col2 * col1 + + + col0 - - col2 * + col0 - - - col1 FROM tab2
----
12710
3997
8707

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ( COUNT( * ) ) + 19 AS col0 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7664
SELECT ( COUNT ( * ) ) + 19 AS col0 FROM tab0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - + 95 col2 FROM tab1 WHERE - 93 <= 12 * - col1 OR 41 IS NULL
----
36

query I rowsort
SELECT + + col0 * + 49 AS col2 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT COUNT( * ) + 2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-7667
SELECT COUNT ( * ) + 2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
2

query I rowsort
SELECT DISTINCT - 97 + - 81 + - col2 FROM tab1 AS cor0
----
-237
-246
-274

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT COUNT( * ) + - 34 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT COUNT ( * ) + - 34 FROM tab0 cor0
----
-31

query I rowsort
SELECT ALL - 58 + + - col2 FROM tab2 AS cor0
----
-116
-81
-98

query I rowsort
SELECT DISTINCT - - col0 * + - col2 - + ( ( - 26 ) ) AS col2 FROM tab2 AS cor0
----
-1032
-2534
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ( COUNT( DISTINCT + 48 ) ) - - 15 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
15

skipif mysql # not compatible
query I rowsort label-7672
SELECT ( COUNT ( DISTINCT + 48 ) ) - - 15 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7673
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT - 2 / + 65 * - col1 + - + ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 2 / + 65 * - col1 + - + ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 6 FROM tab0 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 5 * - ( + col0 ) - - + col1 AS col2 FROM tab0
----
156
456
486

query I rowsort
SELECT ALL - 76 * + 78 - + - 36 FROM tab2
----
-5892
-5892
-5892

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 84 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL COUNT( * ) * MAX( 55 ) FROM tab1 cor0
----
165

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL COUNT ( * ) * MAX ( 55 ) FROM tab1 cor0
----
165

query I rowsort
SELECT - col2 * - col0 + - 17 * + 91 FROM tab2 AS cor0
----
-489
1013
2803

query II rowsort
SELECT DISTINCT col2, + 3 FROM tab0
----
10
3
47
3
99
3

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT + 25, col0 FROM tab0 AS cor0 WHERE NOT ( + col0 + - 84 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL - ( + 42 ) * COUNT( DISTINCT col0 ) FROM tab0 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - ( + 42 ) * COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + + COUNT( DISTINCT ( - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + + COUNT ( DISTINCT ( - col2 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT col0 * - 75 / + col0 - - col2 + 89 - - - 51 * ( - - col2 ) + col0 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT col0 * - 75 / + col0 - - col2 + 89 - - - 51 * ( - - col2 ) + col0 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL + col0 DIV - - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + col0 / - - col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - col2 + + - col1 + - + col0 + + 82 / col2 + + 86 > + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL + 44 DIV - 11 + + + col0 AS col1 FROM tab1 AS cor0
----
47
81
87

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + 44 / - 11 + + + col0 AS col1 FROM tab1 AS cor0
----
47
81
87

query I rowsort
SELECT + col2 * + 56 - - 63 AS col1 FROM tab0 AS cor0
----
2695
5607
623

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 - - + col2 - + 22 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 9 + + + 89 FROM tab1
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT CAST( NULL AS SIGNED ) + + COUNT( - + col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( - + col2 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7699
SELECT DISTINCT 93 * - CAST( NULL AS DECIMAL ) + + + col1 * - col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT 93 * - CAST ( NULL AS REAL ) + + + col1 * - col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT + - COUNT( * ) * 33 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7700
SELECT DISTINCT + - COUNT ( * ) * 33 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - 92 + - - COUNT( * ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 92 + - - COUNT ( * ) FROM tab0 AS cor0
----
-89

query I rowsort
SELECT - + col2 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + COUNT( * ) + 25 AS col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7703
SELECT + COUNT ( * ) + 25 AS col1 FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL + + col1 + 67 AS col1 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7705
SELECT DISTINCT + 60 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + 60 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 62 FROM tab0 AS cor0
----
-41
-61
19

query I rowsort
SELECT + col0 * col2 + + col1 AS col2 FROM tab0 cor0
----
786
891
9604

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT MAX( DISTINCT col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + + col0
----

query I rowsort
SELECT ALL + col2 - + col1 + 56 FROM tab1
----
110
138
77

query I rowsort
SELECT - 97 * + + 16 AS col0 FROM tab0
----
-1552
-1552
-1552

query I rowsort
SELECT - - 70 * col1 AS col0 FROM tab0 cor0
----
1470
5670
70

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

query I rowsort
SELECT - ( + - 99 ) FROM tab2
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7716
SELECT * FROM tab0 WHERE NOT NULL < CAST( 39 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7716
SELECT * FROM tab0 WHERE NOT NULL < CAST ( 39 AS INTEGER )
----

query I rowsort
SELECT 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 9 ) col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL + + 3 * + MAX( DISTINCT 1 ) * - SUM( 79 ) * - SUM( + col2 ) FROM tab2 AS cor0
----
86031

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + + 3 * + MAX ( DISTINCT 1 ) * - SUM ( 79 ) * - SUM ( + col2 ) FROM tab2 AS cor0
----
86031

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 76 col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT ALL + 11 AS col1 FROM tab1
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT SUM( col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT SUM ( col2 ) col1 FROM tab0
----
156

query II rowsort
SELECT 60 AS col1, - 43 AS col2 FROM tab1
----
60
-43
60
-43
60
-43

query III rowsort
SELECT * FROM tab0 WHERE ( ( - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + + col1 * - - col2 + + ( + + col1 ) FROM tab0 AS cor0
----
-308286
-4389
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 70 + + + ( - + col0 ) FROM tab0 AS cor0
----
-1
-27
-21
-17
-81
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - 80 + + - col2 AS col2 FROM tab1
----
-125
-54
-57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 69 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT - 74 + + CAST( - COUNT( * ) AS SIGNED ) + + - SUM( DISTINCT col2 ) AS col0 FROM tab0
----
-233

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 74 + + CAST ( - COUNT ( * ) AS INTEGER ) + + - SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
-233

query I rowsort
SELECT + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * - - ( 19 ) + + - 54 - - 77 col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7736
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * - - ( 19 ) + + - 54 - - 77 col2 FROM tab1 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT DISTINCT col0 DIV + 42 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT col0 / + 42 FROM tab1 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT - col2 DIV - col0 - + - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7738
SELECT - col2 / - col0 - + - col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT 54 - - 87 DIV - col0 AS col1 FROM tab1 AS cor0
----
53
54

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT 54 - - 87 / - col0 AS col1 FROM tab1 AS cor0
----
53
54

query I rowsort
SELECT DISTINCT col1 - - - col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * + col2 < NULL )
----

query I rowsort
SELECT - + col2 + - 58 FROM tab2 AS cor0 WHERE 39 < NULL
----

query I rowsort
SELECT ALL - 19 + - col2 * + - col2 FROM tab1 cor0
----
3462
4605
9197

query I rowsort
SELECT + col1 - + ( - col2 ) AS col1 FROM tab1 cor0
----
110
115
64

query II rowsort
SELECT col1 AS col0, col2 * col0 AS col1 FROM tab0
----
1
9603
21
870
81
705

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL - MIN( ALL - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - MIN ( ALL - col1 ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7748
SELECT * FROM tab1 WHERE NOT ( - col2 * - 38 - + col2 ) NOT IN ( ( - CAST( NULL AS SIGNED ) ), - col0, col0, - col2 + + 86 * - 51 * - 77 / + 38 - - + ( - - 47 ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-7748
SELECT * FROM tab1 WHERE NOT ( - col2 * - 38 - + col2 ) NOT IN ( ( - CAST ( NULL AS INTEGER ) ), - col0, col0, - col2 + + 86 * - 51 * - 77 / + 38 - - + ( - - 47 ) + + col2 )
----

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab0 WHERE NOT ( + - col0 * 98 - + - 32 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * - + col0 * - col2 IN ( - + ( - + 27 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT 29 DIV + col1 FROM tab0 AS cor0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-7752
SELECT 29 / + col1 FROM tab0 AS cor0
----
0
1
29

query II rowsort
SELECT + + col0 AS col1, 41 AS col0 FROM tab0 AS cor0
----
15
41
87
41
97
41

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( - 63, - 83 )
----

query I rowsort
SELECT - 62 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab2 WHERE NOT - 83 IS NOT NULL
----

query I rowsort
SELECT ALL 7 * - - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT + MIN( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + MIN ( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT COUNT( * ) col1, 18 * - + 15 AS col2 FROM tab2 AS cor0
----
3
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7759
SELECT COUNT ( * ) col1, 18 * - + 15 AS col2 FROM tab2 AS cor0
----
3
-270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 88 BETWEEN - col2 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT MAX( DISTINCT - col0 ) + 49 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7761
SELECT MAX ( DISTINCT - col0 ) + 49 AS col0 FROM tab1
----
-2

query I rowsort
SELECT + col1 + - col0 * - ( - 54 ) FROM tab0
----
-4677
-5237
-729

query I rowsort
SELECT ALL + col1 * + 27 FROM tab0
----
2187
27
567

query I rowsort
SELECT ALL ( + 17 ) + - + 27 - + - col1 FROM tab2
----
41
57
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT DISTINCT - col0 DIV col1 * - 3 DIV + - col1 AS col1 FROM tab0
----
-291
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT - col0 / col1 * - 3 / + - col1 AS col1 FROM tab0
----
-291
0

query II rowsort
SELECT ALL - - col0 + - - 40 * + - 70, col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-2709
68
-2715
59
-2749
96

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7768
SELECT ALL ( - + col2 ) DIV + - CAST( + col2 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL ( - + col2 ) / + - CAST ( + col2 AS INTEGER ) FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 + ( - 17 ) + + col1 AS col2 FROM tab1 WHERE - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 AS cor0 WHERE - col1 * + + 59 <= NULL
----

query I rowsort
SELECT ALL 77 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT MIN( ALL - ( + - col0 ) ) - - COUNT( * ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-7772
SELECT MIN ( ALL - ( + - col0 ) ) - - COUNT ( * ) AS col2 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + 91 + + 38 + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-7773
SELECT + 91 + + 38 + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 28 * + + 21 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - 75 + + - 75 * + col0, - col0 AS col0 FROM tab2 AS cor0
----
-3375
-46
-4725
-64
-5550
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab0 cor0 WHERE - col1 - + CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab0 cor0 WHERE - col1 - + CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 - - col0 AS col0 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT + ( + 7 ) AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT ALL + 12 DIV - + 94 * - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 12 / - + 94 * - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col0 col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT DISTINCT + col0 DIV + 85 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + col0 / + 85 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + - - 67 / + col2 <> NULL
----

query I rowsort
SELECT - + col1 + + - col0 AS col0 FROM tab1 WHERE NOT - col0 * + col0 IS NULL
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT + MIN( + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + MIN ( + col0 ) AS col1 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * - col2 * + col1 col1 FROM tab2
----
103224
271040
341968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col2 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT + 67 * - col1 AS col1 FROM tab1 AS cor0
----
-3149
-335
-938

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col1 * + 74 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 87 AS col0, - 71 AS col0 FROM tab2 cor0
----
87
-71

query I rowsort
SELECT ALL - ( + col2 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + + col1 col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT ALL + col1 * col1 / - col2 * - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + col1 * col1 / - col2 * - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 68 + col0 / + - col2, 14, + ( - + 85 ) / - 57 * col0 * - col1 + col0 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 * - 35 * 32 AS col2 FROM tab0
----
-1120
-493920
-7348320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7797
SELECT ALL 81 * col1 / - 94 / CAST( NULL AS SIGNED ) AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL 81 * col1 / - 94 / CAST ( NULL AS INTEGER ) AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * - col2 col0 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT 37 * 31 FROM tab0
----
1147
1147
1147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT - SUM( DISTINCT - - col0 ) * + CAST( 80 AS SIGNED ) * + CAST( MAX( - 70 ) AS SIGNED ) FROM tab1
----
1271200

skipif mysql # not compatible
query I rowsort label-7800
SELECT - SUM ( DISTINCT - - col0 ) * + CAST ( 80 AS INTEGER ) * + CAST ( MAX ( - 70 ) AS INTEGER ) FROM tab1
----
1271200

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + MIN( DISTINCT + + 91 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7801
SELECT + MIN ( DISTINCT + + 91 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL - MAX( DISTINCT 82 ) col1 FROM tab0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7802
SELECT ALL - MAX ( DISTINCT 82 ) col1 FROM tab0
----
-82

query I rowsort
SELECT + 58 - col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 28 - - - col1 + - + col0 AS col0 FROM tab2
----
-113
-114
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL + + CAST( - 81 AS SIGNED ) FROM tab2 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + + CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + - COUNT( * ) + ( 25 ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7806
SELECT + - COUNT ( * ) + ( 25 ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 53 + + + 79 AS col2 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7808
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab2, tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + COUNT( * ) * 34 AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7810
SELECT + COUNT ( * ) * 34 AS col2 FROM tab1 AS cor0
----
102

query I rowsort
SELECT DISTINCT + 94 * - ( col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
-5461
-6301
-8973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 43 ) col0 FROM tab2 AS cor0
----
43
43
43

query II rowsort
SELECT DISTINCT + + col2 * - col0, col0 AS col1 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + MIN( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7814
SELECT + MIN ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL - col1 DIV - + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - col1 / - + col1 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT + 33 DIV + + col1 AS col2 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7816
SELECT + 33 / + + col1 AS col2 FROM tab1
----
0
2
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT DISTINCT COUNT( * ) col0, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7817
SELECT DISTINCT COUNT ( * ) col0, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - MIN( DISTINCT - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7818
SELECT - MIN ( DISTINCT - col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT - 39, + ( - COUNT( * ) ) AS col2 FROM tab2
----
-39
-3

skipif mysql # not compatible
query II rowsort label-7819
SELECT - 39, + ( - COUNT ( * ) ) AS col2 FROM tab2
----
-39
-3

query II rowsort
SELECT ALL 50 AS col2, 30 FROM tab1
----
50
30
50
30
50
30

query I rowsort
SELECT + + col0 * - + col0 * - + 99 FROM tab0 cor0
----
22275
749331
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - 10 ) - CAST( col2 AS SIGNED ) / + 30 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-7822
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - 10 ) - CAST ( col2 AS INTEGER ) / + 30 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7823
SELECT - col0 AS col1, col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7823
SELECT - col0 AS col1, col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7824
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( - 4 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7824
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( - 4 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT + 41 * - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + 41 * - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * + - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col1 FROM tab1
----
-95
-95
-95

query II rowsort
SELECT ALL + col1 + + col2 - + + 41 + - - 40, 78 AS col0 FROM tab2
----
116
78
124
78
73
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7829
SELECT - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col2 * + col1 + col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 16 * - + 91 )
----

query I rowsort
SELECT - col0 + + col0 * + ( 28 ) * + col0 FROM tab1 cor0
----
202215
231777
72777

query I rowsort
SELECT DISTINCT 82 + + col1 + + + ( - 20 ) * - col1 AS col2 FROM tab1 AS cor0
----
1069
187
376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7833
SELECT + + 71 + CAST( NULL AS SIGNED ) AS col1, + 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
query II rowsort label-7833
SELECT + + 71 + CAST ( NULL AS INTEGER ) AS col1, + 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

query I rowsort
SELECT - col1 * 81 + - + 68 + - 37 AS col1 FROM tab0 AS cor0
----
-1806
-186
-6666

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7835
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col1 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL 77 * + COUNT( * ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL 77 * + COUNT ( * ) FROM tab0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL 4 + ( - + COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL 4 + ( - + COUNT ( * ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL + SUM( ALL + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + SUM ( ALL + + col2 ) AS col1 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7839
SELECT - col2 DIV + 53 AS col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT - col2 / + 53 AS col1 FROM tab2 cor0
----
-1
0
0

query II rowsort
SELECT col0 AS col1, 22 AS col0 FROM tab1 AS cor0
----
51
22
85
22
91
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col0 * - 11 * - col2 * 74 col1 FROM tab1 AS cor0
----
-3985358
-4082215
-5037079

query I rowsort
SELECT DISTINCT - 57 + - 76 AS col0 FROM tab0 AS cor0
----
-133

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col1 = + - 10 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT - + 66 * - + col0 AS col0 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT DISTINCT + col2 * + - 60 + - 74 + - - col2 + + - 40 * - - 88 + - + col1 AS col1 FROM tab1 AS cor0
----
-7080
-7653
-9272

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT SUM( + - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT SUM ( + - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - 78 * col0 FROM tab0 AS cor0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL COUNT( * ) * - 36 AS col2 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( * ) * - 36 AS col2 FROM tab0 AS cor0
----
-108

query II rowsort
SELECT + col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT MIN( - + 82 ) * COUNT( * ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT MIN ( - + 82 ) * COUNT ( * ) FROM tab2 AS cor0
----
-246

query II rowsort
SELECT ALL col0 AS col0, + 29 AS col0 FROM tab1 AS cor0
----
51
29
85
29
91
29

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT ALL + ( + col0 ), - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7858
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col1 + col0 AS col0, col0 * - - col1 + - + col0 FROM tab0 WHERE col2 > + + 6
----
NULL
0
NULL
1200
NULL
1740

skipif mysql # not compatible
query II rowsort label-7858
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col1 + col0 AS col0, col0 * - - col1 + - + col0 FROM tab0 WHERE col2 > + + 6
----
NULL
0
NULL
1200
NULL
1740

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT + ( - CAST( + 37 AS SIGNED ) ) FROM tab0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-7860
SELECT + ( - CAST ( + 37 AS INTEGER ) ) FROM tab0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 12 ) + + + 86 col1 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL - 52 + 45 * - COUNT( * ) FROM tab1 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - 52 + 45 * - COUNT ( * ) FROM tab1 AS cor0
----
-187

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + 85
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - 86 * col0 * 62 / + + col1 <> - + col1
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE + 69 + + 60 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col0, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT 22 + - CAST( NULL AS SIGNED ) / - col1 - - CAST( CAST( + + 74 AS SIGNED ) AS SIGNED ) + - + 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT 22 + - CAST ( NULL AS INTEGER ) / - col1 - - CAST ( CAST ( + + 74 AS INTEGER ) AS INTEGER ) + - + 88 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7870
SELECT + + 62 + col2 * 97 DIV + col0, col2 col0 FROM tab0 cor0
----
161
99
365
47
73
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7870
SELECT + + 62 + col2 * 97 / + col0, col2 col0 FROM tab0 cor0
----
161
99
365
47
73
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT + COUNT( * ) + + ( 71 ) * - + 69 FROM tab0 AS cor0
----
-4896

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + COUNT ( * ) + + ( 71 ) * - + 69 FROM tab0 AS cor0
----
-4896

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( col0 / + ( - col0 ) )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE col1 / - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7875
SELECT - + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT ALL - - 26 * - - MAX( DISTINCT + - col0 ) AS col0, + 36 AS col0 FROM tab2 AS cor0
----
-1196
36

skipif mysql # not compatible
query II rowsort label-7876
SELECT ALL - - 26 * - - MAX ( DISTINCT + - col0 ) AS col0, + 36 AS col0 FROM tab2 AS cor0
----
-1196
36

query II rowsort
SELECT ALL col1 - col0 - + 83 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-149
10
-17
47
-179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT - ( - + 81 ) - - COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT - ( - + 81 ) - - COUNT ( * ) AS col0 FROM tab2
----
84

query I rowsort
SELECT col1 + + - 1 * + + col1 / 18 FROM tab2 WHERE 33 * + col1 IS NULL
----

query I rowsort
SELECT 52 * + col1 AS col0 FROM tab0
----
1092
4212
52

query I rowsort
SELECT DISTINCT 56 - - 20 FROM tab2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT + CAST( NULL AS SIGNED ) - - ( - - col0 ) - + col1 + + col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7882
SELECT + CAST ( NULL AS INTEGER ) - - ( - - col0 ) - + col1 + + col0 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7883
SELECT - CAST( col2 AS SIGNED ) DIV + col2 - 32 - - - 32 AS col0 FROM tab2
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-7883
SELECT - CAST ( col2 AS INTEGER ) / + col2 - 32 - - - 32 AS col0 FROM tab2
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT MIN( DISTINCT - 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT MIN ( DISTINCT - 20 ) FROM tab2
----
-20

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 9 + 83 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL - 87 AS col2, + ( - 33 ) FROM tab0
----
-87
-33
-87
-33
-87
-33

query I rowsort
SELECT DISTINCT + 28 * + 6 FROM tab1
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7890
SELECT ALL * FROM tab1 WHERE + + CAST( 85 AS SIGNED ) * - col1 + + - 37 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7890
SELECT ALL * FROM tab1 WHERE + + CAST ( 85 AS INTEGER ) * - col1 + + - 37 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7891
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 col0 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - col1 * - - 96 * + 15 * + col1 FROM tab1 AS cor0
----
-282240
-3180960
-36000

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + - COUNT( * ) * 89 AS col0 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-7895
SELECT + - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT - 94 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-94
3

skipif mysql # not compatible
query II rowsort label-7896
SELECT - 94 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-94
3

query II rowsort
SELECT DISTINCT + col0, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7898
SELECT COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - ( - col1 ) col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7900
SELECT ALL col1 + ( - - ( CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL col1 + ( - - ( CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT - 16 + - ( + COUNT( * ) ) + + MIN( + - 57 ) AS col2 FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7901
SELECT - 16 + - ( + COUNT ( * ) ) + + MIN ( + - 57 ) AS col2 FROM tab2 cor0
----
-76

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 28 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col2 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7904
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col2, col0 col2 FROM tab1
----
3481
85
4624
91
9216
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT - + ( - 83 ) DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7907
SELECT - + ( - 83 ) / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT col2 * col1 * col0 - - - col2 FROM tab1
----
25016
290768
68448

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + 61 + - COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7909
SELECT + 61 + - COUNT ( * ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( ( NOT - - col0 < NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT + COUNT( * ) FROM tab2 cor0 WHERE - ( - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7911
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE - ( - col0 ) IS NOT NULL
----
3

query II rowsort
SELECT ALL col2 + 16, col1 AS col2 FROM tab1 AS cor0
----
112
14
75
5
84
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + COUNT( * ) + COUNT( - col2 ) * COUNT( + 20 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7913
SELECT + COUNT ( * ) + COUNT ( - col2 ) * COUNT ( + 20 ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT + col2 + - col2 DIV + 45 + - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-1169
-1817
0

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + col2 + - col2 / + 45 + - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-1169
-1817
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT COUNT( * ) * - ( - 90 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
270

skipif mysql # not compatible
query I rowsort label-7916
SELECT COUNT ( * ) * - ( - 90 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
270

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 52 - + col0 >= + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 52 >= + col1 + - ( 27 ) + col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT SUM( + col0 ) AS col0 FROM tab2 WHERE NULL > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT SUM ( + col0 ) AS col0 FROM tab2 WHERE NULL > - col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - 31 * 41 NOT BETWEEN - col0 * + col2 * + + 60 * + col2 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 AS col1, - 11 * + ( + 14 ) * + + 13 AS col2 FROM tab1
----
-51
-2002
-85
-2002
-91
-2002

query I rowsort
SELECT ( - - col1 ) * - col2 + + 18 FROM tab1
----
-1326
-277
-3178

query I rowsort
SELECT 70 * - col2 AS col2 FROM tab2
----
-1610
-2800
-4060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7925
SELECT + 97 AS col1, + SUM( 92 ) DIV - COUNT( * ) + + SUM( ALL + + ( - col2 ) ) FROM tab2
----
97
-213

skipif mysql # not compatible
query II rowsort label-7925
SELECT + 97 AS col1, + SUM ( 92 ) / - COUNT ( * ) + + SUM ( ALL + + ( - col2 ) ) FROM tab2
----
97
-213

query I rowsort
SELECT DISTINCT + 59 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT col1 * + ( + + 67 ) - + col0 FROM tab0 AS cor0
----
-30
1320
5412

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 BETWEEN + - col2 AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN ( - 28 * 78 + - col0 ) AND NULL
----

query I rowsort
SELECT + 55 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT + + 39 * col0 FROM tab1 AS cor0
----
1989
3315
3549

query I rowsort
SELECT - - 27 * - + col1 * + ( - - col1 ) FROM tab2 AS cor0
----
-121203
-160083
-70227

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <> - 71
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 22 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 43 * + col0 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 9 <> NULL
----

query I rowsort
SELECT ALL - 44 * + 56 FROM tab1
----
-2464
-2464
-2464

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT DISTINCT - CAST( 53 AS SIGNED ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - CAST ( 53 AS INTEGER ) FROM tab0
----
-53

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + + ( col1 ) - + col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + ( + 69 ) + - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7942
SELECT + ( + 69 ) + - COUNT ( * ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT - + COUNT( * ) + + 2 - - + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7943
SELECT - + COUNT ( * ) + + 2 - - + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 66 + 26 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 66 + 26 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT DISTINCT 46 DIV - 65 FROM tab1 AS cor0 WHERE NOT 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT 46 / - 65 FROM tab1 AS cor0 WHERE NOT 27 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + - 6 col0 FROM tab1 AS cor0
----
4890
5009
6182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 55 - 25 AS col2 FROM tab2 AS cor0
----
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 + - col2 NOT BETWEEN col1 / - - ( - - col1 ) + - - col0 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 40 ) - - col0 col1 FROM tab2
----
104
115
86

query I rowsort
SELECT + col0 * - col1 - col0 AS col1 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT - col0 - - - 32 + - + col0 + col1 FROM tab0
----
-185
-225
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT - col1 + col1 * col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 * - 53 FROM tab0
----
-117077
-519453
-5300

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + + 88 * - col0 BETWEEN NULL AND - 8 * - col2 ) )
----

query I rowsort
SELECT DISTINCT ( - 91 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT + MAX( DISTINCT - - 9 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7959
SELECT + MAX ( DISTINCT - - 9 ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT - ( + COUNT( * ) ) DIV 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT - ( + COUNT ( * ) ) / 80 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 + + col1 + + col2 AS col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7962
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - + 80 ) FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 > - 6
----

query II rowsort
SELECT 51 + + 14 + + - 85 + 32, col1 AS col1 FROM tab0
----
12
1
12
21
12
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7967
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * col0 + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7967
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * col0 + col2 >= NULL
----

query I rowsort
SELECT ALL - col2 + col1 + + col2 AS col0 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT DISTINCT - col2 + - + 88 + + 35 + - col1 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col2 + - + 88 + + 35 + - col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + COUNT( * ) + 13 AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7971
SELECT + COUNT ( * ) + 13 AS col0 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT SUM( ALL + - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7972
SELECT SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - 21 - - - col0 AS col1 FROM tab0 AS cor0
----
-108
-118
-36

query I rowsort
SELECT DISTINCT - col0 + + - 34 FROM tab0 AS cor0
----
-121
-131
-49

query I rowsort
SELECT + + 45 + + col0 AS col0 FROM tab2 AS cor0
----
109
120
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col0 col2 FROM tab0 cor0
----
196
62
97

query II rowsort
SELECT ( + col0 ), - col1 + + col1 / - col2 FROM tab2 cor0 WHERE + 70 BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT - 6 + + 15 DIV 90 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-7978
SELECT - 6 + + 15 / 90 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - 18 * 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL - COUNT( * ) * + COUNT( * ) + - + 65 AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - + 65 AS col1 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 8 ) + + col0 FROM tab1 cor0
----
59
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - COUNT( ALL - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - COUNT ( ALL - col0 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT ALL - 51 DIV + 77 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - 51 / + 77 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + 93 * - COUNT( * ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 93 * - COUNT ( * ) AS col1 FROM tab0
----
-279

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( 4 ) * - - col0 AS col1 FROM tab2
----
184
256
300

query I rowsort
SELECT - 91 * + col0 AS col2 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # DIV for integer division: 
query II rowsort label-7989
SELECT DISTINCT - col0 AS col1, col0 DIV + col1 AS col0 FROM tab0
----
-15
0
-87
4
-97
97

skipif mysql # not compatible
query II rowsort label-7989
SELECT DISTINCT - col0 AS col1, col0 / + col1 AS col0 FROM tab0
----
-15
0
-87
4
-97
97

query I rowsort
SELECT ALL - 94 * - col0 AS col0 FROM tab1
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + COUNT( * ) * - + 44 AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7991
SELECT + COUNT ( * ) * - + 44 AS col2 FROM tab1
----
-132

query I rowsort
SELECT DISTINCT col2 * + - 19 * + col2 + - + col1 AS col1 FROM tab1 AS cor0
----
-175118
-66144
-87903

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT + COUNT( * ) * - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + COUNT ( * ) * - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT COUNT( * ) * - SUM( col2 ) + 78 FROM tab2 AS cor0 WHERE NOT 0 + + col2 BETWEEN ( + - col1 ) + - - 62 + - 14 AND + - col0 * + + col0
----
-285

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT COUNT ( * ) * - SUM ( col2 ) + 78 FROM tab2 AS cor0 WHERE NOT 0 + + col2 BETWEEN ( + - col1 ) + - - 62 + - 14 AND + - col0 * + + col0
----
-285

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 37 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - MIN( DISTINCT + + 82 ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-7996
SELECT - MIN ( DISTINCT + + 82 ) AS col2 FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT col0 + + CAST( + - col2 AS SIGNED ) + col1 * + + col2 - ( + 70 ) * - 48 AS col1 FROM tab2 AS cor0
----
4556
6464
7263

skipif mysql # not compatible
query I rowsort label-7997
SELECT col0 + + CAST ( + - col2 AS INTEGER ) + col1 * + + col2 - ( + 70 ) * - 48 AS col1 FROM tab2 AS cor0
----
4556
6464
7263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT col2 + + CAST( NULL AS SIGNED ) + + col0 * - + 83 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT col2 + + CAST ( NULL AS INTEGER ) + + col0 * - + 83 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + 20 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 * col0 AND NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - 79 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - 79 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + + CAST( + col2 AS SIGNED ) * - col2 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + + CAST ( + col2 AS INTEGER ) * - col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + - COUNT( + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT + - COUNT ( + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT ALL 58, ( - MIN( DISTINCT + col0 ) ) col2 FROM tab0
----
58
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8003
SELECT ALL 58, ( - MIN ( DISTINCT + col0 ) ) col2 FROM tab0
----
58
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT + COUNT( * ) DIV - 91 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT + COUNT ( * ) / - 91 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT 76 * + MIN( DISTINCT - + col1 ) AS col1 FROM tab0
----
-6156

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 76 * + MIN ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-6156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 93 * + 91 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( + ( + col1 ) ) col1, col1, - - col1 FROM tab0
----
9 values hashing to f4c2d045b47d133f3978384ca1abe7bc

query II rowsort
SELECT col0, col1 * col1 * + col0 FROM tab0
----
15
98415
87
38367
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 62 + - + col2 col1 FROM tab0 AS cor0
----
-37
1292
4975

query I rowsort
SELECT 70 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 86 * ( - 38 ) AS col1 FROM tab1
----
-3268
-3268
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT - MAX( 83 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - MAX ( 83 ) FROM tab2
----
-83

query I rowsort
SELECT ALL + col1 + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 91 >= + col0 * + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + 57 AS col1 FROM tab2 WHERE 91 + + 69 IS NULL
----

query I rowsort
SELECT + ( ( 82 ) ) FROM tab1 WHERE NOT ( 44 + - 56 ) IS NULL
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT col2 DIV 33 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8017
SELECT col2 / 33 AS col1 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + 25 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 65 <= - 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8020
SELECT MIN ( ALL col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT - COUNT( * ) + + 15 AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - COUNT ( * ) + + 15 AS col2 FROM tab1
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - 20 * 94 col0 FROM tab1
----
-1833
-1866
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - ( ( + MIN( - 70 ) ) ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - ( ( + MIN ( - 70 ) ) ) AS col0 FROM tab1
----
70

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN col1 AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( col2 ) - 27 * col2
----

query I rowsort
SELECT - 41 * - col2 + col0 AS col1 FROM tab1
----
2504
2879
3987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT + CAST( - col2 AS SIGNED ) * + 83 + ( ( col0 ) ) AS col1 FROM tab0
----
-3886
-743
-8120

skipif mysql # not compatible
query I rowsort label-8027
SELECT + CAST ( - col2 AS INTEGER ) * + 83 + ( ( col0 ) ) AS col1 FROM tab0
----
-3886
-743
-8120

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + 38 + COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8028
SELECT + 38 + COUNT ( * ) FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + MAX( col2 ) + 60 AS col1 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-8029
SELECT + MAX ( col2 ) + 60 AS col1 FROM tab2
----
118

query III rowsort
SELECT * FROM tab2 WHERE 34 IN ( ( + 34 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 46 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( col1 )
----
-127
-47
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - ( + 96 ) * COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - ( + 96 ) * COUNT ( * ) FROM tab2 AS cor0
----
-288

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab1 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - 38 * SUM( ALL + 21 * - col2 ) col0 FROM tab1 AS cor0
----
177954

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT DISTINCT - 38 * SUM ( ALL + 21 * - col2 ) col0 FROM tab1 AS cor0
----
177954

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + 78 col0 FROM tab0 WHERE NOT ( col0 + - col1 ) < NULL
----

query I rowsort
SELECT - 97 AS col2 FROM tab1 cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - 76 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8040
SELECT - 76 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8042
SELECT + + 15 * + CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT + + 15 * + CAST ( NULL AS REAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 36 * + 82 FROM tab1 AS cor0
----
-2861
-2867
-2901

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - MIN( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - MIN ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - + ( - ( + 66 ) ) * MAX( DISTINCT 71 ) + 78 FROM tab0 AS cor0
----
4764

skipif mysql # not compatible
query I rowsort label-8045
SELECT - + ( - ( + 66 ) ) * MAX ( DISTINCT 71 ) + 78 FROM tab0 AS cor0
----
4764

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 22 * col2 + - 13 FROM tab1 cor0
----
1285
1483
2099

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( + 75 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL + 60 * ( SUM( DISTINCT col0 ) ) * 97 FROM tab2
----
1076700

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + 60 * ( SUM ( DISTINCT col0 ) ) * 97 FROM tab2
----
1076700

query I rowsort
SELECT col2 * col0 * 10 + + 91 AS col0 FROM tab0
----
7141
8791
96121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NULL >= - 21 + + ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR NULL IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL - 39 * + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - 39 * + COUNT ( * ) FROM tab2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT ALL - 33 DIV - col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - 33 / - col1 FROM tab1
----
0
2
6

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 84 - ( 55 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ( col0 ) + - col1 * - ( col0 * + col0 ) AS col0 FROM tab1 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * col2 + + col0 AND + col2
----

skipif mysql # not compatible
query I rowsort label-8058
SELECT ( col0 ) + - col1 * - ( col0 * + col0 ) AS col0 FROM tab1 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * col2 + + col0 AND + col2
----

query I rowsort
SELECT DISTINCT - col2 * - 19 * col0 AS col1 FROM tab2 AS cor0
----
20102
48640
82650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8060
SELECT DISTINCT CAST( 85 AS DECIMAL ) * col1 FROM tab0 cor0 WHERE col0 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT CAST ( 85 AS REAL ) * col1 FROM tab0 cor0 WHERE col0 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 71 + + CAST( + col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 71 + + CAST ( + col1 AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 - col1 FROM tab0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT COUNT( ALL 72 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8063
SELECT COUNT ( ALL 72 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8064
SELECT + 50 DIV - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT + 50 / - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT col0 IN ( - + 25 * + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT col0 IN ( - + 25 * + col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT DISTINCT - 60 AS col1, COUNT( * ) col1 FROM tab0 AS cor0
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8066
SELECT DISTINCT - 60 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0
----
-60
3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col2 )
----
51
67
77

query I rowsort
SELECT ( + 3 ) FROM tab2 AS cor0 WHERE NOT - col0 + col0 IN ( col1 * - col2 )
----
3
3
3

query II rowsort
SELECT - + 41, - col2 AS col1 FROM tab1 AS cor0
----
-41
-59
-41
-68
-41
-96

query I rowsort
SELECT + - 3 * + ( + 74 ) FROM tab0 AS cor0
----
-222
-222
-222

query I rowsort
SELECT - + col1 * - + col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ( - COUNT( - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8072
SELECT ( - COUNT ( - col1 ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL MIN( - col2 ) * + COUNT( + col1 ) AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL MIN ( - col2 ) * + COUNT ( + col1 ) AS col1 FROM tab0
----
-297

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + col0 + 72 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col0 * + + col1 AS col0, - col0 FROM tab2
----
-2346
-46
-4928
-64
-5025
-75

query I rowsort
SELECT ( - + 23 ) AS col2 FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT + SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 92 + - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col2, 34 AS col2 FROM tab1 AS cor0
----
59
34
68
34
96
34

query I rowsort
SELECT DISTINCT + 17 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
17

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) >= + col2 + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2 / + 58 * col1 + col0 )
----

query I rowsort
SELECT ALL + 84 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 53 + - col0 AS col0 FROM tab2 AS cor0
----
-117
-128
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / 9 IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8085
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / 9 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT + COUNT( DISTINCT - col2 ) + 77 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) + 77 FROM tab1 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL - 21 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - 21 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 86 ) <= col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + + 20 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + + 20 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - + col1 * + + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - - 29 AS col0 FROM tab2 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + COUNT( * ) * + + ( 43 ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8092
SELECT + COUNT ( * ) * + + ( 43 ) AS col1 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT - 4 - + + COUNT( * ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-8093
SELECT - 4 - + + COUNT ( * ) AS col0 FROM tab1
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8094
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN col2 * + + CAST( NULL AS DECIMAL ) AND col0 / 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8094
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN col2 * + + CAST ( NULL AS REAL ) AND col0 / 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * 65 FROM tab2 WHERE NOT + - ( + 32 ) + col1 <> ( - + col0 * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 65 FROM tab2 WHERE NOT + - ( + 32 ) + col1 <> ( - + col0 * - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col2 AS col0, - col1 + + col1 col0 FROM tab1
----
-3481
0
-4624
0
-9216
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT - 66 + - - COUNT( + - 84 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - 66 + - - COUNT ( + - 84 ) FROM tab0
----
-63

query I rowsort
SELECT 43 + col1 FROM tab0
----
124
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL - + COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8099
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( - ( + 15 ) ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT - 7 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT - 7 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + ( ( - - MIN( 23 ) ) ) AS col1 FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + ( ( - - MIN ( 23 ) ) ) AS col1 FROM tab0 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT + + col0 DIV col1 + col1 FROM tab2 AS cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8103
SELECT + + col0 / col1 + col1 FROM tab2 AS cor0
----
51
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT + MAX( ALL - 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + MAX ( ALL - 86 ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE - col1 <= col2 + - 58 - + col2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8105
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - col1 <= col2 + - 58 - + col2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + - col1 IN ( col2 - - col0 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT CAST( - 56 AS SIGNED ) FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-8107
SELECT CAST ( - 56 AS INTEGER ) FROM tab1
----
-56
-56
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT ALL COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ), SUM( + col0 ) + - MAX( + - 97 ) AS col0 FROM tab1
----
-9
324

skipif mysql # not compatible
query II rowsort label-8108
SELECT ALL COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ), SUM ( + col0 ) + - MAX ( + - 97 ) AS col0 FROM tab1
----
-9
324

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col1 / + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT 8 DIV ( 34 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT 8 / ( 34 ) FROM tab1
----
0

query I rowsort
SELECT + col0 + - ( col2 ) + - + 4 AS col2 FROM tab2 WHERE NOT + col2 + + col2 IS NOT NULL
----

query II rowsort
SELECT + col1, 84 * + 86 FROM tab0
----
1
7224
21
7224
81
7224

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( 98 * + col2 + + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) - col0 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL + col2 / CAST( + col2 AS SIGNED ) + 25 + 23 / - 48 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col0
----

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + col2 / CAST ( + col2 AS INTEGER ) + 25 + 23 / - 48 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col0
----

query II rowsort
SELECT ALL - - col0, + col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT - col2 * col2 AS col0, col1 AS col1 FROM tab2
----
-1600
77
-3364
67
-529
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT - - CAST( - + SUM( ALL + - col2 ) AS SIGNED ) + + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - - CAST ( - + SUM ( ALL + - col2 ) AS INTEGER ) + + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8119
SELECT + 64 DIV COUNT( * ) + + - 31 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8119
SELECT + 64 / COUNT ( * ) + + - 31 FROM tab2 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( + col2 ) ) * 26 + + col1 + 13 NOT BETWEEN col1 AND + - col2 * ( - col1 ) + - col2
----
15
81
47

query II rowsort
SELECT - + 68 + - - col2 AS col2, - col0 * col0 FROM tab1 AS cor0
----
-9
-7225
0
-8281
28
-2601

query I rowsort
SELECT DISTINCT - ( - - 33 ) - col1 FROM tab0 cor0
----
-114
-34
-54

query I rowsort
SELECT DISTINCT - col1 * - 60 FROM tab2
----
3060
4020
4620

query III rowsort
SELECT * FROM tab0 WHERE + + col1 NOT BETWEEN 60 + + col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - - 1 + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL 68 - + COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL 68 - + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
68

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - + col2 IS NULL
----

query I rowsort
SELECT + 32 * + - 72 FROM tab2
----
-2304
-2304
-2304

query I rowsort
SELECT ALL + col1 + - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + 66 ) * + col2 + - + col2 FROM tab0 cor0
----
3055
6435
650

query I rowsort
SELECT + col1 - - col2 + - 81 AS col1 FROM tab2 AS cor0
----
-7
36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT + - 82 * - MAX( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-3772

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + - 82 * - MAX ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT SUM( ALL + 27 ) col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8133
SELECT SUM ( ALL + 27 ) col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT + 43 * + col1 * - ( 18 ) AS col1 FROM tab0 AS cor0
----
-16254
-62694
-774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) * ( CAST( - - 2 AS SIGNED ) ) * - 8 + 20 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) * ( CAST ( - - 2 AS INTEGER ) ) * - 8 + 20 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8136
SELECT DISTINCT ( + + ( + + CAST( NULL AS SIGNED ) ) ) * - - SUM( ALL + 25 ) AS col0, - ( 19 ) FROM tab1 AS cor0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-8136
SELECT DISTINCT ( + + ( + + CAST ( NULL AS INTEGER ) ) ) * - - SUM ( ALL + 25 ) AS col0, - ( 19 ) FROM tab1 AS cor0
----
NULL
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + 38 * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + 38 * col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col1, - col0 * + 63 AS col1 FROM tab1
----
-14
-3213
-47
-5733
-5
-5355

query I rowsort
SELECT + 39 * - col0 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8140
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 = - 64
----

skipif mysql # not compatible
query III rowsort label-8140
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 = - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT ( + col0 ) * + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT ( + col0 ) * + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col1 ) * + col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - 19 ) col0 FROM tab0 AS cor0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT - - SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - - SUM ( col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + COUNT( * ) * + 10 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8145
SELECT + COUNT ( * ) * + 10 AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT 57 AS col0, MAX( DISTINCT + - 96 ) FROM tab0, tab0 AS cor0
----
57
-96

skipif mysql # not compatible
query II rowsort label-8146
SELECT 57 AS col0, MAX ( DISTINCT + - 96 ) FROM tab0, tab0 AS cor0
----
57
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT - 39 * - 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 94 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT + COUNT( + 51 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + COUNT ( + 51 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT ALL - - 95 DIV + + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - - 95 / + + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
19
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( col2 ) col0 FROM tab0 AS cor0 WHERE - 40 IN ( col0, - col1, 51 )
----
NULL

query I rowsort
SELECT - + col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8153
SELECT ALL 2 AS col1, SUM( DISTINCT col1 ) col2 FROM tab2
----
2
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8153
SELECT ALL 2 AS col1, SUM ( DISTINCT col1 ) col2 FROM tab2
----
2
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - 91 + - COUNT( * ) AS col1 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 91 + - COUNT ( * ) AS col1 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - COUNT( * ) * - + ( + - COUNT( * ) ) + - + 10 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-8155
SELECT - COUNT ( * ) * - + ( + - COUNT ( * ) ) + - + 10 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT COUNT( * ) * + SUM( DISTINCT + col1 ) + 93 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-8156
SELECT COUNT ( * ) * + SUM ( DISTINCT + col1 ) + 93 FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - + COUNT( * ) * - 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
837

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - + COUNT ( * ) * - 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
837

query II rowsort
SELECT DISTINCT + col0 AS col0, 32 FROM tab1 AS cor0
----
51
32
85
32
91
32

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + col2 + - 85 + col1 FROM tab2 AS cor0
----
-11
32
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT + MAX( + 59 ) FROM tab0 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + MAX ( + 59 ) FROM tab0 cor0
----
59

query I rowsort
SELECT - col2 - + - col0 AS col1 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8163
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL - + col2 * - + col1 - 47, - col0 AS col1 FROM tab1 cor0
----
1297
-51
248
-85
3149
-91

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( - - col1, - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 36 + - col2 + + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 77 - - col0 FROM tab2
----
-13
-2
-31

query I rowsort
SELECT - col1 * + 55 AS col0 FROM tab1 AS cor0
----
-2585
-275
-770

query I rowsort
SELECT ALL 39 * + - 89 AS col2 FROM tab0 AS cor0
----
-3471
-3471
-3471

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 39 + - col1 AS col1 FROM tab0 cor0 WHERE NOT - col0 > col2
----
-42
18
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL + - 56 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + - 56 / col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8173
SELECT DISTINCT col2, - 7 DIV + col2 AS col1 FROM tab1 cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8173
SELECT DISTINCT col2, - 7 / + col2 AS col1 FROM tab1 cor0
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT ALL ( 94 ) DIV col1 * - col2 * + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL ( 94 ) / col1 * - col2 * + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + 61 * - col1 + + col2 FROM tab0 AS cor0
----
-1271
-4894
38

query I rowsort
SELECT DISTINCT + ( - - 98 ) FROM tab2
----
98

query I rowsort
SELECT col0 * 95 * - - ( - col0 ) AS col2 FROM tab1
----
-247095
-686375
-786695

query I rowsort
SELECT - col0 + - col0 + - col2 AS col1 FROM tab0
----
-184
-293
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT DISTINCT - - COUNT( * ) col2 FROM tab1 AS cor0 WHERE col0 * + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE col0 * + col2 IS NULL
----
0

query I rowsort
SELECT ALL ( + 90 ) AS col2 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT + CAST( NULL AS SIGNED ) * - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT + CAST ( NULL AS INTEGER ) * - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 5 ) AS col1 FROM tab1 AS cor0
----
5
5
5

query II rowsort
SELECT col2 + + 78 AS col2, col1 - - col2 FROM tab2
----
101
74
118
117
136
125

query I rowsort
SELECT col1 + + - 19 * - - 30 + col1 * 15 AS col0 FROM tab0
----
-234
-554
726

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8187
SELECT ALL - col1 * + + CAST( + col1 AS SIGNED ) + col1 DIV - 66 * - 75 + col1 + + ( - - 36 ) AS col1 FROM tab1 AS cor0
----
-146
-2126
16

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - col1 * + + CAST ( + col1 AS INTEGER ) + col1 / - 66 * - 75 + col1 + + ( - - 36 ) AS col1 FROM tab1 AS cor0
----
-146
-2126
16

query I rowsort
SELECT ALL - 22 + + col1 + + 17 - + col1 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + 52 + - col0 + - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-146
-177
-198

query I rowsort
SELECT ALL + 29 + - 48 - + 82 FROM tab0 AS cor0
----
-101
-101
-101

onlyif mysql # DIV for integer division: 
query III rowsort label-8191
SELECT ALL ( 23 ) AS col2, col0 AS col2, - col0 DIV + 36 FROM tab1 AS cor0
----
9 values hashing to 6b11e525e0c12b55c06ee92b41478dce

skipif mysql # not compatible
query III rowsort label-8191
SELECT ALL ( 23 ) AS col2, col0 AS col2, - col0 / + 36 FROM tab1 AS cor0
----
9 values hashing to 6b11e525e0c12b55c06ee92b41478dce

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + ( - - MIN( - + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8192
SELECT + ( - - MIN ( - + col1 ) ) FROM tab2
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + - col2
----

query I rowsort
SELECT ALL + - 18 AS col1 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL - - MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - - MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT + + col0 DIV col0 FROM tab1 AS cor0 WHERE NOT + col1 + - col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8196
SELECT + + col0 / col0 FROM tab1 AS cor0 WHERE NOT + col1 + - col2 IS NULL
----
1
1
1

query II rowsort
SELECT ALL - col2, 35 AS col1 FROM tab0 cor0
----
-10
35
-47
35
-99
35

query I rowsort
SELECT DISTINCT + 6 * - + col0 * - + col1 * + + col0 * + 5 * - col1 FROM tab2
----
-165111480
-728555520
-757518750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - ( + CAST( + - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - ( + CAST ( + - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + COUNT( ALL - 81 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + COUNT ( ALL - 81 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8202
SELECT ALL - col0 * + + CAST( NULL AS DECIMAL ) * - col1 * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - col0 * + + CAST ( NULL AS REAL ) * - col1 * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 79 * 36 * col1 AS col1 FROM tab2
----
145044
190548
218988

query I rowsort
SELECT - ( col0 ) * - + 72 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT SUM( + 65 ) DIV + - COUNT( * ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-8205
SELECT SUM ( + 65 ) / + - COUNT ( * ) FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8206
SELECT ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8207
SELECT DISTINCT + col0 + + + col1 + 83 AS col0, ( + ( 60 ) ) * + col1 DIV col1 FROM tab0
----
179
60
181
60
191
60

skipif mysql # not compatible
query II rowsort label-8207
SELECT DISTINCT + col0 + + + col1 + 83 AS col0, ( + ( 60 ) ) * + col1 / col1 FROM tab0
----
179
60
181
60
191
60

query I rowsort
SELECT ALL - col1 * + col2 + col0 * + col1 FROM tab2
----
1139
1173
1848

query I rowsort
SELECT DISTINCT - 34 + - + col2 FROM tab2 AS cor0
----
-57
-74
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT - MIN( col1 ) + MAX( DISTINCT + col2 ) * COUNT( * ) + + COUNT( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - MIN ( col1 ) + MAX ( DISTINCT + col2 ) * COUNT ( * ) + + COUNT ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
286

query I rowsort
SELECT 35 + - - 61 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT AVG ( DISTINCT + 2 ) AS col1 FROM tab1 AS cor0 JOIN tab2 AS cor1 ON + - 51 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <> + + ( - 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL 52 * - 58 FROM tab2
----
-3016
-3016
-3016

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - ( - 3 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + COUNT( + - col2 ) + - - 78 col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8217
SELECT ALL + COUNT ( + - col2 ) + - - 78 col0 FROM tab2 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT DISTINCT - - 1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 2 ) col0, col0 FROM tab0
----
-2
15
-2
87
-2
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT - col2 * + CAST( col0 AS SIGNED ) col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8221
SELECT - col2 * + CAST ( col0 AS INTEGER ) col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL - SUM( DISTINCT col2 ) FROM tab2 WHERE col2 BETWEEN ( 43 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab2 WHERE col2 BETWEEN ( 43 ) AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 61 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT MAX( + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8224
SELECT MAX ( + + col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT COUNT( DISTINCT - + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8225
SELECT COUNT ( DISTINCT - + col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + ( + - 12 ) FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL - col0 * - + col1 AS col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col2, col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8229
SELECT MAX ( + - col2 ) FROM tab1
----
-59

query I rowsort
SELECT ALL + 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8231
SELECT * FROM tab1 WHERE NOT + - col1 + col2 + CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN - + ( - - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8231
SELECT * FROM tab1 WHERE NOT + - col1 + col2 + CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN - + ( - - col0 ) AND NULL
----

query I rowsort
SELECT + + col2 * + col1 AS col2 FROM tab0 cor0
----
210
3807
99

query II rowsort
SELECT - col2 + - col0 * col1, - col0 AS col1 FROM tab1 cor0
----
-4345
-91
-484
-85
-810
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8234
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + 34 / ( 84 ) * - CAST( - 70 AS DECIMAL ) >= - + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-8234
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + 34 / ( 84 ) * - CAST ( - 70 AS REAL ) >= - + col0 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8235
SELECT + 55 + + - 9 AS col1, - col0 DIV + 69 - + 39 FROM tab1
----
46
-39
46
-40
46
-40

skipif mysql # not compatible
query II rowsort label-8235
SELECT + 55 + + - 9 AS col1, - col0 / + 69 - + 39 FROM tab1
----
46
-39
46
-40
46
-40

query I rowsort
SELECT ALL - col0 * + + col2 * col1 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - col1 * + col1 + + col2 + + + 45 - + - col0 * col1 AS col2 FROM tab2
----
-187
-916
639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT + - col0 FROM tab2 WHERE col2 IN ( - col0 * - 46 * + 41, - col0, + CAST( - + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8238
SELECT + - col0 FROM tab2 WHERE col2 IN ( - col0 * - 46 * + 41, - col0, + CAST ( - + col1 AS INTEGER ) )
----

query I rowsort
SELECT - 53 * col2 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT ALL col2 + + CAST( - col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL col2 + + CAST ( - col2 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + - col2 ) + + col2 * ( 9 ) * + col0 AS col1 FROM tab0
----
6392
7840
86526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT - + SUM( ALL + + col1 ) + - 99 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-8243
SELECT - + SUM ( ALL + + col1 ) + - 99 FROM tab0 AS cor0
----
-202

query I rowsort
SELECT + + col0 * - col1 + 25 AS col0 FROM tab1 cor0
----
-400
-4252
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT + ( + COUNT( * ) ) + - - 69 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 0 AND NULL
----
69

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT + ( + COUNT ( * ) ) + - - 69 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 0 AND NULL
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 14 ) col2 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + col1 * - 97 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT - + MIN( ALL + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8248
SELECT - + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + + 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col0 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT + + COUNT( - + col0 ) - + - 94 + 5 FROM tab2 AS cor0 WHERE ( + - 55 IS NULL )
----
99

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + + COUNT ( - + col0 ) - + - 94 + 5 FROM tab2 AS cor0 WHERE ( + - 55 IS NULL )
----
99

query II rowsort
SELECT DISTINCT - col0 AS col2, 66 * col0 FROM tab0
----
-15
990
-87
5742
-97
6402

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT ALL + col2 DIV + 12 col2 FROM tab2
----
1
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT ALL + col2 / + 12 col2 FROM tab2
----
1
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - + col0 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + col0 + - col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1 AS col1, + col1 * + 87 FROM tab1
----
-14
1218
-47
4089
-5
435

query I rowsort
SELECT - col2 / - 5 * ( + col0 ) + - 29 AS col0 FROM tab1 AS cor0 WHERE NOT - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT + - COUNT( * ) AS col1, + SUM( + - col2 ) FROM tab0 AS cor0
----
-3
-156

skipif mysql # not compatible
query II rowsort label-8256
SELECT + - COUNT ( * ) AS col1, + SUM ( + - col2 ) FROM tab0 AS cor0
----
-3
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8257
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT ALL CAST( NULL AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8258
SELECT ALL CAST ( NULL AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT 65 * - - 94 + ( COUNT( ALL + + 93 ) ) FROM tab2 AS cor0
----
6113

skipif mysql # not compatible
query I rowsort label-8259
SELECT 65 * - - 94 + ( COUNT ( ALL + + 93 ) ) FROM tab2 AS cor0
----
6113

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT 90 + + COUNT( * ) - - + 39 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-8260
SELECT 90 + + COUNT ( * ) - - + 39 FROM tab2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT ( - CAST( 50 AS SIGNED ) ) + + + COUNT( * ) col2 FROM tab2
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8261
SELECT ( - CAST ( 50 AS INTEGER ) ) + + + COUNT ( * ) col2 FROM tab2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col1 col2, col0 + - col2 + + col0 - ( - + 99 ) * col1 AS col0 FROM tab1
----
138
4767
65
1392
90
606

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 77 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT DISTINCT - 39 + - col0 + + CAST( + col0 AS SIGNED ) * + col0 - - col2 AS col2 FROM tab0 AS cor0
----
218
7453
9372

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - 39 + - col0 + + CAST ( + col0 AS INTEGER ) * + col0 - - col2 AS col2 FROM tab0 AS cor0
----
218
7453
9372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8265
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT + ( col1 ) AS col2, - col1 + + col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT 73 * + 66 FROM tab0
----
4818

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE + 40 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - ( - + 42 ) AS col0 FROM tab1
----
42
42
42

query I rowsort
SELECT DISTINCT ( - 73 ) AS col2 FROM tab1
----
-73

query I rowsort
SELECT + col1 * 7 - - col0 + + 68 FROM tab2
----
471
612
671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT ALL - 90 + - CAST( col2 AS SIGNED ) FROM tab2
----
-113
-130
-148

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - 90 + - CAST ( col2 AS INTEGER ) FROM tab2
----
-113
-130
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT + COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8273
SELECT + COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + 26 * + col0 + 34 * + col2 + + - col0 FROM tab2 AS cor0
----
1932
2960
3847

query I rowsort
SELECT ALL - + col1 * - 61 AS col0 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL - COUNT( * ) * - 1 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - COUNT ( * ) * - 1 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8279
SELECT + MAX( ALL - 74 ) DIV - COUNT( * ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8279
SELECT + MAX ( ALL - 74 ) / - COUNT ( * ) FROM tab0 cor0
----
24

query I rowsort
SELECT + 63 * col2 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + COUNT( + col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT DISTINCT + COUNT ( + col2 ) col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT - 91 * col1 DIV - col1 col1 FROM tab2 WHERE NOT - - 99 * + 59 IS NULL
----
91
91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8284
SELECT - 91 * col1 / - col1 col1 FROM tab2 WHERE NOT - - 99 * + 59 IS NULL
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 12 * + col0 FROM tab2
----
-23
552
-40
768
-58
900

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT COUNT( * ) * - 34 AS col0 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT COUNT ( * ) * - 34 AS col0 FROM tab2
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT ALL - 72 * 97 * - col2 / 10 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 90 * + - col0 / - col0 >= + 23
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - 72 * 97 * - col2 / 10 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 90 * + - col0 / - col0 >= + 23
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + + COUNT( 86 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8288
SELECT + + COUNT ( 86 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT + + 92 * 12 DIV - 77 AS col0 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-8289
SELECT + + 92 * 12 / - 77 AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query II rowsort
SELECT + col0 AS col1, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + COUNT( * ) * + 84 AS col0 FROM tab1 cor0
----
252

skipif mysql # not compatible
query I rowsort label-8291
SELECT + COUNT ( * ) * + 84 AS col0 FROM tab1 cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + COUNT( ALL + + 3 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + COUNT ( ALL + + 3 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT 5 * + col1 AS col1 FROM tab2 WHERE NOT + col0 + col2 IS NULL
----
255
335
385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8295
SELECT ALL * FROM tab0 WHERE NOT - - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8295
SELECT ALL * FROM tab0 WHERE NOT - - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT + 68 + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8297
SELECT + 68 + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 >= - ( + + col1 ) - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + 72 + COUNT( * ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8299
SELECT + 72 + COUNT ( * ) FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) + col0 * 78 * col1 col1 FROM tab2 AS cor0
----
182942
384320
391875

query I rowsort
SELECT col2 + + col1 * + col2 * - col2 FROM tab1 AS cor0
----
-128928
-17346
-217260

query I rowsort
SELECT col0 + + col2 / + 40 * - + 23 * col1 - + col2 * col1 AS col2 FROM tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - 67 * - col2 + - 61 FROM tab2 AS cor0
----
1480
2619
3825

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8305
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) + COUNT( * ) * - COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL ( + CAST ( NULL AS REAL ) ) + COUNT ( * ) * - COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + - COUNT( * ) + + 73 FROM tab2 WHERE col1 / - 24 IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-8307
SELECT + - COUNT ( * ) + + 73 FROM tab2 WHERE col1 / - 24 IS NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + SUM( DISTINCT + - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + SUM ( DISTINCT + - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + + COUNT( * ) - + 20 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8310
SELECT + + COUNT ( * ) - + 20 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL - col2 + - - col1 * col2 AS col0 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT - 97 DIV + - 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 97 / + - 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query II rowsort
SELECT DISTINCT + 73, 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
73
89

query I rowsort
SELECT + 58 + + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

query I rowsort
SELECT col2 * - 60 AS col2 FROM tab1
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + - SUM( 24 ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8316
SELECT DISTINCT + - SUM ( 24 ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT col2 * - 60 + + col1 FROM tab2 AS cor0
----
-1329
-2323
-3413

query I rowsort
SELECT DISTINCT - col1 * + 23 FROM tab2 AS cor0
----
-1173
-1541
-1771

query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 41 NOT IN ( - 51 * + col0 + - col0, 84 + + - 14 + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 69 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT MAX( DISTINCT - + 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-8322
SELECT MAX ( DISTINCT - + 38 ) FROM tab2
----
-38

query I rowsort
SELECT ALL col1 * + + 86 FROM tab0
----
1806
6966
86

query I rowsort
SELECT ALL 10 FROM tab0 WHERE col0 - col2 IS NOT NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT 74 + MIN( - - col2 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT 74 + MIN ( - - col2 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT SUM( ( - + col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8326
SELECT SUM ( ( - + col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL COUNT( + - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL COUNT ( + - col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN 61 AND - - 43 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 + col2 col0 FROM tab0 AS cor0
----
122
174
85

query I rowsort
SELECT DISTINCT + col2 * 82 AS col2 FROM tab2
----
1886
3280
4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col2 - + col0 + - + col1 FROM tab0
----
1
102
3711

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col2 - + col0 + - + col1 FROM tab0
----
1
102
3711

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col0 + + 60 = NULL
----

query II rowsort
SELECT col0 AS col2, col1 + + - 19 FROM tab0 AS cor0
----
15
62
87
2
97
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT - 15 + + + COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - 15 + + + COUNT ( * ) FROM tab1 cor0
----
-12

query I rowsort
SELECT DISTINCT - col1 + - 0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8336
SELECT ALL - 21 + - - col2 - + 92 * - CAST( + ( + col0 ) AS SIGNED ), col1 AS col0 FROM tab0 AS cor0
----
1406
81
7993
21
9002
1

skipif mysql # not compatible
query II rowsort label-8336
SELECT ALL - 21 + - - col2 - + 92 * - CAST ( + ( + col0 ) AS INTEGER ), col1 AS col0 FROM tab0 AS cor0
----
1406
81
7993
21
9002
1

query I rowsort
SELECT + - 72 * - - col0 AS col2 FROM tab0 AS cor0
----
-1080
-6264
-6984

query I rowsort
SELECT - col1 * + col1 - 92 FROM tab1
----
-117
-2301
-288

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8341
SELECT DISTINCT - col0 * - - col0 FROM tab1 WHERE NOT col0 * + CAST( NULL AS DECIMAL ) / + + 51 + - + 8 * + 67 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - col0 * - - col0 FROM tab1 WHERE NOT col0 * + CAST ( NULL AS REAL ) / + + 51 + - + 8 * + 67 IS NULL
----

query I rowsort
SELECT - 92 + + col0 AS col1 FROM tab1
----
-1
-41
-7

query II rowsort
SELECT ALL col1, 55 AS col0 FROM tab0 AS cor0
----
1
55
21
55
81
55

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < 50
----

query I rowsort
SELECT ALL + 11 * - col0 AS col2 FROM tab2 AS cor0
----
-506
-704
-825

query I rowsort
SELECT ALL col2 * - col2 * + col1 FROM tab2 cor0
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT + ( + - 95 ) * col2 AS col2 FROM tab1 AS cor0
----
-5605
-6460
-9120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 < ( NULL ) )
----

query I rowsort
SELECT DISTINCT + - col1 * - - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - 43 + col2 FROM tab1 cor0 WHERE NULL >= + 19
----

query I rowsort
SELECT + col1 * + - 87 FROM tab0 AS cor0
----
-1827
-7047
-87

query I rowsort
SELECT ALL 84 * - - col1 FROM tab0
----
1764
6804
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col1 - - col0 col0 FROM tab0
----
1
98
21
108
81
96

query I rowsort
SELECT ALL + 30 * + 12 FROM tab2
----
360
360
360

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 BETWEEN NULL AND 16 + + col1 + + + col1 * - + col2 - + 96 * - ( col0 )
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE 37 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8360
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT + col1 / + + col0 FROM tab1 cor0 WHERE + CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8361
SELECT + col1 / + + col0 FROM tab1 cor0 WHERE + CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col1 / - + col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT + col1 + 64, + 28 AS col0 FROM tab0 AS cor0
----
145
28
65
28
85
28

query I rowsort
SELECT - 18 + - - 19 * + - col0 AS col0 FROM tab2 AS cor0
----
-1234
-1443
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - 56 * - + ( - + COUNT( * ) ) - 24 AS col1 FROM tab0 cor0 WHERE + col1 + - col1 IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - 56 * - + ( - + COUNT ( * ) ) - 24 AS col1 FROM tab0 cor0 WHERE + col1 + - col1 IS NULL
----
-24

query I rowsort
SELECT + ( ( + col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + 2 - col1 FROM tab2
----
-49
-65
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT - col1 - - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - col1 - - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + + + col2 + - + 28 + + + 8 AS col1 FROM tab2
----
-37
-43
-44

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 56 AS col0 FROM tab0 cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + col0 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + col0 ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT ALL COUNT( * ) + - COUNT( * ), 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 33 NOT BETWEEN - 50 AND NULL
----
0
38

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL COUNT ( * ) + - COUNT ( * ), 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 33 NOT BETWEEN - 50 AND NULL
----
0
38

query II rowsort
SELECT 77 AS col0, col1 FROM tab0
----
77
1
77
21
77
81

query II rowsort
SELECT ALL col2, col2 + + ( - - 15 ) AS col2 FROM tab1
----
59
74
68
83
96
111

query I rowsort
SELECT + + col0 * - 35 FROM tab1 AS cor0
----
-1785
-2975
-3185

query II rowsort
SELECT DISTINCT col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL MAX( - - 76 ) AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL MAX ( - - 76 ) AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8380
SELECT + - COUNT( * ), 27 AS col2 FROM tab0 cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-8380
SELECT + - COUNT ( * ), 27 AS col2 FROM tab0 cor0
----
-3
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 * - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 / + 12 * - - col1 - + - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * col2 AND col1
----

query I rowsort
SELECT ALL - col0 * - 9 AS col2 FROM tab2
----
414
576
675

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT 71 * - col2 + + col1 + col2 + - 52 DIV col0 AS col2 FROM tab2
----
-1560
-2723
-3993

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT 71 * - col2 + + col1 + col2 + - 52 / col0 AS col2 FROM tab2
----
-1560
-2723
-3993

query I rowsort
SELECT col0 * ( + + 65 ) FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - SUM( DISTINCT - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8386
SELECT - SUM ( DISTINCT - col2 ) FROM tab2
----
121

query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) * col0 * - + col0 * + 3 + + col1 * + - col0 FROM tab0 AS cor0
----
1973703
2737923
8991

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - 30 + COUNT( DISTINCT + 63 ) + MIN( ALL + 14 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-15

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - 30 + COUNT ( DISTINCT + 63 ) + MIN ( ALL + 14 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 88 col2, + col0 AS col2 FROM tab1
----
88
51
88
85
88
91

query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 42 * - 7 < NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT col1 DIV col0 + - - ( - col0 ) FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT col1 / col0 + - - ( - col0 ) FROM tab0 AS cor0
----
-10
-87
-97

query II rowsort
SELECT DISTINCT - 68 * + col1 - - col0 AS col1, col0 + + 73 + col0 * 53 FROM tab2 AS cor0
----
-3422
2557
-4481
4123
-5172
3529

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 - - col1 AS col2 FROM tab0
----
-178848
-2079
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - MIN( ALL + + col0 ) + COUNT( * ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8397
SELECT - MIN ( ALL + + col0 ) + COUNT ( * ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT - col1 + + + col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL 86 * - MIN( ALL col2 ) FROM tab0
----
-860

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL 86 * - MIN ( ALL col2 ) FROM tab0
----
-860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT DISTINCT - CAST( - 70 AS SIGNED ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT - CAST ( - 70 AS INTEGER ) FROM tab1
----
70

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE 56 * - + 59 / + - col2 * 33 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT + COUNT( * ) DIV COUNT( DISTINCT - col0 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8403
SELECT + COUNT ( * ) / COUNT ( DISTINCT - col0 ) FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 21 + - 90 + - col2 + col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - - 15 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col1 FROM tab0 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT ALL - col1 DIV - col1 + - 97 + 56 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - col1 / - col1 + - 97 + 56 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - - 97 + - col2 AS col0 FROM tab2 AS cor0
----
39
57
74

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1 cor0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT - MAX( ALL 33 ) * - + MAX( DISTINCT + ( - col1 ) ), + MIN( - + 80 ) AS col0 FROM tab1 AS cor0
----
-165
-80

skipif mysql # not compatible
query II rowsort label-8411
SELECT - MAX ( ALL 33 ) * - + MAX ( DISTINCT + ( - col1 ) ), + MIN ( - + 80 ) AS col0 FROM tab1 AS cor0
----
-165
-80

query II rowsort
SELECT + col0 AS col0, 3 + + col0 FROM tab0 cor0
----
15
18
87
90
97
100

query I rowsort
SELECT + + 4 + + col0 FROM tab0 AS cor0
----
101
19
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT + CAST( NULL AS SIGNED ) + - ( col0 ) * 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT + CAST ( NULL AS INTEGER ) + - ( col0 ) * 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT - MAX( + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - MAX ( + col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL + MIN( + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + MIN ( + col0 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + 80 + - 42 NOT BETWEEN NULL AND - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 + 77 + col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT 41 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT 41 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 11 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT 39 DIV + 91 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT 39 / + 91 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND + col1 + + - col0
----

query I rowsort
SELECT ALL + 63 - + col1 AS col0 FROM tab1
----
16
49
58

query III rowsort
SELECT * FROM tab1 WHERE ( - + col2 - + col1 * - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + 17 / - 57 = - + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT - - col0 + - + col1 * CAST( + col1 AS SIGNED ) * + col2 col0 FROM tab1 AS cor0
----
-1390
-150121
-18765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8427
SELECT - - col0 + - + col1 * CAST ( + col1 AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
-1390
-150121
-18765

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + 62
----

query I rowsort
SELECT DISTINCT - - 62 + + col0 * - + col0 AS col2 FROM tab1 AS cor0
----
-2539
-7163
-8219

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - 96 * - col2 * - col2 >= - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT + COUNT( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 47 col1 FROM tab2
----
2397
3149
3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL COUNT( DISTINCT + ( - CAST( + col2 AS SIGNED ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL COUNT ( DISTINCT + ( - CAST ( + col2 AS INTEGER ) ) ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab1, tab2 AS cor0
----
49

query I rowsort
SELECT col0 * 62 FROM tab0
----
5394
6014
930

query I rowsort
SELECT - col2 * - 40 FROM tab1 cor0
----
2360
2720
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28 col1, col2 AS col2 FROM tab2 AS cor0
----
-28
23
-28
40
-28
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 28 * - - 36 IS NOT NULL
----

query I rowsort
SELECT ALL ( + col0 ) * - col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab2 WHERE NOT col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT 19 - + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT 19 - + COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT DISTINCT col2 * 16 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT AVG ( col2 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + - col2 * + col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( col2 * + col2 + - 58 )
----

query I rowsort
SELECT 68 + - col1 * - ( - col2 ) AS col0 FROM tab0
----
-142
-31
-3739

query I rowsort
SELECT ALL + col0 * - 80 + - col2 AS col0 FROM tab1
----
-4176
-6859
-7348

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL COUNT( * ) FROM tab1 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( col0 ) IS NOT NULL
----
3

query I rowsort
SELECT col2 * - 98 FROM tab1 WHERE NOT NULL NOT IN ( col2 + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * + 53 AS col2 FROM tab1
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT + MIN( 77 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8454
SELECT + MIN ( 77 ) AS col2 FROM tab2
----
77

query III rowsort
SELECT * FROM tab1 WHERE 61 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT + CAST( - 21 AS SIGNED ) + + col0 FROM tab0
----
-6
66
76

skipif mysql # not compatible
query I rowsort label-8456
SELECT + CAST ( - 21 AS INTEGER ) + + col0 FROM tab0
----
-6
66
76

query I rowsort
SELECT col2 + + ( + col1 ) * + 26 AS col1 FROM tab2
----
1349
1800
2042

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT 95 * col0 FROM tab0 WHERE NOT 0 * 88 + + col2 * - col2 IS NULL
----
1425
8265
9215

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8460
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - col1 AS SIGNED ) / - 70 <> + col2 + + 59 * - ( - 32 )
----

skipif mysql # not compatible
query III rowsort label-8460
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - col1 AS INTEGER ) / - 70 <> + col2 + + 59 * - ( - 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT DISTINCT - CAST( 29 AS SIGNED ) AS col2 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - CAST ( 29 AS INTEGER ) AS col2 FROM tab2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + MIN( - col2 ) * - SUM( DISTINCT 30 ) FROM tab2
----
1740

skipif mysql # not compatible
query I rowsort label-8462
SELECT + MIN ( - col2 ) * - SUM ( DISTINCT 30 ) FROM tab2
----
1740

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT 68 DIV 92 + 88 AS col0 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8463
SELECT 68 / 92 + 88 AS col0 FROM tab0
----
88
88
88

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col2 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col1 ) + ( + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8466
SELECT * FROM tab2 AS cor0 WHERE col2 / - col0 BETWEEN ( NULL ) AND ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8466
SELECT * FROM tab2 AS cor0 WHERE col2 / - col0 BETWEEN ( NULL ) AND ( - CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + + col2 > 63 * 79
----

query I rowsort
SELECT ALL + 29 + 75 FROM tab2 AS cor0
----
104
104
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT DISTINCT 89 * col1 AS col0 FROM tab2 AS cor0 WHERE - col0 * col1 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT 89 * col1 AS col0 FROM tab2 AS cor0 WHERE - col0 * col1 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 + 14 * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
345
600
870

query I rowsort
SELECT + 40 * 75 AS col2 FROM tab2
----
3000
3000
3000

query I rowsort
SELECT ALL - col0 - - ( 62 ) AS col1 FROM tab2
----
-13
-2
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8473
SELECT MAX ( col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - SUM( col0 ) * + 93 FROM tab1 AS cor0
----
-21111

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - SUM ( col0 ) * + 93 FROM tab1 AS cor0
----
-21111

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 72 ) >= col2 + col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - + col2 * 35 AS col1 FROM tab1 cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( + 82 ) * col2 + + CAST( NULL AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( + 82 ) * col2 + + CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT + 23 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8478
SELECT + 23 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL col2 * 80 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
4720
5440
7680

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL col2 * 80 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
4720
5440
7680

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 88 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8481
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 76 ) + - 36 * + col0 ) BETWEEN col2 + - CAST( - col2 AS DECIMAL ) AND - col2 - - col1
----

skipif mysql # not compatible
query III rowsort label-8481
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 76 ) + - 36 * + col0 ) BETWEEN col2 + - CAST ( - col2 AS REAL ) AND - col2 - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + 4 * 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT COUNT( - col1 ) * 49 AS col1 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT COUNT ( - col1 ) * 49 AS col1 FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT col1 * - 66 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3102
-330
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + 91 * - COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + 91 * - COUNT ( * ) FROM tab1
----
-273

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT + col1 > - col0 + - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - 67 + COUNT( col1 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-64

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 67 + COUNT ( col1 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT CAST( - ( - ( - 29 ) ) AS SIGNED ) * col0 FROM tab2
----
-1334
-1856
-2175

skipif mysql # not compatible
query I rowsort label-8489
SELECT CAST ( - ( - ( - 29 ) ) AS INTEGER ) * col0 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col0 * 1 FROM tab0 cor0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8492
SELECT DISTINCT - ( MIN( 11 ) ) DIV + 36 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - ( MIN ( 11 ) ) / + 36 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT - col0 DIV + col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8493
SELECT - col0 / + col2 col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - - ( + 82 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 NOT BETWEEN NULL AND - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 * + + col0 + - col2 FROM tab2 cor0
----
1587
2200
2567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8497
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - 25 < - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - 25 < - col0 + col1
----

query I rowsort
SELECT - 39 + - col2 FROM tab1 AS cor0
----
-107
-135
-98

query I rowsort
SELECT 26 + + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-20
-38
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT CAST( + ( + col2 ) AS SIGNED ) + 41 AS col0 FROM tab0 AS cor0
----
140
51
88

skipif mysql # not compatible
query I rowsort label-8500
SELECT CAST ( + ( + col2 ) AS INTEGER ) + 41 AS col0 FROM tab0 AS cor0
----
140
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 71 + 97 + + col2 col2 FROM tab2 cor0
----
3741
4912
5604

query I rowsort
SELECT col2 * col2 AS col1 FROM tab2 AS cor0 WHERE + 64 NOT IN ( - 19 * - col1 + col1 )
----
1600
3364
529

query I rowsort
SELECT col1 * + + 89 + col2 FROM tab0 AS cor0
----
1879
188
7256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT DISTINCT - 85 * - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - 85 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
255

query I rowsort
SELECT 77 + + + col2 FROM tab1 AS cor0
----
136
145
173

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT + col0 DIV + + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8506
SELECT + col0 / + + col2 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT + col1 DIV 34 AS col0 FROM tab0 WHERE col2 NOT BETWEEN ( col2 + col2 * col2 ) AND NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8507
SELECT + col1 / 34 AS col0 FROM tab0 WHERE col2 NOT BETWEEN ( col2 + col2 * col2 ) AND NULL
----
0
0
2

query I rowsort
SELECT ALL + col1 + 65 AS col1 FROM tab1
----
112
70
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT ( + COUNT( * ) ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8509
SELECT ( + COUNT ( * ) ) / COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 13 + 16 * 82 * - col2 AS col2 FROM tab1 AS cor0
----
-125939
-77395
-89203

query I rowsort
SELECT ALL - col2 - + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + + 4 + - - col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1146
-3036
-3824

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - ( + 35 ) AND - 9 + col2
----

query I rowsort
SELECT DISTINCT col2 - + + col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8515
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 * col1 * + CAST( NULL AS SIGNED ) - - 44 / 81 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8515
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 * col1 * + CAST ( NULL AS INTEGER ) - - 44 / 81 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 * 94 + ( + col1 ) ) BETWEEN ( - col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - 11 / CAST( NULL AS SIGNED ) + + - ( + col1 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT - 11 / CAST ( NULL AS INTEGER ) + + - ( + col1 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT - + COUNT( * ) AS col0, + MIN( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3
51

skipif mysql # not compatible
query II rowsort label-8519
SELECT - + COUNT ( * ) AS col0, + MIN ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT col0 DIV - + 74 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8520
SELECT col0 / - + 74 col1 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 6 * + col0 <> ( + col1 + + - col1 * 99 )
----

query I rowsort
SELECT ALL + ( + 17 ) FROM tab1
----
17
17
17

onlyif mysql # aggregate syntax: 
query III rowsort label-8523
SELECT DISTINCT + 46 AS col0, + ( - + ( - COUNT( * ) ) ) AS col2, 80 AS col1 FROM tab1
----
46
3
80

skipif mysql # not compatible
query III rowsort label-8523
SELECT DISTINCT + 46 AS col0, + ( - + ( - COUNT ( * ) ) ) AS col2, 80 AS col1 FROM tab1
----
46
3
80

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - ( + col1 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT SUM( 86 ) AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-8525
SELECT SUM ( 86 ) AS col2 FROM tab0
----
258

query II rowsort
SELECT DISTINCT col0 AS col1, ( - 45 ) FROM tab0
----
15
-45
87
-45
97
-45

query III rowsort
SELECT * FROM tab0 WHERE NOT + 4 >= 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 90 * + col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT MAX( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8529
SELECT MAX ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + col0 + - + 18 FROM tab0 AS cor0
----
-3
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8531
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col2 IN ( - col2 / - CAST( NULL AS SIGNED ) - + 47 * col2 )
----

skipif mysql # not compatible
query III rowsort label-8531
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col2 IN ( - col2 / - CAST ( NULL AS INTEGER ) - + 47 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT + 83 DIV - col1 FROM tab0 AS cor0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 83 / - col1 FROM tab0 AS cor0
----
-1
-3
-83

query I rowsort
SELECT DISTINCT + + ( 24 ) AS col1 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL - - 51 FROM tab0 cor0
----
51
51
51

query I rowsort
SELECT - ( - ( + 79 ) ) + col0 FROM tab0
----
166
176
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL 74 + COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 74 + COUNT ( * ) FROM tab2
----
77

query I rowsort
SELECT + ( - col0 ) * col0 * - 76 AS col0 FROM tab0 cor0
----
17100
575244
715084

query I rowsort
SELECT ALL + 76 + - col2 + - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-1186
-120
-1761

query I rowsort
SELECT ALL + - col2 * col0 + + + col0 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL MIN( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT 30 * col2 * - col0 * + 84 + - + 43 < + - col2 + ( - ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL MIN ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT 30 * col2 * - col0 * + 84 + - + 43 < + - col2 + ( - ( col1 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT - col2 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - col2 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8542
SELECT DISTINCT 2 DIV 49 AS col0, CAST( NULL AS SIGNED ) DIV - col1 AS col1 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT DISTINCT 2 / 49 AS col0, CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
0
NULL

query I rowsort
SELECT - col2 - - + 48 FROM tab0
----
-51
1
38

query II rowsort
SELECT DISTINCT - 60, col1 FROM tab0
----
-60
1
-60
21
-60
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / ( + 6 ) - 47 / + col2 + - - col2 * col1 NOT IN ( - col0 + + col0 * - 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT - 62 * - COUNT( * ) * 16 AS col1 FROM tab2
----
2976

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - 62 * - COUNT ( * ) * 16 AS col1 FROM tab2
----
2976

query III rowsort
SELECT * FROM tab0 WHERE 33 + - col2 IN ( - 50 / + + 58 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT DISTINCT col1 DIV + 21 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT col1 / + 21 FROM tab1
----
0
2

query II rowsort
SELECT + - col2 AS col1, - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - 36 AS col1 FROM tab2
----
15
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + MIN( ALL - - ( ( col2 ) ) ) + - + COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8552
SELECT + MIN ( ALL - - ( ( col2 ) ) ) + - + COUNT ( * ) FROM tab2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT DISTINCT + 35 DIV + + col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + 35 / + + col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT + COUNT( * ) + 16 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + COUNT ( * ) + 16 FROM tab2
----
19

query I rowsort
SELECT ALL - + ( 32 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 24 NOT IN ( + col0 * + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 82 - + col1 FROM tab2 cor0
----
-133
-149
-159

query I rowsort
SELECT + + 87 AS col1 FROM tab0 AS cor0
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 6 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - SUM( + 67 ) col0 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8563
SELECT - SUM ( + 67 ) col0 FROM tab2 AS cor0
----
-201

query I rowsort
SELECT - 99 * + + col1 AS col0 FROM tab0
----
-2079
-8019
-99

query I rowsort
SELECT ALL + col1 * 72 AS col0 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT - MAX( ALL col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - MAX ( ALL col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT - col0 + - 63 * - 27 AS col2 FROM tab1
----
1610
1616
1650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8568
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) + - 87 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) + - 87 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - ( - SUM( DISTINCT + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - ( - SUM ( DISTINCT + col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - - COUNT( ALL 88 ) * - 40 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-8570
SELECT - - COUNT ( ALL 88 ) * - 40 FROM tab2 AS cor0
----
-120

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 11 + - col2 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - - COUNT( * ) + + + 67 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - - COUNT ( * ) + + + 67 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT - + 43 + + + SUM( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - + 43 + + + SUM ( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-109

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + col2 * - 25 NOT BETWEEN NULL AND + - 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col2 col2 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 30 + + col0 + 95 col2 FROM tab0 AS cor0
----
140
212
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT DISTINCT 63 * + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT 63 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT IN ( col2 * col1 + - + col0 * 1, + col1 + + - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 + + 21 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT 91 * - COUNT( DISTINCT - 75 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT 91 * - COUNT ( DISTINCT - 75 ) AS col2 FROM tab1
----
-91

query II rowsort
SELECT ALL - col2 * - col1 AS col2, + col1 + + col0 FROM tab0
----
210
108
3807
96
99
98

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( + col2 * - col0 + - - col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( + col2 * - col0 + - - col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab2, tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE - + 5 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8587
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - + 5 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8588
SELECT - col1 DIV col0, col2 AS col2 FROM tab2
----
-1
23
-1
40
0
58

skipif mysql # not compatible
query II rowsort label-8588
SELECT - col1 / col0, col2 AS col2 FROM tab2
----
-1
23
-1
40
0
58

query II rowsort
SELECT - 41, + col1 FROM tab2
----
-41
51
-41
67
-41
77

query I rowsort
SELECT ALL - + ( + + 87 ) * col1 AS col2 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT - col0 * + CAST( col2 AS SIGNED ) + + 21 AS col1 FROM tab0 AS cor0
----
-684
-849
-9582

skipif mysql # not compatible
query I rowsort label-8591
SELECT - col0 * + CAST ( col2 AS INTEGER ) + + 21 AS col1 FROM tab0 AS cor0
----
-684
-849
-9582

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + MIN( + 44 ) AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8592
SELECT + MIN ( + 44 ) AS col0 FROM tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT + + 95 DIV - col2 AS col0 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8593
SELECT + + 95 / - col2 AS col0 FROM tab0 cor0
----
-2
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT + MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 + + + col0 IS NULL )
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 * + + col1 + - col2, 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + ( MIN( + ( + col2 ) ) ) FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT + ( MIN ( + ( + col2 ) ) ) FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + col1 + + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + ( + 80 ) ) FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - COUNT( + - 6 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8601
SELECT - COUNT ( + - 6 ) FROM tab1
----
-3

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 5 + - col0 NOT BETWEEN - + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT - CAST( - 25 AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + 50 + COUNT( * ) * - 6 * + + COUNT( * ) col0 FROM tab0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8606
SELECT + 50 + COUNT ( * ) * - 6 * + + COUNT ( * ) col0 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT - MIN( - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - MIN ( - col1 ) AS col0 FROM tab1
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col1 + + ( col2 )
----

query I rowsort
SELECT - 57 - - col0 AS col1 FROM tab0 cor0
----
-42
30
40

query II rowsort
SELECT + ( + - col1 ) - - col0, - col0 AS col2 FROM tab1 AS cor0
----
37
-51
44
-91
80
-85

query I rowsort
SELECT 93 - - 29 FROM tab0
----
122
122
122

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT ALL - COUNT( * ) AS col0, + 57 FROM tab2
----
-3
57

skipif mysql # not compatible
query II rowsort label-8612
SELECT ALL - COUNT ( * ) AS col0, + 57 FROM tab2
----
-3
57

query I rowsort
SELECT + 3 * + + col0 - - 40 AS col2 FROM tab2
----
178
232
265

query I rowsort
SELECT DISTINCT + 35 - + - 66 FROM tab0
----
101

query I rowsort
SELECT ALL + col2 - - + 80 FROM tab1
----
139
148
176

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT col1 * - col1 - col2 + + ( + 21 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - 59 AS col1 FROM tab0 cor0
----
-5133
-5723
-885

query I rowsort
SELECT ALL + col0 * 98 AS col1 FROM tab2 AS cor0
----
4508
6272
7350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 96 + - col1 col2 FROM tab2 AS cor0
----
-2259
-3917
-5635

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL COUNT( * ) * - 9 col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8621
SELECT ALL COUNT ( * ) * - 9 col1 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - ( - COUNT( 20 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8622
SELECT - ( - COUNT ( 20 ) ) FROM tab0
----
3

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL col2 * - - col0 * - 76 * col2 + + + ( - col2 ) FROM tab0 AS cor0
----
-2518307
-661210
-72253071

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8625
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col1 * - CAST( NULL AS SIGNED ) + - 85
----

skipif mysql # not compatible
query III rowsort label-8625
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col1 * - CAST ( NULL AS INTEGER ) + - 85
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 25 AND NULL
----

query I rowsort
SELECT col1 * 11 * col2 - - + col2 FROM tab1 AS cor0
----
14880
3304
35224

query II rowsort
SELECT ALL + 65 * - + 12 AS col1, + col1 - - col0 FROM tab1 AS cor0
----
-780
138
-780
65
-780
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL - COUNT( DISTINCT + - 51 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - COUNT ( DISTINCT + - 51 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8630
SELECT + - COUNT( DISTINCT + + 30 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT + - COUNT ( DISTINCT + + 30 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + + ( + + col0 ) FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR col1 / - col2 * - col2 - 88 <> - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT - 0 * + 38 * COUNT( * ) + - 37 + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-118

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT - 0 * + 38 * COUNT ( * ) + - 37 + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8634
SELECT DISTINCT COUNT( * ) DIV + + 48 + - + ( + 32 ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT COUNT ( * ) / + + 48 + - + ( + 32 ) AS col2 FROM tab0
----
-32

query I rowsort
SELECT ALL - 96 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + - 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT - 64 + - - col2 AS col0 FROM tab0 AS cor0
----
-17
-54
35

query I rowsort
SELECT ALL + - col2 + + col1 * + col1 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT + + col1 + - 29 + col2 AS col2 FROM tab1 AS cor0
----
35
81
86

query I rowsort
SELECT DISTINCT + col2 + - 24 - - + 84 - + - 52 * - col2 AS col1 FROM tab0 AS cor0
----
-2337
-450
-4989

query I rowsort
SELECT DISTINCT 47 + + 93 * + col2 AS col0 FROM tab0 AS cor0
----
4418
9254
977

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 - - col0, - ( col0 ) )
----

query I rowsort
SELECT 59 + - col1 FROM tab1 AS cor0
----
12
45
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT - 41 - - - MIN( ALL 30 ) col2 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8644
SELECT DISTINCT - 41 - - - MIN ( ALL 30 ) col2 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT - - CAST( + 33 AS SIGNED ) FROM tab1 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8645
SELECT - - CAST ( + 33 AS INTEGER ) FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL col0 - 28 * col0 * + 70 FROM tab0
----
-170433
-190023
-29385

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + + col1 + - col2 - 77 * + - ( - + col2 ) * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - 47 AND col2 * - - col0
----

query I rowsort
SELECT ALL + 58 * + col0 * + - col2 FROM tab2 WHERE NOT + 93 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + 91 ) BETWEEN NULL AND + + 62
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT 56 AS col2, - COUNT( * ) AS col2 FROM tab1
----
56
-3

skipif mysql # not compatible
query II rowsort label-8653
SELECT 56 AS col2, - COUNT ( * ) AS col2 FROM tab1
----
56
-3

query I rowsort
SELECT + col1 * 69 AS col2 FROM tab0
----
1449
5589
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL + + 47 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + + 47 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 29 FROM tab1 AS cor0 WHERE NOT + col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT + 22 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND + 94
----

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND + 94
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col0
----

query II rowsort
SELECT col0 AS col0, col2 * - 27 * - 99 AS col2 FROM tab2 cor0
----
46
61479
64
106920
75
155034

query I rowsort
SELECT - - ( 76 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2 - - 6 * - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT - ( + COUNT( + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT - ( + COUNT ( + col0 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + - 16 + - col1 + - 24 / col2 * + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + - + 30 FROM tab0 cor0
----
-127
-127
-127

query I rowsort
SELECT 56 * + 92 FROM tab2 AS cor0
----
5152
5152
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL COUNT( DISTINCT 95 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL COUNT ( DISTINCT 95 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL + col2 * - col0 * 92 AS col2 FROM tab2
----
-235520
-400200
-97336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT 94 * col1 * + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT 94 * col1 * + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 * col1, + col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

query I rowsort
SELECT 2 * - col2 * + col1 * ( + - 64 ) FROM tab1
----
172032
37760
409088

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL MAX( DISTINCT - - 96 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL MAX ( DISTINCT - - 96 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT ( + 8 ) AS col0 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT MIN( col0 ) * - - 64 FROM tab0
----
960

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT MIN ( col0 ) * - - 64 FROM tab0
----
960

query I rowsort
SELECT 43 * + ( - - col1 ) FROM tab1
----
2021
215
602

query II rowsort
SELECT col0 + col1 AS col1, col1 * col0 + + 43 FROM tab1
----
138
4320
65
757
90
468

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8676
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) + + CAST( col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8676
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) + + CAST ( col0 AS REAL ) IS NULL
----

query I rowsort
SELECT 71 * + ( + - col2 ) * - - 66 FROM tab1
----
-276474
-318648
-449856

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8679
SELECT * FROM tab2 WHERE - 80 = - 79 * - - ( - col1 ) * ( - col1 ) + + CAST( 27 AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-8679
SELECT * FROM tab2 WHERE - 80 = - 79 * - - ( - col1 ) * ( - col1 ) + + CAST ( 27 AS INTEGER ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT 19 * + SUM( col0 ) AS col1 FROM tab2
----
3515

skipif mysql # not compatible
query I rowsort label-8680
SELECT 19 * + SUM ( col0 ) AS col1 FROM tab2
----
3515

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT ALL col2 DIV + + 93 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL col2 / + + 93 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 + col2 + - col2 + - col0 FROM tab2 AS cor0
----
-141
-142
-97

query II rowsort
SELECT ALL - 46, + col2 FROM tab2 AS cor0
----
-46
23
-46
40
-46
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT + - MAX( DISTINCT + 95 ) col1 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8684
SELECT DISTINCT + - MAX ( DISTINCT + 95 ) col1 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT - - 47, - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT 30 IS NULL
----
47
-3

skipif mysql # not compatible
query II rowsort label-8685
SELECT - - 47, - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT 30 IS NULL
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8686
SELECT + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + 96 * + COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 96 * + COUNT ( * ) FROM tab0
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8688
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - col0 + + + col2 * - col0 * + col2 <> - CAST( + ( 41 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - col0 + + + col2 * - col0 * + col2 <> - CAST ( + ( 41 ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + COUNT( col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8689
SELECT + COUNT ( col0 ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col0 ), col1 * col1 col0 FROM tab1
----
-51
196
-85
25
-91
2209

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, col0 + - col1 FROM tab0 AS cor0
----
15
-66
87
66
97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + + 24 * - - COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8692
SELECT + + 24 * - - COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT 69 DIV - 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-8693
SELECT 69 / - 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT - + 48 FROM tab0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT + COUNT( * ) AS col0, MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-8696
SELECT + COUNT ( * ) AS col0, MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
3
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - col0 - + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - - COUNT( - ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - - COUNT ( - ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 + col1 * - - ( + col1 ) FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT - - ( + - 52 ) + + MAX( ALL - - col1 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8700
SELECT - - ( + - 52 ) + + MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT DISTINCT + col2 * 18 FROM tab1 AS cor0
----
1062
1224
1728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52 * - col0 col0, col0 AS col0 FROM tab1
----
-2652
51
-4420
85
-4732
91

query I rowsort
SELECT + col0 FROM tab1 WHERE - - 11 > - ( col0 ) + + col2
----
85
91

query I rowsort
SELECT ALL + col2 * - + ( - - 34 ) FROM tab0
----
-1598
-3366
-340

query I rowsort
SELECT ( - col0 ) + + 26 AS col1 FROM tab2
----
-20
-38
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8706
SELECT * FROM tab2 WHERE NULL <= - + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-8706
SELECT * FROM tab2 WHERE NULL <= - + CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8707
SELECT ALL 17 AS col0, col0 AS col0 FROM tab1 WHERE NOT + col0 IN ( - ( col0 ) * + ( - col0 ), + col1 * + CAST( NULL AS SIGNED ) * + - 90 )
----

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL 17 AS col0, col0 AS col0 FROM tab1 WHERE NOT + col0 IN ( - ( col0 ) * + ( - col0 ), + col1 * + CAST ( NULL AS INTEGER ) * + - 90 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + COUNT( * ) * + 63 AS col2 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + COUNT ( * ) * + 63 AS col2 FROM tab2
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col2 col2 FROM tab2 WHERE NULL = - col1 * + 64 + col2
----

query I rowsort
SELECT ALL 99 * - 17 FROM tab0
----
-1683
-1683
-1683

query I rowsort
SELECT DISTINCT + col1 * + - 17 AS col2 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT ALL + 85 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 AND - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT 48 + - - COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 48 + - - COUNT ( * ) FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + - MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8715
SELECT + - MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - + 34 + col1 + + + ( - col0 ) + col2 + + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1064
-2541
-4334

query I rowsort
SELECT + ( 39 ) AS col1 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL - col2 + + 27 * - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1737
-1995
-2739

query I rowsort
SELECT DISTINCT + + col2 * + + col1 * + + 18 * - col0 AS col2 FROM tab2 AS cor0
----
-3548160
-5246100
-971244

query I rowsort
SELECT DISTINCT 49 + col2 AS col1 FROM tab0 cor0
----
148
59
96

query I rowsort
SELECT ALL - 27 * - col0 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT - 95 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT - MIN( DISTINCT col1 ) AS col0, 41 FROM tab0 AS cor0
----
-1
41

skipif mysql # not compatible
query II rowsort label-8723
SELECT - MIN ( DISTINCT col1 ) AS col0, 41 FROM tab0 AS cor0
----
-1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8724
SELECT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT - + col2 DIV - 66 + 86 DIV - - ( col0 ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8725
SELECT - + col2 / - 66 + 86 / - - ( col0 ) AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT + CAST( 37 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + CAST ( 37 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL MAX( ALL - 76 ) AS col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL MAX ( ALL - 76 ) AS col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL - col0, - col0 / - col2 AS col2 FROM tab1 WHERE NOT + - 59 IS NOT NULL
----

query II rowsort
SELECT - 96, col2 AS col0 FROM tab2
----
-96
23
-96
40
-96
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ( COUNT( * ) ) AS col0 FROM tab1 WHERE NOT - + 63 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT - + 63 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 - - col1 col2 FROM tab0 WHERE - 10 * 85 * + col0 + + 50 * + col2 * + 40 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8734
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, ( - + col2 ) col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8734
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, ( - + col2 ) col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8735
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT ( - ( - + 94 ) - + + col2 + + col0 - - col1 * CAST( + col1 AS DECIMAL ) - + col1 / + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT ( - ( - + 94 ) - + + col2 + + col0 - - col1 * CAST ( + col1 AS REAL ) - + col1 / + col2 ) IS NOT NULL
----

query I rowsort
SELECT 3 * - col0 FROM tab0
----
-261
-291
-45

query I rowsort
SELECT DISTINCT + - 54 AS col1 FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8738
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 NOT IN ( - + CAST( 28 AS DECIMAL ), + col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-8738
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 NOT IN ( - + CAST ( 28 AS REAL ), + col1 ) ) )
----

query I rowsort
SELECT DISTINCT col2 * + - 24 AS col1 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT - COUNT( * ) + + + MAX( ALL + col1 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - COUNT ( * ) + + + MAX ( ALL + col1 ) FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT + 12 + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 12 + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 18 AS col2 FROM tab0 WHERE - col0 NOT BETWEEN - 95 - + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT 48 * ( 43 ) * - - 68 + 5 + + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
140357

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT 48 * ( 43 ) * - - 68 + 5 + + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
140357

query I rowsort
SELECT 33 / - + 95 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 69 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND + - col0 + + 38 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT + col0 - + - CAST( + 86 AS SIGNED ) - 73 FROM tab1
----
104
64
98

skipif mysql # not compatible
query I rowsort label-8747
SELECT + col0 - + - CAST ( + 86 AS INTEGER ) - 73 FROM tab1
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - 9 + + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8748
SELECT - 9 + + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 48 IS NULL
----

query I rowsort
SELECT 22 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT MAX( ALL col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8751
SELECT MAX ( ALL col1 ) col0 FROM tab2
----
77

query II rowsort
SELECT DISTINCT - 29 AS col1, + col2 FROM tab0
----
-29
10
-29
47
-29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + + 78 * COUNT( * ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8753
SELECT + + 78 * COUNT ( * ) FROM tab2 AS cor0
----
234

query I rowsort
SELECT ALL + col0 * - col2 * col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - - 14 * - COUNT( * ) + - 25 - - 64 * - MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3331

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - - 14 * - COUNT ( * ) + - 25 - - 64 * - MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3331

query II rowsort
SELECT + col2, - ( 12 ) FROM tab2 AS cor0
----
23
-12
40
-12
58
-12

query I rowsort
SELECT ALL col1 * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 70 AS col2 FROM tab0 cor0 WHERE NOT + col1 IN ( - 55 / col0, + ( - 8 ) - col0 * - col2 )
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT - 15 DIV - 51 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT - 15 / - 51 * COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT 22 FROM tab2 WHERE NOT NULL IS NOT NULL
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT DISTINCT + ( + - col2 ) DIV + col2 + - - col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + ( + - col2 ) / + col2 + - - col2 FROM tab0
----
46
9
98

query I rowsort
SELECT ALL + 57 AS col2 FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - ( + MAX( ALL + col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8764
SELECT - ( + MAX ( ALL + col0 ) ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8765
SELECT COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT - - 85 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8766
SELECT - - 85 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - MIN( 12 ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - MIN ( 12 ) AS col1 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL COUNT( * ) * - - ( + + COUNT( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL COUNT ( * ) * - - ( + + COUNT ( * ) ) AS col2 FROM tab1, tab1 AS cor0
----
81

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE - - 60 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT ALL + 24 AS col1, + 10 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0fcc23d44124e8fd1c64e47869e743be

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL ( + + COUNT( * ) ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL ( + + COUNT ( * ) ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT - + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT - + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 + + - 83 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT - 80 * + - ( - col0 ) DIV + col0 + - 79 + - col2 + col0 FROM tab1 AS cor0
----
-133
-136
-204

skipif mysql # not compatible
query I rowsort label-8775
SELECT - 80 * + - ( - col0 ) / + col0 + - 79 + - col2 + col0 FROM tab1 AS cor0
----
-133
-136
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT - col2 + - + ( - ( - CAST( - - col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-8776
SELECT - col2 + - + ( - ( - CAST ( - - col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT + + ( - + 66 ) + + col2 - - col0 FROM tab1 AS cor0
----
78
81
93

query I rowsort
SELECT + col2 + + 78 FROM tab0 AS cor0
----
125
177
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - + COUNT( * ) + + + 1 col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT ALL - + COUNT ( * ) + + + 1 col1 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 + col2 col0 FROM tab1 AS cor0
----
57
66
94

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 63 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT COUNT( ALL col0 ) FROM tab1 WHERE NOT - 50 + 48 <= 72
----
0

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab1 WHERE NOT - 50 + 48 <= 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL + 3 + - + col0 AS col2 FROM tab0 WHERE NOT - - CAST( col0 AS SIGNED ) < - 64
----
-12
-84
-94

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + 3 + - + col0 AS col2 FROM tab0 WHERE NOT - - CAST ( col0 AS INTEGER ) < - 64
----
-12
-84
-94

query I rowsort
SELECT DISTINCT col1 * - col1 - - col0 * + - col2 FROM tab0 AS cor0
----
-1311
-7266
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT 7, col1 * - + col1 + + - col0 AS col2 FROM tab0
----
7
-528
7
-6576
7
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL CAST( 97 AS SIGNED ) * - - COUNT( * ) + - MIN( DISTINCT 17 ) col2 FROM tab0 AS cor0
----
274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8788
SELECT ALL CAST ( 97 AS INTEGER ) * - - COUNT ( * ) + - MIN ( DISTINCT 17 ) col2 FROM tab0 AS cor0
----
274

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT ALL + 51 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + 51 / col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - + col2 * + + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL 31 AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ALL - 58 * + col1 AS col1 FROM tab1 AS cor0
----
-2726
-290
-812

query II rowsort
SELECT col1 / - + 17, + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + + col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 - - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + MAX( - - 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8795
SELECT + MAX ( - - 96 ) FROM tab2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT col1 DIV + 45 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8796
SELECT col1 / + 45 AS col2 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT 62 AS col2, - col1 * - col1 FROM tab1
----
62
196
62
2209
62
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT - CAST( + 37 AS SIGNED ) FROM tab2
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8798
SELECT - CAST ( + 37 AS INTEGER ) FROM tab2
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT + ( - col1 ) DIV - 63 + - 77 + col2 FROM tab2
----
-18
-36
-54

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + ( - col1 ) / - 63 + - 77 + col2 FROM tab2
----
-18
-36
-54

query I rowsort
SELECT ( - - 25 ) FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT ALL + + ( - ( - - col2 ) ) / - + CAST( NULL AS SIGNED ) FROM tab2 WHERE 20 NOT BETWEEN + col1 * + + col1 AND col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + + ( - ( - - col2 ) ) / - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE 20 NOT BETWEEN + col1 * + + col1 AND col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8802
SELECT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8802
SELECT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT + col1 + + + 0 - col2 + - 27 * + 21 * + 99 AS col2 FROM tab2
----
-56096
-56105
-56124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT - CAST( - - SUM( ALL col2 ) AS SIGNED ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8804
SELECT - CAST ( - - SUM ( ALL col2 ) AS INTEGER ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT - 48 AS col1 FROM tab0 AS cor0 WHERE + col1 IN ( + col1, 4 + + - col2, + col0 * - 55, - + col2, col2 )
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT COUNT( * ) * - - COUNT( ALL - col0 ) + + 4 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT COUNT ( * ) * - - COUNT ( ALL - col0 ) + + 4 FROM tab2 AS cor0
----
13

query II rowsort
SELECT DISTINCT + col2, 93 * col2 AS col1 FROM tab0 AS cor0
----
10
930
47
4371
99
9207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT col2 + col1 * CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT col2 + col1 * CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col2 ) NOT BETWEEN col1 AND + col0 * 4
----
97
1
99

query I rowsort
SELECT - col2 * - col1 + - + 14 FROM tab2
----
1159
3066
3872

query I rowsort
SELECT - col2 * + 68 + + + col1 FROM tab1
----
-4007
-4577
-6514

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT + 9 * - 36 col2, col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE 33 <> - CAST( - - col2 AS SIGNED )
----
-324
NULL
-324
NULL
-324
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8812
SELECT + 9 * - 36 col2, col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE 33 <> - CAST ( - - col2 AS INTEGER )
----
-324
NULL
-324
NULL
-324
NULL

query I rowsort
SELECT DISTINCT - 75 * col0 + + - 52 FROM tab2 AS cor0
----
-3502
-4852
-5677

query I rowsort
SELECT ALL 40 - col2 * + 65 FROM tab1 AS cor0
----
-3795
-4380
-6200

query I rowsort
SELECT ALL + col1 + + - col1 + col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE 55 BETWEEN col2 AND - - col0
----
-87

query I rowsort
SELECT - ( - col0 ) - + - 99 AS col0 FROM tab2 AS cor0
----
145
163
174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 NOT IN ( - col1 * - 52 + + 41, - ( - + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT col1 * + col1 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT col1 * + col1 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 15 - - 40 * + col1 * - col0 FROM tab2 AS cor0
----
-197105
-200985
-93825

query III rowsort
SELECT * FROM tab1 WHERE 57 + - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT col1 + col2 DIV - - 84 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8823
SELECT col1 + col2 / - - 84 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 * - 33 FROM tab0 WHERE + 38 IS NULL
----

query I rowsort
SELECT col0 + - + col2 AS col0 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL - - COUNT( * ) FROM tab2 WHERE NOT + 40 * + 10 * + col1 / + + ( 31 ) + - ( + 25 ) * + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE NOT + 40 * + 10 * + col1 / + + ( 31 ) + - ( + 25 ) * + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT ( - MIN( col2 ) ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8827
SELECT DISTINCT ( - MIN ( col2 ) ) col0 FROM tab1
----
-59

query II rowsort
SELECT ALL col0, - col2 * + col2 AS col0 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT 49 DIV + 54 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8830
SELECT 49 / + 54 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 * - col1, col2 col0 FROM tab2
----
2499
23
3283
58
3773
40

query I rowsort
SELECT ALL + - 36 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT + - col2 * + col1 + 65 AS col2 FROM tab1 AS cor0
----
-1279
-230
-3131

query II rowsort
SELECT + - 21 * col1 * - col2 * - + 50, - 75 AS col2 FROM tab2 AS cor0
----
-1231650
-75
-3234000
-75
-4080300
-75

query I rowsort
SELECT DISTINCT - - 98 AS col0 FROM tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 82 ) col0 FROM tab2
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - ( - SUM( DISTINCT + col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - ( - SUM ( DISTINCT + col0 ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + + ( + 1 ) + - 26 + + + 86 + - - col0 * - 66 BETWEEN 67 + col1 - - - col0 + - col2 AND + col1 + col0 * - col0 * - + col2
----

query II rowsort
SELECT ALL + 49, col0 + + col0 AS col2 FROM tab0
----
49
174
49
194
49
30

query I rowsort
SELECT ALL 21 * + 23 AS col1 FROM tab2
----
483
483
483

query I rowsort
SELECT col2 + + 36 AS col0 FROM tab2
----
59
76
94

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 < col0
----

query I rowsort
SELECT ALL + ( - col0 ) * + 49 FROM tab1
----
-2499
-4165
-4459

query I rowsort
SELECT - 55 * - - ( - + 89 ) * col0 - col0 AS col2 FROM tab0 AS cor0
----
425778
474718
73410

query I rowsort
SELECT ALL + + 17 + - col1 AS col2 FROM tab1 AS cor0
----
-30
12
3

query I rowsort
SELECT DISTINCT + 30 + + - ( - 94 ) FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + 53 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8847
SELECT + 53 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT DISTINCT SUM( - 25 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT SUM ( - 25 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col1, 17 * - col2 AS col0 FROM tab1
----
-14
-1632
-47
-1156
-5
-1003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73, ( col1 ) col1 FROM tab2
----
73
51
73
67
73
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + SUM( ALL ( + 85 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
765

skipif mysql # not compatible
query I rowsort label-8851
SELECT + SUM ( ALL ( + 85 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
765

query I rowsort
SELECT - 48 + col1 FROM tab1
----
-1
-34
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + 54 BETWEEN NULL AND col2 + + col1
----

query I rowsort
SELECT - 65 * - col0 + - col1 FROM tab1 AS cor0
----
3301
5520
5868

query I rowsort
SELECT ALL - - col2 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT ALL - - col2 + - - ( + col2 ) * - + 0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + - ( + 93 ) + 57 * + 57 * + col1 FROM tab1 AS cor0
----
152610
16152
45393

query I rowsort
SELECT DISTINCT col1 + + + col2 - 94 AS col1 FROM tab0 AS cor0
----
-63
34
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - 61 col0 FROM tab2 AS cor0
----
21
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + SUM( ALL col0 ) + - + 3 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + SUM ( ALL col0 ) + - + 3 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) * + col1 * - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + col1 * - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT + 59 * - - 68 * + COUNT( * ) - - + SUM( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
12192

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + 59 * - - 68 * + COUNT ( * ) - - + SUM ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
12192

query I rowsort
SELECT DISTINCT 50 * col0 * col2 - col1 AS col0 FROM tab0
----
35169
43479
480149

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col0 * 64
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8865
SELECT DISTINCT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ), 11 AS col0 FROM tab0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ), 11 AS col0 FROM tab0
----
NULL
11

query II rowsort
SELECT 45 * col2, - 39 + col0 + col2 AS col1 FROM tab1
----
2655
105
3060
120
4320
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + COUNT( + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT + COUNT ( + col0 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * 79 * - + col0 col2 FROM tab2 AS cor0
----
-112575
-69046
-96064

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT - 54 DIV - - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 54 / - - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - col1 * 77 + + 84 + + col2 FROM tab0 AS cor0
----
-1523
-6106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 41 * - - 72 + - - col1 = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 41 * - - 72 + - - col1 = - col1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - + 40 ) FROM tab2 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab0
----
19

query II rowsort
SELECT ALL col2, 54 AS col0 FROM tab0
----
10
54
47
54
99
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab1 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, + 56 FROM tab0 AS cor0
----
-10
56
-47
56
-99
56

query II rowsort
SELECT DISTINCT - 87 AS col0, - col1 FROM tab2 AS cor0
----
-87
-51
-87
-67
-87
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + - MAX( ALL 63 ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8878
SELECT + - MAX ( ALL 63 ) AS col2 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - + MAX( + ( - + 81 ) ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8879
SELECT - + MAX ( + ( - + 81 ) ) FROM tab1 AS cor0
----
81

query II rowsort
SELECT ALL col2 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL + + 49 * + 20 - + CAST( NULL AS SIGNED ) - + - col2 - - + 88 * + col2 + + 35 * - col1 * - 11 - - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + + 49 * + 20 - + CAST ( NULL AS INTEGER ) - + - col2 - - + 88 * + col2 + + 35 * - col1 * - 11 - - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - 76 + - col0 NOT BETWEEN - col1 * - - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 76 + - col0 NOT BETWEEN - col1 * - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT SUM( + - 89 ) FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-8883
SELECT SUM ( + - 89 ) FROM tab1
----
-267

query I rowsort
SELECT - 95 FROM tab1 WHERE NULL IS NULL
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT MIN( ALL - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8885
SELECT MIN ( ALL - + col1 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - 32 * + + COUNT( DISTINCT col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - 32 * + + COUNT ( DISTINCT col2 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT ALL - - 97 + COUNT( * ) DIV + + 69 col1 FROM tab2 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT ALL - - 97 + COUNT ( * ) / + + 69 col1 FROM tab2 cor0
----
97

query I rowsort
SELECT + 10 + 12 AS col2 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8889
SELECT - COUNT( - col1 ) * + 29 AS col2, ( COUNT( * ) ) AS col1 FROM tab0
----
-87
3

skipif mysql # not compatible
query II rowsort label-8889
SELECT - COUNT ( - col1 ) * + 29 AS col2, ( COUNT ( * ) ) AS col1 FROM tab0
----
-87
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 44 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT DISTINCT COUNT( * ) - - MAX( ALL + col2 ) col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL + col2 ) col2 FROM tab2 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT ( - col2 ) - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-8892
SELECT ( - col2 ) - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ALL 77 * + - col1 DIV + col1 FROM tab0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 77 * + - col1 / + col1 FROM tab0
----
-77
-77
-77

query I rowsort
SELECT + ( 29 ) * - col0 AS col0 FROM tab0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT DISTINCT - 59 * 11 * + COUNT( * ) DIV COUNT( * ) col2 FROM tab0
----
-649

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8897
SELECT DISTINCT - 59 * 11 * + COUNT ( * ) / COUNT ( * ) col2 FROM tab0
----
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT col1 AS col0 FROM tab1 WHERE NOT - - col0 IN ( + 88 * col1 + - CAST( + col2 AS SIGNED ) * + + col2, + 36, - 99 * + 81 - + 44 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8898
SELECT col1 AS col0 FROM tab1 WHERE NOT - - col0 IN ( + 88 * col1 + - CAST ( + col2 AS INTEGER ) * + + col2, + 36, - 99 * + 81 - + 44 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT col2 DIV + + ( + - 65 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT col2 / + + ( + - 65 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( + - 41 ) FROM tab1
----
-41
-41
-41

query I rowsort
SELECT + 42 * + col0 FROM tab1
----
2142
3570
3822

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8902
SELECT DISTINCT - col2, ( + CAST( NULL AS SIGNED ) ) + + - ( - 5 ) FROM tab1 AS cor0 WHERE NOT - ( col0 ) + 35 BETWEEN - col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-8902
SELECT DISTINCT - col2, ( + CAST ( NULL AS INTEGER ) ) + + - ( - 5 ) FROM tab1 AS cor0 WHERE NOT - ( col0 ) + 35 BETWEEN - col2 AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - + 45 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8904
SELECT ( - + CAST( NULL AS SIGNED ) ), CAST( MAX( 16 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8904
SELECT ( - + CAST ( NULL AS INTEGER ) ), CAST ( MAX ( 16 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + MIN( + 77 ) AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8905
SELECT + MIN ( + 77 ) AS col1 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT 91 + + + COUNT( * ) AS col0 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-8906
SELECT 91 + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
94

query II rowsort
SELECT DISTINCT - col0 * + - 71 * col2 + 83 + + 94 AS col1, col0 AS col0 FROM tab1 AS cor0
----
347793
51
356242
85
439525
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 + col1 - - 55 * col0 + - col2, + ( + 7 ) col1 FROM tab1 cor0
----
2786
7
4684
7
5047
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - 64 + + COUNT( * ) * - 12 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-8909
SELECT - 64 + + COUNT ( * ) * - 12 FROM tab1 AS cor0
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL 32 AS col0, col2 FROM tab1
----
32
59
32
68
32
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT COUNT( * ) - 66 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8913
SELECT COUNT ( * ) - 66 FROM tab2
----
-63

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col1 + - 55 * - col1 IS NOT NULL
----

query I rowsort
SELECT + 50 * col0 AS col2 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) + col0 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT + ( col0 ) * + col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - 23 * COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-8919
SELECT - 23 * COUNT ( * ) FROM tab1
----
-69

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 + - col0 * + 87 IS NOT NULL
----

query I rowsort
SELECT col1 + ( - ( ( ( + col2 ) ) ) + col1 * - col1 ) FROM tab2
----
-2573
-4480
-5892

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT 97 * + 53 FROM tab1
----
5141
5141
5141

query I rowsort
SELECT DISTINCT col2 * - 70 AS col2 FROM tab2
----
-1610
-2800
-4060

query I rowsort
SELECT + col0 + col2 * + 39 AS col0 FROM tab2
----
1624
2337
943

query I rowsort
SELECT col0 + 60 AS col1 FROM tab1 WHERE NOT col0 < NULL
----

query I rowsort
SELECT - 75 FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT COUNT( * ) + - 85 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-8929
SELECT COUNT ( * ) + - 85 FROM tab0
----
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 > 68 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT col0 + + ( - col1 ) DIV col0 col0 FROM tab2
----
45
63
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8931
SELECT col0 + + ( - col1 ) / col0 col0 FROM tab2
----
45
63
75

query I rowsort
SELECT ALL - 78 - 47 FROM tab1
----
-125
-125
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL MAX( - 66 ) + 89 * 17 FROM tab0
----
1447

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL MAX ( - 66 ) + 89 * 17 FROM tab0
----
1447

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT COUNT( * ) + - 17 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT COUNT ( * ) + - 17 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL SUM( DISTINCT - col2 ) + 6 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL SUM ( DISTINCT - col2 ) + 6 FROM tab0
----
-150

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN ( - col1 ) AND - col2
----

query I rowsort
SELECT + col0 + 72 AS col0 FROM tab2
----
118
136
147

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 WHERE - 6 * - col0 IS NULL
----

query I rowsort
SELECT - col1 + 76 * - col1 FROM tab0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT - MIN( col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - MIN ( col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT DISTINCT - col2 DIV + 57 FROM tab1 WHERE 36 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - col2 / + 57 FROM tab1 WHERE 36 IS NOT NULL
----
-1

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE + 15 = ( + 37 )
----

query I rowsort
SELECT - 96 + + col1 AS col2 FROM tab2
----
-19
-29
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 58
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + col2 NOT BETWEEN ( 57 + + col0 ) AND 64 * - 61
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / - 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT DISTINCT - 82 DIV + 98 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - 82 / + 98 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 54 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-105
-139
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL MIN( + 21 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL MIN ( + 21 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - MAX( ALL - col0 ) * - 98 + - 60 FROM tab2
----
-4568

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - MAX ( ALL - col0 ) * - 98 + - 60 FROM tab2
----
-4568

query I rowsort
SELECT DISTINCT + - col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL COUNT( * ) + - ( 27 ) * COUNT( * ) AS col2 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL COUNT ( * ) + - ( 27 ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 1 BETWEEN ( - col1 / 14 + col2 * 5 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - col0 * - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL MAX( DISTINCT + ( col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL MAX ( DISTINCT + ( col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + - 89 * col0 + 66 FROM tab2 AS cor0
----
-4028
-5630
-6609

query III rowsort
SELECT * FROM tab2 WHERE 56 IS NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( NULL ) IN ( col0 / 27 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT SUM( ALL - col0 ) DIV 46 AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8959
SELECT SUM ( ALL - col0 ) / 46 AS col0 FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - MIN( ALL col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - MIN ( ALL col0 ) AS col1 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) > - col1 OR NOT ( NULL ) IS NULL
----
46
51
23
64
77
40

query I rowsort
SELECT ALL col2 * - - 88 AS col0 FROM tab0
----
4136
8712
880

query I rowsort
SELECT 83 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) > col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL 39 + - COUNT( * ) FROM tab1 WHERE NOT ( - col1 ) NOT IN ( + col0 )
----
39

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL 39 + - COUNT ( * ) FROM tab1 WHERE NOT ( - col1 ) NOT IN ( + col0 )
----
39

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - - 51 + 1 + + col0 FROM tab1 AS cor0
----
103
137
143

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( + 2 + - 42 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - - + 33 * col2 * - 63 + + 47 AS col2 FROM tab1
----
-122555
-141257
-199441

query I rowsort
SELECT + 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > ( + 87 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * + - 63 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 >= + ( - col2 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 98 NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 98 NOT IN ( + col1 )
----
0

query II rowsort
SELECT DISTINCT + 79 AS col2, col0 FROM tab2 AS cor0
----
79
46
79
64
79
75

query II rowsort
SELECT + col0, col2 + col0 AS col1 FROM tab1 AS cor0
----
51
147
85
144
91
159

query I rowsort
SELECT - 66 AS col0 FROM tab0 cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN + col2 * + col2 AND + 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col2 * - 82 AS col2 FROM tab1
----
4838
5576
7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT ALL CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) * - col2 + 5 col1 FROM tab1
----
1480
150217
18821

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col0 > - ( 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL + ( MIN( ALL col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + ( MIN ( ALL col0 ) ) AS col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + 43 ) > ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - MIN( ALL col0 ) * COUNT( * ) AS col1 FROM tab0 WHERE + col0 < ( + col2 * col0 ) AND NOT ( col0 * col1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT - MIN ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab0 WHERE + col0 < ( + col2 * col0 ) AND NOT ( col0 * col1 ) = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 77 AND ( + + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - MIN( DISTINCT 84 ) col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8989
SELECT ALL - MIN ( DISTINCT 84 ) col0 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + 90 FROM tab0
----
-810

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + 90 FROM tab0
----
-810

query I rowsort
SELECT ALL 17 * + ( - ( - col2 ) ) FROM tab2
----
391
680
986

query I rowsort
SELECT + - 79 * - + col1 + col1 FROM tab1 AS cor0
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - 6 + + COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8993
SELECT - 6 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT DISTINCT + + 60 + + col2 DIV - 1 FROM tab1 AS cor0
----
-36
-8
1

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + + 60 + + col2 / - 1 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + - SUM( ALL + 26 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8995
SELECT + - SUM ( ALL + 26 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - + col1 + - 27 AS col1 FROM tab2 AS cor0
----
-104
-78
-94

query I rowsort
SELECT DISTINCT - col2 + + col0 * 95 FROM tab1 AS cor0
----
4749
8016
8577

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + + MAX( col1 ) + COUNT( 45 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8998
SELECT + + MAX ( col1 ) + COUNT ( 45 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT - 3 + + 38 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT MAX( + ( - 2 ) ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT MAX ( + ( - 2 ) ) AS col0 FROM tab1
----
-2

query II rowsort
SELECT ALL + col1 AS col2, + 22 FROM tab2
----
51
22
67
22
77
22

query II rowsort
SELECT DISTINCT + 62 AS col0, - col0 + ( - + 26 ) AS col1 FROM tab1
----
62
-111
62
-117
62
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 48 * + col2 * - col0 FROM tab2
----
-122880
-208800
-50784

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL MAX( + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL MAX ( + col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - SUM( DISTINCT - + 64 ) AS col1 FROM tab1 AS cor0 WHERE - 63 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT - SUM ( DISTINCT - + 64 ) AS col1 FROM tab1 AS cor0 WHERE - 63 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ( - + SUM( DISTINCT + col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-9007
SELECT ( - + SUM ( DISTINCT + col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT COUNT( * ) + + COUNT( ALL 57 ) AS col1 FROM tab2 WHERE + col1 * 46 > col2
----
6

skipif mysql # not compatible
query I rowsort label-9008
SELECT COUNT ( * ) + + COUNT ( ALL 57 ) AS col1 FROM tab2 WHERE + col1 * 46 > col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + - 39 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9011
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL > 53 / + ( - col2 ) * ( + - 1 ) / - CAST( NULL AS DECIMAL ) - - col2
----

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL > 53 / + ( - col2 ) * ( + - 1 ) / - CAST ( NULL AS REAL ) - - col2
----

query I rowsort
SELECT 95 * 92 + - ( - + 2 ) + - 83 FROM tab0 AS cor0
----
8659
8659
8659

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT + col0 DIV 59 AS col1 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9013
SELECT + col0 / 59 AS col1 FROM tab2 cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT - MAX( DISTINCT + col1 ) DIV 48 * + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9015
SELECT - MAX ( DISTINCT + col1 ) / 48 * + COUNT ( * ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + ( + + 11 ) * - - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 91 AS col0 FROM tab2 cor0
----
91

query I rowsort
SELECT col2 * 92 AS col2 FROM tab1
----
5428
6256
8832

query II rowsort
SELECT DISTINCT - 30 AS col1, - ( + col1 ) * ( - + ( + + 44 ) ) + - 22 + - col1 FROM tab0
----
-30
21
-30
3461
-30
881

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * col2 * + 21 * - - col2 + - 34 < - col2 * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9021
SELECT + col1, - col1 DIV col0 FROM tab0
----
1
0
21
0
81
-5

skipif mysql # not compatible
query II rowsort label-9021
SELECT + col1, - col1 / col0 FROM tab0
----
1
0
21
0
81
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT MIN( - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT MIN ( - + col1 ) FROM tab0
----
-81

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 IN ( + 86 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT - 93 * + COUNT( * ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT - 93 * + COUNT ( * ) FROM tab1
----
-279

query II rowsort
SELECT col0, + 65 FROM tab2 AS cor0
----
46
65
64
65
75
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - COUNT( * ) + + SUM( ALL 43 ) + - - MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - COUNT ( * ) + + SUM ( ALL 43 ) + - - MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
127

query I rowsort
SELECT DISTINCT col1 + + 16 AS col0 FROM tab1 AS cor0
----
21
30
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 40 * + - col1 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL + COUNT( * ) + - 31 col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9030
SELECT ALL + COUNT ( * ) + - 31 col1 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT DISTINCT + col1 - - col2 DIV + 70 col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT DISTINCT + col1 - - col2 / + 70 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL + COUNT( 96 ) - - ( + + 14 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + COUNT ( 96 ) - - ( + + 14 ) FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT DISTINCT + 81 * + - MIN( - col1 ) AS col0, + 86 FROM tab0
----
6561
86

skipif mysql # not compatible
query II rowsort label-9033
SELECT DISTINCT + 81 * + - MIN ( - col1 ) AS col0, + 86 FROM tab0
----
6561
86

query I rowsort
SELECT DISTINCT col0 - + 80 FROM tab0
----
-65
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL MIN( + 16 ) * + SUM( ALL 81 ) FROM tab2
----
3888

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL MIN ( + 16 ) * + SUM ( ALL 81 ) FROM tab2
----
3888

query I rowsort
SELECT ALL + 87 * - 88 FROM tab2
----
-7656
-7656
-7656

query I rowsort
SELECT col2 + col0 - - + col2 * + + col0 + + + col0 FROM tab2
----
1173
2728
4558

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9038
SELECT ALL CAST( col2 AS SIGNED ) DIV 60 col1, col2 FROM tab0
----
0
10
0
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9038
SELECT ALL CAST ( col2 AS INTEGER ) / 60 col1, col2 FROM tab0
----
0
10
0
47
1
99

query I rowsort
SELECT 67 + 61 * - 19 FROM tab0
----
-1092
-1092
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT ALL - col2 + - 37 DIV col1 FROM tab1 cor0
----
-66
-68
-98

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - col2 + - 37 / col1 FROM tab1 cor0
----
-66
-68
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + MIN( col2 ) + - + SUM( + col0 ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
607

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9042
SELECT ALL + MIN ( col2 ) + - + SUM ( + col0 ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - - MIN( ALL - 3 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9043
SELECT - - MIN ( ALL - 3 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0 AS col1, - 80 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT + MAX( DISTINCT 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + MAX ( DISTINCT 84 ) FROM tab2
----
84

query II rowsort
SELECT 4 AS col1, - 81 FROM tab2
----
4
-81
4
-81
4
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - COUNT( * ) * COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-9047
SELECT - COUNT ( * ) * COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

query II rowsort
SELECT DISTINCT 75 AS col1, - 57 FROM tab0 AS cor0
----
75
-57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 22 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT col2 DIV + 24 + col1 AS col2 FROM tab0 AS cor0
----
21
5
82

skipif mysql # not compatible
query I rowsort label-9050
SELECT col2 / + 24 + col1 AS col2 FROM tab0 AS cor0
----
21
5
82

query II rowsort
SELECT ALL - 83 AS col2, + 70 * 66 + ( + col0 ) FROM tab1 AS cor0
----
-83
4671
-83
4705
-83
4711

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT 99 AS col0, - COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
99
-6

skipif mysql # not compatible
query II rowsort label-9052
SELECT 99 AS col0, - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
99
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT COUNT( * ) * 23 col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT COUNT ( * ) * 23 col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT COUNT( * ) * + - SUM( - 75 ) FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT COUNT ( * ) * + - SUM ( - 75 ) FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + + + col1 + - col1 IN ( + 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL + MIN( + 2 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL + MIN ( + 2 ) AS col0 FROM tab0
----
2

query I rowsort
SELECT + col1 + + 17 - - col2 - - - col0 AS col1 FROM tab1
----
-4
41
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 75 + + col0 - + + ( + col1 ) * col0 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 27 + ( 39 ) * - 78 FROM tab2 AS cor0
----
-3069
-3069
-3069

query I rowsort
SELECT DISTINCT + col1 * - col1 * + 43 - 80 + col2 FROM tab0 cor0
----
-19033
-24
-282156

query I rowsort
SELECT ALL - 20 * - col0 + + 89 - + col2 FROM tab2 AS cor0
----
1329
1531
986

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + + 71 * + COUNT( * ) FROM tab1 cor0
----
213

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + + 71 * + COUNT ( * ) FROM tab1 cor0
----
213

query I rowsort
SELECT DISTINCT col1 - - - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT - CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9065
SELECT - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * - col2 * - 11 AS col0 FROM tab1
----
14784
3245
35156

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 - + - 1 AS col2 FROM tab0
----
100
11
48

query III rowsort
SELECT * FROM tab0 WHERE 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + 23 col2 FROM tab0
----
-2
-22
58

query I rowsort
SELECT - col0 * + 52 FROM tab1 cor0
----
-2652
-4420
-4732

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + 31 * - + SUM( ALL 64 ) FROM tab0, tab0 AS cor0
----
-17856

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 31 * - + SUM ( ALL 64 ) FROM tab0, tab0 AS cor0
----
-17856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, - 64 AS col1 FROM tab0 cor0
----
-1
-64
-21
-64
-81
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL NOT IN ( + col0, - col2 )
----

query I rowsort
SELECT ( - - 77 ) AS col2 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + 94 * + ( col2 ) AS col2 FROM tab2 cor0
----
2162
3760
5452

query I rowsort
SELECT 78 * + + ( col0 ) FROM tab2
----
3588
4992
5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col1 col1 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + MIN( 59 ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-9082
SELECT + MIN ( 59 ) AS col1 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT DISTINCT 57, COUNT( * ) * + 38 AS col2 FROM tab2
----
57
114

skipif mysql # not compatible
query II rowsort label-9083
SELECT DISTINCT 57, COUNT ( * ) * + 38 AS col2 FROM tab2
----
57
114

query II rowsort
SELECT - col2, col1 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) * - 31 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + SUM( + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + SUM ( + col0 ) FROM tab1
----
227

query II rowsort
SELECT ALL + 91 AS col2, col0 AS col2 FROM tab2 WHERE + 2 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + 5 FROM tab0 AS cor0
----
1
5
21
5
81
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT ALL + - 25 DIV + 30 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL + - 25 / + 30 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL - CAST( NULL AS SIGNED ) + - + AVG ( ALL + col2 ) + - AVG ( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - CAST ( NULL AS INTEGER ) + - + AVG ( ALL + col2 ) + - AVG ( DISTINCT col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT - col2 DIV - + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT - col2 / - + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 3 * + col2 AS col1 FROM tab1
----
177
204
288

query I rowsort
SELECT ALL 33 + - + 14 AS col2 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + CAST( + 80 AS SIGNED ) ) AND + col1 * + 73
----

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + CAST ( + 80 AS INTEGER ) ) AND + col1 * + 73
----

query I rowsort
SELECT + - 31 - + col1 FROM tab0 AS cor0
----
-112
-32
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT 66 * 17 + - + SUM( - - col2 ) AS col1 FROM tab0
----
966

skipif mysql # not compatible
query I rowsort label-9096
SELECT 66 * 17 + - + SUM ( - - col2 ) AS col1 FROM tab0
----
966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9097
SELECT ALL - ( COUNT( * ) ) / - CAST( NULL AS DECIMAL ) - + 35 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - ( COUNT ( * ) ) / - CAST ( NULL AS REAL ) - + 35 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - 91 * - ( COUNT( * ) ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-9098
SELECT - 91 * - ( COUNT ( * ) ) FROM tab0
----
273

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9100
SELECT + 40 * + CAST( COUNT( * ) AS SIGNED ), - 19 AS col2 FROM tab1
----
120
-19

skipif mysql # not compatible
query II rowsort label-9100
SELECT + 40 * + CAST ( COUNT ( * ) AS INTEGER ), - 19 AS col2 FROM tab1
----
120
-19

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col2 + + + ( - col1 ) ) >= - ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT ALL + + 97 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + + 97 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 93 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - 84 * + 34 * + - ( - 29 ) * 46 * MAX( ALL + 22 ) FROM tab1 AS cor0
----
-83817888

skipif mysql # not compatible
query I rowsort label-9106
SELECT - 84 * + 34 * + - ( - 29 ) * 46 * MAX ( ALL + 22 ) FROM tab1 AS cor0
----
-83817888

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT MIN( ALL col2 ) * 41 col0 FROM tab0
----
410

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9108
SELECT DISTINCT MIN ( ALL col2 ) * 41 col0 FROM tab0
----
410

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 5 IN ( + + col1 + + col2 + - 5 + - col0, col1 ) )
----

query I rowsort
SELECT - - 27 * - 0 FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT - col0 DIV + col0 + + - col2 + + 59 AS col0 FROM tab2 AS cor0
----
0
18
35

skipif mysql # not compatible
query I rowsort label-9111
SELECT - col0 / + col0 + + - col2 + + 59 AS col0 FROM tab2 AS cor0
----
0
18
35

query I rowsort
SELECT + 30 + + col1 * col0 + ( - col1 ) + + 24 - - col2 * + + col0 FROM tab2 AS cor0
----
3407
7465
9362

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + - 58 + - + COUNT( * ) * MIN( col2 ) FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9114
SELECT + - 58 + - + COUNT ( * ) * MIN ( col2 ) FROM tab0 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT MAX( + 85 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT MAX ( + 85 ) AS col0 FROM tab1
----
85

query I rowsort
SELECT ( - 25 ) + - + 59 FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL - col0 FROM tab0 WHERE 87 NOT IN ( + CAST( + 49 AS SIGNED ) - + col0 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - col0 FROM tab0 WHERE 87 NOT IN ( + CAST ( + 49 AS INTEGER ) - + col0 )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 = + ( - col1 )
----

query I rowsort
SELECT ALL + col0 * + + col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9121
SELECT * FROM tab1 AS cor0 WHERE - 68 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9121
SELECT * FROM tab1 AS cor0 WHERE - 68 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col1, - 86 AS col1 FROM tab2 AS cor0
----
-36
-86
-36
-86
-36
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT ( - + col2 ) * - CAST( NULL AS SIGNED ) * ( - 63 ) AS col1 FROM tab2 AS cor0 WHERE 60 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9123
SELECT ( - + col2 ) * - CAST ( NULL AS INTEGER ) * ( - 63 ) AS col1 FROM tab2 AS cor0 WHERE 60 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9124
SELECT ALL + + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT + MAX( - 5 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + MAX ( - 5 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT + ( + col0 ) + - 92 DIV + ( col0 ) FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9126
SELECT + ( + col0 ) + - 92 / + ( col0 ) FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT 20 + + 33 - - 85 FROM tab1 AS cor0
----
138
138
138

query I rowsort
SELECT + - 22 + + - col1 AS col1 FROM tab0 AS cor0
----
-103
-23
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL COUNT( * ) - + 31 AS col0 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL COUNT ( * ) - + 31 AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9130
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT 41 / - ( 63 ) * - AVG ( ALL - CAST( NULL AS SIGNED ) ) + - + 53 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT 41 / - ( 63 ) * - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - + 53 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 81 AS col1 FROM tab1 AS cor0
----
-10
-4
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + + COUNT( * ) - - 20 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + + COUNT ( * ) - - 20 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9136
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - 36 + CAST( NULL AS DECIMAL ) + CAST( + 41 AS SIGNED ) * 48 AND - + ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9136
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - 36 + CAST ( NULL AS REAL ) + CAST ( + 41 AS INTEGER ) * 48 AND - + ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - - 51 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9138
SELECT - CAST( + col2 AS SIGNED ) AS col2, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-9138
SELECT - CAST ( + col2 AS INTEGER ) AS col2, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT MIN( ALL + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9139
SELECT MIN ( ALL + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT - col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT - col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT DISTINCT - COUNT( * ) * 13 AS col1, - SUM( + + 17 ) FROM tab0
----
-39
-51

skipif mysql # not compatible
query II rowsort label-9141
SELECT DISTINCT - COUNT ( * ) * 13 AS col1, - SUM ( + + 17 ) FROM tab0
----
-39
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 <= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col1 * col2 + + - 22 AS col1 FROM tab2 AS cor0
----
-1195
-3102
-3908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT ALL + CAST( + - 51 AS SIGNED ) FROM tab1 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + CAST ( + - 51 AS INTEGER ) FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL - + col0 * + + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - + col0 * + + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + - col0 * - col2 AS col1 FROM tab2 cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 16, col0 + + 52 )
----

query I rowsort
SELECT ALL + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + + 44 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query II rowsort label-9151
SELECT - 23 AS col0, - col1 DIV col0 + + col1 AS col1 FROM tab2 AS cor0
----
-23
50
-23
67
-23
76

skipif mysql # not compatible
query II rowsort label-9151
SELECT - 23 AS col0, - col1 / col0 + + col1 AS col1 FROM tab2 AS cor0
----
-23
50
-23
67
-23
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 AS col2, col2 col0 FROM tab2 cor0
----
26
23
26
40
26
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9153
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col2 + 32 * CAST( col0 AS DECIMAL ) + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9153
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col2 + 32 * CAST ( col0 AS REAL ) + + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT + + COUNT( + col1 ) * AVG ( + - col2 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + COUNT ( + col1 ) * AVG ( + - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9155
SELECT + 42 DIV - - ( + - 50 ), - col0 col1 FROM tab2 WHERE NULL IS NULL
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9155
SELECT + 42 / - - ( + - 50 ), - col0 col1 FROM tab2 WHERE NULL IS NULL
----
0
-46
0
-64
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL - ( - - MIN( DISTINCT + col0 ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - ( - - MIN ( DISTINCT + col0 ) ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL + col2 * - + 77 * + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab1
----
376992
386155
476476

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + col2 * - + 77 * + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab1
----
376992
386155
476476

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + + COUNT( + ( 50 ) ) * ( + + MAX( ALL - + 73 ) ) - + + COUNT( * ) FROM tab1 WHERE - - col1 * - + col0 BETWEEN - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT + + COUNT ( + ( 50 ) ) * ( + + MAX ( ALL - + 73 ) ) - + + COUNT ( * ) FROM tab1 WHERE - - col1 * - + col0 BETWEEN - col2 AND col0
----
NULL

query I rowsort
SELECT ( 16 ) + - col1 - - col2 FROM tab2
----
-12
-21
7

query I rowsort
SELECT ALL ( + col0 ) * + + 44 + - 21 FROM tab0
----
3807
4247
639

query I rowsort
SELECT 1 + + - col0 AS col1 FROM tab1
----
-50
-84
-90

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT NULL = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT COUNT( * ) + + 73 - COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9163
SELECT COUNT ( * ) + + 73 - COUNT ( * ) AS col0 FROM tab2
----
73

query I rowsort
SELECT col2 + - - 61 FROM tab2
----
101
119
84

query I rowsort
SELECT - ( + - col0 ) + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL - MAX( ALL - col1 ) + COUNT( * ) AS col0 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - MAX ( ALL - col1 ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
54

query I rowsort
SELECT ALL 48 - - + ( 38 ) FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT MIN( ALL - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9169
SELECT ALL - 66 * + COUNT( * ) + + 71 DIV - + COUNT( * ) + 31 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-570

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - 66 * + COUNT ( * ) + + 71 / - + COUNT ( * ) + 31 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - COUNT( DISTINCT col0 ) * + 14 * 11 * - SUM( DISTINCT - - col2 ) AS col0 FROM tab2
----
55902

skipif mysql # not compatible
query I rowsort label-9170
SELECT - COUNT ( DISTINCT col0 ) * + 14 * 11 * - SUM ( DISTINCT - - col2 ) AS col0 FROM tab2
----
55902

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + 96 - - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
87

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 96 - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL MAX( + 44 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL MAX ( + 44 ) FROM tab1
----
44

query I rowsort
SELECT + + col0 - 69 * + ( 5 ) FROM tab2 cor0
----
-270
-281
-299

query II rowsort
SELECT - 6 + - 49 AS col2, - 58 / + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 25 * + 80 - + col2 ) > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT - col1 - + col0 DIV col0 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-9176
SELECT - col1 - + col0 / col0 FROM tab1 AS cor0
----
-15
-48
-6

query II rowsort
SELECT ALL + col0 AS col2, + col2 AS col1 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT CAST( + 3 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9178
SELECT CAST ( + 3 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + - MIN( ALL - ( ( + 99 ) ) ) col0 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9179
SELECT ALL + - MIN ( ALL - ( ( + 99 ) ) ) col0 FROM tab2 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 col0, 92 AS col0 FROM tab1
----
19
92
19
92
19
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT - 30, MAX( ALL + col2 ) AS col0 FROM tab1
----
-30
96

skipif mysql # not compatible
query II rowsort label-9181
SELECT - 30, MAX ( ALL + col2 ) AS col0 FROM tab1
----
-30
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT DISTINCT - ( ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT - ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT DISTINCT 9, - col0 - - 80 * - col1 + col0 + - + col2 AS col0 FROM tab0
----
9
-1690
9
-179
9
-6527

query I rowsort
SELECT ALL + ( + 92 ) AS col0 FROM tab0
----
92
92
92

query II rowsort
SELECT col1, + 77 * 0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL - col0 * - col0 + + col2 + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE + + 27 * + + col2 + - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - col0 * - col0 + + col2 + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + + 27 * + + col2 + - col1 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT 30 AS col2, - col1 FROM tab1
----
30
-14
30
-47
30
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT ALL 99 AS col1, + 3 * - COUNT( * ) FROM tab2
----
99
-9

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL 99 AS col1, + 3 * - COUNT ( * ) FROM tab2
----
99
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT 48 * - COUNT( DISTINCT col1 ) FROM tab0 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT 48 * - COUNT ( DISTINCT col1 ) FROM tab0 cor0
----
-144

query I rowsort
SELECT DISTINCT + col2 * - 3 * 95 FROM tab0 AS cor0
----
-13395
-28215
-2850

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9192
SELECT DISTINCT + + col2 - - + col2 + 69 AS col2, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + 76 < + col2
----
115
NULL
149
NULL
185
NULL

skipif mysql # not compatible
query II rowsort label-9192
SELECT DISTINCT + + col2 - - + col2 + 69 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + 76 < + col2
----
115
NULL
149
NULL
185
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT - - MIN( DISTINCT - - ( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT - - MIN ( DISTINCT - - ( + col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COUNT( * ) * - 58 + - ( - 17 ) FROM tab0 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( * ) * - 58 + - ( - 17 ) FROM tab0 AS cor0
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT ALL - CAST( - 86 AS SIGNED ) AS col2 FROM tab0 cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - CAST ( - 86 AS INTEGER ) AS col2 FROM tab0 cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col1 FROM tab1
----
14
14
14

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT COUNT( + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9198
SELECT COUNT ( + + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9199
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( + + col0 AS SIGNED ) BETWEEN - + col0 * - col1 + - col0 * - - 78 AND - col2
----

skipif mysql # not compatible
query III rowsort label-9199
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( + + col0 AS INTEGER ) BETWEEN - + col0 * - col1 + - col0 * - - 78 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + + SUM( 16 ) + - 78 AS col1 FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + + SUM ( 16 ) + - 78 AS col1 FROM tab1 cor0
----
-30

query I rowsort
SELECT ALL 80 + 75 AS col1 FROM tab0 AS cor0
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT ALL + col2 DIV - col0 + col0 + - + 43 FROM tab0 AS cor0
----
-31
44
53

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + col2 / - col0 + col0 + - + 43 FROM tab0 AS cor0
----
-31
44
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL - - CAST( NULL AS SIGNED ) * + + col2 + + 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + col2 + + 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9204
SELECT ALL - - COUNT( * ) * - 46, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-138
3

skipif mysql # not compatible
query II rowsort label-9204
SELECT ALL - - COUNT ( * ) * - 46, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-138
3

query I rowsort
SELECT ( - col1 ) * + col2 + - col0 + col1 - + - 42 FROM tab0 AS cor0
----
-153
-234
-3699

query III rowsort
SELECT * FROM tab0 WHERE + - 65 >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 54
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9208
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) * - + 72 * + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) * - + 72 * + - col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 14 + + 61 + - + 84 + - col1 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 91 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1, col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9212
SELECT - + col2 + - + col1 AS col2 FROM tab1 WHERE - col1 * + col2 + - col1 * + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND + ( + + col1 ) * - col1
----

skipif mysql # not compatible
query I rowsort label-9212
SELECT - + col2 + - + col1 AS col2 FROM tab1 WHERE - col1 * + col2 + - col1 * + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND + ( + + col1 ) * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT DISTINCT - col1 * - + CAST( + 62 AS SIGNED ) col0 FROM tab0
----
1302
5022
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9213
SELECT DISTINCT - col1 * - + CAST ( + 62 AS INTEGER ) col0 FROM tab0
----
1302
5022
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ALL 9 DIV - 7 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL 9 / - 7 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + + col0 * ( + + ( - ( + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( - 60 ) col2, col0 * + 72 FROM tab2 AS cor0
----
-60
3312
-60
4608
-60
5400

query II rowsort
SELECT col0, - 95 FROM tab1
----
51
-95
85
-95
91
-95

query I rowsort
SELECT ALL - 89 + - 24 * - ( + col0 ) * + - 18 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-19961
-27737
-32489

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL + COUNT( DISTINCT - + 84 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + COUNT ( DISTINCT - + 84 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT + SUM( DISTINCT + + 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + SUM ( DISTINCT + + 12 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT + 93 FROM tab0 WHERE NOT - col0 IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + + 89 * + MAX( ALL - - 46 ) AS col0 FROM tab0 AS cor0
----
4094

skipif mysql # not compatible
query I rowsort label-9222
SELECT + + 89 * + MAX ( ALL - - 46 ) AS col0 FROM tab0 AS cor0
----
4094

query I rowsort
SELECT DISTINCT + col2 * 1 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - SUM( ALL - 3 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - SUM ( ALL - 3 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 * + col2 + - 85 AS col0 FROM tab0
----
620
785
9518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + ( 1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + ( 1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 7 / + - col0 * - 95 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN - ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT + col1, 13 FROM tab1 cor0
----
14
13
47
13
5
13

query I rowsort
SELECT DISTINCT + - 76 + col1 AS col2 FROM tab1 AS cor0
----
-29
-62
-71

query II rowsort
SELECT ALL - col2 AS col2, 10 * + col1 * 77 FROM tab0 cor0
----
-10
16170
-47
62370
-99
770

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9233
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) * + + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9233
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * + + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9234
SELECT MAX( - col1 ) - + + MAX( CAST( - - 75 AS SIGNED ) ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9234
SELECT MAX ( - col1 ) - + + MAX ( CAST ( - - 75 AS INTEGER ) ) AS col0 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - COUNT( col2 ) * + 57 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - COUNT ( col2 ) * + 57 FROM tab1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT MAX( DISTINCT + + col2 ) - + COUNT( * ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9236
SELECT MAX ( DISTINCT + + col2 ) - + COUNT ( * ) AS col0 FROM tab2
----
55

query I rowsort
SELECT col0 * + col0 * 33 + col1 FROM tab1
----
238430
273320
85847

query I rowsort
SELECT 93 + + col1 + col2 + + + 43 FROM tab2
----
210
253
261

query I rowsort
SELECT DISTINCT 19 FROM tab2 WHERE NULL IS NULL
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT 18 DIV - - 73 + col0 * 21 FROM tab2
----
1344
1575
966

skipif mysql # not compatible
query I rowsort label-9240
SELECT 18 / - - 73 + col0 * 21 FROM tab2
----
1344
1575
966

query I rowsort
SELECT - ( 1 ) * col1 * - col0 * - col2 - + col0 + + 78 AS col0 FROM tab2 WHERE - ( - col0 ) IS NOT NULL
----
-197106
-291447
-53926

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 58 IS NULL
----

query II rowsort
SELECT ALL + - col2 - + + 88, - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-147
0
-156
0
-184
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 43 + col1 col2 FROM tab0
----
-1
-41
119

query II rowsort
SELECT col1 AS col1, - 26 AS col2 FROM tab2
----
51
-26
67
-26
77
-26

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL - ( + 23 ) FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ALL - - ( + 15 ) AS col1 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT ALL + col0 * + 66 FROM tab0 AS cor0
----
5742
6402
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * col0 + + ( + 87 ) col1 FROM tab2 AS cor0
----
1789
2455
2862

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL col0 DIV - - 54 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL col0 / - - 54 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT CAST( 42 AS SIGNED ) FROM tab2 cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-9252
SELECT CAST ( 42 AS INTEGER ) FROM tab2 cor0
----
42
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT MAX( ALL + - col2 ) DIV 7 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9253
SELECT MAX ( ALL + - col2 ) / 7 AS col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col1 + - col0 + col2 + + + 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT - COUNT( * ) DIV - 17 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT - COUNT ( * ) / - 17 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 79 IS NOT NULL
----

query I rowsort
SELECT - col0 * 59 - - 49 + - col1 FROM tab1 AS cor0
----
-2974
-4971
-5367

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - 76 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9258
SELECT - 76 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 + ( + + 64 ) < 94 + - col0 )
----
15
81
47
97
1
99

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT col2 - + col0 <= - col0
----
-23
-40
-58

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + SUM( ALL 81 ) AS col1 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9263
SELECT + SUM ( ALL 81 ) AS col1 FROM tab2
----
243

query I rowsort
SELECT ALL + - col0 * - + ( - col2 ) + - - ( - 76 ) * - - 71 AS col1 FROM tab1 cor0
----
-10292
-10411
-11584

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT 12 + - - 86 DIV - + ( - + 38 ) FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-9265
SELECT 12 + - - 86 / - + ( - + 38 ) FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT + 90 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT DISTINCT + - col2 + - 12 * col2 * + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-58848
-60239
-74324

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + - col2 + - 12 * col2 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-58848
-60239
-74324

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 + - - col0 * - 36 * + col1 AS col2 FROM tab0 AS cor0
----
-3465
-43713
-65745

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL < + col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT + MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL < + col1 + - col1
----
NULL

query I rowsort
SELECT DISTINCT 17 + + 38 AS col1 FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9273
SELECT col1 + - + col0 * + CAST( NULL AS DECIMAL ) * 76 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9273
SELECT col1 + - + col0 * + CAST ( NULL AS REAL ) * 76 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT ALL - col1 DIV + 29 + - col0 + - - 13 AS col1 FROM tab2 AS cor0
----
-34
-53
-64

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - col1 / + 29 + - col0 + - - 13 AS col1 FROM tab2 AS cor0
----
-34
-53
-64

query I rowsort
SELECT - ( 69 ) + - col1 AS col1 FROM tab1 AS cor0
----
-116
-74
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT - col1 * + 69 - - - 3 DIV - col0 FROM tab0 AS cor0
----
-1449
-5589
-69

skipif mysql # not compatible
query I rowsort label-9276
SELECT - col1 * + 69 - - - 3 / - col0 FROM tab0 AS cor0
----
-1449
-5589
-69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + col2 / + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT + - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL + CAST( 17 AS SIGNED ) * - + 7 * + + 3 - - col2 FROM tab2 AS cor0
----
-299
-317
-334

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CAST ( 17 AS INTEGER ) * - + 7 * + + 3 - - col2 FROM tab2 AS cor0
----
-299
-317
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9282
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9283
SELECT CAST( - - 59 AS SIGNED ) AS col1, - col0 FROM tab0 AS cor0
----
59
-15
59
-87
59
-97

skipif mysql # not compatible
query II rowsort label-9283
SELECT CAST ( - - 59 AS INTEGER ) AS col1, - col0 FROM tab0 AS cor0
----
59
-15
59
-87
59
-97

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab0
----
-94

query I rowsort
SELECT - col2 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT - COUNT( * ) * - + 98 + + + CAST( NULL AS SIGNED ) * - + COUNT( * ) * + - 82 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - COUNT ( * ) * - + 98 + + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + - 82 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + MAX( DISTINCT + + col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9288
SELECT + MAX ( DISTINCT + + col0 ) AS col1 FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT col0 * + 32 + col2, col0 AS col0, + col2 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to aaf4bc9d0cc5d582e5fa7bccbccf549f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 46 + - + col0 / - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN + + 48 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + 98 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9292
SELECT + 98 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( - col2, + ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9294
SELECT DISTINCT + + 17 + - col0 + col1 * + col1 + + + 79 DIV col1 * - 11 AS col2, 72 AS col1 FROM tab1 AS cor0
----
-208
72
107
72
2124
72

skipif mysql # not compatible
query II rowsort label-9294
SELECT DISTINCT + + 17 + - col0 + col1 * + col1 + + + 79 / col1 * - 11 AS col2, 72 AS col1 FROM tab1 AS cor0
----
-208
72
107
72
2124
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL + CAST( NULL AS SIGNED ) + - 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + CAST ( NULL AS INTEGER ) + - 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 27 ) FROM tab1 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + - ( - 37 ) col1 FROM tab2
----
-1021
-2523
-4313

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9298
SELECT * FROM tab0 WHERE + + CAST( + 15 AS SIGNED ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9298
SELECT * FROM tab0 WHERE + + CAST ( + 15 AS INTEGER ) BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col2 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 67 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT - - col0 ) - + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT - - col0 ) - + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 24 * - 29 + - ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( + + col0 < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 28 IS NULL
----

query I rowsort
SELECT ALL + ( 3 ) AS col0 FROM tab2
----
3
3
3

query II rowsort
SELECT 6 AS col0, col0 FROM tab1
----
6
51
6
85
6
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 11 IS NULL
----

query I rowsort
SELECT DISTINCT + ( 49 ) AS col0 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL + 74 * - - COUNT( * ) AS col0 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + 74 * - - COUNT ( * ) AS col0 FROM tab2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27, - col0 col1 FROM tab2 cor0
----
27
-46
27
-64
27
-75

query I rowsort
SELECT col0 * - + col2 - + + col0 + + 24 FROM tab2 AS cor0
----
-1080
-2600
-4401

query II rowsort
SELECT + col0 AS col2, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + - COUNT( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9313
SELECT + - COUNT ( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9314
SELECT DISTINCT col2 DIV - col1 - + 77 + - 21 AS col0, col1 * col2 FROM tab2 AS cor0
----
-98
1173
-98
3080
-98
3886

skipif mysql # not compatible
query II rowsort label-9314
SELECT DISTINCT col2 / - col1 - + 77 + - 21 AS col0, col1 * col2 FROM tab2 AS cor0
----
-98
1173
-98
3080
-98
3886

onlyif mysql # aggregate syntax: 
query III rowsort label-9315
SELECT DISTINCT - 77 col1, 66 AS col2, + - 47 + - - COUNT( * ) FROM tab1 AS cor0
----
-77
66
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9315
SELECT DISTINCT - 77 col1, 66 AS col2, + - 47 + - - COUNT ( * ) FROM tab1 AS cor0
----
-77
66
-44

query II rowsort
SELECT DISTINCT - - col0 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT - CAST( NULL AS SIGNED ) + + - col1 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT - CAST ( NULL AS INTEGER ) + + - col1 * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9318
SELECT DISTINCT col2 / + col2 * + CAST( NULL AS DECIMAL ) + + col0 * - col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT col2 / + col2 * + CAST ( NULL AS REAL ) + + col0 * - col1 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9319
SELECT DISTINCT 52 * + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9319
SELECT DISTINCT 52 * + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - col2 / - 49 + 72 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9321
SELECT - MIN( - + 78 ) col1, 34 FROM tab1 AS cor0
----
78
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9321
SELECT - MIN ( - + 78 ) col1, 34 FROM tab1 AS cor0
----
78
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - 16 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 16 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL AND NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT COUNT( * ) + ( - 8 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9324
SELECT COUNT ( * ) + ( - 8 ) AS col2 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT 67 * 70 + MIN( - - col0 ) FROM tab2
----
4736

skipif mysql # not compatible
query I rowsort label-9325
SELECT 67 * 70 + MIN ( - - col0 ) FROM tab2
----
4736

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT ALL - - col1 DIV + + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - - col1 / + + col0 FROM tab0 AS cor0
----
0
0
5

query II rowsort
SELECT - + col0, 1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
1
-64
1
-75
1

query II rowsort
SELECT + + col2 * + + 28 + + col1 AS col2, 93 FROM tab2 AS cor0
----
1197
93
1691
93
695
93

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
128
150
92

query I rowsort
SELECT ALL - + col1 - 39 FROM tab2 AS cor0
----
-106
-116
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - - MAX( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9331
SELECT - - MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 + - col1 + 76 = NULL
----

query I rowsort
SELECT ALL - 55 AS col1 FROM tab1
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 - - - 37 col1 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - MIN( - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9336
SELECT - MIN ( - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9337
SELECT - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 8 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + - ( - + 43 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL - CAST( + 97 AS SIGNED ) FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL - CAST ( + 97 AS INTEGER ) FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT MAX( 36 ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9341
SELECT MAX ( 36 ) AS col0 FROM tab2
----
36

query I rowsort
SELECT + col1 * + + 41 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - - MIN( ALL - 43 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9343
SELECT - - MIN ( ALL - 43 ) FROM tab2 AS cor0
----
-43

query II rowsort
SELECT ALL - col2 + + ( + - col2 ) + + ( - col2 ) AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-177
59
-204
68
-288
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT - COUNT( * ) * ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9345
SELECT - COUNT ( * ) * ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col2 * + col2 < - col2 - + col1 + col2 + col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 78 * - 63 + - col2 * - - 56 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - 34 + - 80 + - MIN( ALL col0 ) AS col2 FROM tab2
----
-160

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - 34 + - 80 + - MIN ( ALL col0 ) AS col2 FROM tab2
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT 84 DIV + ( - 97 ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT 84 / + ( - 97 ) col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT COUNT( + CAST( + 34 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9350
SELECT COUNT ( + CAST ( + 34 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab1 WHERE + + col2 * col0 IS NOT NULL
----
87

query I rowsort
SELECT 92 + - + ( + 7 ) + - col1 * - - col0 AS col2 FROM tab0
----
-1130
-12
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT + COUNT( * ) + - + 64 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + COUNT ( * ) + - + 64 FROM tab1
----
-61

query I rowsort
SELECT + col0 + - + col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT col2 + - - ( + col0 ) - - - col1 AS col0, col2 * - col2 AS col1 FROM tab0 AS cor0
----
-19
-2209
195
-9801
76
-100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 * + 77 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - 4 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 66 AS col1 FROM tab0
----
-5742
-6402
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT + col1 DIV 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT + col1 / 85 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9360
SELECT ALL + 11 DIV - - 11, CAST( NULL AS SIGNED ) * - 90 AS col0 FROM tab2
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL + 11 / - - 11, CAST ( NULL AS INTEGER ) * - 90 AS col0 FROM tab2
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT DISTINCT col1 + + 21 AS col1 FROM tab1
----
26
35
68

query I rowsort
SELECT ALL + 11 + + col2 AS col2 FROM tab1 cor0
----
107
70
79

query I rowsort
SELECT ALL 87 * - col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT ALL 14 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 14 / - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9367
SELECT COUNT( * ) AS col2, 43 + MIN( - 29 ) FROM tab2
----
3
14

skipif mysql # not compatible
query II rowsort label-9367
SELECT COUNT ( * ) AS col2, 43 + MIN ( - 29 ) FROM tab2
----
3
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 + + col1 col2 FROM tab0
----
1
98
21
108
81
96

query I rowsort
SELECT + col1 * + 72 FROM tab2
----
3672
4824
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT DISTINCT 88 DIV - col2 AS col0 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT 88 / - col2 AS col0 FROM tab0
----
-1
-8
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - MAX( DISTINCT ( col1 ) ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - MAX ( DISTINCT ( col1 ) ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT ALL + 91 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = col1 - + 92 * 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + - ( 59 ) col0 FROM tab2
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) NOT IN ( + 17 * 44 + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT ALL 82 * - col0 AS col1 FROM tab1
----
-4182
-6970
-7462

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col2 ) NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / col0 IN ( 58 * - 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + COUNT( DISTINCT 51 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT + COUNT ( DISTINCT 51 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN + 30 AND NULL
----

query I rowsort
SELECT col2 + - 52 AS col0 FROM tab1
----
16
44
7

query I rowsort
SELECT ALL 88 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - 67 + + 7 / 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + COUNT( * ) * - 30 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9386
SELECT + COUNT ( * ) * - 30 FROM tab0
----
-90

query I rowsort
SELECT ( + col1 ) * + col0 AS col1 FROM tab2 WHERE col2 * 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN + col1 + + 77 AND NULL
----

query I rowsort
SELECT ALL + 23 + col0 FROM tab0
----
110
120
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL + CAST( 70 AS SIGNED ) FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + CAST ( 70 AS INTEGER ) FROM tab2
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT 71 DIV + ( 51 ) AS col2 FROM tab1 WHERE - col2 + + col0 * - col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT 71 / + ( 51 ) AS col2 FROM tab1 WHERE - col2 + + col0 * - col0 IS NOT NULL
----
1

query I rowsort
SELECT - col1 + + 58 FROM tab1 WHERE NULL <= ( col2 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 94 col0 FROM tab2
----
117
134
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT DISTINCT 47 * - 98 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT 47 * - 98 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9395
SELECT ALL * FROM tab1 WHERE NOT ( + col1 * col0 + col1 / - col1 ) NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9395
SELECT ALL * FROM tab1 WHERE NOT ( + col1 * col0 + col1 / - col1 ) NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 59 * + col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE 78 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE 78 IS NOT NULL
----
-9

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL 78 * COUNT( * ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL 78 * COUNT ( * ) FROM tab2 AS cor0
----
234

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL + 84 - MAX( col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + 84 - MAX ( col0 ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 + - col0 IN ( - 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT + col2 * col1 FROM tab1 AS cor0 WHERE ( col2 ) <> ( 47 )
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 / 92 col1 FROM tab2 AS cor0 WHERE NOT 58 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 46 < + 4 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + 16 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 16 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + - 48 * - col0 AS col1 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - MAX( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 - + 45 = 11 + + col1
----
-77

skipif mysql # not compatible
query I rowsort label-9409
SELECT - MAX ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 - + 45 = 11 + + col1
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT ALL + CAST( 41 AS SIGNED ) * - 30 AS col0 FROM tab0 AS cor0
----
-1230
-1230
-1230

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL + CAST ( 41 AS INTEGER ) * - 30 AS col0 FROM tab0 AS cor0
----
-1230
-1230
-1230

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 cor0 WHERE - 66 + - col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * col0 IN ( 58 )
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT DISTINCT - 1 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - 1 / + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - 61 * - COUNT( * ) AS col2 FROM tab2 cor0
----
183

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - 61 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
183

query I rowsort
SELECT ALL + ( - 93 ) AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 29 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT DISTINCT - col0 DIV + 72 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - col0 / + 72 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - - 5 FROM tab0
----
-435
-485
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT COUNT( * ) * 29 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9421
SELECT COUNT ( * ) * 29 AS col1 FROM tab0
----
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 44 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT + SUM( + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + SUM ( + col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab1 WHERE NOT ( + 66 ) = col1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT 42 * + ( + col2 DIV col1 ) FROM tab1 WHERE NOT - col2 = ( - col1 )
----
252
42
462

skipif mysql # not compatible
query I rowsort label-9425
SELECT 42 * + ( + col2 / col1 ) FROM tab1 WHERE NOT - col2 = ( - col1 )
----
252
42
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - - col2 col1 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - MIN( - col1 ) * 65 FROM tab1 AS cor0
----
3055

skipif mysql # not compatible
query I rowsort label-9427
SELECT - MIN ( - col1 ) * 65 FROM tab1 AS cor0
----
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 57 / - ( - col1 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 57 / - ( - col1 ) >= NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NOT 21 + + col0 IN ( + col1 / col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NOT 21 + + col0 IN ( + col1 / col1 )
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + col2 * col0 ) IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN ( - 0 * 33 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL - MAX( DISTINCT 7 ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col1 + - col0 )
----
-7

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - MAX ( DISTINCT 7 ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col1 + - col0 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT + MAX( ALL - col2 ) DIV + SUM( DISTINCT - col0 ) + + 92 AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9434
SELECT + MAX ( ALL - col2 ) / + SUM ( DISTINCT - col0 ) + + 92 AS col1 FROM tab1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT + col2 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT col2 * + CAST( ( + 17 ) AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
1062
1224
1728

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT col2 * + CAST ( ( + 17 ) AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT + CAST( + - 94 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-9439
SELECT + CAST ( + - 94 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT ALL + col0 + - col2 - + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-2
-37
77

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + col0 + - col2 - + col1 / col0 AS col2 FROM tab0 AS cor0
----
-2
-37
77

query I rowsort
SELECT ALL ( - 46 ) FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN 27 / ( col2 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN 27 / ( col2 ) AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9445
SELECT * FROM tab2 AS cor0 WHERE ( col1 / col1 ) NOT BETWEEN - 50 AND CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-9445
SELECT * FROM tab2 AS cor0 WHERE ( col1 / col1 ) NOT BETWEEN - 50 AND CAST ( NULL AS INTEGER ) * col0
----

query I rowsort
SELECT 67 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - MIN( - 94 ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - MIN ( - 94 ) AS col1 FROM tab2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT col1 + + - 68 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT col1 + + - 68 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 * + 42 - - 67 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT col0 + + col1 DIV + + 66 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9450
SELECT col0 + + col1 / + + 66 AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT ( - 32 ) AS col0 FROM tab0 WHERE NOT ( 25 / col0 + col2 ) > + col1 + col0 AND NOT NULL IN ( + col0 )
----

query I rowsort
SELECT + 35 + - - 46 AS col0 FROM tab2
----
81
81
81

query I rowsort
SELECT col1 + - - 94 * - 21 FROM tab1
----
-1927
-1960
-1969

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 19 + - col0 + - + 54 * + ( col1 ) = + col2 * - 92
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 19 + - col0 + - + 54 * + ( col1 ) = + col2 * - 92
----
0

query I rowsort
SELECT + col0 + col2 + + 0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT ALL + col0 + 41 + - ( + col0 ) + + col0 DIV col2 AS col2 FROM tab2 AS cor0
----
42
42
43

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + col0 + 41 + - ( + col0 ) + + col0 / col2 AS col2 FROM tab2 AS cor0
----
42
42
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT + ( - CAST( - - 2 AS SIGNED ) ) col1 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9457
SELECT + ( - CAST ( - - 2 AS INTEGER ) ) col1 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT - col1 - - ( col1 ) + 69 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT - col1 - - ( col1 ) + 69 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, col2 * - col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT ALL - 39 FROM tab0 AS cor0 WHERE NOT ( col1 * - col0 ) IN ( col0 / + 79 )
----
-39
-39
-39

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - + 99 * + 98 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 - - col0 AND col0 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * + 57 * + 48 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 79 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT DISTINCT col0 DIV + 92 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT col0 / + 92 FROM tab0 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT + ( + col0 ) DIV + col0 col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9468
SELECT DISTINCT + ( + col0 ) / + col0 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + col1 col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9470
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9470
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col0 * - col2 + - col0 <= + - col0
----
14
47
5

query II rowsort
SELECT + col0 AS col2, 11 AS col2 FROM tab1
----
51
11
85
11
91
11

query II rowsort
SELECT col2, + 85 FROM tab0
----
10
85
47
85
99
85

query I rowsort
SELECT ALL - 12 * + 88 FROM tab2
----
-1056
-1056
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT DISTINCT + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE + - col1 + - 45 * col2 / 37 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE + - col1 + - 45 * col2 / 37 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 87 ) * - - col2 AS col2 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT ALL 59 DIV + col1 - - ( + - ( col0 ) ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7571
9468

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL 59 / + col1 - - ( + - ( col0 ) ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7571
9468

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - 40 * - COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9478
SELECT - 40 * - COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT - ( + - 23 ) * - col0 FROM tab0 AS cor0
----
-2001
-2231
-345

query I rowsort
SELECT ALL 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ( + ( - CAST( NULL AS SIGNED ) ) ) * 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ( + ( - CAST ( NULL AS INTEGER ) ) ) * 80 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 61 ) AS col0 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT 51 * + col1 AS col2 FROM tab1
----
2397
255
714

query I rowsort
SELECT ALL + - 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT DISTINCT + COUNT( * ) * CAST( - 89 AS SIGNED ) FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + COUNT ( * ) * CAST ( - 89 AS INTEGER ) FROM tab0 AS cor0
----
-267

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 78 AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + MIN( + ( + col1 ) ) + 80 col0 FROM tab0 AS cor0 WHERE col0 BETWEEN ( + + 64 / 76 ) AND + 41
----
161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9487
SELECT + MIN ( + ( + col1 ) ) + 80 col0 FROM tab0 AS cor0 WHERE col0 BETWEEN ( + + 64 / 76 ) AND + 41
----
161

query I rowsort
SELECT + 6 + ( 36 ) AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT 13 + - col2 AS col1 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9490
SELECT 13, - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9490
SELECT 13, - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - + 54 * - 16 + + MIN( + + col0 ) FROM tab2 AS cor0
----
910

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + 54 * - 16 + + MIN ( + + col0 ) FROM tab2 AS cor0
----
910

query I rowsort
SELECT - - col2 + - col2 - + col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT ALL 9 col2, MAX( DISTINCT - 44 ) FROM tab1
----
9
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9493
SELECT ALL 9 col2, MAX ( DISTINCT - 44 ) FROM tab1
----
9
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 col1, - col0 * + col1 AS col2 FROM tab0
----
-88
-1215
-88
-1827
-88
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col0 + + + 95 col0 FROM tab0
----
10
182
47
110
99
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - col2 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT ALL - 86 AS col2, COUNT( * ) AS col2 FROM tab0
----
-86
3

skipif mysql # not compatible
query II rowsort label-9497
SELECT ALL - 86 AS col2, COUNT ( * ) AS col2 FROM tab0
----
-86
3

query I rowsort
SELECT - 50 FROM tab2 WHERE - col0 * + col1 NOT BETWEEN - col1 * - col1 * - 34 * - col1 AND - col1
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT + COUNT( * ) FROM tab1 WHERE + + ( + col0 ) * + col1 * - CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND + col0 / + - 35
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT + COUNT ( * ) FROM tab1 WHERE + + ( + col0 ) * + col1 * - CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND + col0 / + - 35
----
0

query I rowsort
SELECT DISTINCT - ( - - 39 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT - COUNT( * ) - - COUNT( * ) + + 65 DIV + COUNT( * ) AS col0 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-9501
SELECT - COUNT ( * ) - - COUNT ( * ) + + 65 / + COUNT ( * ) AS col0 FROM tab0 cor0
----
21

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE 31 * + 28 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - + ( - COUNT( * ) ) - + 82 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9503
SELECT - + ( - COUNT ( * ) ) - + 82 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT 7 - + col2 FROM tab0 AS cor0
----
-3
-40
-92

query I rowsort
SELECT ALL + - col2 + + - 53 FROM tab1 AS cor0
----
-112
-121
-149

query I rowsort
SELECT ALL ( - 5 ) - + 46 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - - col0 * + col1 + ( 35 ) + 67 FROM tab1 AS cor0
----
4379
527
816

query I rowsort
SELECT - - 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + 17 * col1 AS col2 FROM tab0
----
1377
17
357

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - ( 97 ) AS col2 FROM tab1
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL MAX( ALL + + col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT ALL MAX ( ALL + + col0 ) col1 FROM tab2
----
75

query I rowsort
SELECT ALL - ( 84 ) * col0 AS col0 FROM tab1
----
-4284
-7140
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT COUNT( + - 61 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT COUNT ( + - 61 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 50 * + - ( - ( - 77 ) ) BETWEEN col2 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL 19 * COUNT( * ) AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 19 * COUNT ( * ) AS col1 FROM tab0
----
57

query I rowsort
SELECT ALL 58 * + ( - 41 ) AS col2 FROM tab1
----
-2378
-2378
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9519
SELECT DISTINCT - CAST( NULL AS SIGNED ), col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9519
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + col0 * - + col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT + COUNT( * ), 62 col0 FROM tab1 AS cor0
----
3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9521
SELECT + COUNT ( * ), 62 col0 FROM tab1 AS cor0
----
3
62

query I rowsort
SELECT + + col0 * + 74 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - 20 * + COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - 20 * + COUNT ( * ) FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT - + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT - + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 AS cor0 WHERE NOT 97 - + 32 > col2 + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9527
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9527
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab1
----
NULL
3

query III rowsort
SELECT * FROM tab1 WHERE 4 + - 80 <= + - 29 + + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT col1 + + + col0 DIV - - col0 + + 56 + col1 AS col1 FROM tab1
----
151
67
85

skipif mysql # not compatible
query I rowsort label-9529
SELECT col1 + + + col0 / - - col0 + + 56 + col1 AS col1 FROM tab1
----
151
67
85

query I rowsort
SELECT 20 * - - col1 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + 3 + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-9531
SELECT + 3 + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT MIN( DISTINCT + + 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9532
SELECT MIN ( DISTINCT + + 57 ) FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + SUM( col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9533
SELECT + SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9534
SELECT * FROM tab1 cor0 WHERE col0 * ( - + col1 ) * + col1 IN ( col2 + + CAST( - + col2 AS SIGNED ) + - col2, - 56 / + col2 * col0 )
----

skipif mysql # not compatible
query III rowsort label-9534
SELECT * FROM tab1 cor0 WHERE col0 * ( - + col1 ) * + col1 IN ( col2 + + CAST ( - + col2 AS INTEGER ) + - col2, - 56 / + col2 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE - col2 + CAST( NULL AS SIGNED ) * + ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 + CAST ( NULL AS INTEGER ) * + ( - col0 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT - 57, - 32 + col2 + col2 AS col0, + 21 * + + 58 + - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to d9e0a5cfa05f8cd5e7aaf60329ee1410

query II rowsort
SELECT DISTINCT - col1 * + 55 AS col0, - col1 FROM tab1 cor0
----
-2585
-47
-275
-5
-770
-14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 23 IS NULL
----

query I rowsort
SELECT ALL + 38 AS col2 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT ( + - col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - col2 + + 42 + + 4 FROM tab0
----
-1
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL COUNT( * ) * 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL COUNT ( * ) * 65 FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MAX( ( col0 ) ) + 76 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MAX ( ( col0 ) ) + 76 FROM tab0
----
-21

query I rowsort
SELECT - col0 * - - col2 + - 41 - - - col0 + + 46 + + col2 FROM tab2 AS cor0
----
-1076
-2579
-4362

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT ALL - - col0 * 30 DIV col1 FROM tab2 AS cor0
----
24
27
33

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - - col0 * 30 / col1 FROM tab2 AS cor0
----
24
27
33

query I rowsort
SELECT DISTINCT + 97 + ( 40 ) AS col0 FROM tab0 AS cor0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT ( + + 58 ) + MAX( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + - 7 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT ( + + 58 ) + MAX ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * + - 7 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT 2 + + - MAX( + CAST( NULL AS SIGNED ) ) * + 58 FROM tab1 cor0 WHERE NOT ( - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT 2 + + - MAX ( + CAST ( NULL AS INTEGER ) ) * + 58 FROM tab1 cor0 WHERE NOT ( - col1 ) <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - - 46 FROM tab0
----
2162
4554
460

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - ( - - col0 ) + + - col2 * col1 * - - 37
----

query I rowsort
SELECT ( 30 ) FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - + MAX( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9553
SELECT - + MAX ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT SUM( ALL 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT SUM ( ALL 77 ) FROM tab0 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, + 63 col1 FROM tab1 AS cor0
----
-59
63
-68
63
-96
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + MAX ( - col2 ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, col2 * - - col1 col2 FROM tab0 AS cor0
----
10
210
47
3807
99
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) / - - col0 + col0 > 49
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT - 36 * - CAST( NULL AS SIGNED ) * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 36 * - CAST ( NULL AS INTEGER ) * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ( - MAX( DISTINCT col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9561
SELECT ( - MAX ( DISTINCT col2 ) ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT MIN( + 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9562
SELECT MIN ( + 84 ) FROM tab1
----
84

query I rowsort
SELECT ALL 43 * - 44 + + col2 FROM tab2
----
-1834
-1852
-1869

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 51 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col1 - 77 AS col1 FROM tab0 AS cor0
----
-11
-143
19

query II rowsort
SELECT ALL + + col2 * - - col0 AS col0, + col1 * - col1 FROM tab0 AS cor0
----
705
-6561
870
-441
9603
-1

query I rowsort
SELECT 55 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + col2 FROM tab1 WHERE - - ( col1 ) * - - 1 > - - 7
----
68
96

query I rowsort
SELECT DISTINCT - 12 * - 76 FROM tab1
----
912

query I rowsort
SELECT DISTINCT + col2 + + 73 + col0 * - col2 * - col0 FROM tab1 AS cor0
----
249865
426407
563249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9571
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT col0 + + col1 + + + col1 DIV + col0 + + 75 FROM tab0 AS cor0
----
173
176
183

skipif mysql # not compatible
query I rowsort label-9572
SELECT col0 + + col1 + + + col1 / + col0 + + 75 FROM tab0 AS cor0
----
173
176
183

query II rowsort
SELECT - col0, - col2 AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT ALL col0 - - 27 FROM tab2 AS cor0
----
102
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9575
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + ( + - col2 ) + + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9575
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + ( + - col2 ) + + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT - MIN( - - col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - MIN ( - - col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL - + COUNT( * ) + - - 27 AS col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - + COUNT ( * ) + - - 27 AS col2 FROM tab1 cor0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9578
SELECT DISTINCT 20 DIV + MAX( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT 20 / + MAX ( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT 59 - - COUNT( * ) + + 47 * COUNT( * ) AS col0 FROM tab1
----
203

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT 59 - - COUNT ( * ) + + 47 * COUNT ( * ) AS col0 FROM tab1
----
203

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT DISTINCT 86 DIV + 57 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT 86 / + 57 FROM tab0
----
1

query I rowsort
SELECT ALL + col1 * 84 * + 74 - - 86 FROM tab2
----
317102
416558
478718

query I rowsort
SELECT 89 * col2 - - col1 FROM tab0
----
4264
8812
911

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + ( - 55 )
----

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
104
133
69

query II rowsort
SELECT ALL + 95 AS col1, col0 FROM tab0 AS cor0
----
95
15
95
87
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + MIN( ALL + 1 ) * - MIN( DISTINCT + + 64 ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9586
SELECT + MIN ( ALL + 1 ) * - MIN ( DISTINCT + + 64 ) AS col1 FROM tab2 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9587
SELECT CAST( - 35 AS SIGNED ), col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

skipif mysql # not compatible
query II rowsort label-9587
SELECT CAST ( - 35 AS INTEGER ), col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

query II rowsort
SELECT DISTINCT - col2, ( + col0 ) FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL + 84 AS col1 FROM tab1 WHERE + 9 <> col0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT + ( - SUM( ALL + + col2 ) ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + ( - SUM ( ALL + + col2 ) ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT - ( - + ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT + - col2 * + 46, col0 FROM tab0 AS cor0
----
-2162
15
-4554
97
-460
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 74
----

query I rowsort
SELECT - col1 * col0 - - col1 + - + col0 AS col2 FROM tab1 cor0
----
-4321
-505
-751

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9595
SELECT - col0 col1, + ( - CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab1
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9595
SELECT - col0 col1, + ( - CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab1
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT + 75 AS col1, col1 AS col2 FROM tab1 WHERE - + col0 <> 38 * - col0
----
75
14
75
47
75
5

query I rowsort
SELECT DISTINCT - col0 + + 87 FROM tab1
----
-4
2
36

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 81 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + COUNT( + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT + COUNT ( + col1 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT - 32 AS col1, COUNT( * ) - 94 FROM tab1 WHERE - col0 / col2 * col0 * col0 * col0 IS NOT NULL
----
-32
-91

skipif mysql # not compatible
query II rowsort label-9600
SELECT - 32 AS col1, COUNT ( * ) - 94 FROM tab1 WHERE - col0 / col2 * col0 * col0 * col0 IS NOT NULL
----
-32
-91

query I rowsort
SELECT ALL 11 + - + 62 FROM tab2
----
-51
-51
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9602
SELECT ALL - + CAST( NULL AS DECIMAL ) col2, 76 AS col0 FROM tab1 AS cor0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9602
SELECT ALL - + CAST ( NULL AS REAL ) col2, 76 AS col0 FROM tab1 AS cor0
----
NULL
76
NULL
76
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL MIN( ALL + - col1 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL MIN ( ALL + - col1 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 22 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT COUNT( ALL - col0 ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9605
SELECT COUNT ( ALL - col0 ) AS col1, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT ALL 95 + col2 + 42 FROM tab1
----
196
205
233

query I rowsort
SELECT ALL - col0 + - - col0 * - col1 FROM tab2 cor0
----
-2392
-4992
-5100

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE col0 = col2
----

query I rowsort
SELECT ALL - col2 + - 97 * + 59 AS col1 FROM tab0 cor0
----
-5733
-5770
-5822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + 6 col2 FROM tab1
----
-11
-20
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL - 34 + + - MIN( DISTINCT 83 ) / CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - 34 + + - MIN ( DISTINCT 83 ) / CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 - + - col1 * 93 FROM tab1
----
1251
380
4280

query I rowsort
SELECT + ( - 55 ) + - col2 FROM tab1
----
-114
-123
-151

query I rowsort
SELECT - 71 * ( col1 ) + - col1 AS col1 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + SUM( - 27 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9615
SELECT + SUM ( - 27 ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9616
SELECT DISTINCT * FROM tab2 WHERE NOT 99 * + col2 NOT IN ( - CAST( col2 AS SIGNED ) * + col0 * + ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9616
SELECT DISTINCT * FROM tab2 WHERE NOT 99 * + col2 NOT IN ( - CAST ( col2 AS INTEGER ) * + col0 * + ( + col0 ) )
----

query II rowsort
SELECT - col0 AS col1, col2 * + - col1 FROM tab1
----
-51
-1344
-85
-295
-91
-3196

query II rowsort
SELECT ALL col2 AS col1, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT DISTINCT 65 * + + col0 * - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT 65 * + + col0 * - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * - col2 * - col1 + + col1 FROM tab1 AS cor0
----
1480
150259
18830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT - CAST( + - 95 AS SIGNED ) AS col1 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-9621
SELECT - CAST ( + - 95 AS INTEGER ) AS col1 FROM tab2
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT ALL + col2 DIV + - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + col2 / + - col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT - 89 * + col2 * + col1 FROM tab0
----
-18690
-338823
-8811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) / + 63 * COUNT( * ) + - 45 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) / + 63 * COUNT ( * ) + - 45 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT + + ( + + col1 ) DIV - col0 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT + + ( + + col1 ) / - col0 col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + - col2 col0 FROM tab0 AS cor0
----
-42
10
47

query II rowsort
SELECT - ( col2 ) + - col2 - + + 24 * + + col1 - - + 8 AS col2, + col2 * 11 * + - col0 FROM tab1 AS cor0
----
-1256
-68068
-230
-55165
-520
-53856

query I rowsort
SELECT 81 * - col0 + + ( + col1 ) + + - ( - col2 ) FROM tab1
----
-4021
-6821
-7256

query I rowsort
SELECT + col1 + + col1 + + + 10 AS col1 FROM tab1
----
104
20
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN + col2 - - 77 AND + col1 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN + col2 - - 77 AND + col1 * - col0
----
NULL

query II rowsort
SELECT col0 + + + col0, col1 + - - col2 AS col2 FROM tab1
----
102
110
170
64
182
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL <> ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL <> ( CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND ( + + col2 )
----

query I rowsort
SELECT DISTINCT + col1 * 30 + + 28 * - col1 - - + ( col0 ) AS col2 FROM tab0
----
129
177
99

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL > - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + + MAX( ALL + - ( col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + + MAX ( ALL + - ( col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + 80 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT - 75 * + 2 + + 38 + + COUNT( * ) FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - 75 * + 2 + + 38 + + COUNT ( * ) FROM tab1 AS cor0
----
-109

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 - - + col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - - 50 AS col2 FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT MIN( - + col2 ) col1 FROM tab2 AS cor0 WHERE 89 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT MIN ( - + col2 ) col1 FROM tab2 AS cor0 WHERE 89 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT ( - COUNT( * ) ) * CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 WHERE NOT + 92 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9646
SELECT DISTINCT ( - COUNT ( * ) ) * CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 WHERE NOT + 92 IS NOT NULL
----
0

query I rowsort
SELECT + 73 + - col0 AS col0 FROM tab0
----
-14
-24
58

query I rowsort
SELECT 40 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 85 + + 30 AS col0 FROM tab1 cor0
----
115
115
115

query I rowsort
SELECT DISTINCT + ( + 55 ) AS col2 FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT - - col2 + - 41 FROM tab0 AS cor0
----
-31
58
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT 0 * - CAST( 6 AS SIGNED ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT 0 * - CAST ( 6 AS INTEGER ) FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT + 68, COUNT( * ) AS col1 FROM tab1 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-9653
SELECT + 68, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
68
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 col2 FROM tab0 cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + + COUNT( * ) FROM tab1 WHERE col2 * + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE col2 * + col2 < NULL
----
0

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + col2 * + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 74 * - col2 + - - ( - col0 ) + 72 * - + 22 * - col0 * - - 22 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - CAST( NULL AS SIGNED ) + + 14 IS NOT NULL
----
3030949
3372833
519227

skipif mysql # not compatible
query I rowsort label-9658
SELECT 74 * - col2 + - - ( - col0 ) + 72 * - + 22 * - col0 * - - 22 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - CAST ( NULL AS INTEGER ) + + 14 IS NOT NULL
----
3030949
3372833
519227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT DISTINCT + ( CAST( + 6 AS SIGNED ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + ( CAST ( + 6 AS INTEGER ) ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT + CAST( 12 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1152
708
816

skipif mysql # not compatible
query I rowsort label-9660
SELECT + CAST ( 12 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col1 * + col2 + + + col0 ) >= - 80 + - 85
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col1 * + col2 + + + col0 ) >= - 80 + - 85
----
0

query I rowsort
SELECT - 44 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( + col2 ) + + + col1 + - + ( + 87 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT SUM( - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9664
SELECT SUM ( - - col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9665
SELECT MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT + - MIN( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT + - MIN ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - 58 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-58
-58
-58

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9669
SELECT 93 DIV - col1 + - - col0 * - col2 AS col1, col0 FROM tab2
----
-1059
46
-2561
64
-4351
75

skipif mysql # not compatible
query II rowsort label-9669
SELECT 93 / - col1 + - - col0 * - col2 AS col1, col0 FROM tab2
----
-1059
46
-2561
64
-4351
75

query I rowsort
SELECT col2 + + 10 * + col2 + - col1 AS col2 FROM tab2
----
202
363
571

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT - 85 + - col0 DIV - col0 AS col2 FROM tab0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-9671
SELECT - 85 + - col0 / - col0 AS col2 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT DISTINCT 68 AS col2, COUNT( * ) FROM tab0
----
68
3

skipif mysql # not compatible
query II rowsort label-9672
SELECT DISTINCT 68 AS col2, COUNT ( * ) FROM tab0
----
68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - 58 + - COUNT( * ) col0 FROM tab2
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9673
SELECT ALL - 58 + - COUNT ( * ) col0 FROM tab2
----
-61

query I rowsort
SELECT - col0 + ( - col2 ) + col2 AS col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT col0 * - 26 AS col2 FROM tab1 WHERE + + col2 NOT BETWEEN - + col1 * + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 - - col0 * + - col2 AS col1, - col2 * 57 - 67 col0 FROM tab2
----
-2406
-2347
-4216
-3373
-956
-1378

query I rowsort
SELECT ALL col2 + 28 * col2 FROM tab2
----
1160
1682
667

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - 10 * 95 + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-959

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - 10 * 95 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-959

query I rowsort
SELECT - 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9682
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 69 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * - ( + 23 ) * - + 3 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31d6ce77f575b57053ea58f24d74b273

query I rowsort
SELECT - 2 - - col2 * col0 AS col1 FROM tab0 AS cor0
----
703
868
9601

query I rowsort
SELECT DISTINCT - + 85 FROM tab0 cor0
----
-85

query I rowsort
SELECT ALL col0 * - + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT ALL + - CAST( 9 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + - CAST ( 9 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + 77 / - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9690
SELECT CAST( NULL AS DECIMAL ) * + 58 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT CAST ( NULL AS REAL ) * + 58 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9691
SELECT - CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9691
SELECT - CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL 96 FROM tab2 WHERE + - col0 < NULL
----

query I rowsort
SELECT DISTINCT + ( + 67 ) * + ( + + col1 ) AS col0 FROM tab1
----
3149
335
938

query I rowsort
SELECT DISTINCT + col1 * + 80 FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT COUNT( + col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9696
SELECT COUNT ( + col0 ) col1 FROM tab1
----
3

query I rowsort
SELECT + + col1 + + 23 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - ( - col1 ) IS NULL
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL + - ( + COUNT( + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL + - ( + COUNT ( + col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - ( + - col0 ) + + col1 AS col0 FROM tab0 cor0 WHERE NOT 21 / 70 * - col2 * - 19 > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - + COUNT( + col2 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9700
SELECT - + COUNT ( + col2 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9701
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) >= - col1 OR NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9701
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) >= - col1 OR NULL IS NOT NULL
----

query I rowsort
SELECT col1 + + - 52 AS col2 FROM tab2 AS cor0
----
-1
15
25

query I rowsort
SELECT ALL + ( + - col0 ) + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col1 - col2 + - 24 + + col2 * + - col1 FROM tab1 AS cor0
----
-750
47
989

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT - - 15 DIV + 46 + 3 + - col0 * col0 + + col1 col0 FROM tab0 AS cor0
----
-141
-7545
-9405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT - - 15 / + 46 + 3 + - col0 * col0 + + col1 col0 FROM tab0 AS cor0
----
-141
-7545
-9405

query I rowsort
SELECT + - ( - ( ( col2 ) ) ) * 62 + - col0 AS col2 FROM tab0 cor0
----
2899
533
6041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT + 32 + - + col1 + + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT + 32 + - + col1 + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + + 46 AS col0 FROM tab0
----
-2162
-4554
-460

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT DISTINCT + col1 * 57 * col2 DIV - 28 FROM tab2
----
-2387
-6270
-7910

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + col1 * 57 * col2 / - 28 FROM tab2
----
-2387
-6270
-7910

query I rowsort
SELECT ALL 27 * - 83 AS col0 FROM tab2
----
-2241
-2241
-2241

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT DISTINCT + 97 DIV - - 22 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + 97 / - - 22 FROM tab1
----
4

query I rowsort
SELECT - 29 * - col2 FROM tab1
----
1711
1972
2784

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----

query II rowsort
SELECT 18, + col2 FROM tab0
----
18
10
18
47
18
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col1 - - col1 - - + 50 col0 FROM tab2 AS cor0
----
1682
2194
2514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - 97 col2 FROM tab1
----
148
182
188

query I rowsort
SELECT 40 * - col1 AS col1 FROM tab0
----
-3240
-40
-840

query I rowsort
SELECT - - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col0 * - 76 AS col1 FROM tab1 AS cor0
----
-3876
-6460
-6916

query I rowsort
SELECT - + ( + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 40 FROM tab1 cor0
----
40

query II rowsort
SELECT - - col1, col2 + + col0 AS col1 FROM tab2 AS cor0
----
51
69
67
133
77
104

query II rowsort
SELECT ALL - col1, ( - col0 ) - - - col1 * col2 AS col0 FROM tab0 AS cor0
----
-1
-196
-21
-297
-81
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT + + COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9725
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - col2, 63 - ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 43 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-43

query II rowsort
SELECT ALL ( + 93 ), col2 FROM tab0
----
93
10
93
47
93
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT - MIN( + col2 ) DIV - SUM( - - 54 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT - MIN ( + col2 ) / - SUM ( - - 54 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 24 / col2
----

query I rowsort
SELECT col1 * - col2 * + col1 + - + 51 FROM tab1 AS cor0
----
-150263
-1526
-18867

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9733
SELECT COUNT( * ), CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9733
SELECT COUNT ( * ), CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL 92 * + - MAX( ALL - col0 ) AS col1 FROM tab1
----
4692

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL 92 * + - MAX ( ALL - col0 ) AS col1 FROM tab1
----
4692

query I rowsort
SELECT - ( - 15 ) FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT - - 61 FROM tab1 AS cor0 WHERE col1 - + 19 <= - ( + 16 ) / - 49 + + - 44 + + col1 - + col1 * - - col0
----

query I rowsort
SELECT DISTINCT col1 + - col2 - 39 + - - col2 + col0 * - col0 AS col0 FROM tab2 cor0
----
-2104
-4058
-5597

query I rowsort
SELECT ALL + + 57 * + + col0 AS col2 FROM tab1 AS cor0
----
2907
4845
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + COUNT( * ) - + 76 * - - 34 AS col2 FROM tab0 AS cor0
----
-2581

skipif mysql # not compatible
query I rowsort label-9739
SELECT + COUNT ( * ) - + 76 * - - 34 AS col2 FROM tab0 AS cor0
----
-2581

query I rowsort
SELECT - ( - col0 ) + 56 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL - 70 - + col0 FROM tab1
----
-121
-155
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 * - col2 col1 FROM tab0
----
-1692
-3564
-360

query I rowsort
SELECT + 97 + col1 FROM tab0
----
118
178
98

query II rowsort
SELECT col2 + col2 AS col1, ( - + col0 ) FROM tab2
----
116
-75
46
-46
80
-64

query I rowsort
SELECT + col0 + + col1 + - - col1 * - 12 AS col0 FROM tab1
----
-103
-426
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT + 50 * + CAST( - col1 AS SIGNED ) + - col1 AS col1 FROM tab0
----
-1071
-4131
-51

skipif mysql # not compatible
query I rowsort label-9746
SELECT + 50 * + CAST ( - col1 AS INTEGER ) + - col1 AS col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT ALL - - ( + col0 ) FROM tab1 WHERE NOT col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT ALL - 62 + - - 13 * - - COUNT( * ) + + + 15 + + 77 DIV 65 + - 0 + - COUNT( DISTINCT + - 82 ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - 62 + - - 13 * - - COUNT ( * ) + + + 15 + + 77 / 65 + - 0 + - COUNT ( DISTINCT + - 82 ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT 65 * - ( - + col0 ) AS col2 FROM tab2
----
2990
4160
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT + ( CAST( - COUNT( * ) AS SIGNED ) ) * + - CAST( + 7 AS SIGNED ) + - SUM( - CAST( NULL AS SIGNED ) ) + AVG ( - + ( - - col2 ) ) + + + 87 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) * + - CAST ( + 7 AS INTEGER ) + - SUM ( - CAST ( NULL AS INTEGER ) ) + AVG ( - + ( - - col2 ) ) + + + 87 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 99 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT + COUNT( * ) - - - 25 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + COUNT ( * ) - - - 25 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + 40 * col0 * - - col2 FROM tab2
----
102400
174000
42320

query I rowsort
SELECT + col1 * col1 * + 41 FROM tab1
----
1025
8036
90569

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT 53 DIV col2 AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9756
SELECT 53 / col2 AS col1 FROM tab0
----
0
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - + 21 col2 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col2 >= col0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9759
SELECT ALL + SUM( + CAST( + - 90 AS SIGNED ) ) AS col0, - MIN( + + col0 ) AS col0 FROM tab1 cor0
----
-270
-51

skipif mysql # not compatible
query II rowsort label-9759
SELECT ALL + SUM ( + CAST ( + - 90 AS INTEGER ) ) AS col0, - MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
-270
-51

query I rowsort
SELECT DISTINCT - 19 * + + col0 + col0 FROM tab0 AS cor0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT - col1 * + col0 * + 28 FROM tab0 AS cor0
----
-2716
-34020
-51156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> + + col1
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( + + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ( - MAX( DISTINCT - col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9767
SELECT ( - MAX ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT - COUNT( DISTINCT + 58 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT - COUNT ( DISTINCT + 58 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - ( - 90 ) AS col0 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL COUNT( * ) + - SUM( + col2 ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL COUNT ( * ) + - SUM ( + col2 ) FROM tab0 AS cor0
----
-153

query III rowsort
SELECT * FROM tab1 WHERE - 23 + - col2 >= - + col0
----
85
5
59
91
47
68

query I rowsort
SELECT - 84 * + col0 + + 35 FROM tab2
----
-3829
-5341
-6265

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND + 98 + ( - col2 )
----

query I rowsort
SELECT ALL + ( col0 ) + ( + + 33 ) FROM tab0 AS cor0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN col0 AND - + CAST( NULL AS SIGNED )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9775
SELECT col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN col0 AND - + CAST ( NULL AS INTEGER )
----
46
64
75

query I rowsort
SELECT DISTINCT + 3 * + - col2 * 45 AS col2 FROM tab2
----
-3105
-5400
-7830

query I rowsort
SELECT col0 * ( + + 4 ) FROM tab0
----
348
388
60

query I rowsort
SELECT + ( + col0 ) * - 21 FROM tab2
----
-1344
-1575
-966

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9779
SELECT * FROM tab1 WHERE CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9779
SELECT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 74 + + + col0 AS col2 FROM tab2
----
120
138
149

query I rowsort
SELECT 10 - - col2 + + - 64 FROM tab2
----
-14
-31
4

query I rowsort
SELECT + 87 - + col1 FROM tab0 AS cor0
----
6
66
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + 37
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 3 * ( + 10 ) AS col2 FROM tab1 AS cor0
----
30
30
30

query II rowsort
SELECT ALL - 72 * + col0 AS col0, + col2 FROM tab1 AS cor0
----
-3672
96
-6120
59
-6552
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab1 cor0 WHERE NOT 40 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - col0 * - + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + ( - + 10 ) * col0 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT ALL - - 3 + 32 * - - 21 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) = + col0
----

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - - 3 + 32 * - - 21 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) = + col0
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( + 26 ) FROM tab0 AS cor0
----
26
26
26

query II rowsort
SELECT ALL - col0 * + col1 AS col2, + ( - + col2 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-425
-59
-4277
-68
-714
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + + col2 col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9795
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) AS col0, 45 col1 FROM tab2 AS cor0
----
NULL
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9795
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) AS col0, 45 col1 FROM tab2 AS cor0
----
NULL
45

query II rowsort
SELECT ALL col1, ( + col2 ) * + 54 * col0 FROM tab2 AS cor0
----
51
57132
67
234900
77
138240

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL - MAX( 63 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - MAX ( 63 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-63

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9799
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col0 + + col0 * - col1 * + col0 * - + col0 FROM tab0 AS cor0
----
13828476
273360
912576

query I rowsort
SELECT + 47 FROM tab1 AS cor0 WHERE 69 + - - 16 IS NOT NULL
----
47
47
47

query I rowsort
SELECT 82 + + ( - + col1 ) FROM tab0
----
1
61
81

query I rowsort
SELECT ALL + 41 - + col2 AS col0 FROM tab0
----
-58
-6
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT 31 * - 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-9804
SELECT 31 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 - + col0 FROM tab2 WHERE NOT - - 23 + 42 - + + col1 + + + col1 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col1 ) * col2, 98 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9806
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col1 ) * col2, 98 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + ( - 4 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL MAX( + + 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL MAX ( + + 10 ) FROM tab2 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9809
SELECT - - CAST( + 99 AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 59
----

skipif mysql # not compatible
query I rowsort label-9809
SELECT - - CAST ( + 99 AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9810
SELECT - 96, col2 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-96
NULL
-96
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9810
SELECT - 96, col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-96
NULL
-96
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL - MIN( ALL 48 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-48

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL - MIN ( ALL 48 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-48

query I rowsort
SELECT + ( + 20 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query II rowsort
SELECT DISTINCT + col0 + - col0 AS col2, col0 * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + + ( - MIN( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9814
SELECT + + ( - MIN ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - 9 = col0
----
59
68
96

query I rowsort
SELECT - + col1 + - + col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + - 34 FROM tab2 AS cor0 WHERE NOT + col2 * ( + + 23 ) * - col1 - - col2 + - col1 / col2 IS NULL
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT 47 DIV + - 41 + - col0 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-9818
SELECT 47 / + - 41 + - col0 FROM tab2
----
-47
-65
-76

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE col0 NOT BETWEEN - ( ( + col2 ) ) + + + col2 AND - col0
----
-51
-67
-77

query I rowsort
SELECT ALL + ( col0 ) FROM tab1 WHERE + 86 = col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + 0 + + + 71 AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE 56 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT DISTINCT + col1 * + 35 + - CAST( NULL AS SIGNED ) + - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT + col1 * + 35 + - CAST ( NULL AS INTEGER ) + - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT ALL - - SUM( - - col2 ) AS col0, 3 col1 FROM tab0 AS cor0
----
156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9825
SELECT ALL - - SUM ( - - col2 ) AS col0, 3 col1 FROM tab0 AS cor0
----
156
3

query I rowsort
SELECT DISTINCT - 82 + + col0 FROM tab2 AS cor0
----
-18
-36
-7

query I rowsort
SELECT DISTINCT + 27 + + 65 * - 7 FROM tab0, tab1 AS cor0
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT ( SUM( DISTINCT col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT ( SUM ( DISTINCT col0 ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + 74 + COUNT( * ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-9829
SELECT + 74 + COUNT ( * ) AS col1 FROM tab1
----
77

query I rowsort
SELECT DISTINCT 76 * + - col0 AS col1 FROM tab1
----
-3876
-6460
-6916

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 * - - 3 / col0 ) >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT DISTINCT - CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT ALL col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT + + CAST( NULL AS SIGNED ) + col0 - + col0 * + col0 + col0 * + + col2 - + col1 * - 32 FROM tab2 AS cor0 WHERE - ( - + col2 ) * - col2 + - col0 + 75 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9835
SELECT + + CAST ( NULL AS INTEGER ) + col0 - + col0 * + col0 + col0 * + + col2 - + col1 * - 32 FROM tab2 AS cor0 WHERE - ( - + col2 ) * - col2 + - col0 + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + - COUNT( DISTINCT + 75 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9836
SELECT + - COUNT ( DISTINCT + 75 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + 28 - - col1 AS col2 FROM tab2 AS cor0
----
105
79
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT + 98 AS col2, COUNT( * ) FROM tab1
----
98
3

skipif mysql # not compatible
query II rowsort label-9838
SELECT + 98 AS col2, COUNT ( * ) FROM tab1
----
98
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT ALL - col0 DIV + 23 - col1 FROM tab2
----
-53
-70
-79

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - col0 / + 23 - col1 FROM tab2
----
-53
-70
-79

query I rowsort
SELECT col0 FROM tab1 WHERE col2 + col2 * - col2 * + col2 * - + col0 * - 2 < NULL
----

query I rowsort
SELECT DISTINCT + 75 - + col1 + - 51 AS col0 FROM tab1
----
-23
10
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col2 * - col0 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col2 * - col0 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT DISTINCT - COUNT( * ) AS col1, ( + 92 ) FROM tab0
----
-3
92

skipif mysql # not compatible
query II rowsort label-9843
SELECT DISTINCT - COUNT ( * ) AS col1, ( + 92 ) FROM tab0
----
-3
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL COUNT( + - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( + - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL CAST( + 59 AS SIGNED ) FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL CAST ( + 59 AS INTEGER ) FROM tab1 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT 84 * + CAST( + COUNT( + col2 ) AS SIGNED ) + - 5 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
247

skipif mysql # not compatible
query I rowsort label-9848
SELECT 84 * + CAST ( + COUNT ( + col2 ) AS INTEGER ) + - 5 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9849
SELECT - 31 DIV - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9849
SELECT - 31 / - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT - col2 - ( + col1 ) FROM tab0 cor0 WHERE NOT - ( 83 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9851
SELECT - CAST( col1 AS SIGNED ) DIV + + 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT - CAST ( col1 AS INTEGER ) / + + 83 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 20 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 36 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1836
3060
3276

query I rowsort
SELECT + 48 * + col2 - - 96 + col0 FROM tab0 cor0
----
2367
4945
663

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query II rowsort
SELECT DISTINCT - + 35 + - 95 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-130
10
-130
47
-130
99

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT + col0 DIV - + col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT + col0 / - + col2 FROM tab0
----
-8
0
0

query I rowsort
SELECT col0 + + 30 FROM tab2
----
105
76
94

query III rowsort
SELECT * FROM tab2 WHERE + ( 8 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 19 + - col0 AS col1 FROM tab2
----
-65
-83
-94

query I rowsort
SELECT DISTINCT 63 * col1 / + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + 18 * - col0 AS col2 FROM tab0
----
-1556
-1647
-223

query I rowsort
SELECT ALL - col2 * - + 26 AS col0 FROM tab1
----
1534
1768
2496

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 67 / col0 <> NULL
----

query II rowsort
SELECT - col1 + + 75 + - col1 AS col0, 48 AS col2 FROM tab0
----
-87
48
33
48
73
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT - 73 + COUNT( * ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - 73 + COUNT ( * ) FROM tab0 AS cor0
----
-70

query II rowsort
SELECT - col1 + + ( - col0 ), col2 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL + MAX( ALL 53 ) AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + MAX ( ALL 53 ) AS col0 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT + MIN( ALL - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + MIN ( ALL - col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT DISTINCT col2 DIV + 51 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT col2 / + 51 AS col1 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 4 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL SUM( ALL + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL SUM ( ALL + col0 ) AS col1 FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 WHERE 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - 72 * ( col0 ) AS col1 FROM tab1
----
-3658
-6115
-6505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT SUM( + ( 91 ) ) DIV COUNT( * ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9877
SELECT SUM ( + ( 91 ) ) / COUNT ( * ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + SUM( DISTINCT col0 ) AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( + col1 * - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + SUM ( DISTINCT col0 ) AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( + col1 * - 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT - 14 DIV - ( + ( + col0 ) ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 14 / - ( + ( + col0 ) ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT MAX( DISTINCT 9 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT MAX ( DISTINCT 9 ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT COUNT( DISTINCT 63 ) + - 3 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT COUNT ( DISTINCT 63 ) + - 3 FROM tab0
----
-2

query I rowsort
SELECT + 38 + col2 FROM tab2
----
61
78
96

query I rowsort
SELECT + col2 * + 34 AS col2 FROM tab0
----
1598
3366
340

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + COUNT( ALL col1 ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 + col1 ) <> + 87 * col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT + COUNT ( ALL col1 ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 + col1 ) <> + 87 * col2 + + col1
----
0

query I rowsort
SELECT ALL - col1 * 11 + col0 FROM tab2
----
-515
-662
-783

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * + col2 ) <= NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 + + col2
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - 43 IS NULL
----
59
68
96

query I rowsort
SELECT + col1 * + col1 + + col0 AS col1 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT ALL - 89 + col0 FROM tab2
----
-14
-25
-43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( 14 + - col1 ) AND ( - 85 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - ( - MIN( DISTINCT CAST( - col1 AS SIGNED ) ) ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9893
SELECT ALL - ( - MIN ( DISTINCT CAST ( - col1 AS INTEGER ) ) ) col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT 36 - - CAST( - 4 AS SIGNED ) * + 85 FROM tab0 AS cor0 WHERE NOT - 78 NOT BETWEEN NULL AND ( - 39 )
----

skipif mysql # not compatible
query I rowsort label-9894
SELECT 36 - - CAST ( - 4 AS INTEGER ) * + 85 FROM tab0 AS cor0 WHERE NOT - 78 NOT BETWEEN NULL AND ( - 39 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT 20 DIV 72 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT 20 / 72 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 45 * 35 FROM tab0
----
1575
1575
1575

query III rowsort
SELECT * FROM tab2 WHERE NOT - 84 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT + 55 * + CAST( COUNT( * ) * COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
4455

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 55 * + CAST ( COUNT ( * ) * COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( DISTINCT - 18 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
1

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( DISTINCT - 18 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT ALL col1 DIV 47 + 54 AS col1 FROM tab2 cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL col1 / 47 + 54 AS col1 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
87

query I rowsort
SELECT DISTINCT - 6 + 50 * col1 FROM tab2 AS cor0
----
2544
3344
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( - col0 + - 57 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9903
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( - col0 + - 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL + MIN( DISTINCT col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT ALL - + 61 + col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT - col2 * col0 + - col0 FROM tab1 cor0 WHERE 62 < + 50
----

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + COUNT( * ) + + 21 - 28 AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9910
SELECT + COUNT ( * ) + + 21 - 28 AS col2 FROM tab0
----
-4

query I rowsort
SELECT col0 FROM tab1 WHERE + col0 * 28 + - 58 NOT IN ( 20 - 25 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT MAX( + 90 ) * 98 AS col2 FROM tab2
----
8820

skipif mysql # not compatible
query I rowsort label-9912
SELECT MAX ( + 90 ) * 98 AS col2 FROM tab2
----
8820

query III rowsort
SELECT * FROM tab0 WHERE + ( 78 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9914
SELECT + 78 / + CAST( NULL AS DECIMAL ) * COUNT( col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT + 78 / + CAST ( NULL AS REAL ) * COUNT ( col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 + - 13 * - 3 AS col2 FROM tab1
----
44
53
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + col0 + - col1 * col1 IS NULL
----

query I rowsort
SELECT ALL + 46 + col0 AS col0 FROM tab0 AS cor0
----
133
143
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT + 96 + + MAX( - col2 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + 96 + + MAX ( - col2 ) FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - 92 * SUM( ALL ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-11132

skipif mysql # not compatible
query I rowsort label-9919
SELECT - 92 * SUM ( ALL ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-11132

query I rowsort
SELECT - col0 * + 6 - - 76 AS col1 FROM tab0 AS cor0
----
-14
-446
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT - col0 - CAST( NULL AS SIGNED ) * + ( 17 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT - col0 - CAST ( NULL AS INTEGER ) * + ( 17 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NULL IN ( - - 7 )
----

query I rowsort
SELECT DISTINCT - 9 - + col2 AS col1 FROM tab2
----
-32
-49
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT MAX( 66 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT MAX ( 66 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
66

query I rowsort
SELECT DISTINCT - 2 + + + ( 5 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + - 52 * - ( + ( + ( + MIN( ALL col1 ) ) ) ) * + 1 AS col2 FROM tab2 cor0
----
2652

skipif mysql # not compatible
query I rowsort label-9927
SELECT + - 52 * - ( + ( + ( + MIN ( ALL col1 ) ) ) ) * + 1 AS col2 FROM tab2 cor0
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT MIN( - ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9928
SELECT MIN ( - ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
12

query II rowsort
SELECT - - col0 AS col2, 69 * + col0 FROM tab1 AS cor0
----
51
3519
85
5865
91
6279

query II rowsort
SELECT ALL - col1 AS col1, + 2 FROM tab0 AS cor0
----
-1
2
-21
2
-81
2

query I rowsort
SELECT ALL + col2 * 32 * + col2 AS col1 FROM tab0 AS cor0
----
313632
3200
70688

query I rowsort
SELECT ALL + - col0 * + 16 AS col0 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT DISTINCT - - 49 + col0 / col2 AS col2 FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT 79, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-9935
SELECT 79, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
79
3

query I rowsort
SELECT AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + 76 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT - 30 * + - CAST( col0 AS SIGNED ) * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
12750
128310
21420

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 30 * + - CAST ( col0 AS INTEGER ) * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
12750
128310
21420

query II rowsort
SELECT col0 AS col0, col0 * col1 * 12 - - col0 FROM tab0 AS cor0
----
15
14595
87
22011
97
1261

query II rowsort
SELECT col2 AS col1, + 80 FROM tab1 AS cor0
----
59
80
68
80
96
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT ALL col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE col0 * - - 82 NOT BETWEEN col2 AND ( 2 * - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE col0 * - - 82 NOT BETWEEN col2 AND ( 2 * - ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT ALL - COUNT( * ) - + COUNT( ALL + 80 + CAST( NULL AS SIGNED ) ) * 70 AS col2 FROM tab2 WHERE + col0 <= ( - CAST( NULL AS SIGNED ) / + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - COUNT ( * ) - + COUNT ( ALL + 80 + CAST ( NULL AS INTEGER ) ) * 70 AS col2 FROM tab2 WHERE + col0 <= ( - CAST ( NULL AS INTEGER ) / + 15 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT COUNT( 93 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT COUNT ( 93 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT DISTINCT col0 * - col1 + - col0 * 23 col1 FROM tab2 WHERE NOT + - 61 + + col0 BETWEEN + ( col2 ) AND CAST( + col2 AS SIGNED )
----
-3404
-6400
-6750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT DISTINCT col0 * - col1 + - col0 * 23 col1 FROM tab2 WHERE NOT + - 61 + + col0 BETWEEN + ( col2 ) AND CAST ( + col2 AS INTEGER )
----
-3404
-6400
-6750

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 75 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 83 AS col0 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL + - col2 * - ( + col2 ) FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + COUNT( * ) + + 86 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9949
SELECT + COUNT ( * ) + + 86 FROM tab0 AS cor0
----
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col0 - - col0 AND + 41
----

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 + - - col1 FROM tab2
----
23
74
40
117
58
125

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + 67 ) BETWEEN + 83 AND + ( + 40 ) * col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - - 0 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + + + 52 FROM tab0 AS cor0
----
151
62
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( 33 ) / 39 - + - 72 * - ( col0 / col0 ) < - 25
----

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - ( + 11 ) * + col0 + + 69 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT + 2 * col0 * - - ( + col0 ) + - + col0 + + CAST( col2 AS SIGNED ) * + 20 AS col1 FROM tab1
----
15545
17831
7071

skipif mysql # not compatible
query I rowsort label-9958
SELECT + 2 * col0 * - - ( + col0 ) + - + col0 + + CAST ( col2 AS INTEGER ) * + 20 AS col1 FROM tab1
----
15545
17831
7071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT ALL - col1, 8 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL - col1, 8 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT ALL + 19 DIV + - col0 + + col2 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + 19 / + - col0 + + col2 FROM tab0
----
10
46
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + COUNT( - - col0 ) + + 3 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9962
SELECT + COUNT ( - - col0 ) + + 3 AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9963
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - + 60 FROM tab2 AS cor0
----
-3060
-4020
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT - 65 * - COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT - 65 * - COUNT ( * ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT - col0, - 79 * 86 AS col2 FROM tab0
----
-15
-6794
-87
-6794
-97
-6794

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL + 69 * + COUNT( * ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + 69 * + COUNT ( * ) FROM tab1
----
207

query II rowsort
SELECT - col0 AS col1, - col1 AS col2 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL 53 * - 89 FROM tab0
----
-4717
-4717
-4717

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT - 47, + MAX( col2 ) col0 FROM tab2
----
-47
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9974
SELECT - 47, + MAX ( col2 ) col0 FROM tab2
----
-47
58

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL = - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT - 67 AS col2, COUNT( - col2 ) AS col2 FROM tab1 cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-9976
SELECT - 67 AS col2, COUNT ( - col2 ) AS col2 FROM tab1 cor0
----
-67
3

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 <> ( - col0 * col2 * - ( + - col1 ) * + 73 )
----

query I rowsort
SELECT ALL + col2 + + - col1 + - + col0 + col2 * col0 * col1 FROM tab0 AS cor0 WHERE NOT + 84 <> - col2 - + col2
----

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <= 93
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9980
SELECT + CAST( + col0 AS SIGNED ) DIV col1 * - - col1 + - 35 FROM tab0 AS cor0
----
-35
49
62

skipif mysql # not compatible
query I rowsort label-9980
SELECT + CAST ( + col0 AS INTEGER ) / col1 * - - col1 + - 35 FROM tab0 AS cor0
----
-35
49
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT + 34 DIV + col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col1 * - col1 * + + ( - ( - col1 ) ) )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT + 34 / + col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col1 * - col1 * + + ( - ( - col1 ) ) )
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE - 58 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT - 84 * col2 DIV - 45 FROM tab2
----
108
42
74

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 84 * col2 / - 45 FROM tab2
----
108
42
74

query III rowsort
SELECT ALL * FROM tab1 WHERE - 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL 77 + col0 AS col1 FROM tab2 cor0
----
123
141
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9987
SELECT ALL + - CAST( NULL AS SIGNED ) + - col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT 29 + - col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT 29 + - col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 + col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-1522
-3286
-451

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( + - ( - col2 ) ) + + 95 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86, + 29 col0 FROM tab1
----
86
29
86
29
86
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT MIN( ALL + - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT MIN ( ALL + - col2 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - ( - 90 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 16 FROM tab2
----
-23
16
-40
16
-58
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL COUNT( + - ( + col1 ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9995
SELECT ALL COUNT ( + - ( + col1 ) ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + - col1 ) + 47 FROM tab1
----
0
33
42

query II rowsort
SELECT DISTINCT 21 AS col2, - 94 - + 31 FROM tab2
----
21
-125

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE - ( - - 98 ) = NULL
----

query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE - 56 + - col2 < 23 * + - col1 + - + 73 + - col2
----

