sqllogictest
Artifact Content
Not logged in

Artifact a1adef8743756182019513786eb3c6772944bc4f:


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)

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-0
SELECT * FROM tab0 WHERE NOT - 34 * - 21 = ( + CAST( NULL AS SIGNED ) * + - col1 )
----

skipif mysql # not compatible
query III rowsort label-0
SELECT * FROM tab0 WHERE NOT - 34 * - 21 = ( + CAST ( NULL AS INTEGER ) * + - col1 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT + + MIN( ALL col2 ) DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT + + MIN ( ALL col2 ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col1 FROM tab2 WHERE NOT ( + + col1 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NOT + col1 * 94 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT ALL - CAST( + - SUM( - col1 ) AS SIGNED ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - CAST ( + - SUM ( - col1 ) AS INTEGER ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT 72 + + col1 FROM tab1
----
119
77
86

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - 75 NOT BETWEEN + col1 / + col2 AND + - col2
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT + + 61 * + col2 * col1 FROM tab1 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 11 col2, - col1 * - + col0 + - col1 AS col1 FROM tab0
----
1089
96
110
1806
517
1134

query II rowsort
SELECT DISTINCT + col1 + - col2, + 87 AS col1 FROM tab2 WHERE + - 25 * - col1 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT MIN ( - 63 ) FROM tab2 AS cor0
----
-63

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

query II rowsort
SELECT + col1, col1 + - + col0 + - col0 FROM tab0 AS cor0 WHERE col0 > - 33
----
1
-193
21
-153
81
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT - col2 + col2 DIV + 17 AS col1 FROM tab2 AS cor0
----
-22
-38
-55

skipif mysql # not compatible
query I rowsort label-19
SELECT - col2 + col2 / + 17 AS col1 FROM tab2 AS cor0
----
-22
-38
-55

query I rowsort
SELECT ALL - + col2 + + col2 + col2 * 91 + - + col0 * 10 AS col1 FROM tab2 AS cor0
----
1633
3000
4528

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 41 col1 FROM tab0
----
140
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL COUNT( - col2 ) - 74 AS col0 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL COUNT ( - col2 ) - 74 AS col0 FROM tab2
----
-71

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE + + col2 * - col2 IS NOT NULL
----
-51
-85
-91

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

query I rowsort
SELECT ALL 4 - col2 + 83 AS col1 FROM tab1
----
-9
19
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT + CAST( + col2 AS SIGNED ) - + 38 AS col0 FROM tab2
----
-15
2
20

skipif mysql # not compatible
query I rowsort label-27
SELECT + CAST ( + col2 AS INTEGER ) - + 38 AS col0 FROM tab2
----
-15
2
20

query I rowsort
SELECT ( - 1 ) - - - 31 * - col2 * 3 FROM tab1 AS cor0
----
5486
6323
8927

query I rowsort
SELECT + ( + 24 ) FROM tab2 cor0
----
24
24
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL - + 85 * - COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - + 85 * - COUNT ( * ) FROM tab0 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - SUM( 1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - SUM ( 1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 97 col1, + ( - - 50 ) FROM tab2
----
97
50
97
50
97
50

query I rowsort
SELECT - + col0 * + col0 * col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

query I rowsort
SELECT ALL 10 * ( + + 9 ) * - + col1 FROM tab1 AS cor0
----
-1260
-4230
-450

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

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

query II rowsort
SELECT col0, col1 * + 97 AS col0 FROM tab2 AS cor0
----
46
4947
64
7469
75
6499

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

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT DISTINCT - col1 DIV + ( - col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT - col1 / + ( - col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * col0 * + - col2 * + col0 * - - col1 col0 FROM tab0
----
-138285630
-74522025
-81039717

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

query I rowsort
SELECT col0 * - - 18 AS col0 FROM tab2
----
1152
1350
828

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

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

query II rowsort
SELECT - col2 + col0 AS col0, 29 - + 83 - col2 FROM tab2 AS cor0
----
17
-112
23
-77
24
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT - col2 DIV + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-46
SELECT - col2 / + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 + + + col1 col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - - col0 + - 52 * col0 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT + 90 DIV + + col1 - + ( + col2 ) FROM tab0
----
-46
-6
-9

skipif mysql # not compatible
query I rowsort label-50
SELECT + 90 / + + col1 - + ( + col2 ) FROM tab0
----
-46
-6
-9

query I rowsort
SELECT DISTINCT col0 + + 27 AS col0 FROM tab2
----
102
73
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col2 + col2 col0 FROM tab1
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL col2 - - 94 DIV col2 AS col1 FROM tab0
----
19
49
99

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL col2 - - 94 / col2 AS col1 FROM tab0
----
19
49
99

query I rowsort
SELECT + col2 + - ( ( - col0 ) ) * - + 14 AS col2 FROM tab0
----
-1208
-1259
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT - col1 DIV + col0 + + - 89 FROM tab0
----
-89
-89
-94

skipif mysql # not compatible
query I rowsort label-56
SELECT - col1 / + col0 + + - 89 FROM tab0
----
-89
-89
-94

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

skipif mysql # not compatible
query I rowsort label-57
SELECT ( MAX ( + 50 ) ) AS col0 FROM tab0
----
50

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 62 col0, col1, ( - col1 ) * - col2 * ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
9 values hashing to c0bb55c89dc5af3f7155c0ba46e2d164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-61
SELECT + col2 * + col2 + col2 * - - 54 AS col0, CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-61
SELECT + col2 * + col2 + col2 * - - 54 AS col0, CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

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

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

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

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

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

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - 23 * 28 + - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-67
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col0 <> + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + 67 + ( - col2 ) AS col1 FROM tab2
----
27
44
9

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

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

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

query I rowsort
SELECT DISTINCT + + 45 * 71 + col2 AS col1 FROM tab1 AS cor0
----
3254
3263
3291

query I rowsort
SELECT DISTINCT + - col0 + + col2 - + + 47 * + + 66 * + - col0 AS col0 FROM tab1 AS cor0
----
158247
263644
282259

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

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT col1 * + - CAST ( NULL AS REAL ) / - col1 FROM tab1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 98 > NULL )
----

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 98 > NULL )
----

query I rowsort
SELECT 8 + + - 75 * - 67 AS col0 FROM tab2 AS cor0
----
5033
5033
5033

query I rowsort
SELECT - col2 * 83 + - col2 + col1 AS col1 FROM tab0 AS cor0
----
-3867
-819
-8315

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT col0 DIV - + 59 + - ( + - col0 ) - - col0 FROM tab1 AS cor0
----
102
169
181

skipif mysql # not compatible
query I rowsort label-78
SELECT col0 / - + 59 + - ( + - col0 ) - - col0 FROM tab1 AS cor0
----
102
169
181

query I rowsort
SELECT col1 + + + col1 + col0 FROM tab0 AS cor0
----
129
177
99

query I rowsort
SELECT DISTINCT 63 + - col0 AS col2 FROM tab1 AS cor0
----
-22
-28
12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 37 col0 FROM tab1 AS cor0
----
42
51
84

query II rowsort
SELECT DISTINCT col0 * col0 - 41 AS col0, col2 FROM tab2
----
2075
23
4055
40
5584
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( 47 / col2 + + + CAST( 37 AS SIGNED ) / + 85 ) <> + 16
----

skipif mysql # not compatible
query I rowsort label-84
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( 47 / col2 + + + CAST ( 37 AS INTEGER ) / + 85 ) <> + 16
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE - - col2 > - 21 - 67
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 69 col1 FROM tab1
----
3519
5865
6279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT MAX( - 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-88
SELECT MAX ( - 35 ) FROM tab1
----
-35

query I rowsort
SELECT col0 * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL COUNT( * ) * - 35 + - MAX( ALL + 46 ) FROM tab2 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL COUNT ( * ) * - 35 + - MAX ( ALL + 46 ) FROM tab2 AS cor0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - SUM( - + ( 48 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-93
SELECT - SUM ( - + ( 48 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL - COUNT( * ) - - 9 AS col0 FROM tab0 WHERE NOT - col1 * + - col0 < + - col1
----
6

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - COUNT ( * ) - - 9 AS col0 FROM tab0 WHERE NOT - col1 * + - col0 < + - col1
----
6

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

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

query I rowsort
SELECT - + 99 + 16 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - - MIN( - ( 24 ) ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-98
SELECT - - MIN ( - ( 24 ) ) FROM tab1 AS cor0
----
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-100
SELECT - 62, CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-62
23
-62
40
-62
58

skipif mysql # not compatible
query II rowsort label-100
SELECT - 62, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-62
23
-62
40
-62
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT - 24 + MAX( - 89 ) * - COUNT( ALL + col1 ) AS col0 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - 24 + MAX ( - 89 ) * - COUNT ( ALL + col1 ) AS col0 FROM tab2
----
243

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

onlyif mysql # DIV for integer division: 
query II rowsort label-106
SELECT + col1 DIV - col2 AS col1, + col1 AS col2 FROM tab0
----
-1
81
-2
21
0
1

skipif mysql # not compatible
query II rowsort label-106
SELECT + col1 / - col2 AS col1, + col1 AS col2 FROM tab0
----
-1
81
-2
21
0
1

query I rowsort
SELECT - + col1 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col2 + - col1 AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ALL MIN( + 15 ) - - COUNT( * ) col0 FROM tab2
----
18

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

query I rowsort
SELECT col0 + - - col1 FROM tab1
----
138
65
90

query II rowsort
SELECT col2 AS col1, 64 FROM tab0
----
10
64
47
64
99
64

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT DISTINCT CAST( + 11 AS SIGNED ) - col0 AS col0 FROM tab2
----
-35
-53
-64

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT CAST ( + 11 AS INTEGER ) - col0 AS col0 FROM tab2
----
-35
-53
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-114
SELECT col1, col0 + + - ( - CAST( NULL AS DECIMAL ) ) - col2 * - 9 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-114
SELECT col1, col0 + + - ( - CAST ( NULL AS REAL ) ) - col2 * - 9 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL + + 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

query I rowsort
SELECT + 36 - ( - col0 ) * 23 AS col0 FROM tab1 AS cor0
----
1209
1991
2129

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

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

query I rowsort
SELECT ALL 32 * + col1 FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT DISTINCT + ( + - ( + MIN( ALL + + 79 ) ) ) * - ( + + ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + ( + - ( + MIN ( ALL + + 79 ) ) ) * - ( + + ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL - - 39 - - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - - 39 - - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 72 + + ( + 73 ) BETWEEN col2 AND + col0 / - col1 + + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 12 + 10 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-126
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-126
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 > 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 20 * - 49 FROM tab0
----
-980

query I rowsort
SELECT ALL + 64 * + - col0 AS col2 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 + - + col1, - 17 * - col1 * + col1, col1, - + col0 )
----

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

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

query II rowsort
SELECT col2 * - 18 AS col2, col1 * 49 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

query II rowsort
SELECT DISTINCT + col2 * - col2 + + 69 * - col1 AS col0, col0 AS col2 FROM tab0 cor0
----
-1549
87
-7798
15
-9870
97

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL 57 * - COUNT( - - col2 ) AS col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL 57 * - COUNT ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT + COUNT( * ), MAX( + ( + + col0 ) ) AS col0 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-135
SELECT + COUNT ( * ), MAX ( + ( + + col0 ) ) AS col0 FROM tab1
----
3
91

query I rowsort
SELECT DISTINCT - - ( - 19 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 >= - 40 + + + col1 * col2
----

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

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

query I rowsort
SELECT + + 42 FROM tab1 cor0
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-141
SELECT - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT - COUNT ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - 95 + MAX( ALL 98 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - 95 + MAX ( ALL 98 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 80 + - col1 FROM tab2 AS cor0
----
-131
-147
-157

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

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

skipif mysql # not compatible
query I rowsort label-145
SELECT + + COUNT ( * ) + MIN ( DISTINCT col0 ) + MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT 46 + - col0 - - col2 AS col2 FROM tab2
----
22
23
29

query I rowsort
SELECT + ( + col0 ) + - 11 AS col1 FROM tab1
----
40
74
80

query I rowsort
SELECT + - 58 AS col1 FROM tab1 WHERE - col2 + + - 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-149
SELECT ALL + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * col2 + + + col0 - - 75 * + - col2 * + col2 AS col0, 96 AS col1 FROM tab0
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
query II rowsort label-149
SELECT ALL + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * col2 + + + col0 - - 75 * + - col2 * + col2 AS col0, 96 AS col1 FROM tab0
----
NULL
96
NULL
96
NULL
96

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-152
SELECT DISTINCT - - 55 AS col0, 21 * - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT DISTINCT - - 55 AS col0, 21 * - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
NULL

query II rowsort
SELECT + ( col1 ) - col0 * - + 13 * - - ( - 22 ), col2 FROM tab1 cor0
----
-14572
96
-24305
59
-25979
68

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - COUNT( * ) col0 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-154
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - - COUNT( ALL + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col0 + - col0 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-155
SELECT - - COUNT ( ALL + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col0 + - col0 >= NULL
----
0

query I rowsort
SELECT ALL ( col1 ) * - + 16 + col0 AS col0 FROM tab2 AS cor0
----
-1168
-770
-997

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT DISTINCT - - COUNT( * ) + 67 FROM tab0 AS cor0 WHERE NOT 81 >= + col1
----
67

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT - - COUNT ( * ) + 67 FROM tab0 AS cor0 WHERE NOT 81 >= + col1
----
67

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

query I rowsort
SELECT DISTINCT 84 * + col1 AS col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT ALL - col0 * ( col1 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 15 * + + 14 AS col0 FROM tab2
----
-210
-210
-210

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

query I rowsort
SELECT + col1 * + 71 AS col0 FROM tab2 AS cor0
----
3621
4757
5467

query I rowsort
SELECT DISTINCT - 27 FROM tab1 AS cor0 WHERE col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-166
SELECT + 67 AS col2, ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
67
NULL
67
NULL
67
NULL

skipif mysql # not compatible
query II rowsort label-166
SELECT + 67 AS col2, ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
67
NULL
67
NULL
67
NULL

query I rowsort
SELECT ALL + AVG ( ALL col0 ) FROM tab0 cor0 WHERE - col1 >= 43
----
NULL

query II rowsort
SELECT - ( + ( + ( + + col0 ) ) ) AS col1, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT + COUNT( * ) * - 72 + + - 62 FROM tab0 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-169
SELECT + COUNT ( * ) * - 72 + + - 62 FROM tab0 AS cor0
----
-278

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 64 * - 30 IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 * col0 + - col0 AS col0 FROM tab2
----
163776
326175
48622

query I rowsort
SELECT 88 + - col0 * 51 * - + col2 AS col1 FROM tab0
----
36043
44458
489841

query I rowsort
SELECT ALL col0 + + 91 FROM tab2 AS cor0
----
137
155
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT DISTINCT + - col2 AS col2, + CAST( + - 88 AS SIGNED ) * col1 FROM tab1 WHERE NULL <= NULL
----

skipif mysql # not compatible
query II rowsort label-175
SELECT DISTINCT + - col2 AS col2, + CAST ( + - 88 AS INTEGER ) * col1 FROM tab1 WHERE NULL <= NULL
----

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

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

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

query I rowsort
SELECT - col0 * - 97 - 26 + + col1 * + col0 + + ( - col2 ) * - 9 FROM tab2
----
11470
12796
6989

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + MAX( ALL 85 ) FROM tab0, tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-179
SELECT + MAX ( ALL 85 ) FROM tab0, tab0 AS cor0
----
85

query I rowsort
SELECT - 35 + col0 AS col0 FROM tab2
----
11
29
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 86 + - col2, + col1 + + col0 col1 FROM tab2
----
-30
142
40
97
6
141

query III rowsort
SELECT * FROM tab1 WHERE - - col2 = ( 29 )
----

query I rowsort
SELECT col1 * + + col0 + + col0 AS col2 FROM tab1
----
4368
510
765

query I rowsort
SELECT 72 + + col0 FROM tab2
----
118
136
147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT - 21 DIV - - ( - col2 ) + col0 + + col1 col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-187
SELECT DISTINCT - 21 / - - ( - col2 ) + col0 + + col1 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL - 86 - - - MAX( + col2 ) FROM tab0
----
-185

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - 86 - - - MAX ( + col2 ) FROM tab0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT 45 + MIN( ALL + col1 ) AS col1 FROM tab0 WHERE NOT + - col2 * - + 1 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-189
SELECT 45 + MIN ( ALL + col1 ) AS col1 FROM tab0 WHERE NOT + - col2 * - + 1 IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT CAST( + 77 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif mysql # not compatible
query I rowsort label-190
SELECT CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

query I rowsort
SELECT ALL + col2 * + - 71 + 84 FROM tab1 AS cor0
----
-4105
-4744
-6732

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 67 <> + 25
----

onlyif mysql # DIV for integer division: 
query II rowsort label-197
SELECT col0, - 16 + + + 8 DIV - - col1 AS col0 FROM tab0 AS cor0
----
15
-16
87
-16
97
-8

skipif mysql # not compatible
query II rowsort label-197
SELECT col0, - 16 + + + 8 / - - col1 AS col0 FROM tab0 AS cor0
----
15
-16
87
-16
97
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT 14 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-199
SELECT 14 / - col2 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col1 * col1, col0 FROM tab2
----
-2601
46
-4489
75
-5929
64

query I rowsort
SELECT + col0 * - 20 * + col0 * - - col2 FROM tab2
----
-3276800
-6525000
-973360

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

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

query I rowsort
SELECT ALL + ( + 86 ) * - ( + col0 ) + - + col0 AS col0 FROM tab2 cor0
----
-4002
-5568
-6525

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

query I rowsort
SELECT + ( 45 ) FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT - col1 + + 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-206
SELECT - col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - 97 - - 21 col1 FROM tab0 cor0
----
-163
-173
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 94 * + col1 - - 83 * col2 * + 23 + - + col0 AS col2 FROM tab1
----
113016
134139
184529

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + - 29 + + 30 = NULL
----

query I rowsort
SELECT col1 * + 34 * col2 FROM tab1
----
10030
108664
45696

onlyif mysql # DIV for integer division: 
query II rowsort label-213
SELECT DISTINCT 85 DIV + col0, - col0 * - ( col0 ) col1 FROM tab2
----
1
2116
1
4096
1
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-213
SELECT DISTINCT 85 / + col0, - col0 * - ( col0 ) col1 FROM tab2
----
1
2116
1
4096
1
5625

query I rowsort
SELECT 33 * - + col0 AS col0 FROM tab2
----
-1518
-2112
-2475

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

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + COUNT ( * ) / 20 FROM tab1 AS cor0
----
0

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

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

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

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

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

query I rowsort
SELECT 96 * + 92 - + - ( - col0 ) FROM tab1 AS cor0
----
8741
8747
8781

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + - 81 - - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-220
SELECT + - 81 - - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-158

query II rowsort
SELECT - + 12 - 9 AS col1, + col0 FROM tab0 AS cor0
----
-21
15
-21
87
-21
97

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT - SUM( 5 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - SUM ( 5 ) FROM tab0
----
-15

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

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

query I rowsort
SELECT 91 * + col2 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 - - col0, - ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-226
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 - - col0, - ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT DISTINCT + col1 DIV - + col2 + - + col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + col1 / - + col2 + - + col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-228
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( col0 AS DECIMAL ) + ( + - 63 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-228
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( col0 AS REAL ) + ( + - 63 ) AND + CAST ( NULL AS INTEGER )
----

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

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

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

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

query I rowsort
SELECT 42 * - 71 AS col2 FROM tab0 AS cor0
----
-2982
-2982
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NOT 9 NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NOT 9 NOT BETWEEN NULL AND + col2
----
0

query II rowsort
SELECT + col0 * + col1 * - + col2 AS col2, col1 FROM tab1 AS cor0
----
-25075
5
-290836
47
-68544
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-235
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - CAST( + - col1 AS SIGNED ) * col1 + + 99 * + col2 + + - col0
----

skipif mysql # not compatible
query III rowsort label-235
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - CAST ( + - col1 AS INTEGER ) * col1 + + 99 * + col2 + + - col0
----

query II rowsort
SELECT ALL 84 AS col2, 42 FROM tab1
----
84
42
84
42
84
42

query II rowsort
SELECT ALL + col0, + col0 - - col2 * 41 FROM tab0
----
15
1942
87
497
97
4156

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - COUNT( * ) DIV - + 22 * - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT - COUNT ( * ) / - + 22 * - + COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL MAX( + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL MAX ( + col1 ) AS col1 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + + - 49 col1 FROM tab0
----
-2
-39
50

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 9 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT col2 + - col0 + + - col2 DIV - - col1 FROM tab1
----
-24
-37
39

skipif mysql # not compatible
query I rowsort label-245
SELECT col2 + - col0 + + - col2 / - - col1 FROM tab1
----
-24
-37
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT + 17 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
1139
1309
867

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + 17 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
1139
1309
867

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-250
SELECT DISTINCT + - col0 + - 29 * + col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) BETWEEN - col1 AND col0
----

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT + - col0 + - 29 * + col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) BETWEEN - col1 AND col0
----

query I rowsort
SELECT - col1 + + col2 + - ( - col0 ) + 76 + + col1 FROM tab0 cor0 WHERE 85 IS NOT NULL
----
138
173
272

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 16 >= col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 WHERE col1 BETWEEN + col0 AND - + col1
----

query I rowsort
SELECT col1 - col2 + + 48 * 58 * + 91 AS col2 FROM tab1
----
253262
253290
253323

query I rowsort
SELECT ALL + 26 * 67 - + - 97 + + - col0 FROM tab0
----
1742
1752
1824

query I rowsort
SELECT + col2 + - 35 AS col1 FROM tab0
----
-25
12
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + COUNT( * ) * 93 AS col1 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + COUNT ( * ) * 93 AS col1 FROM tab1
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT - 10 + + col2 DIV + + col0 * - col1 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-260
SELECT - 10 + + col2 / + + col0 * - col1 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT - COUNT( * ) + + + 74 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-261
SELECT - COUNT ( * ) + + + 74 FROM tab1
----
71

query I rowsort
SELECT - col2 + + col0 + + col0 AS col2 FROM tab1
----
111
114
6

query I rowsort
SELECT col0 / + - col1 + + 42 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 86 * - 61 - + + 64 + + - ( - 29 ) FROM tab2 AS cor0
----
-5281

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT MAX( + + ( - - col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-265
SELECT MAX ( + + ( - - col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT + - 54 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-266
SELECT + - 54 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * + + col2 * - + col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

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

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

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

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

query I rowsort
SELECT 65 * + 98 + col2 * + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
302255
427154
476386

query I rowsort
SELECT DISTINCT + 86 * + - col1 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + MAX( + + 76 ) + - - COUNT( * ) AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-272
SELECT + MAX ( + + 76 ) + - - COUNT ( * ) AS col2 FROM tab1
----
79

query II rowsort
SELECT ALL - col2 AS col0, col0 * 98 * + col2 AS col0 FROM tab0
----
-10
85260
-47
69090
-99
941094

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-275
SELECT * FROM tab2 WHERE + col0 * col0 + + col2 * CAST( NULL AS SIGNED ) - - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-275
SELECT * FROM tab2 WHERE + col0 * col0 + + col2 * CAST ( NULL AS INTEGER ) - - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 73 * ( col0 ) FROM tab2
----
3358
4672
5475

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

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

skipif mysql # not compatible
query I rowsort label-278
SELECT SUM ( - 2 ) FROM tab0 AS cor0
----
-6

query II rowsort
SELECT 78 AS col2, - 16 + col2 AS col2 FROM tab2 AS cor0
----
78
24
78
42
78
7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-282
SELECT - 43 * - col2 * + CAST( NULL AS SIGNED ) + 91 AS col1, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-282
SELECT - 43 * - col2 * + CAST ( NULL AS INTEGER ) + 91 AS col1, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + col2 * 61 + col1 AS col2 FROM tab1 AS cor0
----
3604
4195
5870

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + 77 > NULL
----

query I rowsort
SELECT + col1 + 24 * - 81 AS col2 FROM tab2 AS cor0
----
-1867
-1877
-1893

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MIN( ALL + + 67 ) + - - SUM( 89 ) + + COUNT( * ) FROM tab0 cor0
----
337

skipif mysql # not compatible
query I rowsort label-286
SELECT MIN ( ALL + + 67 ) + - - SUM ( 89 ) + + COUNT ( * ) FROM tab0 cor0
----
337

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

query I rowsort
SELECT - 90 + + 43 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + - 81 AS col2 FROM tab1 cor0 WHERE + col0 <> + + 11
----
-81
-81
-81

query I rowsort
SELECT ALL + + 61 + - col2 + + 11 FROM tab0 AS cor0
----
-27
25
62

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT - - 32 DIV + - col1 FROM tab0 AS cor0
----
-1
-32
0

skipif mysql # not compatible
query I rowsort label-291
SELECT - - 32 / + - col1 FROM tab0 AS cor0
----
-1
-32
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + 11 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 col1 FROM tab2
----
1173
3080
3886

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

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - MAX ( DISTINCT 88 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-88

query I rowsort
SELECT ALL - 68 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-124236
-6596
-82620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-299
SELECT - 57, col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-57
NULL
-57
NULL
-57
NULL

skipif mysql # not compatible
query II rowsort label-299
SELECT - 57, col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-57
NULL
-57
NULL
-57
NULL

query II rowsort
SELECT + 30 AS col2, - 30 AS col2 FROM tab1
----
30
-30
30
-30
30
-30

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

skipif mysql # not compatible
query I rowsort label-301
SELECT - MAX ( + - 29 ) FROM tab0 AS cor0
----
29

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

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

query II rowsort
SELECT DISTINCT 59 AS col1, 36 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-305
SELECT - col1 AS col0, col1 * col2 - + CAST( + - col2 AS SIGNED ) + - col1 AS col0 FROM tab0 cor0
----
-1
197
-21
199
-81
3773

skipif mysql # not compatible
query II rowsort label-305
SELECT - col1 AS col0, col1 * col2 - + CAST ( + - col2 AS INTEGER ) + - col1 AS col0 FROM tab0 cor0
----
-1
197
-21
199
-81
3773

query II rowsort
SELECT - col0, + col1 * col1 AS col2 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

query I rowsort
SELECT DISTINCT 21 + - + col1 AS col1 FROM tab0 AS cor0
----
-60
0
20

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

query I rowsort
SELECT ALL ( - col2 ) * - - col2 * col0 + + col0 + - - 91 AS col1 FROM tab2 cor0
----
-102245
-24197
-252134

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL + 34 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL + 34 / - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT DISTINCT 98 * + + col0 * CAST( + col0 AS SIGNED ) FROM tab1
----
254898
708050
811538

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT 98 * + + col0 * CAST ( + col0 AS INTEGER ) FROM tab1
----
254898
708050
811538

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 60 + - col2 col2 FROM tab2 AS cor0
----
-2783
-3880
-4558

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 46 / - col0 + - col0 BETWEEN + 94 AND NULL
----

query I rowsort
SELECT - col2 + - 19 FROM tab0
----
-118
-29
-66

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

query I rowsort
SELECT ALL - col1 + - 68 AS col1 FROM tab0 AS cor0
----
-149
-69
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 68 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT 23 * + + 75 - - MIN( - col2 ) FROM tab2 cor0
----
1667

skipif mysql # not compatible
query I rowsort label-322
SELECT 23 * + + 75 - - MIN ( - col2 ) FROM tab2 cor0
----
1667

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

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT ALL - 67 DIV - - 7 + + 0 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - 67 / - - 7 + + 0 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + col2 + + - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col1 + 32 + + + col1 AS col2 FROM tab1
----
126
42
60

query II rowsort
SELECT + col1 * col0 - col2, 25 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT - COUNT( * ) * + + 15 col2 FROM tab2
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT DISTINCT - COUNT ( * ) * + + 15 col2 FROM tab2
----
-45

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

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

query II rowsort
SELECT + col2, - 93 AS col0 FROM tab1
----
59
-93
68
-93
96
-93

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

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

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

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

query I rowsort
SELECT 38 * + + col1 AS col1 FROM tab1
----
1786
190
532

query I rowsort
SELECT ALL ( - - 49 ) AS col0 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-336
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT + col1 + + + col2 * col2 FROM tab1 WHERE - col2 * - 55 + - col1 IS NOT NULL
----
3486
4671
9230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-339
SELECT ALL - MAX( ALL - 87 ) AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - - col2 * - - col0 / + - 2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL - MAX ( ALL - 87 ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - - col2 * - - col0 / + - 2 IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-341
SELECT - + 41 AS col2 FROM tab2 AS cor0 WHERE NOT - 1 NOT BETWEEN - col0 + - + col1 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-341
SELECT - + 41 AS col2 FROM tab2 AS cor0 WHERE NOT - 1 NOT BETWEEN - col0 + - + col1 AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 76 >= - col2 * - col2 * 64 + - 67 + col2 * - col2 - - + col2 / + 1
----

query I rowsort
SELECT ALL - + 84 AS col1 FROM tab2 AS cor0
----
-84
-84
-84

query II rowsort
SELECT ALL + - 98 AS col0, ( - 3 ) FROM tab0 cor0 WHERE col1 NOT BETWEEN + - col0 AND col0
----
-98
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - 80 + col1 * - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT ALL ( + 48 ) * 23 + - COUNT( * ) col1, MIN( ( - col0 ) ) FROM tab0 AS cor0
----
1101
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-348
SELECT ALL ( + 48 ) * 23 + - COUNT ( * ) col1, MIN ( ( - col0 ) ) FROM tab0 AS cor0
----
1101
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-350
SELECT DISTINCT col0 + + - col1 + - col2 + col1 - - col1 * col0 * - 84 * 78 + - col0 + - CAST( NULL AS SIGNED ) + col1 col0, - col2 * + col2 FROM tab1 AS cor0
----
NULL
-3481
NULL
-4624
NULL
-9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-350
SELECT DISTINCT col0 + + - col1 + - col2 + col1 - - col1 * col0 * - 84 * 78 + - col0 + - CAST ( NULL AS INTEGER ) + col1 col0, - col2 * + col2 FROM tab1 AS cor0
----
NULL
-3481
NULL
-4624
NULL
-9216

query I rowsort
SELECT DISTINCT col1 + - 94 FROM tab2
----
-17
-27
-43

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

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

query I rowsort
SELECT + col1 + 44 AS col0 FROM tab1 WHERE col2 * 53 IS NOT NULL
----
49
58
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( + col0 * 88 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT ( col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT 48 + col0 * col1 AS col2 FROM tab2 WHERE NOT ( 85 ) = ( + col2 )
----
2394
4976
5073

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <= 9 * col2
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL - col2 + - col1 DIV - col1 FROM tab2 WHERE ( 15 ) IS NOT NULL
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - col2 + - col1 / - col1 FROM tab2 WHERE ( 15 ) IS NOT NULL
----
-22
-39
-57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT DISTINCT COUNT( * ) DIV 53 AS col1 FROM tab2 WHERE - col2 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 FROM tab1
----
-3476
-4577
-9202

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - col1 = + ( 58 )
----

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

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col1 FROM tab0
----
-431
-6514
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT + COUNT( * ) * - SUM( 17 ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-372
SELECT + COUNT ( * ) * - SUM ( 17 ) AS col0 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT 15 * + 90 AS col2 FROM tab0 cor0
----
1350
1350
1350

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col2 BETWEEN + col1 + + col1 AND NULL
----
15
81
47
87
21
10

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

skipif mysql # not compatible
query I rowsort label-378
SELECT + + 42 / - COUNT ( * ) FROM tab0 AS cor0
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-379
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-379
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT + col2 + 53 AS col1 FROM tab0 AS cor0
----
100
152
63

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

query I rowsort
SELECT + 35 * - col0 + col2 / + col2 FROM tab1 AS cor0 WHERE + col1 IN ( + 91 * + ( col0 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT - COUNT( * ) * 11 AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT - COUNT ( * ) * 11 AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT - 43 - - col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
-33
4
56

query I rowsort
SELECT DISTINCT - col1 + 92 FROM tab0
----
11
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT 18 + 37 + 77 * - COUNT( * ) AS col0 FROM tab2
----
-176

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT 18 + 37 + 77 * - COUNT ( * ) AS col0 FROM tab2
----
-176

query I rowsort
SELECT - col2 * - 59 * col0 FROM tab2
----
151040
256650
62422

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT DISTINCT + COUNT( ALL col1 ) * 23 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + COUNT ( ALL col1 ) * 23 FROM tab1
----
69

query I rowsort
SELECT + 37 + - - col1 AS col2 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT ( - col2 ) * + 10 FROM tab1
----
-590
-680
-960

query I rowsort
SELECT DISTINCT + col2 * + - 13 AS col1 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT - 92 * - 89 AS col1 FROM tab1 WHERE NULL NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT DISTINCT + 78 DIV 5 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT + 78 / 5 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + col1 * - col1 * - + col2 AS col2 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL + SUM( col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL + SUM ( col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT + col1 * col1 FROM tab2 WHERE NULL BETWEEN - col1 / col2 - + col2 AND 85 / - col1
----

query I rowsort
SELECT + 58 - + + col1 * - col0 * + col2 + col0 AS col0 FROM tab1
----
25218
290985
68653

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-399
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( CAST( 66 AS SIGNED ) ) AND - 80 * + 25 )
----

skipif mysql # not compatible
query III rowsort label-399
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( CAST ( 66 AS INTEGER ) ) AND - 80 * + 25 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 93 + ( - col1 + + col0 ) AND col1
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-407
SELECT ALL - + col2 col0, col0 + - col0 * + CAST( NULL AS SIGNED ) col0 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-407
SELECT ALL - + col2 col0, col0 + - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT + 9 DIV col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-408
SELECT + 9 / col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT SUM( col2 ) * - 23 + - 93 AS col1 FROM tab1
----
-5222

skipif mysql # not compatible
query I rowsort label-409
SELECT SUM ( col2 ) * - 23 + - 93 AS col1 FROM tab1
----
-5222

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-410
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> col2 - + - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-410
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> col2 - + - CAST ( col2 AS REAL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col1 > - 58 - 96
----

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ALL 9 * + col1 DIV + + col1 AS col0 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL 9 * + col1 / + + col1 AS col0 FROM tab1
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT 20 DIV - col1 * col1 AS col0 FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-413
SELECT 20 / - col1 * col1 AS col0 FROM tab0
----
-20
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-416
SELECT - col2 / - + col0 AS col2 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 / + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 / + - col2 ) = ( + 19 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 15 < ( - col2 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - ( COUNT( * ) ) * - 56 col0 FROM tab2 WHERE NOT col2 < - 86
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT - ( COUNT ( * ) ) * - 56 col0 FROM tab2 WHERE NOT col2 < - 86
----
168

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-421
SELECT ALL - ( - COUNT( * ) ) FROM tab2 WHERE NULL < + - CAST( NULL AS DECIMAL ) + 65
----
0

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - ( - COUNT ( * ) ) FROM tab2 WHERE NULL < + - CAST ( NULL AS REAL ) + 65
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL <> col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - 40 / - - 30 >= 4
----

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

query I rowsort
SELECT col1 * 91 - col2 AS col1 FROM tab0 AS cor0
----
-8
1901
7324

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-430
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-430
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
64

query I rowsort
SELECT - 88 + - - 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL - ( COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE NOT - col2 * 97 + + 45 * + col2 IN ( - col0 ) AND ( + ( + 32 ) ) * + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-432
SELECT ALL - ( COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE NOT - col2 * 97 + + 45 * + col2 IN ( - col0 ) AND ( + ( + 32 ) ) * + col1 IS NULL
----
0

query I rowsort
SELECT - 44 + 51 + 99 + + + col2 + + 69 * - col2 AS col2 FROM tab0 AS cor0
----
-3090
-574
-6626

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - 41 * + 5 + + COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-434
SELECT - 41 * + 5 + + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-435
SELECT ALL - + 24 AS col2, COUNT( * ) * ( 2 ) AS col0 FROM tab1 AS cor0
----
-24
6

skipif mysql # not compatible
query II rowsort label-435
SELECT ALL - + 24 AS col2, COUNT ( * ) * ( 2 ) AS col0 FROM tab1 AS cor0
----
-24
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-436
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * - - col0 / + - CAST( NULL AS SIGNED ) * - 73 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-436
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * - - col0 / + - CAST ( NULL AS INTEGER ) * - 73 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT + SUM( DISTINCT + col0 ) + + MAX( + CAST( NULL AS SIGNED ) ) + COUNT( * ) * + ( + 23 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT + SUM ( DISTINCT + col0 ) + + MAX ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * + ( + 23 ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 78 + + 88 + 29 FROM tab1 AS cor0
----
39

query I rowsort
SELECT col1 * - + col1 * - - col0 * - + col1 + + 86 AS col0 FROM tab2
----
22557311
29218198
6102032

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

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

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

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

query II rowsort
SELECT ALL + col0 * col0, - col2 AS col2 FROM tab2
----
2116
-23
4096
-40
5625
-58

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

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NOT NULL IN ( - - col2, - col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-449
SELECT - CAST( + - COUNT( * ) AS DECIMAL ) - - 17 * - 38 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT - CAST ( + - COUNT ( * ) AS REAL ) - - 17 * - 38 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 43 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT DISTINCT + col1 DIV - col2 + col1 AS col0 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT + col1 / - col2 + col1 AS col0 FROM tab0 AS cor0
----
1
19
80

query I rowsort
SELECT DISTINCT + col0 * - 11 * + - 21 FROM tab1
----
11781
19635
21021

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

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

query I rowsort
SELECT - + col2 * + - 89 AS col0 FROM tab2 AS cor0
----
2047
3560
5162

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

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

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

query I rowsort
SELECT col1 * 13 AS col2 FROM tab2 cor0
----
1001
663
871

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

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT + - col1 * + 61 * - ( - CAST ( NULL AS REAL ) ) + + 50 - + ( - col0 ) / CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL - col1 * + col0 AS col2, col2 * - + col0 FROM tab0 AS cor0
----
-1215
-705
-1827
-870
-97
-9603

query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab2 WHERE ( 25 ) BETWEEN NULL AND col2
----

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

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

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE NOT + col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 * - 82 NOT IN ( 53, + 1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + col2 + - 87 - + - 56 col0 FROM tab2
----
-46
-8
-64
9
-75
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-469
SELECT ALL + - 51 + - - COUNT( * ) DIV - COUNT( * ) + + COUNT( - col1 ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + - 51 + - - COUNT ( * ) / - COUNT ( * ) + + COUNT ( - col1 ) FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-470
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-470
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-471
SELECT - SUM( DISTINCT - + 95 ) AS col1, 92 FROM tab1 AS cor0
----
95
92

skipif mysql # not compatible
query II rowsort label-471
SELECT - SUM ( DISTINCT - + 95 ) AS col1, 92 FROM tab1 AS cor0
----
95
92

query I rowsort
SELECT 7 * 12 FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL 41 AS col0 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + CAST( NULL AS SIGNED ), + ( - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL 41 AS col0 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + CAST ( NULL AS INTEGER ), + ( - col2 ) )
----

query I rowsort
SELECT ALL + col1 + + + col2 * 81 * - + col1 * - - col0 FROM tab1 AS cor0
----
-2031070
-23557669
-5552050

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

query I rowsort
SELECT ALL + col2 + - - col2 FROM tab2
----
116
46
80

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

skipif mysql # not compatible
query I rowsort label-478
SELECT - 79 - COUNT ( * ) FROM tab1
----
-82

query I rowsort
SELECT ALL 91 * + 39 + + + 9 AS col0 FROM tab2
----
3558
3558
3558

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT - COUNT( - col0 ) + + COUNT( * ) * + 37 FROM tab0 WHERE 72 * - 25 BETWEEN col2 AND + - col1 + ( 33 ) AND ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT - COUNT ( - col0 ) + + COUNT ( * ) * + 37 FROM tab0 WHERE 72 * - 25 BETWEEN col2 AND + - col1 + ( 33 ) AND ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + + 29 FROM tab1
----
125
88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT DISTINCT + + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT + + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT + col0 DIV + 37 AS col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-486
SELECT + col0 / + 37 AS col2 FROM tab0
----
0
2
2

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col2 AND NOT - 65 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - ( - + 3 ) FROM tab2 cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT 69 * col2 + + col1 + - col1 + - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
4130
4760
6720

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) * + + 37 FROM tab0 AS cor0
----
-362637
-3700
-81733

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab0 cor0
----
80

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

query I rowsort
SELECT ALL 70 * 4 AS col0 FROM tab2
----
280
280
280

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT - ( + col1 ) DIV - + col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-499
SELECT - ( + col1 ) / - + col0 AS col1 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN + + 96 * - col2 + + col0 AND + + 48 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT ALL - col1 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - col1 / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 31 col2 FROM tab1
----
1457
155
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT - MIN( - - col1 ) AS col0 FROM tab0 WHERE + CAST( + + col1 AS SIGNED ) IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-503
SELECT - MIN ( - - col1 ) AS col0 FROM tab0 WHERE + CAST ( + + col1 AS INTEGER ) IS NOT NULL
----
-1

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

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

query I rowsort
SELECT + 89 + - col1 AS col0 FROM tab0 cor0
----
68
8
88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT SUM( ALL + CAST( + - ( - 44 ) AS SIGNED ) ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-508
SELECT SUM ( ALL + CAST ( + - ( - 44 ) AS INTEGER ) ) FROM tab1
----
132

query II rowsort
SELECT ALL - ( + 53 ) - - + 38 - 21, col2 FROM tab0
----
-36
10
-36
47
-36
99

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-515
SELECT DISTINCT - col1 - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - col1 - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - 34 * - 56 AS col1 FROM tab0 AS cor0
----
1904
1904
1904

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

query I rowsort
SELECT - col2 * + col1 * - 53 - - - col0 FROM tab0 cor0
----
11043
201756
5150

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT + COUNT( - + 51 ) AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-521
SELECT + COUNT ( - + 51 ) AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

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

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

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 WHERE NOT + 72 NOT IN ( + + col0, - 46 + col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-525
SELECT ALL - MIN ( DISTINCT ( - col0 ) ) col1 FROM tab2
----
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - ( - col1 ) col1 FROM tab0
----
1701
6561
81

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT - col2 * + col1 DIV col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-528
SELECT - col2 * + col1 / col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL + 44 + - - SUM( DISTINCT + + col2 ) + - ( - + 99 ) AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL + 44 + - - SUM ( DISTINCT + + col2 ) + - ( - + 99 ) AS col0 FROM tab2
----
264

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( 17 ) = - 40 / - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT - 39 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT - 39 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL + 95 - - 27 AS col0 FROM tab2
----
122
122
122

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT - COUNT( * ) * - - 29 AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-534
SELECT - COUNT ( * ) * - - 29 AS col2 FROM tab0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-535
SELECT DISTINCT - 75 * - + 27 col2, col2 + - col0 DIV + 13 + - col1 FROM tab2 cor0
----
2025
-14
2025
-31
2025
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-535
SELECT DISTINCT - 75 * - + 27 col2, col2 + - col0 / + 13 + - col1 FROM tab2 cor0
----
2025
-14
2025
-31
2025
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-536
SELECT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) * - + 75 + col0 IS NOT NULL AND NOT ( NULL IN ( + - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-536
SELECT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) * - + 75 + col0 IS NOT NULL AND NOT ( NULL IN ( + - col0 ) )
----

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

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

query I rowsort
SELECT col0 + - + 20 FROM tab1
----
31
65
71

query I rowsort
SELECT DISTINCT + 43 - + col0 FROM tab0
----
-44
-54
28

query I rowsort
SELECT DISTINCT 26 * - - 26 + + - 52 AS col0 FROM tab0
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( - - 32 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-541
SELECT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( - - 32 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col2 * + - col0 AS col2 FROM tab1 WHERE NOT NULL >= - col2 * - 70 / + 32 * col1 + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-543
SELECT * FROM tab1 AS cor0 WHERE NOT + 33 BETWEEN 25 / + CAST( NULL AS SIGNED ) * + 12 + col1 AND + + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-543
SELECT * FROM tab1 AS cor0 WHERE NOT + 33 BETWEEN 25 / + CAST ( NULL AS INTEGER ) * + 12 + col1 AND + + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + SUM( ALL + ( + col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + SUM ( ALL + ( + col0 ) ) FROM tab1 AS cor0
----
227

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-546
SELECT ALL col2 DIV + col1 AS col0, + 93 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
93
0
93
99
93

skipif mysql # not compatible
query II rowsort label-546
SELECT ALL col2 / + col1 AS col0, + 93 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
93
0
93
99
93

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

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

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

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

query I rowsort
SELECT DISTINCT 53 + 14 AS col0 FROM tab0 AS cor0
----
67

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

skipif mysql # not compatible
query I rowsort label-550
SELECT COUNT ( - 60 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT + ( + 54 ) AS col1, col2 FROM tab0 AS cor0
----
54
10
54
47
54
99

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

query I rowsort
SELECT + 40 * 15 + + 8 * + + col2 AS col2 FROM tab1 AS cor0
----
1072
1144
1368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-554
SELECT DISTINCT - SUM( DISTINCT + - col2 ) FROM tab0 WHERE NOT + CAST( 2 AS DECIMAL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) FROM tab0 WHERE NOT + CAST ( 2 AS REAL ) > NULL
----
NULL

query II rowsort
SELECT col0 + col0 + col0 + col2 + + col1 + - - col2 * - + 89 * - col2 AS col0, + col1 AS col0 FROM tab1
----
310128
5
411924
47
820487
14

query I rowsort
SELECT DISTINCT 11 * - 36 FROM tab1
----
-396

query I rowsort
SELECT ALL - 89 * - - col1 FROM tab0
----
-1869
-7209
-89

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

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 - - ( - + col0 ) * - col0 AS col1, + col2 FROM tab1
----
2652
96
7310
59
8372
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT ALL ( - COUNT( * ) ) + + CAST( - 59 AS SIGNED ) - - 93 + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL ( - COUNT ( * ) ) + + CAST ( - 59 AS INTEGER ) - - 93 + COUNT ( * ) FROM tab2
----
34

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

query I rowsort
SELECT ALL 10 - - 33 FROM tab0
----
43
43
43

query I rowsort
SELECT + 74 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT DISTINCT col0 AS col1, 72 AS col1 FROM tab1 WHERE NOT + - col1 >= NULL
----

query I rowsort
SELECT ALL - col0 * - + 55 * - col2 FROM tab1
----
-269280
-275825
-340340

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + COUNT( * ) + COUNT( * ) * 80 * - 13 * - 63 col1 FROM tab2
----
196563

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-568
SELECT + COUNT ( * ) + COUNT ( * ) * 80 * - 13 * - 63 col1 FROM tab2
----
196563

query I rowsort
SELECT ALL - col1 * + + col0 AS col0 FROM tab1
----
-425
-4277
-714

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-571
SELECT + - 96 * + col1 + + CAST( - col0 AS SIGNED ), + 34 AS col0 FROM tab2 AS cor0
----
-4942
34
-6507
34
-7456
34

skipif mysql # not compatible
query II rowsort label-571
SELECT + - 96 * + col1 + + CAST ( - col0 AS INTEGER ), + 34 AS col0 FROM tab2 AS cor0
----
-4942
34
-6507
34
-7456
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT ALL + col0 DIV - - 13 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + col0 / - - 13 FROM tab2 AS cor0
----
3
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - col2 col1 FROM tab0 AS cor0
----
-1598
-3366
-340

query I rowsort
SELECT + - 84 * col0 AS col2 FROM tab2 AS cor0
----
-3864
-5376
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-576
SELECT * FROM tab0 WHERE NOT NULL > + CAST( col0 AS SIGNED ) * 99
----

skipif mysql # not compatible
query III rowsort label-576
SELECT * FROM tab0 WHERE NOT NULL > + CAST ( col0 AS INTEGER ) * 99
----

query I rowsort
SELECT DISTINCT + 83 * + - col0 AS col2 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT ALL - 50 DIV - 75 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - 50 / - 75 FROM tab0
----
0
0
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT DISTINCT col0 DIV + col0 AS col1, - col0 * - - 23 FROM tab1 AS cor0
----
1
-1173
1
-1955
1
-2093

skipif mysql # not compatible
query II rowsort label-581
SELECT DISTINCT col0 / + col0 AS col1, - col0 * - - 23 FROM tab1 AS cor0
----
1
-1173
1
-1955
1
-2093

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT - 32 * + col2 * + col2 - - 64 > col1 * + col0 + - + col0 * + 27 + + 26 - - 74 * - 52
----
-1
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col1 FROM tab2 cor0
----
1600
3364
529

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT MIN( DISTINCT - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT MIN ( DISTINCT - 23 ) FROM tab1
----
-23

query II rowsort
SELECT ( - + ( + col0 ) ), + col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - MIN( - ( 11 ) ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-588
SELECT - MIN ( - ( 11 ) ) AS col1 FROM tab0
----
11

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

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

query I rowsort
SELECT DISTINCT + + 17 AS col1 FROM tab2 AS cor0
----
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT ALL - 88 DIV + ( - 28 ) + - col0 * 42 + - - 65 FROM tab1 cor0
----
-2074
-3502
-3754

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL - 88 / + ( - 28 ) + - col0 * 42 + - - 65 FROM tab1 cor0
----
-2074
-3502
-3754

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

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

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

query II rowsort
SELECT col2 * - col2, col1 + + 93 AS col2 FROM tab1 AS cor0 WHERE - col2 + col0 = + col1
----

query I rowsort
SELECT ALL + 49 + 84 AS col0 FROM tab2
----
133
133
133

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

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

query II rowsort
SELECT DISTINCT + 55 + col0, col1 * + - col1 * - col0 AS col2 FROM tab1
----
106
9996
140
2125
146
201019

query I rowsort
SELECT - col1 FROM tab0 WHERE ( ( ( NOT - 33 BETWEEN NULL AND col2 / + col0 ) ) )
----

query I rowsort
SELECT col1 + - 38 * col2 AS col0 FROM tab1
----
-2237
-2537
-3634

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + ( + - 80 ) FROM tab0 AS cor0 WHERE col2 + + - col2 NOT BETWEEN 53 AND NULL
----
-127
-179
-90

query I rowsort
SELECT ALL + 50 - col0 + - 71 AS col0 FROM tab0
----
-108
-118
-36

query I rowsort
SELECT - col0 - - 45 FROM tab0 cor0
----
-42
-52
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col2 * + - col2 * - - 19 / - + 27 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < + col1 - + + 90 * col2 * - 81
----

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

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

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

query I rowsort
SELECT + + col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT 82 AS col1 FROM tab0 WHERE NOT - col1 * - 0 / + col2 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL 12 * + - MAX( DISTINCT + - 67 ) AS col2 FROM tab1
----
804

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL 12 * + - MAX ( DISTINCT + - 67 ) AS col2 FROM tab1
----
804

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT MAX( - 20 ) col2, COUNT( * ) FROM tab0
----
-20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-616
SELECT MAX ( - 20 ) col2, COUNT ( * ) FROM tab0
----
-20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT MAX( ALL + - 8 ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-617
SELECT MAX ( ALL + - 8 ) AS col2 FROM tab0
----
-8

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT - 57 * + + 76 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-12996

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT - 57 * + + 76 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-12996

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + + COUNT( * ) * - COUNT( * ) + - 54 AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-622
SELECT + + COUNT ( * ) * - COUNT ( * ) + - 54 AS col1 FROM tab0 AS cor0
----
-63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT + 31 * 54 DIV - col2 FROM tab1
----
-17
-24
-28

skipif mysql # not compatible
query I rowsort label-624
SELECT + 31 * 54 / - col2 FROM tab1
----
-17
-24
-28

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE - + 66 + + col0 IS NOT NULL
----
46
64
75

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

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

query I rowsort
SELECT ALL - 77 + col2 * col0 FROM tab0 AS cor0
----
628
793
9526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 43, - col2 col1 FROM tab0 AS cor0
----
124
-47
44
-99
64
-10

query I rowsort
SELECT ALL + + col2 * - col1 + + 30 - - ( - + col1 ) FROM tab2 AS cor0
----
-1194
-3127
-3923

query I rowsort
SELECT ALL + - col1 + - - 47 * + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-181
-2188
-576

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT DISTINCT 3 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT 3 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 22 * - 26 col2 FROM tab1
----
577
586
619

query I rowsort
SELECT DISTINCT ( + + col2 ) * col0 AS col1 FROM tab2 WHERE NOT col1 - + 93 > NULL
----

query I rowsort
SELECT ALL - - ( + 78 ) * - + 56 AS col2 FROM tab1 WHERE NOT - + 82 IS NULL
----
-4368
-4368
-4368

query I rowsort
SELECT - col0 * + 69 AS col1 FROM tab1
----
-3519
-5865
-6279

query I rowsort
SELECT DISTINCT col2 * + col2 - 62 + 63 AS col0 FROM tab1
----
3482
4625
9217

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

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

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT - MAX( + col2 ) * + COUNT( col1 ) - + COUNT( * ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-644
SELECT - MAX ( + col2 ) * + COUNT ( col1 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT + + ( + - col2 ) * col2 DIV col0 FROM tab1 WHERE NULL IS NULL
----
-180
-40
-50

skipif mysql # not compatible
query I rowsort label-645
SELECT + + ( + - col2 ) * col2 / col0 FROM tab1 WHERE NULL IS NULL
----
-180
-40
-50

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN - 0 AND NULL
----

query I rowsort
SELECT + 72 * - - col2 AS col0 FROM tab2 AS cor0
----
1656
2880
4176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT + - CAST( NULL AS SIGNED ) / + - MIN( - - col0 ) FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ( - + 76 ) FROM tab0 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL MAX( DISTINCT - ( + col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL MAX ( DISTINCT - ( + col2 ) ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL ( - + 27 ) * + + col0 FROM tab0 AS cor0
----
-2349
-2619
-405

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

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT SUM( DISTINCT + 70 ) col1 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-653
SELECT SUM ( DISTINCT + 70 ) col1 FROM tab1
----
70

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + 86 ) / 97 <= NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL - 39 * + 71 - + - col0 + + ( - + col0 ) * + - 77 + + - col2 - - + col1 AS col2 FROM tab0 AS cor0
----
-1565
4028
4699

query I rowsort
SELECT + 73 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # DIV for integer division: 
query II rowsort label-660
SELECT DISTINCT + col1 * + col2 + + col2 DIV - + 97, col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

skipif mysql # not compatible
query II rowsort label-660
SELECT DISTINCT + col1 * + col2 + + col2 / - + 97, col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

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

query II rowsort
SELECT DISTINCT 80 AS col1, - col0 + + - 72 FROM tab2 AS cor0
----
80
-118
80
-136
80
-147

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

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

query II rowsort
SELECT ALL - col1 * - 61 + ( + 83 ) AS col0, - col0 FROM tab1 cor0
----
2950
-91
388
-85
937
-51

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

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

query I rowsort
SELECT - - col1 AS col1 FROM tab1 AS cor0 WHERE + col1 - - 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - SUM( - col0 ) + - 69 AS col1 FROM tab1
----
158

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - SUM ( - col0 ) + - 69 AS col1 FROM tab1
----
158

query I rowsort
SELECT col1 - - - col0 + + col1 + - col1 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + 18 * - + col1 + + - col1 + - - col2 AS col1 FROM tab1
----
-170
-36
-825

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

query I rowsort
SELECT ALL col0 * 58 * - - col2 FROM tab1
----
283968
290870
358904

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

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT + col1 + - col1 AS col0, + col1 FROM tab2
----
0
51
0
67
0
77

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + + 22 AS col1 FROM tab0 AS cor0
----
109
119
37

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL + SUM( - - col1 ) + + + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + SUM ( - - col1 ) + + + COUNT ( * ) FROM tab2
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-679
SELECT COUNT( * ) DIV + 53 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT COUNT ( * ) / + 53 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col0 FROM tab0 AS cor0 WHERE NOT - 14 * - + col1 + + ( + col2 ) IS NULL
----
37

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

query II rowsort
SELECT DISTINCT col2 AS col0, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

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

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

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

query I rowsort
SELECT - 44 * - col2 FROM tab1 cor0
----
2596
2992
4224

query I rowsort
SELECT 13 * + 75 AS col0 FROM tab2
----
975
975
975

onlyif mysql # aggregate syntax: 
query II rowsort label-688
SELECT DISTINCT ( COUNT( * ) ) AS col1, SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
3
199

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT ( COUNT ( * ) ) AS col1, SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
3
199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-689
SELECT 31 * CAST( - col1 AS SIGNED ) DIV - 66 AS col1 FROM tab0
----
0
38
9

skipif mysql # not compatible
query I rowsort label-689
SELECT 31 * CAST ( - col1 AS INTEGER ) / - 66 AS col1 FROM tab0
----
0
38
9

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

query I rowsort
SELECT col2 * + 11 + + 48 + - 9 * + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-625
264
430

query I rowsort
SELECT 23 * - 56 FROM tab2 AS cor0
----
-1288
-1288
-1288

query I rowsort
SELECT + col2 * - 15 AS col0 FROM tab0 AS cor0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - SUM( 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT 60 / + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - SUM ( 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT 60 / + + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT - ( 52 ) / col1, + 25 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT 9 + + col0 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
55
73
83

skipif mysql # not compatible
query I rowsort label-697
SELECT 9 + + col0 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
55
73
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-698
SELECT ALL + CAST( + ( ( + 64 ) ) AS SIGNED ) * + COUNT( * ) AS col2, + COUNT( * ) DIV - COUNT( * ) + - - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
192
2

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL + CAST ( + ( ( + 64 ) ) AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) / - COUNT ( * ) + - - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
192
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 71 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT - 59 + + + MAX( ALL - - col1 ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-700
SELECT - 59 + + + MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - 37 ) < NULL
----

query I rowsort
SELECT ALL 30 + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-25045
-290806
-68514

query I rowsort
SELECT ALL - col2 - - 28 * 58 + + - 0 AS col0 FROM tab0 AS cor0
----
1525
1577
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT 95 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-704
SELECT 95 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT 1 DIV - - 87 - - + col2 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 1 / - - 87 - - + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - col0 * - col0 * + - col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - 93 * + SUM( DISTINCT + - col2 ) FROM tab0 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 93 * + SUM ( DISTINCT + - col2 ) FROM tab0 WHERE NOT NULL >= col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT + COUNT( * ) + COUNT( * ) + + COUNT( * ), + 27 AS col1 FROM tab1, tab2 AS cor0
----
27
27

skipif mysql # not compatible
query II rowsort label-709
SELECT + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ), + 27 AS col1 FROM tab1, tab2 AS cor0
----
27
27

query I rowsort
SELECT DISTINCT col0 * col0 - + col2 AS col0 FROM tab0
----
178
7559
9310

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 52 = 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-713
SELECT MIN( ALL + + col2 ), ( 32 ) AS col0 FROM tab2
----
23
32

skipif mysql # not compatible
query II rowsort label-713
SELECT MIN ( ALL + + col2 ), ( 32 ) AS col0 FROM tab2
----
23
32

query I rowsort
SELECT ALL col2 * ( + col2 ) * + col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
102400
24334
252300

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

query I rowsort
SELECT - - 99 * - + col2 AS col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) - 65 + - col2 * + 74 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 22 + + 67 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 14 IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-722
SELECT 22 + + 67 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 14 IS NULL
----
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 col2, col0 AS col1 FROM tab1
----
17
51
17
85
17
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7, col2 - 86 col0 FROM tab0
----
7
-39
7
-76
7
13

query II rowsort
SELECT + col1, 91 AS col2 FROM tab2
----
51
91
67
91
77
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT + 91 + + COUNT( * ) + + 60 AS col2 FROM tab1 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + 91 + + COUNT ( * ) + + 60 AS col2 FROM tab1 AS cor0
----
154

query I rowsort
SELECT ALL + col0 + + col1 + + + ( - + 49 ) FROM tab0 AS cor0
----
47
49
59

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT MAX( 92 ) AS col1 FROM tab2 WHERE ( col1 * + col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT MAX ( 92 ) AS col1 FROM tab2 WHERE ( col1 * + col2 IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-732
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT ALL + 5 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 98, - col2 - - + col1 * - col1 / + - ( + CAST( NULL AS SIGNED ) ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 5 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 98, - col2 - - + col1 * - col1 / + - ( + CAST ( NULL AS INTEGER ) ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT - 81 + - SUM( col1 ) AS col2 FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - 81 + - SUM ( col1 ) AS col2 FROM tab2 cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + MAX( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-735
SELECT + MAX ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT + + col1 * - col0 - 26 FROM tab0 AS cor0
----
-123
-1241
-1853

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL COUNT( * ) - - 92 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL COUNT ( * ) - - 92 FROM tab2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT 75 DIV + col0 - + col0 * 18 + - col2 FROM tab2
----
-1191
-1407
-850

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT 75 / + col0 - + col0 * 18 + - col2 FROM tab2
----
-1191
-1407
-850

query I rowsort
SELECT ALL col2 + - 27 FROM tab2
----
-4
13
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL - COUNT( * ) DIV - 3 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - COUNT ( * ) / - 3 FROM tab1
----
1

query I rowsort
SELECT col1 + - col0 + - col0 AS col1 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT 14 + - + col1 - - col2 * - + 11 FROM tab1
----
-1056
-640
-781

onlyif mysql # DIV for integer division: 
query II rowsort label-743
SELECT ALL - col1 DIV + + ( - + 35 ) AS col2, - col1 col0 FROM tab0
----
0
-1
0
-21
2
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-743
SELECT ALL - col1 / + + ( - + 35 ) AS col2, - col1 col0 FROM tab0
----
0
-1
0
-21
2
-81

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

skipif mysql # not compatible
query I rowsort label-744
SELECT col2 + - col2 + - col1 / + 41 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL 41 * - COUNT( * ) * + + 65 - COUNT( * ) AS col2 FROM tab1
----
-7998

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL 41 * - COUNT ( * ) * + + 65 - COUNT ( * ) AS col2 FROM tab1
----
-7998

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-746
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) NOT BETWEEN NULL AND + + 60 + + 90
----

skipif mysql # not compatible
query III rowsort label-746
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) NOT BETWEEN NULL AND + + 60 + + 90
----

query I rowsort
SELECT DISTINCT - 27 * + 59 - + 33 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1626

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

query I rowsort
SELECT - 96 * - col1 AS col1 FROM tab1 cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 WHERE NOT 43 * - 85 BETWEEN 92 AND NULL
----
95

query I rowsort
SELECT + 76 * 44 + - col2 FROM tab1 AS cor0
----
3248
3276
3285

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2 AS cor0 WHERE NOT - 36 IS NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + ( 73 ) + MAX( + + col2 ) AS col2 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-753
SELECT + ( 73 ) + MAX ( + + col2 ) AS col2 FROM tab0
----
172

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * + col0 col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT - 79 + - col2 * - 22 + - - col0 FROM tab0
----
2196
228
970

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT MIN( ALL ( col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT MIN ( ALL ( col0 ) ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT 92 DIV + + col0 col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-758
SELECT 92 / + + col0 col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT COUNT( - + col1 ) * 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT COUNT ( - + col1 ) * 57 FROM tab0
----
171

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col1 <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT DISTINCT MIN( + 69 ) AS col1 FROM tab1, tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT MIN ( + 69 ) AS col1 FROM tab1, tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-762
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2, + 95 * col0 + + ( 40 ) * - 64 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
128965
NULL
20875
NULL
40685

skipif mysql # not compatible
query II rowsort label-762
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2, + 95 * col0 + + ( 40 ) * - 64 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
128965
NULL
20875
NULL
40685

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

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

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query I rowsort
SELECT ALL + - col0 * - col0 + - ( 48 ) - + - col2 FROM tab0 AS cor0
----
224
7531
9460

query I rowsort
SELECT ALL + col0 + + - col2 + - col2 FROM tab2 AS cor0
----
-16
-41
0

query I rowsort
SELECT + - col0 * col0 + + 47 + - col2 FROM tab1 cor0
----
-2650
-7237
-8302

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-768
SELECT ALL + + CAST( NULL AS SIGNED ) col0, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-768
SELECT ALL + + CAST ( NULL AS INTEGER ) col0, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-769
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT - col1 + + 51 + + col2 FROM tab0 AS cor0
----
149
17
40

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

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

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

query I rowsort
SELECT ALL - col2 - - - col2 - col2 * + 88 * + 31 + 64 + - 81 FROM tab1 AS cor0
----
-161087
-185657
-262097

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

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

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

query I rowsort
SELECT col0 * - ( + - 68 ) AS col2 FROM tab2
----
3128
4352
5100

query I rowsort
SELECT - + col1 * - col2 * - col0 - 2 AS col0 FROM tab1 WHERE - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT DISTINCT - col0 + - CAST( + col2 AS SIGNED ) FROM tab0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - col0 + - CAST ( + col2 AS INTEGER ) FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL - + 33 AS col2 FROM tab1 WHERE NOT - + 32 * + 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 16 * + 48 col0, - col0 AS col0 FROM tab2
----
-768
-46
-768
-64
-768
-75

query I rowsort
SELECT + 18 * - - col2 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT col2 * - 26 - - col0 FROM tab0 AS cor0
----
-1207
-173
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL - COUNT( * ) * - 89 col1 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-783
SELECT ALL - COUNT ( * ) * - 89 col1 FROM tab1 AS cor0
----
267

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

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

query I rowsort
SELECT + 93 * 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e9f4a4f8852c2d973ad9b1d5f94fcf

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

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

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

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

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT - col0 / - - 9 > - col0 - + col0 + 46
----
47

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

query II rowsort
SELECT 16, col1 FROM tab2 AS cor0
----
16
51
16
67
16
77

query I rowsort
SELECT + 62 * - col0 AS col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL + col1 DIV - 44 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + col1 / - 44 FROM tab1 AS cor0
----
-1
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - col2 DIV - col0 col0 FROM tab1
----
0
0
1

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

query I rowsort
SELECT ALL ( + + 58 ) FROM tab0
----
58
58
58

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

query II rowsort
SELECT DISTINCT - col2 AS col1, - 49 AS col0 FROM tab2 AS cor0
----
-23
-49
-40
-49
-58
-49

query I rowsort
SELECT - 21 AS col2 FROM tab2 AS cor0 WHERE + col0 - - - col1 > col2
----

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

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

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

query I rowsort
SELECT DISTINCT + + ( - 45 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT col0 * - - col0 - + - CAST( + col2 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
3174
6656
9975

skipif mysql # not compatible
query I rowsort label-804
SELECT col0 * - - col0 - + - CAST ( + col2 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
3174
6656
9975

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

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE - - 15 <> + - 11 * - - ( - - col0 ) + - 23 + 5 * - 56
----
59
68
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-808
SELECT ALL - COUNT ( * ) col2 FROM tab2 WHERE + 9 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + COUNT( * ) * - 86 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-809
SELECT + COUNT ( * ) * - 86 FROM tab2
----
-258

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + + 93 col0 FROM tab1 cor0
----
-5487
-6324
-8928

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <= - + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 / + col0 BETWEEN - col2 AND ( 40 )
----

query I rowsort
SELECT col1 + + 1 AS col0 FROM tab0 WHERE NOT col0 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT col0 DIV + col0 + + ( col0 ) AS col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-818
SELECT col0 / + col0 + + ( col0 ) AS col0 FROM tab2
----
47
65
76

query I rowsort
SELECT - ( col1 ) - + 75 FROM tab1 WHERE ( + col2 ) < col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 27 + 73 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL 87 + 22 DIV - col2 AS col1 FROM tab1 WHERE NOT ( + col0 * 35 + 28 ) IS NULL
----
87
87
87

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 87 + 22 / - col2 AS col1 FROM tab1 WHERE NOT ( + col0 * 35 + 28 ) IS NULL
----
87
87
87

query I rowsort
SELECT + 82 FROM tab0 WHERE ( - 88 ) IS NOT NULL
----
82
82
82

query I rowsort
SELECT col0 * - 64 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT - 42 - + 40 AS col0 FROM tab1
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * - 72 col1 FROM tab1
----
-2808
-2808
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-829
SELECT DISTINCT * FROM tab0 WHERE + col1 * 39 - + CAST( NULL AS SIGNED ) > - 48 + col1
----

skipif mysql # not compatible
query III rowsort label-829
SELECT DISTINCT * FROM tab0 WHERE + col1 * 39 - + CAST ( NULL AS INTEGER ) > - 48 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL COUNT( * ) + - 20 AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL COUNT ( * ) + - 20 AS col0 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT col2 + 40 AS col2 FROM tab1
----
108
136
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL - MIN( 20 ) col1 FROM tab2 WHERE ( 51 ) NOT BETWEEN - col2 * + col0 AND ( col1 + - col2 )
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-833
SELECT ALL - MIN ( 20 ) col1 FROM tab2 WHERE ( 51 ) NOT BETWEEN - col2 * + col0 AND ( col1 + - col2 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + ( - SUM( + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-834
SELECT + ( - SUM ( + col1 ) ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 cor0 WHERE 58 BETWEEN + col0 + - 97 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-836
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col2 AS SIGNED ) + col2 * - 41 = ( 1 )
----

skipif mysql # not compatible
query III rowsort label-836
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) + col2 * - 41 = ( 1 )
----

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

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

query I rowsort
SELECT DISTINCT ( + 13 ) * - 92 AS col0 FROM tab2 AS cor0
----
-1196

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

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

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

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

query I rowsort
SELECT col1 - - 50 AS col0 FROM tab2 AS cor0
----
101
117
127

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL + col2 AS col1 FROM tab0 cor0 WHERE col1 + - 96 * + 17 IN ( - 52 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + col2 AS col1 FROM tab0 cor0 WHERE col1 + - 96 * + 17 IN ( - 52 - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT 30 + COUNT( * ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-845
SELECT 30 + COUNT ( * ) AS col1 FROM tab0
----
33

query I rowsort
SELECT ALL + col1 * 62 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1 WHERE NOT NULL < - 13
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + ( - 99 ) * - 7 FROM tab0 cor0
----
693
693
693

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( 71 ) BETWEEN ( - col1 ) AND - col0
----
23
40
58

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + ( 73 + 66 * col0 ) * col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT - - COUNT( * ) DIV - 95 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT - - COUNT ( * ) / - 95 AS col2 FROM tab1 AS cor0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - SUM( ALL - 50 ) AS col1 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-857
SELECT - SUM ( ALL - 50 ) AS col1 FROM tab2
----
150

query I rowsort
SELECT DISTINCT 76 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
76

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT DISTINCT - ( + 8 ) FROM tab1
----
-8

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

query I rowsort
SELECT + 10 * - - col0 AS col0 FROM tab2
----
460
640
750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT SUM( + 58 ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT SUM ( + 58 ) AS col2 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT + 76 * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + 76 * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

query I rowsort
SELECT DISTINCT - ( col2 ) * - - col1 * + col0 FROM tab2
----
-197120
-291450
-53958

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 + + 14 FROM tab1
----
51
65
85
99
91
105

query I rowsort
SELECT 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + col1 * + + 49 FROM tab0
----
1029
3969
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-872
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * ( ( + CAST( NULL AS SIGNED ) ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-872
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * ( ( + CAST ( NULL AS INTEGER ) ) ) > NULL
----

query I rowsort
SELECT DISTINCT + 84 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 58 ) AND ( - 24 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT DISTINCT 23 + + col0 DIV - 37 FROM tab2 AS cor0
----
21
22

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT 23 + + col0 / - 37 FROM tab2 AS cor0
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + - 31 * - COUNT( * ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-875
SELECT + - 31 * - COUNT ( * ) FROM tab1 cor0
----
93

query I rowsort
SELECT ALL + col1 + col1 * 17 AS col1 FROM tab1 cor0
----
252
846
90

query I rowsort
SELECT DISTINCT - 42 + col2 * + 90 FROM tab0 AS cor0
----
4188
858
8868

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

skipif mysql # not compatible
query I rowsort label-878
SELECT MAX ( - + ( - 29 ) ) AS col1 FROM tab1
----
29

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 13 col1 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-882
SELECT col2 * - CAST( col2 AS SIGNED ) + - col0 FROM tab2
----
-1664
-3439
-575

skipif mysql # not compatible
query I rowsort label-882
SELECT col2 * - CAST ( col2 AS INTEGER ) + - col0 FROM tab2
----
-1664
-3439
-575

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

skipif mysql # not compatible
query I rowsort label-883
SELECT + 82 / - - col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + MIN( col2 ) * 17 + COUNT( * ) col2 FROM tab2
----
394

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-884
SELECT ALL + MIN ( col2 ) * 17 + COUNT ( * ) col2 FROM tab2
----
394

onlyif mysql # aggregate syntax: 
query II rowsort label-885
SELECT DISTINCT COUNT( * ) AS col2, SUM( ALL - 2 ) + - 6 AS col0 FROM tab0 AS cor0
----
3
-12

skipif mysql # not compatible
query II rowsort label-885
SELECT DISTINCT COUNT ( * ) AS col2, SUM ( ALL - 2 ) + - 6 AS col0 FROM tab0 AS cor0
----
3
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT - - 43 DIV 8 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - - 43 / 8 AS col0 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL - + 2 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

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

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

query I rowsort
SELECT 79 * - col1 FROM tab2
----
-4029
-5293
-6083

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

onlyif mysql # DIV for integer division: 
query II rowsort label-894
SELECT ALL + 96 DIV + col1 col2, + 66 * + 99 AS col0 FROM tab2
----
1
6534
1
6534
1
6534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-894
SELECT ALL + 96 / + col1 col2, + 66 * + 99 AS col0 FROM tab2
----
1
6534
1
6534
1
6534

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT + MAX( DISTINCT CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-896
SELECT + MAX ( DISTINCT CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 + + - 77 col2 FROM tab0 AS cor0
----
628
793
9526

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
9

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

query I rowsort
SELECT - 89 * - col0 + ( col1 ) AS col2 FROM tab2 AS cor0
----
4145
5773
6742

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

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

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

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

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

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

query I rowsort
SELECT + + 71 * - + col1 AS col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

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

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

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

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

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

query I rowsort
SELECT ALL + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-912
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-913
SELECT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) * 40 NOT BETWEEN - + 45 AND col0 - + 59 + - 67 / + col2 * - ( - col0 ) * - col1 + + col0
----

skipif mysql # not compatible
query III rowsort label-913
SELECT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) * 40 NOT BETWEEN - + 45 AND col0 - + 59 + - 67 / + col2 * - ( - col0 ) * - col1 + + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - col1 col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT DISTINCT 79 DIV col0 + + - 96 AS col1 FROM tab1
----
-95
-96

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT 79 / col0 + + - 96 AS col1 FROM tab1
----
-95
-96

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

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

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

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

query I rowsort
SELECT + + col0 * col0 * col1 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col0 + + 56 + + col1 col0 FROM tab1 AS cor0
----
-4826
-4954
-6085

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-922
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) + + col2 < - col1 + - + 32
----

skipif mysql # not compatible
query III rowsort label-922
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) + + col2 < - col1 + - + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT - col2 DIV - - col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - col2 / - - col0 AS col2 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <= + 61 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 24 * - - 76 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d8592de5cd74423e812334e1dab8549a

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

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

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

query I rowsort
SELECT 66 * + 95 * col2 AS col1 FROM tab0
----
294690
620730
62700

query II rowsort
SELECT DISTINCT 86, col2 + + col1 AS col2 FROM tab2
----
86
117
86
125
86
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-930
SELECT ALL + col1 + col0, - 65 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 71, CAST( NULL AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query II rowsort label-930
SELECT ALL + col1 + col0, - 65 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 71, CAST ( NULL AS INTEGER ), + col2 )
----

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

query I rowsort
SELECT ALL col2 + + + 1 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL - col1 + col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-935
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) > CAST( + ( 88 ) AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-935
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) > CAST ( + ( 88 ) AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * - 59 + + col2 AND col2
----

skipif mysql # not compatible
query I rowsort label-937
SELECT - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * - 59 + + col2 AND col2
----

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

query I rowsort
SELECT - 80 + 1 AS col0 FROM tab2
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE 90 <= col2 * 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 78 - col1 * + col1 FROM tab0
----
-363
-6483
77

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

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

query I rowsort
SELECT ALL + col2 - + 6 FROM tab1
----
53
62
90

query I rowsort
SELECT 94 * + col1 AS col0 FROM tab0 WHERE NULL IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 66 NOT BETWEEN ( + 72 ) AND + col0
----

query I rowsort
SELECT + ( + 30 ) + 18 * + col0 AS col1 FROM tab0 WHERE + 52 NOT BETWEEN + col0 * col1 AND + col0
----
1596
1776
300

query III rowsort
SELECT * FROM tab2 WHERE + 37 BETWEEN - col2 AND 32 / col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + col0 > col2 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 23 ) NOT IN ( + 20 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT - COUNT( * ) * - 56 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - COUNT ( * ) * - 56 FROM tab0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT ALL + 93 + ( 94 + - col2 ) DIV 88 FROM tab2
----
93
93
93

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL + 93 + ( 94 + - col2 ) / 88 FROM tab2
----
93
93
93

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

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

query I rowsort
SELECT + col2 * + 66 + - col0 * + col2 FROM tab1
----
-1121
-1700
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL MAX( 21 ) FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL MAX ( 21 ) FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 40 + ( 60 + - col0 ) col2 FROM tab2
----
1265
1276
1294

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + 84 * - COUNT( * ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-956
SELECT + 84 * - COUNT ( * ) FROM tab1
----
-252

query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT CAST( + 91 AS SIGNED ) * + 58 FROM tab2
----
5278

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT CAST ( + 91 AS INTEGER ) * + 58 FROM tab2
----
5278

query I rowsort
SELECT col0 - + 87 FROM tab1
----
-2
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT - CAST( NULL AS SIGNED ) / ( + col2 * + col1 ) col0 FROM tab1 WHERE NOT 56 IN ( 37 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-960
SELECT - CAST ( NULL AS INTEGER ) / ( + col2 * + col1 ) col0 FROM tab1 WHERE NOT 56 IN ( 37 )
----
NULL
NULL
NULL

query I rowsort
SELECT 44 + - 54 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL MIN( ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL MIN ( ( - col1 ) ) FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 26 * + 69 + + col1 ) >= NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 33 = 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT DISTINCT 71 * COUNT( * ) AS col1 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT 71 * COUNT ( * ) AS col1 FROM tab0
----
213

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + - 2 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT + ( 38 ) DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-972
SELECT + ( 38 ) / col2 FROM tab0
----
0
0
3

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

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

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

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

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

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

query I rowsort
SELECT + col1 * 76 AS col0 FROM tab0 cor0
----
1596
6156
76

query I rowsort
SELECT + 61 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN - 93 AND - col0 + 79
----
61
61

query I rowsort
SELECT DISTINCT + col1 * ( - col1 * col0 ) FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT - 41 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

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

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

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab2 WHERE 92 IS NULL
----

query I rowsort
SELECT ALL - col2 * + col1 - - 81 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1092
-2999
-3805

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

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

query I rowsort
SELECT ALL + 98 + col1 FROM tab1 cor0 WHERE NOT col2 * + 46 + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT MAX( ALL - ( col2 ) ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-988
SELECT MAX ( ALL - ( col2 ) ) col1 FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT DISTINCT - 76 * 68 FROM tab0 AS cor0
----
-5168

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

query I rowsort
SELECT + + col2 * + 25 FROM tab1 AS cor0
----
1475
1700
2400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL - 46 + + - COUNT( * ) AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 46 + + - COUNT ( * ) AS col1 FROM tab0
----
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 77 * col1 ) > ( col1 / ( col2 * + col0 ) - 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-996
SELECT DISTINCT COUNT ( * ) * + 72 col1 FROM tab1
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 8 ) + 48 col0 FROM tab0
----
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL col1 DIV + - 38 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL col1 / + - 38 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT ALL + 19 + + col2 * ( + CAST( NULL AS SIGNED ) / col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 19 + + col2 * ( + CAST ( NULL AS INTEGER ) / col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT col1 + - 0 * col0 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + - col0 + + 28 FROM tab0 AS cor0
----
-59
-69
13

query I rowsort
SELECT DISTINCT + + 50 * - col0 FROM tab2 AS cor0
----
-2300
-3200
-3750

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

query I rowsort
SELECT DISTINCT col0 * - col0 + 83 FROM tab1 AS cor0
----
-2518
-7142
-8198

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1009
SELECT - COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 * + col0 )
----
0

query I rowsort
SELECT - 69 + - 1 FROM tab0 AS cor0
----
-70
-70
-70

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT DISTINCT 47 * 55 DIV + col0 - 44 col2 FROM tab1 AS cor0
----
-14
-16
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT DISTINCT 47 * 55 / + col0 - 44 col2 FROM tab1 AS cor0
----
-14
-16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - COUNT( * ) - - 63 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1017
SELECT - COUNT ( * ) - - 63 AS col1 FROM tab1 AS cor0
----
60

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 32 ) <= ( - col2 )
----
87
21
10

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

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

query I rowsort
SELECT - + 21 - - col0 AS col0 FROM tab1 AS cor0
----
30
64
70

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

query I rowsort
SELECT + - 52 - + col1 * 47 AS col0 FROM tab2 AS cor0
----
-2449
-3201
-3671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 - - - col0 * + 34 col0 FROM tab0 cor0
----
-2892
-3202
-576

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

query I rowsort
SELECT DISTINCT + 62 - + col0 - - col2 FROM tab2 cor0
----
38
39
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 66 * + - col0 * + 27 col0 FROM tab1 AS cor0
----
151470
162162
90882

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL + SUM( - + ( + col2 ) ) + + - COUNT( * ) AS col2 FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + SUM ( - + ( + col2 ) ) + + - COUNT ( * ) AS col2 FROM tab1
----
-226

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT + col1 DIV + 2 FROM tab2
----
25
33
38

skipif mysql # not compatible
query I rowsort label-1031
SELECT + col1 / + 2 FROM tab2
----
25
33
38

query I rowsort
SELECT ( 67 ) * col1 AS col0 FROM tab1
----
3149
335
938

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

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

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

query I rowsort
SELECT ALL 93 * - + col1 AS col1 FROM tab2 AS cor0
----
-4743
-6231
-7161

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < + col2
----

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

query I rowsort
SELECT ALL - - 13 * + 5 AS col2 FROM tab2 AS cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 / + - 88 IS NOT NULL
----

query I rowsort
SELECT - - 48 * + col2 FROM tab2 AS cor0
----
1104
1920
2784

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT DISTINCT + + 82 * + col1 DIV - + col1 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + + 82 * + col1 / - + col1 FROM tab0 cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 37 + col0 col1 FROM tab1
----
-100
-1648
-467

query I rowsort
SELECT + 38 FROM tab1 WHERE NULL IS NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL + SUM( ALL - + 66 ) col2 FROM tab2
----
-198

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

query I rowsort
SELECT DISTINCT col2 + + col1 + + col1 * + 85 FROM tab1
----
1300
4110
489

query I rowsort
SELECT 13 / + 60 FROM tab1 WHERE ( - col2 + col0 - - col0 ) < NULL
----

query I rowsort
SELECT DISTINCT + 43 * 66 AS col2 FROM tab2
----
2838

query I rowsort
SELECT - ( - - col0 ) * - col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( - col2 * - col1 ) IN ( 19 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1055
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( - col2 * - col1 ) IN ( 19 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + 71 - - 50 DIV - + col1 AS col1 FROM tab0 cor0
----
21
69
71

skipif mysql # not compatible
query I rowsort label-1056
SELECT + 71 - - 50 / - + col1 AS col1 FROM tab0 cor0
----
21
69
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT - col2 * col1 - + col1 + col1 DIV col0 AS col2 FROM tab2
----
-1223
-3156
-3953

skipif mysql # not compatible
query I rowsort label-1057
SELECT - col2 * col1 - + col1 + col1 / col0 AS col2 FROM tab2
----
-1223
-3156
-3953

query I rowsort
SELECT - 96 * col2 + + col0 FROM tab0
----
-4497
-873
-9407

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT - col0 DIV - col2 + - + 60 AS col0 FROM tab2 AS cor0
----
-58
-59

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - col0 / - col2 + - + 60 AS col0 FROM tab2 AS cor0
----
-58
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 - + - 75 * + 98 + + + col0 NOT IN ( + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT DISTINCT + COUNT( * ) AS col0, - 51 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-51

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT + COUNT ( * ) AS col0, - 51 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT - + col0 DIV 8 FROM tab0 AS cor0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-1063
SELECT - + col0 / 8 FROM tab0 AS cor0
----
-1
-10
-12

query I rowsort
SELECT col1 * - 49 AS col2 FROM tab1 AS cor0
----
-2303
-245
-686

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE + ( + col1 ) + + 16 IS NOT NULL
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + MAX( DISTINCT + - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-1067
SELECT + MAX ( DISTINCT + - 47 ) FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL - SUM( ALL + 31 ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - SUM ( ALL + 31 ) AS col0 FROM tab1
----
-93

query I rowsort
SELECT 31 * + col2 FROM tab1
----
1829
2108
2976

query II rowsort
SELECT col0, 56 * - - col0 AS col2 FROM tab1
----
51
2856
85
4760
91
5096

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1071
SELECT DISTINCT - COUNT ( * ) col1, - 52 AS col0 FROM tab0
----
-3
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT DISTINCT 60 DIV 4 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT 60 / 4 FROM tab0
----
15

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * + 77 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1078
SELECT ALL + 12 / - CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + 12 / - CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 IN ( - - 66, + col1 * - 95 - - col1 * - col2 + - col1 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 IN ( - - 66, + col1 * - 95 - - col1 * - col2 + - col1 + col2 )
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * + col2 col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT SUM( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT SUM ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT + + COUNT( * ) DIV SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT + + COUNT ( * ) / SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - - 84 FROM tab1 cor0
----
84
84
84

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

query I rowsort
SELECT DISTINCT + 67 + col2 FROM tab0 AS cor0
----
114
166
77

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 98 NOT IN ( ( - 15 ), 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + ( - col0 ) + - col1, ( + - col1 ) * - 91 AS col0 FROM tab2
----
-141
7007
-142
6097
-97
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL + col0 / 46 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + col0 / 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 72 FROM tab1
----
-13
-4
24

query I rowsort
SELECT col0 + + + col1 - + col0 + - - 4 * - - col2 * - col0 * col0 AS col2 FROM tab2
----
-1304933
-194621
-655283

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

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

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

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE ( ( ( + col2 + - 76 * - - col1 <= NULL ) ) )
----

query I rowsort
SELECT - 53 + - col0 FROM tab2 AS cor0
----
-117
-128
-99

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

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

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - COUNT( * ) + - COUNT( * ) + - MAX( - col0 ) AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - MAX ( - col0 ) AS col0 FROM tab2
----
40

query I rowsort
SELECT DISTINCT 93 + + 39 FROM tab1
----
132

query I rowsort
SELECT ALL - col2 - + + col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT - + col0 - + col0 DIV col0 + - col2 * col1 FROM tab1 AS cor0
----
-1396
-3288
-381

skipif mysql # not compatible
query I rowsort label-1104
SELECT - + col0 - + col0 / col0 + - col2 * col1 FROM tab1 AS cor0
----
-1396
-3288
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + SUM( DISTINCT - 47 ) - + 30 AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1105
SELECT + SUM ( DISTINCT - 47 ) - + 30 AS col1 FROM tab2 cor0
----
-77

query I rowsort
SELECT DISTINCT 95 - - + col1 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT ALL - + 54 * col2 FROM tab0 AS cor0
----
-2538
-5346
-540

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT 0 DIV + 79 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1109
SELECT 0 / + 79 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL 12 * - 17 * MIN( - - col1 ) * - 28 AS col0 FROM tab1
----
28560

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL 12 * - 17 * MIN ( - - col1 ) * - 28 AS col0 FROM tab1
----
28560

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT DISTINCT + col2 DIV 39 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1112
SELECT DISTINCT + col2 / 39 col0 FROM tab2
----
0
1

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

query I rowsort
SELECT + + col1 * 45 / - + col0 AS col1 FROM tab1 WHERE NOT + + col2 BETWEEN NULL AND + col2
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1, col2 * - col0, - + 46 - 36 + + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 * - + col1 col2 FROM tab2 AS cor0
----
-23
-2601
-40
-5929
-58
-4489

query I rowsort
SELECT + + 8 + ( - 18 ) FROM tab0 AS cor0
----
-10
-10
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1120
SELECT ALL + + CAST( - - ( + - 14 ) AS SIGNED ), + col1 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1, - 62 * + 6 * - 27 )
----

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL + + CAST ( - - ( + - 14 ) AS INTEGER ), + col1 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1, - 62 * + 6 * - 27 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> + + 54 * - + 46 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 77 * col0, 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 77 * col0, 99 )
----
0

query I rowsort
SELECT col0 + - 80 AS col0 FROM tab2
----
-16
-34
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - 84 * - COUNT( * ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 84 * - COUNT ( * ) FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT SUM( 65 ) AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-1125
SELECT SUM ( 65 ) AS col1 FROM tab1
----
195

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

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - ( + + 18 ) + - COUNT ( * ) FROM tab2
----
-21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT MAX( DISTINCT + col1 ), 44 AS col0 FROM tab2
----
77
44

skipif mysql # not compatible
query II rowsort label-1129
SELECT MAX ( DISTINCT + col1 ), 44 AS col0 FROM tab2
----
77
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT ( MAX( - ( ( - - col0 ) ) ) ) + COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT ( MAX ( - ( ( - - col0 ) ) ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-48

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

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

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

query I rowsort
SELECT DISTINCT + - 93 FROM tab1 cor0
----
-93

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

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

query I rowsort
SELECT ALL - ( + + col1 ) * - 39 + - 79 AS col2 FROM tab2
----
1910
2534
2924

query I rowsort
SELECT DISTINCT + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT - ( + CAST( - col0 AS SIGNED ) ) * - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1138
SELECT - ( + CAST ( - col0 AS INTEGER ) ) * - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

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

query I rowsort
SELECT ALL + col2 * - + 14 FROM tab1 AS cor0
----
-1344
-826
-952

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

query I rowsort
SELECT 29 * + 50 AS col0 FROM tab1
----
1450
1450
1450

query I rowsort
SELECT ALL col1 * + 16 AS col1 FROM tab2
----
1072
1232
816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1144
SELECT DISTINCT * FROM tab2 WHERE - 52 * + 35 < + 34 * - CAST( + col2 AS SIGNED )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-1144
SELECT DISTINCT * FROM tab2 WHERE - 52 * + 35 < + 34 * - CAST ( + col2 AS INTEGER )
----
46
51
23
64
77
40

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

query II rowsort
SELECT DISTINCT + - col1 * - 90 * - + ( 58 ) AS col0, + col1 AS col0 FROM tab0 AS cor0
----
-109620
21
-422820
81
-5220
1

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

query I rowsort
SELECT DISTINCT - col0 + - + 18 + - col0 AS col0 FROM tab1
----
-120
-188
-200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1149
SELECT * FROM tab1 AS cor0 WHERE + CAST( + + col0 AS SIGNED ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1149
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + + col0 AS INTEGER ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT + ( - COUNT( * ) ), - MIN( DISTINCT 25 ) * + SUM( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3
4975

skipif mysql # not compatible
query II rowsort label-1150
SELECT + ( - COUNT ( * ) ), - MIN ( DISTINCT 25 ) * + SUM ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3
4975

query I rowsort
SELECT 16 AS col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col0 + col2 FROM tab2 AS cor0 WHERE ( NULL ) = - + 67
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL 50 * - COUNT( * ) FROM tab1, tab0 cor0
----
-450

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL 50 * - COUNT ( * ) FROM tab1, tab0 cor0
----
-450

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

query I rowsort
SELECT ALL + 81 - col0 FROM tab2
----
17
35
6

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

query I rowsort
SELECT DISTINCT + col0 - - + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT DISTINCT + SUM( - + ( + + 64 ) ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + SUM ( - + ( + + 64 ) ) FROM tab1
----
-192

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

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

query I rowsort
SELECT DISTINCT + col2 * col1 * + ( col1 ) AS col2 FROM tab1 cor0
----
1475
150212
18816

query I rowsort
SELECT - + 76 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT ALL 41 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-3567
-3977
-615

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL 41 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-3567
-3977
-615

query I rowsort
SELECT - ( + col0 ) + col0 FROM tab2 AS cor0 WHERE NOT col0 >= col2 + col0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ALL + + 12 DIV - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + + 12 / - col1 AS col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + + col0 + - col1 AND + + 39 + + 53 / - + 52
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE + col1 * - - 57 + + + col2 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT + SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT + SUM ( + - col1 ) FROM tab0
----
-103

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT col1 DIV + - col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT col1 / + - col1 FROM tab0
----
-1

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

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

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

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

query I rowsort
SELECT + col2 * - + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT ALL + 60 + + + 28 + - col2 DIV + col1 FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + 60 + + + 28 + - col2 / + col1 FROM tab2
----
88
88
88

query I rowsort
SELECT ALL - 68 * + 79 FROM tab0 AS cor0
----
-5372
-5372
-5372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1178
SELECT + - CAST( NULL AS DECIMAL ) * MIN( col1 ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 41 ) NOT BETWEEN NULL AND - 5 + - - 98 + + 84 / 88 * + - col1
----

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE col1 + - 77 * col1 IS NOT NULL
----
-23
-40
-58

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT ALL col0 * 24 + - - col1 DIV - - col0 AS col0 FROM tab0
----
2088
2328
365

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL col0 * 24 + - - col1 / - - col0 AS col0 FROM tab0
----
2088
2328
365

query I rowsort
SELECT - col1 * - 68 + + + 65 AS col0 FROM tab0 AS cor0
----
133
1493
5573

query I rowsort
SELECT + 64 FROM tab1 cor0 WHERE 37 * - col0 BETWEEN ( 53 ) AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-1186
SELECT DISTINCT - col2 AS col2, col0 / 50 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT + SUM( ALL - 37 ) - - + 66 AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + SUM ( ALL - 37 ) - - + 66 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + - col2 + + 82 AS col1 FROM tab1 cor0
----
-14
14
23

query I rowsort
SELECT 39 * + 38 FROM tab0 AS cor0
----
1482
1482
1482

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT DISTINCT + ( - 61 ) DIV + col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + ( - 61 ) / + col0 AS col0 FROM tab1
----
-1
0

query II rowsort
SELECT DISTINCT - 48 + 92 AS col2, - col0 + - col1 FROM tab0
----
44
-108
44
-96
44
-98

query I rowsort
SELECT DISTINCT + 21 + - col2 + + col0 * + 43 - + 40 FROM tab2
----
1936
2693
3148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1195
SELECT DISTINCT + 71 + + CAST( + COUNT( * ) AS SIGNED ) DIV + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + 71 + + CAST ( + COUNT ( * ) AS INTEGER ) / + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT DISTINCT 9 + - - 91 + col0 * col1 AS col2 FROM tab1
----
4377
525
814

query II rowsort
SELECT DISTINCT - + col2 * + 87 + - col2, + 6 * + - col1 FROM tab0 WHERE NULL NOT BETWEEN - 29 AND - 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT ALL + - col2 DIV - 14 - 86 FROM tab2 cor0
----
-82
-84
-85

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + - col2 / - 14 - 86 FROM tab2 cor0
----
-82
-84
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + COUNT( * ) - + 17 * + 1 AS col0 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1199
SELECT + COUNT ( * ) - + 17 * + 1 AS col0 FROM tab1 AS cor0
----
-14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT ALL + CAST( + + 41 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + CAST ( + + 41 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 > - 23
----

query I rowsort
SELECT 37 + - 69 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + SUM( ( col0 ) ) col2 FROM tab0 cor0
----
199

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

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

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

query II rowsort
SELECT DISTINCT + 64, + col0 AS col1 FROM tab1 AS cor0
----
64
51
64
85
64
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1207
SELECT ALL - col2, + CAST( NULL AS DECIMAL ) - 23 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL - col2, + CAST ( NULL AS REAL ) - 23 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - - COUNT( DISTINCT + 45 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1208
SELECT - - COUNT ( DISTINCT + 45 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 2 FROM tab2, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL < + col2
----
0

query I rowsort
SELECT ALL - 91 + + + 69 - col2 * - col1 FROM tab1 WHERE - ( col0 ) * - 52 = + 70
----

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

query I rowsort
SELECT - - col2 + 55 FROM tab1 AS cor0
----
114
123
151

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

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

query II rowsort
SELECT col1, col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1217
SELECT + 0 col0, CAST( NULL AS SIGNED ) * col2 FROM tab2
----
0
NULL
0
NULL
0
NULL

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

query I rowsort
SELECT DISTINCT col0 + 21 * - col0 FROM tab1
----
-1020
-1700
-1820

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT - ( CAST( 38 AS SIGNED ) ) - - col1 - + col2 * + + col0 FROM tab0 AS cor0
----
-662
-887
-9640

skipif mysql # not compatible
query I rowsort label-1220
SELECT - ( CAST ( 38 AS INTEGER ) ) - - col1 - + col2 * + + col0 FROM tab0 AS cor0
----
-662
-887
-9640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1221
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1221
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + + 84 * - col1 + - col1, - col2, col1 / - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1224
SELECT ALL + CAST( + 63 AS SIGNED ) AS col2, 22 * - + MAX( - col1 ) AS col0 FROM tab1
----
63
110

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL + CAST ( + 63 AS INTEGER ) AS col2, 22 * - + MAX ( - col1 ) AS col0 FROM tab1
----
63
110

query I rowsort
SELECT col0 * - col0 + + + col0 FROM tab0
----
-210
-7482
-9312

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 43 * - + col2 FROM tab2 AS cor0
----
1720
2494
989

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1231
SELECT ALL - + 52 col1, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) = 48 * - CAST( - - 6 AS SIGNED ) + + 15 + 1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1231
SELECT ALL - + 52 col1, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) = 48 * - CAST ( - - 6 AS INTEGER ) + + 15 + 1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1232
SELECT ALL - col2 * col1 AS col1, 5 DIV 36 AS col1 FROM tab1 AS cor0
----
-1344
0
-295
0
-3196
0

skipif mysql # not compatible
query II rowsort label-1232
SELECT ALL - col2 * col1 AS col1, 5 / 36 AS col1 FROM tab1 AS cor0
----
-1344
0
-295
0
-3196
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL MAX( ALL - 89 ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL MAX ( ALL - 89 ) FROM tab1
----
-89

query II rowsort
SELECT DISTINCT + 49, col0 FROM tab1
----
49
51
49
85
49
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - MAX( DISTINCT - 19 ) + - + COUNT( ALL - col2 ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1236
SELECT - MAX ( DISTINCT - 19 ) + - + COUNT ( ALL - col2 ) FROM tab0
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + SUM( + 43 ) AS col0 FROM tab0 cor0
----
129

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + SUM ( + 43 ) AS col0 FROM tab0 cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1240
SELECT DISTINCT + col1, col1 * - CAST( NULL AS SIGNED ) * + 59 / - - col1 * + col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1240
SELECT DISTINCT + col1, col1 * - CAST ( NULL AS INTEGER ) * + 59 / - - col1 * + col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1241
SELECT ALL 10 * + 30 * ( - 8 ) / + CAST( NULL AS DECIMAL ) + + col0 - col0 FROM tab2 AS cor0 WHERE ( 25 * + + CAST( NULL AS SIGNED ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL 10 * + 30 * ( - 8 ) / + CAST ( NULL AS REAL ) + + col0 - col0 FROM tab2 AS cor0 WHERE ( 25 * + + CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT + CAST( + 74 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif mysql # not compatible
query I rowsort label-1242
SELECT + CAST ( + 74 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

query I rowsort
SELECT + col1 + + col1 * - - 67 FROM tab2 cor0
----
3468
4556
5236

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE 64 * - col0 + - col1 BETWEEN - col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE 64 * - col0 + - col1 BETWEEN - col0 AND ( NULL )
----
0

query I rowsort
SELECT - col2 * 97 * + col2 FROM tab0
----
-214273
-950697
-9700

query I rowsort
SELECT 14 * - col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT - 30 - + COUNT( * ) + + + COUNT( * ) DIV - 33 AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-1249
SELECT - 30 - + COUNT ( * ) + + + COUNT ( * ) / - 33 AS col1 FROM tab1
----
-33

query III rowsort
SELECT * FROM tab2 WHERE + 98 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col1 FROM tab1
----
4896
5015
6188

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

query I rowsort
SELECT ALL col1 * + 44 FROM tab0
----
3564
44
924

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

query I rowsort
SELECT ALL 11 * 98 FROM tab0
----
1078
1078
1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + + 17 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + + 17 FROM tab2
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - COUNT( * ) * - 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1261
SELECT - COUNT ( * ) * - 80 FROM tab0
----
240

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1
----
-27

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab1
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT - 61 AS col2, col1 FROM tab0 AS cor0
----
-61
1
-61
21
-61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + + COUNT( * ) * - + MAX( - - 93 ) * 37 FROM tab2 AS cor0
----
-10323

skipif mysql # not compatible
query I rowsort label-1267
SELECT + + COUNT ( * ) * - + MAX ( - - 93 ) * 37 FROM tab2 AS cor0
----
-10323

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1274
SELECT ALL ( + 73 ) AS col0, col2 DIV col0 DIV - - col0 AS col2 FROM tab2
----
73
0
73
0
73
0

skipif mysql # not compatible
query II rowsort label-1274
SELECT ALL ( + 73 ) AS col0, col2 / col0 / - - col0 AS col2 FROM tab2
----
73
0
73
0
73
0

query I rowsort
SELECT ALL + col1 + + col0 * 94 FROM tab1
----
4808
7995
8601

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

query I rowsort
SELECT - ( col1 ) + - 61 FROM tab1 WHERE - - 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1278
SELECT ALL + 36 col0, CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1278
SELECT ALL + 36 col0, CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1
----
-10

query II rowsort
SELECT DISTINCT + + 23 + - + col2 + - col2, col1 AS col2 FROM tab1 AS cor0
----
-113
47
-169
14
-95
5

query I rowsort
SELECT + col1 - + - col0 + + - 0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT - col2 * + 58 + - col0 DIV - ( - col1 ) FROM tab1 cor0
----
-3439
-3945
-5571

skipif mysql # not compatible
query I rowsort label-1282
SELECT - col2 * + 58 + - col0 / - ( - col1 ) FROM tab1 cor0
----
-3439
-3945
-5571

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

query I rowsort
SELECT - - 53 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - COUNT( * ) - + - 53 AS col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1286
SELECT - COUNT ( * ) - + - 53 AS col1 FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1287
SELECT + CAST( - 69 AS SIGNED ) - - 3 AS col2, - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-66
0

skipif mysql # not compatible
query II rowsort label-1287
SELECT + CAST ( - 69 AS INTEGER ) - - 3 AS col2, - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-66
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL - 8 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - 8 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-11

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1291
SELECT ( + - 57 ) - - 33 - col0 + 85 DIV col1 * + - col2 + - col2, - col0 + + - col0 AS col1 FROM tab2 AS cor0
----
-116
-92
-168
-128
-215
-150

skipif mysql # not compatible
query II rowsort label-1291
SELECT ( + - 57 ) - - 33 - col0 + 85 / col1 * + - col2 + - col2, - col0 + + - col0 AS col1 FROM tab2 AS cor0
----
-116
-92
-168
-128
-215
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - - - 12 col1 FROM tab1 AS cor0
----
-17
-26
-59

query III rowsort
SELECT * FROM tab1 cor0 WHERE 68 + + - col2 + 51 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT 38 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1294
SELECT 38 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL - col0 * col0 - + + col1 FROM tab0 AS cor0
----
-306
-7590
-9410

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT 22 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT 22 / + col2 FROM tab1 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - + 42 col2, - col0 AS col1 FROM tab2
----
-1932
-46
-2688
-64
-3150
-75

query I rowsort
SELECT 84 * + 5 AS col1 FROM tab2
----
420
420
420

query I rowsort
SELECT ALL + 15 * - 61 FROM tab2
----
-915
-915
-915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT DISTINCT 93 DIV + - COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT 93 / + - COUNT ( * ) FROM tab1
----
-31

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - 14 * - 79 * + + COUNT( * ) AS col2 FROM tab1
----
3318

skipif mysql # not compatible
query I rowsort label-1306
SELECT - 14 * - 79 * + + COUNT ( * ) AS col2 FROM tab1
----
3318

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1308
SELECT COUNT ( * ), COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

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

query I rowsort
SELECT ALL - 57 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col1
----

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

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

query I rowsort
SELECT DISTINCT + 84 + + 14 AS col1 FROM tab0 AS cor0 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < ( - col1 )
----

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

query I rowsort
SELECT - 76 * + + 82 FROM tab2, tab2 AS cor0
----
9 values hashing to 8f92df4fa972c9eafe5d92cedbedaca0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + - col2, - col2 * - col2 * + 24, - + col0 + 28 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT + 82 + 53 - - COUNT( * ) AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT + 82 + 53 - - COUNT ( * ) AS col2 FROM tab1
----
138

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

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

query I rowsort
SELECT - ( col1 ) * - 55 FROM tab0
----
1155
4455
55

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL - SUM( ALL - col1 ) + - 14 AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL - SUM ( ALL - col1 ) + - 14 AS col0 FROM tab0
----
89

query II rowsort
SELECT DISTINCT + 49, col0 AS col1 FROM tab2
----
49
46
49
64
49
75

query II rowsort
SELECT ALL - col1 AS col1, col2 * - col2 * - 21 FROM tab2 AS cor0
----
-51
11109
-67
70644
-77
33600

query I rowsort
SELECT + col1 - - col1 - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

query I rowsort
SELECT - - 13 + + 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ( - 50 ) * - - col2 + + col2 + - + col0 * + + col0 FROM tab2
----
-3243
-6056
-8467

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT - CAST ( NULL AS REAL ) * - - col0 * + col2 + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 18 - + col2 FROM tab0
----
-29
-81
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT col2 DIV + 15 col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1332
SELECT col2 / + 15 col1 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT - MAX( ALL 39 ) col1, 15 FROM tab2 AS cor0
----
-39
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1333
SELECT - MAX ( ALL 39 ) col1, 15 FROM tab2 AS cor0
----
-39
15

query I rowsort
SELECT DISTINCT - 91 * - + 38 * + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
176358
293930
314678

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL + SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - + ( + col1 ) * + 73 - - col0 - col0 / 31 / + col0 + - + col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 AND - col0
----

query II rowsort
SELECT DISTINCT col2 * + col1 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

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

skipif mysql # not compatible
query I rowsort label-1339
SELECT + 13 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 27 * + col2, col2 FROM tab0 AS cor0
----
1269
47
2673
99
270
10

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

query I rowsort
SELECT + 56 * + 58 * col2 AS col2 FROM tab2
----
129920
188384
74704

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 22 * ( MIN( ALL - + col1 ) ) FROM tab2
----
-1694

skipif mysql # not compatible
query I rowsort label-1344
SELECT 22 * ( MIN ( ALL - + col1 ) ) FROM tab2
----
-1694

query I rowsort
SELECT ALL col0 * 6 * + - ( ( col1 ) ) AS col2 FROM tab1
----
-2550
-25662
-4284

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT + col2 DIV col1 * - 21 FROM tab0 AS cor0
----
-2079
0
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT + col2 / col1 * - 21 FROM tab0 AS cor0
----
-2079
0
0

query I rowsort
SELECT DISTINCT - col1 * + 71 AS col1 FROM tab2 cor0
----
-3621
-4757
-5467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * + col0 col1 FROM tab1 AS cor0
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL COUNT( DISTINCT col1 ) * - + 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL COUNT ( DISTINCT col1 ) * - + 27 FROM tab2
----
-81

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

query I rowsort
SELECT ALL + 96 * - + col0 + col1 + col2 FROM tab2 cor0
----
-4342
-6027
-7075

query I rowsort
SELECT ALL - - col2 * - col0 - + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-3404
-7488
-9375

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

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

query I rowsort
SELECT ALL + + 30 * + col0 AS col1 FROM tab0 AS cor0
----
2610
2910
450

query I rowsort
SELECT + - col0 * + 4 * + - 66 AS col2 FROM tab2 cor0
----
12144
16896
19800

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT col1 * - - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT col1 * - - col1 / col1 AS col1 FROM tab2 AS cor0
----
51
67
77

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

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

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * - 12 AS col1 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT DISTINCT 85 * - col1 + + + 68 FROM tab0
----
-17
-1717
-6817

query I rowsort
SELECT ALL 95 + + col1 + col0 FROM tab2
----
192
236
237

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT + ( + COUNT( * ) ) * + COUNT( * ) * - COUNT( * ) * + 6 AS col1 FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT + ( + COUNT ( * ) ) * + COUNT ( * ) * - COUNT ( * ) * + 6 AS col1 FROM tab2 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 93 IS NOT NULL )
----
9

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 93 IS NOT NULL )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + COUNT( * ) + 49 AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1365
SELECT + COUNT ( * ) + 49 AS col1 FROM tab0 AS cor0
----
52

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

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

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

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

query I rowsort
SELECT ALL - 25 - - col0 * + col1 * - col0 FROM tab0
----
-158974
-18250
-9434

query I rowsort
SELECT DISTINCT col1 * + col1 + + + 48 FROM tab1
----
2257
244
73

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

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

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

query I rowsort
SELECT ALL 64 FROM tab2 cor0
----
64
64
64

query II rowsort
SELECT DISTINCT + 55 + - 87 * - - col2, + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 40 > 23
----

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

query I rowsort
SELECT ALL + ( - 44 ) FROM tab0 WHERE NOT + col1 + col1 BETWEEN + col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 46 / - - 59 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT IN ( - - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - COUNT( * ) * - 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - COUNT ( * ) * - 1 FROM tab1
----
3

query I rowsort
SELECT 60 + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-36
-38
-48

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - col0 / - - col2 AS col2 FROM tab0 AS cor0
----
-8
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT ALL + CAST( - + 27 AS SIGNED ) + - 70 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + CAST ( - + 27 AS INTEGER ) + - 70 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT 97 * - - col0 * col0 AS col0 FROM tab2 AS cor0
----
205252
397312
545625

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT COUNT( ALL + col2 ) AS col1 FROM tab0 cor0 WHERE ( + ( + ( + col2 ) ) + 84 NOT BETWEEN + col1 * + ( + 60 ) AND NULL )
----
2

skipif mysql # not compatible
query I rowsort label-1387
SELECT COUNT ( ALL + col2 ) AS col1 FROM tab0 cor0 WHERE ( + ( + ( + col2 ) ) + 84 NOT BETWEEN + col1 * + ( + 60 ) AND NULL )
----
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1389
SELECT + 40 DIV COUNT( ALL + - 48 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1389
SELECT + 40 / COUNT ( ALL + - 48 ) FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL SUM( + 47 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL SUM ( + 47 ) FROM tab1
----
141

query I rowsort
SELECT DISTINCT 19 + - - col0 * + + col2 AS col1 FROM tab0
----
724
889
9622

query I rowsort
SELECT DISTINCT + 87 + - col1 FROM tab0
----
6
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT + 37 + - - COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + 37 + - - COUNT ( * ) FROM tab2
----
40

query I rowsort
SELECT DISTINCT - col0 - - col2 * + col2 AS col1 FROM tab0 cor0
----
13
2194
9704

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

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

query II rowsort
SELECT + 5, - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + 50 FROM tab0 AS cor0
----
131
51
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT + + 66 * - CAST( - + col2 AS SIGNED ) + + 84 + - col1 FROM tab0 AS cor0
----
3105
6617
723

skipif mysql # not compatible
query I rowsort label-1399
SELECT + + 66 * - CAST ( - + col2 AS INTEGER ) + + 84 + - col1 FROM tab0 AS cor0
----
3105
6617
723

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

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

query II rowsort
SELECT DISTINCT 64 AS col0, col1 * col0 FROM tab2
----
64
2346
64
4928
64
5025

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 * - col2 < + col2 - - col1 + - ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - SUM( + 40 ) FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-1406
SELECT - SUM ( + 40 ) FROM tab0 AS cor0
----
-120

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL + COUNT( ALL - 37 ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN + 47 AND + - 50
----
3

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + COUNT ( ALL - 37 ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN + 47 AND + - 50
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 col2, - 11 FROM tab0
----
20
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 69 + - col2 col1 FROM tab0
----
-15
22
-87
59
-97
-30

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1415
SELECT - MIN ( - col1 ) FROM tab2 AS cor0
----
77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT - 6 / + col0 * - CAST( NULL AS SIGNED ) / col2 * - + col0 + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 6 / + col0 * - CAST ( NULL AS INTEGER ) / col2 * - + col0 + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 97 / 10 - + col1 FROM tab1 WHERE + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * + - 38 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * + - 38 FROM tab0
----
NULL

query II rowsort
SELECT col2, 6 / + - 68 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + ( + 48 ) AS col1 FROM tab1 AS cor0
----
107
116
144

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE col1 / 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT + CAST( - - 89 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-1425
SELECT + CAST ( - - 89 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
89
89
89

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 6 BETWEEN - + 48 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT + - COUNT ( * ) + - MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-102

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1428
SELECT - CAST ( NULL AS INTEGER ) + - + ( - - 66 ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 40 ) + col1 FROM tab1
----
-26
-35
7

query I rowsort
SELECT DISTINCT - col1 - + + col2 FROM tab0
----
-100
-128
-31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT ( + col2 ) + 25 * col1 DIV col0 FROM tab0
----
16
182
99

skipif mysql # not compatible
query I rowsort label-1432
SELECT ( + col2 ) + 25 * col1 / col0 FROM tab0
----
16
182
99

query I rowsort
SELECT - col0 FROM tab1 WHERE - col0 / - col1 IS NOT NULL
----
-51
-85
-91

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

skipif mysql # not compatible
query II rowsort label-1434
SELECT - COUNT ( * ) AS col2, 20 AS col0 FROM tab1 AS cor0
----
-3
20

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 - - + col2 = 34 + - - 59
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - ( - COUNT( * ) ) + - 76 * 95 FROM tab1
----
-7217

skipif mysql # not compatible
query I rowsort label-1438
SELECT - ( - COUNT ( * ) ) + - 76 * 95 FROM tab1
----
-7217

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT MIN( DISTINCT 5 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1439
SELECT MIN ( DISTINCT 5 ) FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT DISTINCT - col1 DIV col0 - 90 * + 4 FROM tab0
----
-360
-365

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - col1 / col0 - 90 * + 4 FROM tab0
----
-360
-365

query III rowsort
SELECT * FROM tab2 WHERE 92 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT MIN( 63 ) AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT MIN ( 63 ) AS col2 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT 90 + COUNT( * ) AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1444
SELECT 90 + COUNT ( * ) AS col1 FROM tab0
----
93

query I rowsort
SELECT DISTINCT col0 * + 72 + + col2 AS col0 FROM tab2
----
3335
4648
5458

query I rowsort
SELECT - 44 AS col2 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT + 81 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1448
SELECT + 81 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL - COUNT( + col0 ) FROM tab2 WHERE NOT col2 / 58 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - COUNT ( + col0 ) FROM tab2 WHERE NOT col2 / 58 > NULL
----
0

query I rowsort
SELECT - col1 * col0 + - col1 AS col2 FROM tab1
----
-430
-4324
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL + 47 + + col0 AS col0 FROM tab1 WHERE NOT 69 - + ( ( - col1 ) ) * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 47 + + col0 AS col0 FROM tab1 WHERE NOT 69 - + ( ( - col1 ) ) * CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN ( col0 ) AND ( ( - 72 ) + col2 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE + 24 + col1 > col1 + col0
----

query I rowsort
SELECT + 66 + col2 FROM tab0 WHERE NOT col1 <> - col2
----

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT + MAX ( 8 ) AS col0 FROM tab2
----
8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 99 col1 FROM tab0
----
100
120
180

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT DISTINCT MAX( ALL 70 ) * COUNT( - col0 ) AS col0 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT MAX ( ALL 70 ) * COUNT ( - col0 ) AS col0 FROM tab2
----
210

query I rowsort
SELECT 70 * + 60 AS col0 FROM tab2 AS cor0
----
4200
4200
4200

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = + 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT - COUNT( DISTINCT - 75 ) + + CAST( CAST( + 63 AS SIGNED ) AS SIGNED ) * COUNT( + 84 ) FROM tab0
----
188

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - COUNT ( DISTINCT - 75 ) + + CAST ( CAST ( + 63 AS INTEGER ) AS INTEGER ) * COUNT ( + 84 ) FROM tab0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT SUM( col0 ) + + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-1469
SELECT SUM ( col0 ) + + COUNT ( * ) FROM tab1
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL col2 + + col2 DIV 37 AS col2 FROM tab1
----
60
69
98

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL col2 + + col2 / 37 AS col2 FROM tab1
----
60
69
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 65 / col1 NOT BETWEEN ( ( - 10 ) - 63 ) AND ( + 40 + col2 / - col2 )
----
97
1
99

query I rowsort
SELECT - - 5 + col2 * 69 AS col1 FROM tab0 AS cor0
----
3248
6836
695

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1473
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * CAST( + col1 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1473
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * CAST ( + col1 AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 51 + col1 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT ALL col0 * + col1 - col2 AS col2 FROM tab1 cor0
----
366
4209
618

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

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

query I rowsort
SELECT DISTINCT + 12 - 57 FROM tab0 AS cor0
----
-45

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 64 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1480
SELECT col2 / - - col1 FROM tab0
----
0
0
99

query I rowsort
SELECT col0 - 85 + + 93 * 65 FROM tab2
----
6006
6024
6035

query I rowsort
SELECT 56 - + 34 FROM tab0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL - COUNT( * ) * + + MIN( DISTINCT col0 ) * + COUNT( * ) col1 FROM tab2
----
-414

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1484
SELECT ALL COUNT( * ) FROM tab1 WHERE CAST( NULL AS DECIMAL ) = col0 * + col2 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS REAL ) = col0 * + col2 + - col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT COUNT( * ) - 98 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT COUNT ( * ) - 98 FROM tab1
----
-95

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1489
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * 81 < col2 * + 43
----

skipif mysql # not compatible
query III rowsort label-1489
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) * 81 < col2 * + 43
----

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

query I rowsort
SELECT + 65 * 56 * 22 + + 80 * - col0 AS col2 FROM tab0 cor0
----
72320
73120
78880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + SUM( - col0 ) FROM tab0 cor0 WHERE NOT - 73 <= 94 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT + SUM ( - col0 ) FROM tab0 cor0 WHERE NOT - 73 <= 94 * + col2
----
NULL

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

query I rowsort
SELECT + col2 * col2 + col0 AS col1 FROM tab1 WHERE NOT ( 44 ) IN ( col2 )
----
3566
4715
9267

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

query I rowsort
SELECT DISTINCT - + 91 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query I rowsort
SELECT ALL 58 * + 49 + - col0 + col0 AS col2 FROM tab0 AS cor0
----
2842
2842
2842

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

skipif mysql # not compatible
query I rowsort label-1499
SELECT - 26 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 60 * col0 AS col1 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT ALL - col1 * - 33 * - + 6 + + col0 AS col2 FROM tab1 AS cor0
----
-2721
-905
-9215

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT DISTINCT + 84 * ( + + 42 ) DIV + 98 + col1 AS col0 FROM tab2 AS cor0
----
103
113
87

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + 84 * ( + + 42 ) / + 98 + col1 AS col0 FROM tab2 AS cor0
----
103
113
87

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

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

query I rowsort
SELECT ALL 18 * + col2 * - 22 AS col0 FROM tab1
----
-23364
-26928
-38016

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT ALL ( + 31 ) DIV - 99 - - col0 + - 21 + col0 DIV col1 FROM tab0
----
-6
173
70

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL ( + 31 ) / - 99 - - col0 + - 21 + col0 / col1 FROM tab0
----
-6
173
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT COUNT( * ) * MAX( ALL col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT COUNT ( * ) * MAX ( ALL col0 ) FROM tab1
----
273

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT DISTINCT + col1 * + col1 + - 29 + + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab2
----
1096
2043
4300

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + col1 * + col1 + - 29 + + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab2
----
1096
2043
4300

query I rowsort
SELECT - ( col2 ) * - col2 + - col0 FROM tab2 WHERE NOT - + col0 NOT IN ( col1 - 21 * - 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT ALL ( COUNT( * ) ) DIV + - 4 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL ( COUNT ( * ) ) / + - 4 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 90 + - col1 AS col0 FROM tab2
----
13
23
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1512
SELECT DISTINCT * FROM tab1 WHERE col2 <= + col0 + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1512
SELECT DISTINCT * FROM tab1 WHERE col2 <= + col0 + - CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL + COUNT( * ) + 81 AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + COUNT ( * ) + 81 AS col1 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT COUNT( * ) + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1514
SELECT COUNT ( * ) + 43 FROM tab0 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - col0 + - + 82 + + 11 DIV + col2 AS col1 FROM tab1 AS cor0
----
-133
-167
-173

skipif mysql # not compatible
query I rowsort label-1515
SELECT - col0 + - + 82 + + 11 / + col2 AS col1 FROM tab1 AS cor0
----
-133
-167
-173

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 61 BETWEEN - + col1 * + ( 49 ) + col1 AND ( NULL )
----

query I rowsort
SELECT ALL + 54 * col1 + + 63 AS col2 FROM tab2 AS cor0
----
2817
3681
4221

query I rowsort
SELECT ALL + col0 + + + col0 + + col2 FROM tab1
----
198
229
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT ALL col0 FROM tab1 WHERE NOT - 58 * - 51 + col1 + CAST( 24 AS SIGNED ) + + col2 <= col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL col0 FROM tab1 WHERE NOT - 58 * - 51 + col1 + CAST ( 24 AS INTEGER ) + + col2 <= col0
----
51
85
91

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

query I rowsort
SELECT - - 15 * col2 * + col2 + - + col2 - + col0 * 23 - + 73 FROM tab0 AS cor0
----
-584
144612
32670

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT DISTINCT + - col2 - + col2 DIV col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT + - col2 - + col2 / col0 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0, 46 AS col1 FROM tab1 AS cor0
----
51
46
85
46
91
46

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1526
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) / col2 ) < CAST( + col0 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-1526
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) / col2 ) < CAST ( + col0 AS INTEGER ) + + col1
----

query III rowsort
SELECT ALL + col0 AS col0, 12 AS col0, col1 AS col2 FROM tab2
----
9 values hashing to 8d1daeddba70887099a3facff09ddef7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1528
SELECT ALL * FROM tab0 WHERE NOT + - CAST( - col0 AS DECIMAL ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1528
SELECT ALL * FROM tab0 WHERE NOT + - CAST ( - col0 AS REAL ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT DISTINCT ( - - 77 ) AS col1, col0 + - 13 + col1 AS col1 FROM tab2
----
77
128
77
129
77
84

query I rowsort
SELECT 43 * + col2 FROM tab2
----
1720
2494
989

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT ( 37 ) DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT ( 37 ) / + - col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1533
SELECT 9 / + col1 FROM tab2 AS cor0
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 92 BETWEEN + col0 + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 67 col1 FROM tab1 AS cor0
----
-3953
-4556
-6432

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + ( + - col2 ), col1 * + 73 * - 69 AS col2 FROM tab1
----
-59
-25185
-68
-236739
-96
-70518

query I rowsort
SELECT DISTINCT + col1 * + 54 AS col2 FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT ALL - - col2 * + col1 * + 31 FROM tab2 AS cor0
----
120466
36363
95480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT COUNT( col1 ) * + - 28 * - COUNT( * ) - - - COUNT( * ) col2 FROM tab2 AS cor0
----
249

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1548
SELECT DISTINCT 27 * + 83, + col1 * + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
2241
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1548
SELECT DISTINCT 27 * + 83, + col1 * + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
2241
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT + col2 DIV 55 + - col2 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-1549
SELECT + col2 / 55 + - col2 FROM tab2 AS cor0
----
-23
-40
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT ALL + 78 FROM tab0 AS cor0 WHERE NOT - 19 NOT BETWEEN + col1 / + + 70 * + - 20 - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + 78 FROM tab0 AS cor0 WHERE NOT - 19 NOT BETWEEN + col1 / + + 70 * + - 20 - col0 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1551
SELECT ALL + + CAST( NULL AS SIGNED ) * + col0 + col0 * + 90 + - col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1551
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 + col0 * + 90 + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col0 col1, col0 * - 57 AS col1 FROM tab0 cor0
----
-225
-855
-7569
-4959
-9409
-5529

query I rowsort
SELECT ALL 88 + + col2 FROM tab2 AS cor0
----
111
128
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT DISTINCT 27 + - + 88 * - - col2 - - - col1 DIV ( + - col1 ) DIV col0 FROM tab1
----
-5165
-5957
-8421

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT 27 + - + 88 * - - col2 - - - col1 / ( + - col1 ) / col0 FROM tab1
----
-5165
-5957
-8421

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL col2 DIV + 27 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL col2 / + 27 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL - col2 + + 97 FROM tab1
----
1
29
38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1559
SELECT - col1 AS col1, col1 + col0 - - col2 * 71 - 65 + - - CAST( NULL AS DECIMAL ) * - ( - 89 ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-1559
SELECT - col1 AS col1, col1 + col0 - - col2 * 71 - 65 + - - CAST ( NULL AS REAL ) * - ( - 89 ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

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

query I rowsort
SELECT ALL - col1 + 17 FROM tab1 cor0
----
-30
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT 34 + - 10 * - COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT 34 + - 10 * - COUNT ( * ) FROM tab2
----
64

query I rowsort
SELECT DISTINCT + 22 FROM tab1, tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + ( + 32 ) FROM tab0
----
119
129
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + + col2 * - col0 col0 FROM tab2 AS cor0 WHERE 47 * - ( - 94 ) * + col2 > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL 18 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

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

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

query I rowsort
SELECT ALL + 3 - + - col1 AS col2 FROM tab0 AS cor0
----
24
4
84

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

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

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

query II rowsort
SELECT + col1 AS col2, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT + 85 * + - col0 AS col0 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT - SUM( DISTINCT - - 39 ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1578
SELECT - SUM ( DISTINCT - - 39 ) AS col1 FROM tab0
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = col1 * - - 13
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 61 > col0 + + + 66 + + 14 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL col1 * - - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

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

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

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

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

query I rowsort
SELECT ALL ( 80 ) AS col0 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT + COUNT( 48 ) * - 43 AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1589
SELECT + COUNT ( 48 ) * - 43 AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1590
SELECT + ( + - MIN( DISTINCT + 4 ) ) DIV MIN( ALL + - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT + ( + - MIN ( DISTINCT + 4 ) ) / MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1592
SELECT COUNT( * ) DIV - + 36 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT COUNT ( * ) / - + 36 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 24 * 87 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2088
-2088
-2088

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT - 75 * - col0 DIV - col0 FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-1595
SELECT - 75 * - col0 / - col0 FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL + 59 * - + 92 * COUNT( * ) FROM tab2 AS cor0
----
-16284

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL + 59 * - + 92 * COUNT ( * ) FROM tab2 AS cor0
----
-16284

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

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

query II rowsort
SELECT + - col2 AS col2, col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query II rowsort
SELECT DISTINCT + 72 AS col0, col1 * + 19 AS col1 FROM tab0 AS cor0
----
72
1539
72
19
72
399

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + COUNT( * ) * + MIN( ALL - col1 ) + - 29 AS col2 FROM tab1 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-1601
SELECT + COUNT ( * ) * + MIN ( ALL - col1 ) + - 29 AS col2 FROM tab1 AS cor0
----
-170

query II rowsort
SELECT - col2 + + col2, 55 AS col0 FROM tab0
----
0
55
0
55
0
55

onlyif mysql # DIV for integer division: 
query II rowsort label-1603
SELECT + col1 + + col2 AS col0, - col1 DIV + 78 FROM tab1
----
110
0
115
0
64
0

skipif mysql # not compatible
query II rowsort label-1603
SELECT + col1 + + col2 AS col0, - col1 / + 78 FROM tab1
----
110
0
115
0
64
0

query II rowsort
SELECT ALL - col2 + - col0, col2 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 40 / col0 + + - col2 - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL - COUNT( * ) - + 25 - + - 23 * - COUNT( * ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - COUNT ( * ) - + 25 - + - 23 * - COUNT ( * ) FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 33 / col2 * - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT DISTINCT MAX( DISTINCT - + 40 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT MAX ( DISTINCT - + 40 ) FROM tab1 AS cor0
----
-40

query I rowsort
SELECT + - ( 32 ) FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT + CAST( - + col2 AS SIGNED ) * + - 55 col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
2585
5445
550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT + CAST ( - + col2 AS INTEGER ) * + - 55 col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
2585
5445
550

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

skipif mysql # not compatible
query I rowsort label-1612
SELECT - col2 / - - col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - COUNT( * ) * - MIN( + col0 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1613
SELECT - COUNT ( * ) * - MIN ( + col0 ) FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1614
SELECT ALL CAST( NULL AS SIGNED ) * col2, col1 * - col2 AS col2 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL CAST ( NULL AS INTEGER ) * col2, col1 * - col2 AS col2 FROM tab1
----
NULL
-1344
NULL
-295
NULL
-3196

onlyif mysql # DIV for integer division: 
query II rowsort label-1615
SELECT + col1 DIV - col0, col0 * + + col2 col2 FROM tab0
----
-5
705
0
870
0
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1615
SELECT + col1 / - col0, col0 * + + col2 col2 FROM tab0
----
-5
705
0
870
0
9603

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col1 + 16 / - 53 NOT BETWEEN NULL AND + ( col0 )
----

query I rowsort
SELECT + col2 * + + 79 AS col0 FROM tab2
----
1817
3160
4582

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1620
SELECT + CAST( + 29 AS SIGNED ) * - 79 AS col2 FROM tab2
----
-2291
-2291
-2291

skipif mysql # not compatible
query I rowsort label-1620
SELECT + CAST ( + 29 AS INTEGER ) * - 79 AS col2 FROM tab2
----
-2291
-2291
-2291

query II rowsort
SELECT DISTINCT col2 + col0 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - ( col0 ) ) + ( - 53 ) IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 46 ) + + + 84 * - col1 col2 FROM tab2 AS cor0
----
-4330
-5674
-6514

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1627
SELECT * FROM tab0 cor0 WHERE + CAST( ( - 84 ) AS DECIMAL ) + - 32 + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1627
SELECT * FROM tab0 cor0 WHERE + CAST ( ( - 84 ) AS REAL ) + - 32 + - col0 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 29 > NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> + col1 * + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT 1 AS col2, - SUM( col0 ) AS col1 FROM tab0
----
1
-199

skipif mysql # not compatible
query II rowsort label-1634
SELECT 1 AS col2, - SUM ( col0 ) AS col1 FROM tab0
----
1
-199

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

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

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

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

query I rowsort
SELECT ALL + 85 * col1 + - 67 AS col1 FROM tab2
----
4268
5628
6478

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT + ( + COUNT( * ) ) - + + 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + ( + COUNT ( * ) ) - + + 42 FROM tab0
----
-39

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

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ( + col2 ) DIV + - 80 + + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-1643
SELECT ( + col2 ) / + - 80 + + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1644
SELECT col0 + - CAST( NULL AS DECIMAL ) + - 46, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1644
SELECT col0 + - CAST ( NULL AS REAL ) + - 46, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * - + ( + col1 ) NOT BETWEEN NULL AND + ( col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1647
SELECT * FROM tab2 cor0 WHERE NOT CAST( + ( col0 ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1647
SELECT * FROM tab2 cor0 WHERE NOT CAST ( + ( col0 ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 - col0, 8, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-1650
SELECT DISTINCT - SUM( DISTINCT - col2 ), + COUNT( * ) AS col2, - COUNT( * ) + + COUNT( - + col2 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
121
3
NULL

skipif mysql # not compatible
query III rowsort label-1650
SELECT DISTINCT - SUM ( DISTINCT - col2 ), + COUNT ( * ) AS col2, - COUNT ( * ) + + COUNT ( - + col2 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
121
3
NULL

query I rowsort
SELECT + 3 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL AND - col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col0 * - - ( + 40 ) FROM tab0 AS cor0
----
3480
3880
600

query I rowsort
SELECT - + 50 AS col0 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT MIN( - 20 ) AS col1 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-1655
SELECT MIN ( - 20 ) AS col1 FROM tab0
----
-20

query I rowsort
SELECT DISTINCT 59 * col2 FROM tab0
----
2773
5841
590

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT - MAX ( - + col2 ) AS col0 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 col1 FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 14 BETWEEN + + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 79 * + 12 FROM tab0
----
948
948
948

query I rowsort
SELECT DISTINCT - 78 * - 86 FROM tab2
----
6708

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT + 73 DIV + + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT + 73 / + + col0 FROM tab1
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR + + col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col0 + + col2 + col0 * col0 FROM tab1 AS cor0
----
2748
7369
8440

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT + - col0 + + col1 + - - 85 + + col0 + - 88 + col1 DIV + col2 * - col0 + 39 FROM tab1 AS cor0
----
41
50
83

skipif mysql # not compatible
query I rowsort label-1665
SELECT + - col0 + + col1 + - - 85 + + col0 + - 88 + col1 / + col2 * - col0 + 39 FROM tab1 AS cor0
----
41
50
83

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

query I rowsort
SELECT ALL - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

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

query II rowsort
SELECT ALL + col2 + - col2, 20 AS col2 FROM tab0 AS cor0
----
0
20
0
20
0
20

query II rowsort
SELECT ALL + + ( 13 ), + col0 AS col2 FROM tab2 AS cor0
----
13
46
13
64
13
75

query II rowsort
SELECT DISTINCT - - 5 + + col2, - 76 AS col1 FROM tab0 cor0
----
104
-76
15
-76
52
-76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1673
SELECT - 15 - COUNT( * ) AS col0, - 24 * + 28 FROM tab1 AS cor0
----
-18
-672

skipif mysql # not compatible
query II rowsort label-1673
SELECT - 15 - COUNT ( * ) AS col0, - 24 * + 28 FROM tab1 AS cor0
----
-18
-672

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

query I rowsort
SELECT + col0 * + col1 + + col2 AS col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT + 98 + - col0 AS col1 FROM tab2
----
23
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT + ( - MAX( col2 ) ) col2 FROM tab1 WHERE + col2 NOT IN ( - col1, col1 )
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1677
SELECT DISTINCT + ( - MAX ( col2 ) ) col2 FROM tab1 WHERE + col2 NOT IN ( - col1, col1 )
----
-96

query I rowsort
SELECT 70 + + 59 FROM tab0
----
129
129
129

query I rowsort
SELECT ALL - 45 + + col1 * - + ( - 1 ) AS col2 FROM tab1
----
-31
-40
2

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

query I rowsort
SELECT 78 + + col0 AS col0 FROM tab0
----
165
175
93

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE - + 20 NOT BETWEEN + col0 + - col2 AND NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 20 FROM tab0 AS cor0 WHERE + col0 = - + col0
----

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

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL 62 - COUNT ( * ) AS col0 FROM tab2 cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 + - + col2 * + col1 * 5 + + 54 ) <> 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - 90 * - COUNT( * ) AS col1 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-1687
SELECT - 90 * - COUNT ( * ) AS col1 FROM tab1
----
270

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 50 AND NULL
----

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

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

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 38 * + col1 + - + 79 FROM tab1 AS cor0
----
111
1707
453

onlyif mysql # aggregate syntax: 
query II rowsort label-1692
SELECT - 5 AS col2, MAX( col0 ) FROM tab1 AS cor0
----
-5
91

skipif mysql # not compatible
query II rowsort label-1692
SELECT - 5 AS col2, MAX ( col0 ) FROM tab1 AS cor0
----
-5
91

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

query I rowsort
SELECT DISTINCT + + col0 * + col1 * 53 * + col1 AS col2 FROM tab2 AS cor0
----
17843775
20111168
6341238

query II rowsort
SELECT ALL col2, + col0 * - col0 FROM tab0 AS cor0
----
10
-7569
47
-225
99
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - SUM( + col0 ) FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
-87

skipif mysql # not compatible
query I rowsort label-1696
SELECT - SUM ( + col0 ) FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
-87

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 + + + 22 FROM tab2
----
2368
4950
5047

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - 89 AS col0 FROM tab1
----
4539
7565
8099

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT ALL - 12 DIV + 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - 12 / + 87 AS col2 FROM tab0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT + 88, + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
88
0

skipif mysql # not compatible
query II rowsort label-1702
SELECT + 88, + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
88
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT + 67 DIV - col0 - 74 AS col0 FROM tab1 AS cor0
----
-74
-75

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + 67 / - col0 - 74 AS col0 FROM tab1 AS cor0
----
-74
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT - 33 + + - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - 33 + + - COUNT ( * ) FROM tab0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1706
SELECT DISTINCT 23 DIV + COUNT( * ) + 17 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT 23 / + COUNT ( * ) + 17 FROM tab0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 16 DIV + col2 + + - 55 * - - 41 * 40 * - col1 AS col1 FROM tab2 AS cor0
----
4600200
6043400
6945400

skipif mysql # not compatible
query I rowsort label-1707
SELECT 16 / + col2 + + - 55 * - - 41 * 40 * - col1 AS col1 FROM tab2 AS cor0
----
4600200
6043400
6945400

query I rowsort
SELECT - 22 + col1 AS col1 FROM tab1 AS cor0
----
-17
-8
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1709
SELECT ALL * 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-1709
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - 22 / + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 3 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / - - col0 AND NULL
----

query I rowsort
SELECT + + 9 - + 31 + + - 60 FROM tab0 WHERE ( + col2 <> 6 )
----
-82
-82
-82

query I rowsort
SELECT - col0 * 26 FROM tab0
----
-2262
-2522
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 7 + - 49 - - 86 * - col2 col1 FROM tab1
----
-4710
-5421
-7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + + 64 col0 FROM tab0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT 53 * - + COUNT( * ) FROM tab1, tab1 AS cor0
----
-477

skipif mysql # not compatible
query I rowsort label-1717
SELECT 53 * - + COUNT ( * ) FROM tab1, tab1 AS cor0
----
-477

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1718
SELECT ALL * FROM tab0 WHERE + + col2 + CAST( + 0 AS SIGNED ) + - col0 / - col0 >= + 71
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1718
SELECT ALL * FROM tab0 WHERE + + col2 + CAST ( + 0 AS INTEGER ) + - col0 / - col0 >= + 71
----
97
1
99

query I rowsort
SELECT col0 - - 26 FROM tab2
----
101
72
90

query I rowsort
SELECT + 87 * col0 - col2 FROM tab2
----
3979
5528
6467

query I rowsort
SELECT ALL - 83 FROM tab2 WHERE + col1 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 54 ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + COUNT( DISTINCT + 85 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + COUNT ( DISTINCT + 85 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + SUM( ALL + 68 ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1731
SELECT + SUM ( ALL + 68 ) FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - + MAX( 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - + MAX ( 21 ) FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1733
SELECT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + MIN( DISTINCT + 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1734
SELECT + MIN ( DISTINCT + 95 ) FROM tab0 AS cor0
----
95

query I rowsort
SELECT ALL - col0 * + 35 AS col1 FROM tab0 AS cor0
----
-3045
-3395
-525

query II rowsort
SELECT col2 + 46, col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
105
85
114
91
142
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1737
SELECT + MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col0 FROM tab2
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT DISTINCT - 51 DIV - col1 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT DISTINCT - 51 / - col1 col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL - ( + + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - ( + + COUNT ( * ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 WHERE NOT - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + + ( col1 ) * col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 AS col2, col1 + - col0 FROM tab2 AS cor0
----
-23
5
-40
13
-58
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - SUM( - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1745
SELECT - SUM ( - col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT DISTINCT + 73 + 44 FROM tab1
----
117

query I rowsort
SELECT ALL - col0 - + 86 FROM tab2 AS cor0
----
-132
-150
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ALL + - 7 DIV + col2 * - col2 * col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1748
SELECT ALL + - 7 / + col2 * - col2 * col1 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT - 38 * - ( - - MAX( - col1 ) ) + + 95 + + 5 FROM tab0 AS cor0 WHERE NOT col0 <> + 70 - + ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - 38 * - ( - - MAX ( - col1 ) ) + + 95 + + 5 FROM tab0 AS cor0 WHERE NOT col0 <> + 70 - + ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT + CAST( NULL AS SIGNED ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT + CAST ( NULL AS INTEGER ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( - - col2 ) - col2 AS col2, col0 FROM tab1 AS cor0
----
-118
85
-136
91
-192
51

query I rowsort
SELECT col1 * + col0 - + - col0 * - + col0 FROM tab0 AS cor0
----
-5742
-9312
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ( CAST( - - col1 AS SIGNED ) ) + + 28 + - - col0 * + 96 AS col2 FROM tab1
----
4938
8193
8811

skipif mysql # not compatible
query I rowsort label-1753
SELECT ( CAST ( - - col1 AS INTEGER ) ) + + 28 + - - col0 * + 96 AS col2 FROM tab1
----
4938
8193
8811

query I rowsort
SELECT - - 58 FROM tab2 WHERE col0 IS NOT NULL
----
58
58
58

query I rowsort
SELECT - col2 + - - col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE - 33 * - - 27 NOT BETWEEN NULL AND - - 98
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT COUNT( * ), + 16 AS col0 FROM tab2 AS cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-1758
SELECT COUNT ( * ), + 16 AS col0 FROM tab2 AS cor0
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT - 86 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - 86 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1760
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1761
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( + col1 AS SIGNED ) ) BETWEEN NULL AND - ( - + 96 ) * + 68 + - - col2
----

skipif mysql # not compatible
query III rowsort label-1761
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( + col1 AS INTEGER ) ) BETWEEN NULL AND - ( - + 96 ) * + 68 + - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 95 * - col0 * 32 col1 FROM tab1 AS cor0
----
155040
258400
276640

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + COUNT( ALL + + 22 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1764
SELECT + COUNT ( ALL + + 22 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * + col1 < NULL
----

query I rowsort
SELECT + col2 * + col0 + col0 FROM tab0 cor0 WHERE NOT - col0 / col2 IS NULL
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT MIN( + - ( + col2 ) ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1767
SELECT MIN ( + - ( + col2 ) ) AS col0 FROM tab0 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + ( + - col2 ) ) AS col0, + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT 11 * + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT - COUNT( ALL + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - COUNT ( ALL + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1772
SELECT ALL 78 * col0 * - - col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 78 * col0 * - - col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - 88 FROM tab2 AS cor0
----
-4488
-5896
-6776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * + - col1 col2 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT - + col2 + + 46 AS col0 FROM tab0 AS cor0
----
-1
-53
36

query I rowsort
SELECT - + col1 * - + col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT - MAX( + col1 ) col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1777
SELECT DISTINCT - MAX ( + col1 ) col1 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT SUM( ALL - 83 ) AS col1 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT SUM ( ALL - 83 ) AS col1 FROM tab2 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - col1 + 87 FROM tab2
----
10
20
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL 88 + COUNT( * ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL 88 + COUNT ( * ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL + - COUNT( * ) - + 31 AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + - COUNT ( * ) - + 31 AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( - CAST( - - col1 AS SIGNED ), + col0, - 60 / + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( - CAST ( - - col1 AS INTEGER ), + col0, - 60 / + + col2 )
----
0

query I rowsort
SELECT DISTINCT + col2 + + ( + col0 ) + ( + 72 ) FROM tab0 AS cor0
----
134
169
268

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 41 * - col2 FROM tab1 AS cor0
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - - COUNT( - col0 ) * - 16 * - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1788
SELECT - - COUNT ( - col0 ) * - 16 * - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 - - - col2 + - - col2 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT 92 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT 92 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT + col0 DIV + col0 - + - col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-1792
SELECT + col0 / + col0 - + - col2 AS col0 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ( - COUNT( * ) ) - - 98 AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-1793
SELECT ( - COUNT ( * ) ) - - 98 AS col1 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - MAX( col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1794
SELECT - MAX ( col2 ) FROM tab2
----
-58

query I rowsort
SELECT 39 * col0 * + col1 FROM tab2
----
192192
195975
91494

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT ALL - col0 DIV + + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - col0 / + + col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 21 * - col1 * + - col2 * + col2 AS col1 FROM tab0
----
205821
3757509
44100

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT - SUM( ALL ( + col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - SUM ( ALL ( + col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 50 FROM tab1 cor0
----
50

query I rowsort
SELECT + 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT - 16 + - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - 16 + - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT DISTINCT + col2 DIV + 2 AS col2 FROM tab1
----
29
34
48

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT + col2 / + 2 AS col2 FROM tab1
----
29
34
48

query I rowsort
SELECT DISTINCT - ( - 49 ) AS col0 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT ALL COUNT( * ), 72 AS col0 FROM tab2 cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL COUNT ( * ), 72 AS col0 FROM tab2 cor0
----
3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL COUNT( DISTINCT 3 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL COUNT ( DISTINCT 3 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT - + 87, + col2 * + + col1 AS col2 FROM tab2 AS cor0
----
-87
1173
-87
3080
-87
3886

query I rowsort
SELECT + ( + 39 ) FROM tab1 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT + + COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1809
SELECT + + COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 * - 25 AS col0 FROM tab2 cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT - col1 * - CAST( - - 48 AS SIGNED ) col0 FROM tab2
----
2448
3216
3696

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1811
SELECT - col1 * - CAST ( - - 48 AS INTEGER ) col0 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + SUM( ALL col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1812
SELECT + SUM ( ALL col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL CAST( col0 AS SIGNED ) FROM tab0 WHERE + 76 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab0 WHERE + 76 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 9 + + + 88 AS col1 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT col2 * 13 + + + 16 + - col0 - - + ( - + 23 ) AS col0 FROM tab2 AS cor0
----
246
449
672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1817
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 > - CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-1817
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 > - CAST ( NULL AS INTEGER ) + col2
----

query I rowsort
SELECT + - col0 + - + col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT col2 * + col0 * + col0 FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
10575
75690
931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT CAST( + - SUM( DISTINCT + - 45 ) AS SIGNED ) * + + CAST( - 85 AS SIGNED ) FROM tab2
----
-3825

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT CAST ( + - SUM ( DISTINCT + - 45 ) AS INTEGER ) * + + CAST ( - 85 AS INTEGER ) FROM tab2
----
-3825

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT DISTINCT COUNT( * ) + 11 + - 30, - 63 AS col2 FROM tab0
----
-16
-63

skipif mysql # not compatible
query II rowsort label-1821
SELECT DISTINCT COUNT ( * ) + 11 + - 30, - 63 AS col2 FROM tab0
----
-16
-63

query I rowsort
SELECT DISTINCT + - col1 - + 84 AS col1 FROM tab1 AS cor0
----
-131
-89
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL - 83 * + COUNT( * ) - + - MAX( - 61 ) - - + 7 FROM tab0 AS cor0
----
-303

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - 83 * + COUNT ( * ) - + - MAX ( - 61 ) - - + 7 FROM tab0 AS cor0
----
-303

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1824
SELECT + CAST( + - CAST( col1 AS SIGNED ) AS SIGNED ) DIV col1 - + 50 + + col0 + - 63 AS col0 FROM tab0 AS cor0
----
-17
-27
-99

skipif mysql # not compatible
query I rowsort label-1824
SELECT + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) / col1 - + 50 + + col0 + - 63 AS col0 FROM tab0 AS cor0
----
-17
-27
-99

query I rowsort
SELECT - + col0 + - col2 + + col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL COUNT( * ) - - 82 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL COUNT ( * ) - - 82 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + - SUM( - ( col1 ) ) * + + 5 AS col2 FROM tab0 AS cor0
----
515

skipif mysql # not compatible
query I rowsort label-1827
SELECT + - SUM ( - ( col1 ) ) * + + 5 AS col2 FROM tab0 AS cor0
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT DISTINCT COUNT( * ) * - MIN( + - 97 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT COUNT ( * ) * - MIN ( + - 97 ) FROM tab0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT DISTINCT 18 * - SUM( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 18 * - SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 73 * + 14 FROM tab0
----
-1022
-1022
-1022

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 >= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT col2 * ( - col2 ) DIV - + 54 col0 FROM tab2
----
29
62
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT DISTINCT col2 * ( - col2 ) / - + 54 col0 FROM tab2
----
29
62
9

query III rowsort
SELECT * FROM tab2 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT ALL COUNT( * ) DIV 13 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL COUNT ( * ) / 13 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 35 AS col0, col1 FROM tab0
----
35
1
35
21
35
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT + CAST( + 53 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-1838
SELECT + CAST ( + 53 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1839
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 30 + - + 89 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT + ( - - col2 ) DIV + col2 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1841
SELECT + ( - - col2 ) / + col2 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL - COUNT( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - COUNT ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + 52 * + COUNT( * ) FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 52 * + COUNT ( * ) FROM tab1 cor0
----
156

query I rowsort
SELECT - - 26 + col2 FROM tab0 AS cor0
----
125
36
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) * - 5 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1845
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) * - 5 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
0

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT + col1 + + 24 FROM tab1 AS cor0
----
29
38
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1848
SELECT * FROM tab0 WHERE + - CAST( + - col1 AS SIGNED ) = - + col1
----

skipif mysql # not compatible
query III rowsort label-1848
SELECT * FROM tab0 WHERE + - CAST ( + - col1 AS INTEGER ) = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - SUM( + + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1849
SELECT - SUM ( + + col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT 76 + - MIN( + col1 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT 76 + - MIN ( + col1 ) FROM tab1
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL + col1, ( - 84 ) FROM tab1
----
14
-84
47
-84
5
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-1853
SELECT DISTINCT - col0 * + + col0 * + col2 + + col0 DIV + + ( 16 ) AS col0, col0 - - col1 + col1 * - col0 * + 24 DIV + 24 FROM tab1
----
-249693
-649
-426270
-335
-563103
-4139

skipif mysql # not compatible
query II rowsort label-1853
SELECT DISTINCT - col0 * + + col0 * + col2 + + col0 / + + ( 16 ) AS col0, col0 - - col1 + col1 * - col0 * + 24 / + 24 FROM tab1
----
-249693
-649
-426270
-335
-563103
-4139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 col1, ( - - col1 ) + - col2 AS col2 FROM tab2
----
47
28
47
37
47
9

query I rowsort
SELECT ALL - col1 + + col2 - + col2 * col2 * + col1 * - - col0 FROM tab0
----
-182711
-2683969
-950599

query I rowsort
SELECT + ( ( + col1 ) ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - 35 + + - CAST( - ( - col0 ) AS SIGNED ) + col0 - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - 35 + + - CAST ( - ( - col0 ) AS INTEGER ) + col0 - col2 AND NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 18 * - 77 > col1 - + col2 + 3 * + col0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1859
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( 94 AS SIGNED ) / + + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1859
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( 94 AS INTEGER ) / + + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - ( MIN( + 7 ) ) FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - ( MIN ( + 7 ) ) FROM tab0 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 * - 89 col1 FROM tab2 AS cor0
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1863
SELECT MIN ( - col1 ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 * col2 * + - ( + + col1 ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + 61 * + COUNT( * ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-1865
SELECT + 61 * + COUNT ( * ) FROM tab2
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 93 col2 FROM tab2
----
2139
3720
5394

query II rowsort
SELECT DISTINCT col1, + col0 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT ALL col0 AS col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT + col1 * + + col0 * CAST( col0 AS SIGNED ) FROM tab2
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-1869
SELECT + col1 * + + col0 * CAST ( col0 AS INTEGER ) FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT 15 DIV + ( - + 97 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT 15 / + ( - + 97 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 24 col1 FROM tab1
----
51
24
85
24
91
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + COUNT( * ) + - 28 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1874
SELECT + COUNT ( * ) + - 28 FROM tab0 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL 87 / - col2 AS col1 FROM tab2 WHERE + ( col0 ) * + col1 <= + 80 OR NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT - 21 * + + col2 * - col0 FROM tab2 AS cor0
----
22218
53760
91350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT - 47 AS col2, - col2 * 44 + - col2 FROM tab0 AS cor0
----
-47
-2115
-47
-4455
-47
-450

query II rowsort
SELECT DISTINCT + + 30, + 58 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + - CAST( + 10 AS SIGNED ) * + 40 AS col0 FROM tab0 AS cor0
----
-400
-400
-400

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + - CAST ( + 10 AS INTEGER ) * + 40 AS col0 FROM tab0 AS cor0
----
-400
-400
-400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col2 ) <= + 48 - col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT CAST( - 44 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + - - 88 * - - col2 )
----

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT CAST ( - 44 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + - - 88 * - - col2 )
----

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT + col0 * + 24 AS col2 FROM tab1 AS cor0
----
1224
2040
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - MIN( ALL + col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1889
SELECT - MIN ( ALL + col0 ) FROM tab2 cor0
----
-46

query I rowsort
SELECT + + 77 + - 83 FROM tab0 AS cor0
----
-6
-6
-6

query II rowsort
SELECT ALL - col2 AS col1, + 19 + + col0 AS col1 FROM tab2 AS cor0
----
-23
65
-40
83
-58
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1892
SELECT - CAST( NULL AS SIGNED ) + col2 AS col1, 15 * - col2 + col0, + col2 + + col2 - col1 * 94 AS col1 FROM tab2
----
9 values hashing to 395c55cd8298226f9b5071376fc7bd0c

skipif mysql # not compatible
query III rowsort label-1892
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col1, 15 * - col2 + col0, + col2 + + col2 - col1 * 94 AS col1 FROM tab2
----
9 values hashing to 395c55cd8298226f9b5071376fc7bd0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - 87 col1 FROM tab1
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ( + + 6 ) + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1894
SELECT ( + + 6 ) + COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT + 56 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 56 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT 8 * + + CAST( + - ( - 4 ) AS SIGNED ) + 92 FROM tab0 AS cor0
----
124
124
124

skipif mysql # not compatible
query I rowsort label-1896
SELECT 8 * + + CAST ( + - ( - 4 ) AS INTEGER ) + 92 FROM tab0 AS cor0
----
124
124
124

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1898
SELECT - CAST( NULL AS DECIMAL ) * - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1898
SELECT - CAST ( NULL AS REAL ) * - col1 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 65
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 + - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ( - MAX( ALL col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1901
SELECT ( - MAX ( ALL col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT 58 AS col2, 39 FROM tab0 AS cor0
----
58
39
58
39
58
39

query II rowsort
SELECT DISTINCT - col1, + col1 AS col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL - 15 * - - ( 38 ) * - col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL ( SUM( + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL ( SUM ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT 34 * ( + col2 ) FROM tab0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - + COUNT( DISTINCT col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT - + COUNT ( DISTINCT col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 * - - 52 * col2 * - col0 AS col1 FROM tab0
----
-3935880
-48437532
-549900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1909
SELECT ALL * FROM tab2 WHERE - - CAST( + - col0 AS SIGNED ) * + col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1909
SELECT ALL * FROM tab2 WHERE - - CAST ( + - col0 AS INTEGER ) * + col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT - col1 DIV + ( + + col2 ) col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1910
SELECT - col1 / + ( + + col2 ) col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT 82 * + SUM( DISTINCT 99 ) AS col1 FROM tab1
----
8118

skipif mysql # not compatible
query I rowsort label-1911
SELECT 82 * + SUM ( DISTINCT 99 ) AS col1 FROM tab1
----
8118

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT ( + col1 ) DIV col2 col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1912
SELECT ( + col1 ) / col2 col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT col1 * + 46 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT col1 * 64 * + ( - col2 ) + - - 76 + + ( + 66 ) FROM tab1 AS cor0
----
-18738
-204402
-85874

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT - 82 * - COUNT( * ) + + 33 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT - 82 * - COUNT ( * ) + + 33 FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-1917
SELECT DISTINCT - COUNT( * ) AS col1, - MIN( 22 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-22

skipif mysql # not compatible
query II rowsort label-1917
SELECT DISTINCT - COUNT ( * ) AS col1, - MIN ( 22 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + COUNT( DISTINCT - + 59 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1918
SELECT + COUNT ( DISTINCT - + 59 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT - - CAST( NULL AS SIGNED ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT - - CAST ( NULL AS INTEGER ) + 66 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + + 68 + + SUM( - + col2 ) AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-1921
SELECT + + 68 + + SUM ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + + 19 * + 17 AS col2 FROM tab2 cor0
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT - SUM( ALL + + col0 ) AS col1 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - SUM ( ALL + + col0 ) AS col1 FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT - col1 * - 36 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL ( - col0 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL ( - col0 ) / col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col0 FROM tab2
----
99

query II rowsort
SELECT + col1, 60 - col2 + col0 FROM tab1
----
14
15
47
83
5
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - col0, 50 * col2 AS col2 FROM tab1
----
-51
4800
-85
2950
-91
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - MIN( DISTINCT 91 ) AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-1931
SELECT - MIN ( DISTINCT 91 ) AS col1 FROM tab0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT - CAST( + 70 AS SIGNED ) FROM tab0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-1932
SELECT - CAST ( + 70 AS INTEGER ) FROM tab0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 15 + 88 * + 67 col0 FROM tab1 AS cor0
----
5881

query I rowsort
SELECT ALL + 68 + col0 FROM tab0 AS cor0
----
155
165
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col1 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 32 / col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 34 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + 39 * - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + 39 * - COUNT ( * ) FROM tab0
----
-117

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab2 cor0
----
-78

query I rowsort
SELECT 82 AS col0 FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT 62 + + 6 + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
68

skipif mysql # not compatible
query I rowsort label-1942
SELECT 62 + + 6 + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
68

query I rowsort
SELECT DISTINCT - - col2 * + col0 + + 13 + - col0 * + + 26 FROM tab2 AS cor0
----
-125
2413
909

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT ALL - 21 AS col2, COUNT( ALL + ( - col2 ) ) AS col1 FROM tab0
----
-21
3

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL - 21 AS col2, COUNT ( ALL + ( - col2 ) ) AS col1 FROM tab0
----
-21
3

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 7 col1 FROM tab2 AS cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT DISTINCT + CAST( 72 AS SIGNED ) + - SUM( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + CAST ( 72 AS INTEGER ) + - SUM ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 + - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - COUNT( ALL col0 ) + MAX( + col1 ) FROM tab1 AS cor0 WHERE 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT - COUNT ( ALL col0 ) + MAX ( + col1 ) FROM tab1 AS cor0 WHERE 95 IS NULL
----
NULL

query I rowsort
SELECT + + 86 + + + 3 AS col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT ALL + 23 + col0 FROM tab2
----
69
87
98

query I rowsort
SELECT ALL 65 * 33 FROM tab1
----
2145
2145
2145

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + col2 * + 17
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 - + col2 AND NULL
----

query I rowsort
SELECT ( + 78 ) FROM tab2 WHERE + 59 <> col2 - 58
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT SUM( ALL - ( + 72 ) ) * 96 + + COUNT( * ) FROM tab1
----
-20733

skipif mysql # not compatible
query I rowsort label-1956
SELECT SUM ( ALL - ( + 72 ) ) * 96 + + COUNT ( * ) FROM tab1
----
-20733

query I rowsort
SELECT ALL 72 * + 77 FROM tab2
----
5544
5544
5544

query I rowsort
SELECT 7 + col2 * col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1180
3087
3893

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT 64 * 72 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT 64 * 72 = NULL
----
0

query I rowsort
SELECT ALL col0 * - 76 AS col2 FROM tab1
----
-3876
-6460
-6916

query III rowsort
SELECT * FROM tab1 WHERE + 60 + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 95 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT + COUNT( * ) DIV - 40 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1963
SELECT + COUNT ( * ) / - 40 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 - 36 AS col2 FROM tab2
----
-103
-113
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT - MIN( DISTINCT + col0 ) DIV COUNT( ALL 6 DIV col1 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-1965
SELECT - MIN ( DISTINCT + col0 ) / COUNT ( ALL 6 / col1 ) FROM tab2
----
-15

query I rowsort
SELECT + col0 + col2 * 36 AS col1 FROM tab0
----
1707
3661
447

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1967
SELECT + col1 + + col0 / - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT + col1 + + col0 / - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 98 ) * 21 FROM tab0
----
-2058
-2058
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT - 36 * - COUNT( * ) AS col0 FROM tab0 WHERE ( - 13 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - 36 * - COUNT ( * ) AS col0 FROM tab0 WHERE ( - 13 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + 34 AS col2 FROM tab0
----
115
35
55

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT MIN( col1 ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + ( + col1 ) FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * ( + 67 * - col2 ) >= col2
----
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * ( + 67 * - col2 ) >= col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1976
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT 28 * + ( 34 ) FROM tab0
----
952
952
952

query I rowsort
SELECT DISTINCT + col0 * 59 AS col0 FROM tab0
----
5133
5723
885

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 12 - - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + MIN( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL < + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT + MIN ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL < + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT DISTINCT 27 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT 27 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT ALL - 29 AS col2 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 83 + 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1985
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 56 * - MAX( DISTINCT - 74 * - 79 ) FROM tab2 AS cor0
----
-327376

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 56 * - MAX ( DISTINCT - 74 * - 79 ) FROM tab2 AS cor0
----
-327376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT col2 DIV + col2 FROM tab1 AS cor0 WHERE NOT + 6 DIV col1 IN ( 8 DIV col2 )
----
1

skipif mysql # not compatible
query I rowsort label-1988
SELECT col2 / + col2 FROM tab1 AS cor0 WHERE NOT + 6 / col1 IN ( 8 / col2 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT COUNT( * ) * 37 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 + - CAST( NULL AS SIGNED ) / + 62 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT COUNT ( * ) * 37 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS INTEGER ) / + 62 ) IS NULL
----
0

query I rowsort
SELECT + + 99 AS col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - - 34 AS col1 FROM tab2 cor0
----
34
34
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) > ( ( + col2 ) )
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 41 - 75 * col1 AS col2 FROM tab1
----
-275
-3416
-913

query I rowsort
SELECT ( + + col0 ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT DISTINCT + CAST( - + MIN( col2 ) AS SIGNED ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + CAST ( - + MIN ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT MAX( DISTINCT - col2 ) + + COUNT( * ) FROM tab2 WHERE NOT ( 42 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT MAX ( DISTINCT - col2 ) + + COUNT ( * ) FROM tab2 WHERE NOT ( 42 ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT SUM( DISTINCT - ( + 43 ) ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-1998
SELECT SUM ( DISTINCT - ( + 43 ) ) FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( * ) * - 31 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( * ) * - 31 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( - col1 )
----

query I rowsort
SELECT ALL 46 FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2003
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT CAST( NULL AS SIGNED ) * + col2 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT CAST ( NULL AS INTEGER ) * + col2 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND - col2 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 52 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + 28 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 28 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2008
SELECT DISTINCT + ( + col1 ) + + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + ( + col1 ) + + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col0 - + 50 FROM tab2 cor0
----
-114
-125
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 AS col2, + col0 col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT + 3 * + ( col0 ) FROM tab2
----
138
192
225

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2013
SELECT * FROM tab2 WHERE NOT + col1 IS NOT NULL AND NOT + col0 * CAST( 48 AS DECIMAL ) IN ( + ( col2 ) )
----

skipif mysql # not compatible
query III rowsort label-2013
SELECT * FROM tab2 WHERE NOT + col1 IS NOT NULL AND NOT + col0 * CAST ( 48 AS REAL ) IN ( + ( col2 ) )
----

query I rowsort
SELECT + col0 * 88 - - 55 + col0 + 6 AS col2 FROM tab1
----
4600
7626
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL 90 + - COUNT( * ) * + - 58 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 90 + - COUNT ( * ) * + - 58 FROM tab0
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col2 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( col2 * col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 4 - + ( col2 ) + 59 AS col2 FROM tab1
----
-33
-5
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT col1 * + - CAST( NULL AS SIGNED ) - + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT col1 * + - CAST ( NULL AS INTEGER ) - + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 93 * + col0 FROM tab1 AS cor0 WHERE NOT + ( col1 ) * - ( 47 ) + - 73 IS NOT NULL
----

query I rowsort
SELECT + + 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - col2 * col2 DIV - 81 FROM tab2
----
19
41
6

skipif mysql # not compatible
query I rowsort label-2022
SELECT - col2 * col2 / - 81 FROM tab2
----
19
41
6

query I rowsort
SELECT ALL + 39 * + 27 AS col0 FROM tab2
----
1053
1053
1053

query I rowsort
SELECT DISTINCT + 75 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT - + COUNT( * ), ( 94 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
94

skipif mysql # not compatible
query II rowsort label-2025
SELECT - + COUNT ( * ), ( 94 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - ( + + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT ALL - ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 * col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col2 + - ( col2 ) + + col1 + ( ( col1 ) ) AS col1 FROM tab2 cor0
----
46
102
64
154
75
134

query I rowsort
SELECT DISTINCT - - 32 + + 84 + - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 10 IS NULL
----
106
17
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + ( - + 8 ) > - + col2 * 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - col1 ) * - - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE NOT 48 + 10 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2034
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE NOT 48 + 10 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * - - col2 + - - 12 col0 FROM tab1 AS cor0
----
5086
5860
8268

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT MAX( - 4 ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2036
SELECT MAX ( - 4 ) AS col1 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col1 + + 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT DISTINCT + COUNT( * ) + + MAX( - - CAST( col1 AS SIGNED ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + COUNT ( * ) + + MAX ( - - CAST ( col1 AS INTEGER ) ) FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2039
SELECT DISTINCT + ( - col1 ) + - + col2 DIV + - col1, + col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-2039
SELECT DISTINCT + ( - col1 ) + - + col2 / + - col1, + col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + MAX( ALL - 67 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-2040
SELECT + MAX ( ALL - 67 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-67

query I rowsort
SELECT DISTINCT - col2 + col1 + - + col1 + 89 * - 10 FROM tab0
----
-900
-937
-989

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT + + col0 DIV col2 - - col0 col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2043
SELECT + + col0 / col2 - - col0 col2 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT COUNT( * ) DIV - 6 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT COUNT ( * ) / - 6 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 42 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL + SUM( + col2 ) + + 76 AS col2 FROM tab0
----
232

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + SUM ( + col2 ) + + 76 AS col2 FROM tab0
----
232

query I rowsort
SELECT DISTINCT - 80 FROM tab1 WHERE col1 * + 71 + + - 6 IS NOT NULL
----
-80

query I rowsort
SELECT DISTINCT - col2 + + + col1 * - 20 AS col2 FROM tab0 AS cor0
----
-119
-1667
-430

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - - col0 - col2 + ( - + col2 ) * + + 93 FROM tab0 AS cor0
----
-4403
-853
-9209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT - - 93 - - - 96 AS col1 FROM tab2 cor0 WHERE + col2 * + - col2 BETWEEN 66 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - - 93 - - - 96 AS col1 FROM tab2 cor0 WHERE + col2 * + - col2 BETWEEN 66 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - ( - - 89 ) AS col0 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - 10 + - ( col0 ) AS col1 FROM tab1 cor0
----
-101
-61
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE ( ( + - col2 ) IN ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT + CAST( NULL AS SIGNED ) + + - col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT + CAST ( NULL AS INTEGER ) + + - col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * + + 61 > ( + - col2 + + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + + 4 * + col0 AS col2 FROM tab0
----
261
291
45

query I rowsort
SELECT ALL col0 * - - 88 AS col2 FROM tab2
----
4048
5632
6600

query II rowsort
SELECT ALL 49 AS col1, col0 + + col2 AS col1 FROM tab1
----
49
144
49
147
49
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2061
SELECT + 54 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 54 / + col2 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + MAX( ALL col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2063
SELECT + MAX ( ALL col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT col1 * + 35 AS col1 FROM tab2
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + MIN( - 27 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2065
SELECT + MIN ( - 27 ) AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT + col0 DIV 64 + + + col1 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-2070
SELECT + col0 / 64 + + + col1 FROM tab2 AS cor0
----
51
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT MIN( DISTINCT - col2 ) + + 13 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 33 * - - col0 ) NOT IN ( 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT MIN ( DISTINCT - col2 ) + + 13 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 33 * - - col0 ) NOT IN ( 93 )
----
NULL

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( ( + col2 ) * - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2073
SELECT ALL - ( + - 83 ) DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - ( + - 83 ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT 47 * 65 + col0 AS col2 FROM tab2
----
3101
3119
3130

query I rowsort
SELECT - ( + + col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 + + 37 FROM tab2
----
104
114
88

query I rowsort
SELECT ALL ( - col0 ) * + + 53 + + + col1 FROM tab0
----
-4590
-5140
-714

query I rowsort
SELECT - 14 AS col2 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT - 25 * - + ( - 48 ) FROM tab0
----
-1200
-1200
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT SUM( + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2080
SELECT SUM ( + + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - 74 IS NOT NULL )
----

query I rowsort
SELECT - col1 + + col1 * + 51 AS col0 FROM tab1
----
2350
250
700

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) - col0 AS col1 FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT DISTINCT + COUNT( * ), - 34 AS col0 FROM tab2 AS cor0
----
3
-34

skipif mysql # not compatible
query II rowsort label-2085
SELECT DISTINCT + COUNT ( * ), - 34 AS col0 FROM tab2 AS cor0
----
3
-34

query I rowsort
SELECT 70 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + ( - ( + col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2088
SELECT - - CAST( NULL AS SIGNED ) AS col1, MIN( + col1 ) FROM tab2 AS cor0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2088
SELECT - - CAST ( NULL AS INTEGER ) AS col1, MIN ( + col1 ) FROM tab2 AS cor0
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT - MIN( 42 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - MIN ( 42 ) FROM tab1 AS cor0
----
-42

query II rowsort
SELECT col1 AS col2, 4 AS col1 FROM tab0 AS cor0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL - COUNT( ALL + + 44 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - COUNT ( ALL + + 44 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - COUNT( - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2092
SELECT - COUNT ( - col1 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 41 * col1 + - - 79 * col2 * + col0
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT - MAX( DISTINCT + - col2 ) * 49 AS col0 FROM tab0 AS cor0
----
490

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) * 49 AS col0 FROM tab0 AS cor0
----
490

query I rowsort
SELECT ALL + - 73 FROM tab0 AS cor0 WHERE NOT ( - 37 NOT BETWEEN - col0 AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 - - - 93 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * 27 FROM tab2 AS cor0
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT + + 21 * + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2099
SELECT + + 21 * + COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT + - 79 FROM tab1 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT - col2 * - 68 + 13 + col0 AS col1 FROM tab0 AS cor0
----
3224
6842
780

query I rowsort
SELECT - - ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - 30 ) NOT BETWEEN col1 AND col1 * ( + 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT COUNT( * ) + - + 18 * 65 AS col2 FROM tab2
----
-1167

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT COUNT ( * ) + - + 18 * 65 AS col2 FROM tab2
----
-1167

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT + col2 * - 43 + - ( col2 ) DIV col1 AS col0 FROM tab1
----
-2548
-2925
-4134

skipif mysql # not compatible
query I rowsort label-2105
SELECT + col2 * - 43 + - ( col2 ) / col1 AS col0 FROM tab1
----
-2548
-2925
-4134

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE + col2 * + 84 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col0 + + 66 FROM tab1
----
-19
-25
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 92 + - - 18 + - col2 + - col0 * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 92 + - - 18 + - col2 + - col0 * + col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 50 + 18 FROM tab1
----
68

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * + + col1 + - + col2 + - - 21 * + col0 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 - - 44 AS col1 FROM tab2
----
108
119
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT ALL CAST( + 29 AS SIGNED ) AS col2 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL CAST ( + 29 AS INTEGER ) AS col2 FROM tab0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL - + 43 + + col1 * + - 89 / col2 - + + col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - + 43 + + col1 * + - 89 / col2 - + + col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT COUNT( col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( col0 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - 26, ( - col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-26
-4896
-26
-5015
-26
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT + CAST( - 86 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-2117
SELECT + CAST ( - 86 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - 96 / - 28 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
-3
3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - col0 <> ( NULL )
----

query II rowsort
SELECT ALL col0 + - - col2 + + col2 AS col1, + col0 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
107
87
109
15
295
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - 81 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT DISTINCT MAX( DISTINCT + CAST( 29 AS SIGNED ) ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT MAX ( DISTINCT + CAST ( 29 AS INTEGER ) ) FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL - SUM( - - 70 ) col1 FROM tab1
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT ALL - SUM ( - - 70 ) col1 FROM tab1
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT COUNT( * ) DIV - 59 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT COUNT ( * ) / - 59 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2126
SELECT - 3 * - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT - 3 * - col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - ( - + 16 ) NOT BETWEEN col0 AND - + col2
----

query II rowsort
SELECT + col2, ( - ( col1 ) ) * col0 + + + 39 + - 22 + + + col2 FROM tab2 AS cor0
----
23
-2306
40
-4871
58
-4950

query I rowsort
SELECT col0 * + 9 AS col2 FROM tab1 AS cor0
----
459
765
819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + - 50 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT - COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2134
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + + 18 * - - 66 BETWEEN + + 48 AND - col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-2134
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + + 18 * - - 66 BETWEEN + + 48 AND - col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT - col0 + + CAST( NULL AS SIGNED ) + - - 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT - col0 + + CAST ( NULL AS INTEGER ) + - - 48 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT CAST( - - 13 AS SIGNED ) + + col0 + col0 + - col1 - + + 77 col2 FROM tab1 AS cor0
----
101
24
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2136
SELECT CAST ( - - 13 AS INTEGER ) + + col0 + col0 + - col1 - + + 77 col2 FROM tab1 AS cor0
----
101
24
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + - COUNT( ALL 91 ) + 80 * 81 FROM tab0 AS cor0
----
6477

skipif mysql # not compatible
query I rowsort label-2137
SELECT + - COUNT ( ALL 91 ) + 80 * 81 FROM tab0 AS cor0
----
6477

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 - - - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2, - 41 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-59
-41
-68
-41
-96
-41

query I rowsort
SELECT ALL - 24 * + - ( + 65 ) + 34 AS col2 FROM tab1 AS cor0
----
1594
1594
1594

query I rowsort
SELECT ALL + + 34 AS col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT ALL 32 + 19 FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT COUNT( ALL - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT COUNT ( ALL - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + 81 + col2 * + + 97 FROM tab2 WHERE NOT ( + col2 ) * 37 + + col1 IS NULL
----
2312
3961
5707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 + + col1 col2 FROM tab2
----
149
165
175

query II rowsort
SELECT col0, ( + 52 ) AS col0 FROM tab1
----
51
52
85
52
91
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT COUNT( * ) FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2150
SELECT COUNT ( * ) FROM tab1, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + 78 - + - SUM( - col1 ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 78 - + - SUM ( - col1 ) AS col2 FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL COUNT( * ) + + - COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT ALL COUNT ( * ) + + - COUNT ( * ) col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT - COUNT( * ) - 93 AS col0 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - COUNT ( * ) - 93 AS col0 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT + 68 * + 54 + - col0 + - col0 FROM tab0 AS cor0
----
3478
3498
3642

query I rowsort
SELECT ALL - 59 * + 62 FROM tab2
----
-3658
-3658
-3658

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT + SUM( + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + SUM ( + - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT ALL - 19 DIV + 45 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - 19 / + 45 * + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT - + 33 AS col1 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - + 48 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT - 17 * + col2 AS col1 FROM tab1
----
-1003
-1156
-1632

query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT ALL 5 DIV + - 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL 5 / + - 95 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE ( + col0 + + 50 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT COUNT( col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT COUNT ( col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col2 + + 90 * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * + ( + - col2 ) FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT ALL + COUNT( * ) DIV - + 1 AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + COUNT ( * ) / - + 1 AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2171
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 52 col1 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT + + col1 + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + + col1 + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT col1 + 76 FROM tab2 AS cor0
----
127
143
153

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT + 39 DIV - col0 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2175
SELECT + 39 / - col0 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col0 + + - col1 + + - 58 AS col2 FROM tab1 AS cor0
----
-123
-148
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT + MIN( DISTINCT - - col1 ) / + 30 FROM tab0 WHERE + - col1 IN ( col2 - - CAST( + + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT + MIN ( DISTINCT - - col1 ) / + 30 FROM tab0 WHERE + - col1 IN ( col2 - - CAST ( + + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + col0 DIV col1 * - col1 FROM tab0 AS cor0
----
-84
-97
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT + col0 / col1 * - col1 FROM tab0 AS cor0
----
-84
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT - - CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT - - CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL COUNT( ( + + 41 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL COUNT ( ( + + 41 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 12 + 1 - col0 AS col2 FROM tab1 cor0
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + SUM( ALL + + col0 ) + 57 AS col1 FROM tab1 AS cor0
----
284

skipif mysql # not compatible
query I rowsort label-2182
SELECT + SUM ( ALL + + col0 ) + 57 AS col1 FROM tab1 AS cor0
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL - + COUNT( + + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - + COUNT ( + + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 + 16 FROM tab1 AS cor0
----
-35
-69
-75

query II rowsort
SELECT DISTINCT 7 AS col1, col1 FROM tab2 AS cor0
----
7
51
7
67
7
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT col1 + - + CAST( - - col2 AS SIGNED ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2186
SELECT col1 + - + CAST ( - - col2 AS INTEGER ) FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL + col2 + + - 55 * + ( col1 ) FROM tab0
----
-1145
-4408
44

query I rowsort
SELECT DISTINCT - + 25 * + - 62 FROM tab0 WHERE + 98 IN ( col0, 36 * col0 )
----

query I rowsort
SELECT ALL 8 * - 36 + + - 3 FROM tab2
----
-291
-291
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + ( - + col2 ) + + col2 col0 FROM tab0
----
42
42
42

query III rowsort
SELECT * FROM tab1 WHERE - 72 * - col0 * + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 96 - 84 FROM tab1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab0 WHERE ( NULL ) IS NULL
----
36
36
36

query II rowsort
SELECT DISTINCT + + col1 - 46, ( - 52 ) * 23 + + 23 + - - col1 AS col0 FROM tab0 AS cor0
----
-25
-1152
-45
-1172
35
-1092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 50 * 17 * col2 col2 FROM tab0 AS cor0
----
39950
84150
8500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 82 FROM tab2
----
-4182
-5494
-6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col0 + - col2 AND col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2201
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 14 + + 5 / + + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - - SUM( ( - 16 ) ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - SUM ( ( - 16 ) ) AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query II rowsort
SELECT col0, col0 * col1 * - 5 AS col2 FROM tab1 AS cor0
----
51
-3570
85
-2125
91
-21385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2206
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 NOT BETWEEN + col2 AND + 98 + + col0 * CAST( 76 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2206
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 NOT BETWEEN + col2 AND + 98 + + col0 * CAST ( 76 AS INTEGER )
----

query I rowsort
SELECT ALL col1 * - 95 AS col2 FROM tab2 cor0
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE - col2 * - col2 >= - + 92
----
3

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE - col2 * - col2 >= - + 92
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ALL + 70 DIV col2 * + 56 AS col1 FROM tab0
----
0
392
56

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + 70 / col2 * + 56 AS col1 FROM tab0
----
0
392
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2210
SELECT ALL * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2210
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT SUM( DISTINCT col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2211
SELECT SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT - 0 * - col0 * - 71 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT + + col2 DIV - - ( - + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + col2 / - - ( - + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( 34 + + ( - col2 ) + col0 * col2 * - + col2 + - + col0, 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 39 + 89 AS col2 FROM tab2
----
128
128
128

query I rowsort
SELECT - 5 + - col0 FROM tab2
----
-51
-69
-80

query I rowsort
SELECT ALL 22 * - 89 * ( - + 36 ) + - col0 FROM tab1
----
70397
70403
70437

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT - 85 + 0 DIV + - 80 AS col2 FROM tab2 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 85 + 0 / + - 80 AS col2 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT 3 + - 22 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT ALL - ( + - col2 ) * col1 - 61 AS col1 FROM tab2 cor0
----
1112
3019
3825

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab1 cor0
----
-14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col2 + col2
----

query I rowsort
SELECT + + 71 * 84 + col0 FROM tab0 AS cor0
----
5979
6051
6061

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + MIN( ALL - - 44 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2224
SELECT + MIN ( ALL - - 44 ) FROM tab1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT + 16 * 65 DIV + ( - 55 ) - + COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2225
SELECT + 16 * 65 / + ( - 55 ) - + COUNT ( * ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT 24 + - col0 FROM tab1
----
-27
-61
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT DISTINCT 58 AS col0, - COUNT( * ) FROM tab1
----
58
-3

skipif mysql # not compatible
query II rowsort label-2227
SELECT DISTINCT 58 AS col0, - COUNT ( * ) FROM tab1
----
58
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 56 * - - 34 + + col2 IS NULL
----

query I rowsort
SELECT - col1 - ( + 92 ) FROM tab1
----
-106
-139
-97

query I rowsort
SELECT + 85 AS col2 FROM tab1 AS cor0 WHERE NOT - 99 + + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + ( + 44 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 1 + - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL COUNT( * ) FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COUNT ( * ) FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT 40 * 26 * + COUNT( * ) AS col2 FROM tab2
----
3120

skipif mysql # not compatible
query I rowsort label-2233
SELECT 40 * 26 * + COUNT ( * ) AS col2 FROM tab2
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL + COUNT( - 79 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + COUNT ( - 79 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - - col2 AND 53
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT ALL - AVG ( - 98 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - AVG ( - 98 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 23 * + - col2 * + + col0 FROM tab1 AS cor0
----
112608
115345
142324

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL CAST( ( 42 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE + col1 NOT IN ( - + ( - - col0 ) + - col1 )
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL CAST ( ( 42 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE + col1 NOT IN ( - + ( - - col0 ) + - col1 )
----
42
42
42

query II rowsort
SELECT col2 AS col1, - col2 FROM tab2
----
23
-23
40
-40
58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col0 - - + col1 * - col1 * + 20 * - 4 col2 FROM tab0
----
178
35388
524976

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT - COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2242
SELECT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - 61 * - 62 * + col2 AS col2 FROM tab0 AS cor0
----
177754
374418
37820

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 53 + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + - ( - col2 ) * - + col0 AS col2 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT - col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + 20 AS col1 FROM tab1 cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL - + COUNT( ALL + 10 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - + COUNT ( ALL + 10 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT + 54 + + 48 + - + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2250
SELECT DISTINCT + 54 + + 48 + - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
93

query I rowsort
SELECT ALL col0 * 53 + - col1 + + col0 - col0 AS col2 FROM tab0
----
4590
5140
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE + 28 = NULL
----

skipif mysql # not compatible
query I rowsort label-2253
SELECT + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE + 28 = NULL
----

query I rowsort
SELECT ALL - ( col2 ) * + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL COUNT( * ) - 65 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL COUNT ( * ) - 65 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + - ( + + 66 ) - COUNT( * ) AS col0 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2256
SELECT + - ( + + 66 ) - COUNT ( * ) AS col0 FROM tab1 cor0
----
-69

query I rowsort
SELECT - col0 + 91 AS col0 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT ALL + + 42 AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + 28 - col2 * - ( + + ( - 41 ) ) FROM tab0 AS cor0
----
-1899
-382
-4031

query I rowsort
SELECT - 56 + - col2 AS col0 FROM tab0 AS cor0
----
-103
-155
-66

query I rowsort
SELECT - ( - - 72 ) + - + 86 AS col1 FROM tab0
----
-158
-158
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT DISTINCT COUNT( * ) DIV 55 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT COUNT ( * ) / 55 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT ALL - col0 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - col0 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + + col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL MIN( ALL + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL MIN ( ALL + + col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2267
SELECT - 17 * + CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2267
SELECT - 17 * + CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT ALL - col0 DIV col0 * - 95 FROM tab2 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - col0 / col0 * - 95 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2270
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 92 AS col2 FROM tab0 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ( COUNT( * ) ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2273
SELECT ( COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - COUNT( * ) + 90 AS col1 FROM tab2 WHERE NOT + - 8 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-2274
SELECT - COUNT ( * ) + 90 AS col1 FROM tab2 WHERE NOT + - 8 IS NULL
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 col1, 61 FROM tab2
----
23
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2276
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT - 54 * ( 98 ) FROM tab0 AS cor0
----
-5292
-5292
-5292

query II rowsort
SELECT col1, + col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT + - 77, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-2279
SELECT + - 77, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT + 67 DIV + - col1 AS col0 FROM tab0 AS cor0
----
-3
-67
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT + 67 / + - col1 AS col0 FROM tab0 AS cor0
----
-3
-67
0

query I rowsort
SELECT ALL - - 97 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
97
97
97

query I rowsort
SELECT + col0 + + 76 FROM tab0 AS cor0
----
163
173
91

query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1344
295
3196

query II rowsort
SELECT ALL - 96 AS col1, + 36 AS col1 FROM tab1 AS cor0
----
-96
36
-96
36
-96
36

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE - col0 <> + ( col2 ) * col0 + col0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL MIN( - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL MIN ( - - col0 ) FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 14 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 + col0 col1 FROM tab1
----
143
177
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 90 col1 FROM tab1
----
104
137
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL + COUNT( col1 ) + - MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + COUNT ( col1 ) + - MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 54 col0, col0 FROM tab0
----
2538
15
5346
97
540
87

query I rowsort
SELECT DISTINCT - 65 * + ( + col0 ) * 7 + - col0 - + 78 - + - col0 FROM tab2
----
-21008
-29198
-34203

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - 66 + - col1 FROM tab1 AS cor0
----
3889
4441
6322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT CAST( NULL AS SIGNED ) + - - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2295
SELECT CAST ( NULL AS INTEGER ) + - - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE ( - col2 ) > ( NULL )
----

query I rowsort
SELECT ALL + col0 + - 8 + + + col1 + 65 * + + 76 AS col1 FROM tab1
----
4997
5022
5070

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT 11 AS col2, + COUNT( * ) + + 76 AS col2 FROM tab0 AS cor0
----
11
79

skipif mysql # not compatible
query II rowsort label-2298
SELECT 11 AS col2, + COUNT ( * ) + + 76 AS col2 FROM tab0 AS cor0
----
11
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2299
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + ( + - 4 ) ) + + col1 > - col0 * 3 - CAST( NULL AS SIGNED ) / - col0
----

skipif mysql # not compatible
query III rowsort label-2299
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + ( + - 4 ) ) + + col1 > - col0 * 3 - CAST ( NULL AS INTEGER ) / - col0
----

query I rowsort
SELECT 37 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT COUNT( * ) * + MIN( DISTINCT - col2 ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2302
SELECT COUNT ( * ) * + MIN ( DISTINCT - col2 ) AS col0 FROM tab1
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 73 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - col2 ) <= - 22
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - col2 ) <= - 22
----
0

query I rowsort
SELECT ALL + - col1 - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + + 26 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2307
SELECT MIN ( ALL col2 ) FROM tab1
----
59

query I rowsort
SELECT ALL col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + ( - - 61 ) ) * col2 col2 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT col1 * + + col0 * col0 + - CAST( NULL AS SIGNED ) * col1 + + + col0 FROM tab2 WHERE - 67 * + - col2 IS NOT NULL OR col0 * col1 > - - col2 * + + col2 + col0 * - - col0 * - ( + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT col1 * + + col0 * col0 + - CAST ( NULL AS INTEGER ) * col1 + + + col0 FROM tab2 WHERE - 67 * + - col2 IS NOT NULL OR col0 * col1 > - - col2 * + + col2 + col0 * - - col0 * - ( + - 54 )
----
NULL

query I rowsort
SELECT - ( + 10 ) FROM tab2
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + SUM( ALL 23 ) FROM tab1 WHERE NOT 44 - + col0 + - 95 + + + col2 * + - col2 * + 96 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + SUM ( ALL 23 ) FROM tab1 WHERE NOT 44 - + col0 + - 95 + + + col2 * + - col2 * + 96 <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0 WHERE NOT col2 <> + - 58
----

query II rowsort
SELECT 14 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
14
23
14
40
14
58

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( 26 ) col1 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT + 76 DIV - 39 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2320
SELECT + 76 / - 39 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2321
SELECT CAST( NULL AS SIGNED ) * + COUNT( - + 50 ) AS col1, - 2 FROM tab0 AS cor0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2321
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( - + 50 ) AS col1, - 2 FROM tab0 AS cor0
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT SUM( - - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2322
SELECT SUM ( - - col0 ) AS col0 FROM tab0
----
199

query II rowsort
SELECT ALL col0 AS col1, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT - CAST( - 59 AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - CAST ( - 59 AS INTEGER ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT - COUNT( 37 ) * - 75 * + SUM( - col1 ) + - 92 FROM tab0
----
-23267

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - COUNT ( 37 ) * - 75 * + SUM ( - col1 ) + - 92 FROM tab0
----
-23267

query I rowsort
SELECT 68 + - col1 AS col2 FROM tab0
----
-13
47
67

query I rowsort
SELECT ALL + col0 + - + col2 * + + 28 AS col0 FROM tab0
----
-1301
-193
-2675

query I rowsort
SELECT col2 + - col0 + + 63 FROM tab1
----
108
37
40

query I rowsort
SELECT ALL 49 + - col1 AS col1 FROM tab1
----
2
35
44

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT ( - - 16 ) <> NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT + - ( + col1 ) + - 69 IN ( + 91, col1 * - + 2 + - col0 )
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE 14 IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, + col2 * - col0 + col1 AS col1 FROM tab1 cor0
----
51
-4882
85
-5010
91
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - MAX( ALL + col2 ) - - COUNT( * ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - MAX ( ALL + col2 ) - - COUNT ( * ) AS col1 FROM tab1
----
-93

query I rowsort
SELECT ALL + 15 * - col2 - col1 + - col0 FROM tab0 AS cor0
----
-1583
-258
-801

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 21 + - 20 * + col0 >= + 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2339
SELECT * FROM tab1 AS cor0 WHERE + CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2339
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT COUNT( * ) * - 75 AS col0 FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2340
SELECT COUNT ( * ) * - 75 AS col0 FROM tab2 cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + MIN( ALL - col2 ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2342
SELECT + MIN ( ALL - col2 ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT + COUNT( * ) * - 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + COUNT ( * ) * - 68 FROM tab0
----
-204

query I rowsort
SELECT ALL + 98 * - - 59 FROM tab2
----
5782
5782
5782

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + - + 68 / - - 26 <= + + col1 * + - ( - 66 ) / + + ( + 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2346
SELECT ALL 95 DIV - COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 95 / - COUNT ( * ) FROM tab2
----
-31

query I rowsort
SELECT ALL - ( 94 ) AS col2 FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, - 98 / + - col0 * col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL - SUM( col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - SUM ( col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + col2, col0 * ( - 99 ) * col0 AS col1 FROM tab1 AS cor0
----
59
-715275
68
-819819
96
-257499

query I rowsort
SELECT ALL col0 * + col2 * - 21 FROM tab1 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT DISTINCT 62 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
62

query I rowsort
SELECT - + ( 10 ) * + 29 + + + 5 * + - col2 AS col1 FROM tab2 cor0
----
-405
-490
-580

query II rowsort
SELECT ALL - - col2 + + + col1 + - ( + col1 ) AS col0, + 47 AS col1 FROM tab1 AS cor0
----
59
47
68
47
96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT MIN( DISTINCT col0 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2356
SELECT MIN ( DISTINCT col0 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT 49 * - - 84 + + 0 + col1 * + col0 - - - 37 AS col2 FROM tab1 AS cor0
----
4504
4793
8356

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT COUNT( * ), - COUNT( * ) + + 62 AS col0 FROM tab0
----
3
59

skipif mysql # not compatible
query II rowsort label-2361
SELECT COUNT ( * ), - COUNT ( * ) + + 62 AS col0 FROM tab0
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT 91 * + COUNT( * ) + 94 FROM tab0
----
367

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 91 * + COUNT ( * ) + 94 FROM tab0
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + COUNT( ALL col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2363
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + 97 + + ( + COUNT( * ) ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 97 + + ( + COUNT ( * ) ) AS col2 FROM tab0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab1 WHERE + col0 IS NOT NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + MAX( ALL + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2366
SELECT + MAX ( ALL + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT + + col2 + 98 AS col1 FROM tab1 AS cor0
----
157
166
194

query II rowsort
SELECT ALL 12 AS col2, col0 FROM tab1
----
12
51
12
85
12
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col2 col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT + 75 - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT + 75 - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT + col1 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2372
SELECT + col1 / - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE NOT 98 = - - col1 / + col0 * - + 26 - + col0 + + + ( 24 ) / 19 + + col2 + - - 1
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2374
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - - col2 / + CAST( + 93 AS SIGNED ) < col1 / - col0
----

skipif mysql # not compatible
query III rowsort label-2374
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - - col2 / + CAST ( + 93 AS INTEGER ) < col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL + COUNT( * ) * - COUNT( ALL + - col1 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + COUNT ( * ) * - COUNT ( ALL + - col1 ) FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 43 col0 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE ( NOT col1 - - col2 IS NULL )
----
14
47
5

query II rowsort
SELECT ALL ( + 30 ), col2 FROM tab0
----
30
10
30
47
30
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT MIN( DISTINCT + - col1 ) * - 1 * - COUNT( DISTINCT - - col2 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2380
SELECT MIN ( DISTINCT + - col1 ) * - 1 * - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0
----
-243

query II rowsort
SELECT col0 * - 1, col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2382
SELECT - col1 * col0 * CAST( NULL AS DECIMAL ) AS col1, + 32 AS col1 FROM tab2
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-2382
SELECT - col1 * col0 * CAST ( NULL AS REAL ) AS col1, + 32 AS col1 FROM tab2
----
NULL
32
NULL
32
NULL
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2383
SELECT DISTINCT 5 * CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT 5 * CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL MAX ( ALL - col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2385
SELECT + ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT - + col2 + - col2 * + 73 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT 35 * + - CAST( NULL AS SIGNED ) / col1 + - + col1 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2389
SELECT DISTINCT 35 * + - CAST ( NULL AS INTEGER ) / col1 + - + col1 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT col1 * CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND ( - col1 * + 12 )
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT col1 * CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND ( - col1 * + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT + MIN( col2 ) FROM tab1 AS cor0 WHERE NOT 99 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT + MIN ( col2 ) FROM tab1 AS cor0 WHERE NOT 99 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 62 * - + 46 + 65 AS col2 FROM tab1 AS cor0
----
2917

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND - ( + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - ( + + 35 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT ( + 59 ) DIV - col1 - - - 81 + + + col0 FROM tab0 AS cor0
----
-43
-66
4

skipif mysql # not compatible
query I rowsort label-2395
SELECT ( + 59 ) / - col1 - - - 81 + + + col0 FROM tab0 AS cor0
----
-43
-66
4

query I rowsort
SELECT ALL ( + - ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + 39 + + col0 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT COUNT( DISTINCT col1 ) + + 72 AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2398
SELECT COUNT ( DISTINCT col1 ) + + 72 AS col0 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2399
SELECT + + CAST( - - col0 AS SIGNED ) + - col0 AS col1, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-2399
SELECT + + CAST ( - - col0 AS INTEGER ) + - col0 AS col1, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

query I rowsort
SELECT + col2 + + 31 FROM tab2
----
54
71
89

query I rowsort
SELECT ALL - 64 + + col0 FROM tab2
----
-18
0
11

query I rowsort
SELECT - col0 + + col1 * 90 FROM tab0
----
-7
1803
7275

query I rowsort
SELECT ALL + col2 * - 21 * + + col2 + + col1 - col1 FROM tab2
----
-11109
-33600
-70644

query I rowsort
SELECT - 29 + col1 FROM tab0
----
-28
-8
52

query I rowsort
SELECT ALL - + 61 + + + col2 AS col0 FROM tab0 AS cor0
----
-14
-51
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 89 IS NULL
----

query I rowsort
SELECT + 14 * - col0 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + ( 82 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2408
SELECT + ( 82 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
246

query I rowsort
SELECT ALL 26 - - ( - 12 ) + + + 82 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2410
SELECT * FROM tab2 WHERE col2 - + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2410
SELECT * FROM tab2 WHERE col2 - + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + - 20 * + col1 + + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2412
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

query III rowsort
SELECT col1, + col1 * + - 33 AS col1, - col1 FROM tab1 AS cor0
----
9 values hashing to ca48790e70affcb7916089e270ce9ffd

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT SUM( ALL + 39 ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT SUM ( ALL + 39 ) FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT MAX( + 8 ) DIV 96 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT MAX ( + 8 ) / 96 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL - CAST( - - COUNT( + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - CAST ( - - COUNT ( + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - - 30 * - - col1 AS col0 FROM tab1 AS cor0
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT COUNT( + 43 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( + 43 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col0 AS col2, ( - 52 ) FROM tab2 AS cor0
----
-46
-52
-64
-52
-75
-52

query I rowsort
SELECT ALL + ( col0 ) * 65 AS col0 FROM tab0 AS cor0
----
5655
6305
975

query II rowsort
SELECT col2 AS col2, - col2 AS col1 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - + col2 * col2 <> + col1 - - 14 * - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 1 * + 62 * + 21 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 47 >= col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT CAST( NULL AS SIGNED ) * - 42 * + 79 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT CAST ( NULL AS INTEGER ) * - 42 * + 79 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 40 col0 FROM tab0
----
1880
3960
400

query I rowsort
SELECT + 69 * 89 FROM tab0
----
6141
6141
6141

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col2 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT - col2 * - - 66 + + col0 AS col2 FROM tab2
----
-1472
-2576
-3753

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT - COUNT( * ) * + COUNT( DISTINCT col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT - COUNT ( * ) * + COUNT ( DISTINCT col1 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT + 30 * - 19 * - - SUM( - col1 ) col1 FROM tab2 AS cor0
----
111150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT DISTINCT + 30 * - 19 * - - SUM ( - col1 ) col1 FROM tab2 AS cor0
----
111150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) + - + ( 54 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - + ( 54 ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col0 + + 95, col1 FROM tab1 cor0
----
146
14
180
5
186
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2436
SELECT ALL CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) DIV - 85 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) / - 85 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL COUNT( * ) * + COUNT( * ) + - + MAX( - + 28 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL COUNT ( * ) * + COUNT ( * ) + - + MAX ( - + 28 ) FROM tab0 AS cor0
----
37

query II rowsort
SELECT - 10 AS col2, col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0, + 88 * + 90 AS col1 FROM tab1
----
51
7920
85
7920
91
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + - ( - - col1 ) col0 FROM tab0
----
1701
21
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2442
SELECT ALL - + COUNT( * ) DIV + 50 + + COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col0 > - CAST( - 93 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - + COUNT ( * ) / + 50 + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col0 > - CAST ( - 93 AS INTEGER )
----
3

query I rowsort
SELECT - 0 * - 86 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + 68 * COUNT( * ) + - 80 - + + 11 + + 32 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + 68 * COUNT ( * ) + - 80 - + + 11 + + 32 FROM tab0 AS cor0
----
145

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab1 cor0
----
-6

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT + SUM( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + 49 - 36 * - col2 AS col1 FROM tab2
----
1489
2137
877

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT - MAX( ALL + ( col2 ) ) + - COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - MAX ( ALL + ( col2 ) ) + - COUNT ( * ) FROM tab0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT - 80 DIV + col1 + + 4 AS col2 FROM tab0
----
-76
1
4

skipif mysql # not compatible
query I rowsort label-2451
SELECT - 80 / + col1 + + 4 AS col2 FROM tab0
----
-76
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT 10 + COUNT( DISTINCT col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT 10 + COUNT ( DISTINCT col2 ) FROM tab0
----
13

query I rowsort
SELECT + 46 * + ( + col0 ) + - col1 AS col2 FROM tab0
----
3981
4461
609

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL 66 * 26 + - COUNT( * ) FROM tab0
----
1713

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL 66 * 26 + - COUNT ( * ) FROM tab0
----
1713

query I rowsort
SELECT DISTINCT + 35 FROM tab0 WHERE ( - col0 + - col1 ) <= col1
----
35

query I rowsort
SELECT ALL + ( - 8 ) AS col1 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col2 + 40 * col1 FROM tab2 WHERE 76 * - col1 - 54 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2458
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2458
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * 26 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE col0 * 72 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2460
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE col0 * 72 IS NULL
----

query I rowsort
SELECT DISTINCT 60 + col2 FROM tab1 WHERE NOT col2 + col2 NOT BETWEEN + 5 * - col2 AND - ( - col0 ) - + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 64 IN ( col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL MIN ( ALL col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2464
SELECT MAX ( DISTINCT + col1 ) FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( col1 ) + + col1 )
----

query I rowsort
SELECT ALL + ( 11 ) FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT - 10 * ( 42 * + col0 ) FROM tab2
----
-19320
-26880
-31500

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT ( SUM( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT ( SUM ( + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT - 72 * + col1 FROM tab1 WHERE NOT col2 * + 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 26 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - MIN( col2 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - MIN ( col2 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 53 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 97 * - col0 AS col2 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT - CAST( 87 AS SIGNED ) + - ( ( - 9 ) ) * + col1 AS col0 FROM tab2 AS cor0 WHERE + col1 + 40 IS NOT NULL
----
372
516
606

skipif mysql # not compatible
query I rowsort label-2478
SELECT - CAST ( 87 AS INTEGER ) + - ( ( - 9 ) ) * + col1 AS col0 FROM tab2 AS cor0 WHERE + col1 + 40 IS NOT NULL
----
372
516
606

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT - 46 * 16 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-736
-736
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT 45 + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 45 + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2
----
40

query I rowsort
SELECT DISTINCT - 58 + col2 AS col1 FROM tab0
----
-11
-48
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2484
SELECT ALL * FROM tab0 WHERE + 31 > CAST( + col1 AS SIGNED ) / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2484
SELECT ALL * FROM tab0 WHERE + 31 > CAST ( + col1 AS INTEGER ) / CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + MIN( 62 ) * 51 FROM tab1 WHERE col2 * 26 + + col0 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT + MIN ( 62 ) * 51 FROM tab1 WHERE col2 * 26 + + col0 BETWEEN NULL AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL - MIN( DISTINCT col1 ) FROM tab2 WHERE ( + 27 + - col0 ) IN ( col0 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab2 WHERE ( + 27 + - col0 ) IN ( col0 * col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL 18 + - SUM( 23 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL 18 + - SUM ( 23 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 / col2 ) > ( - 49 + + col0 )
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab0 AS cor0 WHERE + col2 <= ( 80 )
----
89

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT ALL + + ( col1 ) DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + + ( col1 ) / col0 AS col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + + COUNT( * ) - - 70 AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2492
SELECT + + COUNT ( * ) - - 70 AS col1 FROM tab1 AS cor0
----
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT IN ( + col2 * + col1 - - 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col2 ) - - col2 AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT ALL - col0 DIV 80 - + 18 FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - col0 / 80 - + 18 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + 22 * + 15 + + col0 AS col2 FROM tab1 AS cor0
----
381
415
421

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT COUNT( col2 ) + - COUNT( DISTINCT 6 + col2 * col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT COUNT ( col2 ) + - COUNT ( DISTINCT 6 + col2 * col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT + + col1 DIV 26 + col2 AS col2 FROM tab0 AS cor0
----
10
50
99

skipif mysql # not compatible
query I rowsort label-2499
SELECT + + col1 / 26 + col2 AS col2 FROM tab0 AS cor0
----
10
50
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT DISTINCT + + ( CAST( - ( - col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + + ( CAST ( - ( - col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col2 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL col1 + + 3 FROM tab2
----
54
70
80

query I rowsort
SELECT DISTINCT + 45 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT + SUM( ALL - + 66 ) + + 55 FROM tab2
----
-143

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT + SUM ( ALL - + 66 ) + + 55 FROM tab2
----
-143

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab1 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + - col1 col1 FROM tab2
----
-107
-81
-97

query I rowsort
SELECT 9 AS col2 FROM tab2 WHERE col1 > ( col0 )
----
9
9

query I rowsort
SELECT DISTINCT col0 + - + 82 AS col2 FROM tab1
----
-31
3
9

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + ( + col0 ) / + 6 ) AND + col1
----

query I rowsort
SELECT ALL + 93 + - - 6 AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT DISTINCT - col1 + + + col2 * 50 FROM tab0
----
2269
479
4949

query I rowsort
SELECT ALL - 89 * col2 + + col2 * col1 AS col2 FROM tab0
----
-376
-680
-8712

query I rowsort
SELECT ALL + col2 + 71 + col2 AS col0 FROM tab2 AS cor0
----
117
151
187

query I rowsort
SELECT ALL + col1 * + col1 FROM tab1 AS cor0 WHERE ( + col0 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - + MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND col1
----
0

query I rowsort
SELECT DISTINCT + 91 + - col2 AS col2 FROM tab2 WHERE NOT ( + - 66 ) IS NULL
----
33
51
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT - COUNT( * ) * + 48 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - COUNT ( * ) * + 48 FROM tab2
----
-144

query I rowsort
SELECT ALL - 57 * - 54 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL <> + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + + COUNT( + 15 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2523
SELECT + + COUNT ( + 15 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + + col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL col0, + col2 * 38 AS col0 FROM tab0 AS cor0
----
15
1786
87
380
97
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 49 col1 FROM tab1 AS cor0 WHERE NOT 96 IN ( - - col1 * col2 )
----
108
117
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT - SUM( - col2 ) / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - SUM ( - col2 ) / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL SUM( DISTINCT col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL SUM ( DISTINCT col0 ) FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT ALL col0 + + col2 + - + 86 DIV + col1 + col1 AS col2 FROM tab0
----
111
114
142

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL col0 + + col2 + - + 86 / + col1 + col1 AS col2 FROM tab0
----
111
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL > + col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN + col2 AND ( + 3 ) / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * col0 / col0 + - col0 <= ( 42 )
----

query I rowsort
SELECT ALL 70 + + col0 AS col1 FROM tab1 AS cor0
----
121
155
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + 29 ) NOT BETWEEN ( col1 * - col0 * - col1 ) AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 29 ) NOT BETWEEN ( col1 * - col0 * - col1 ) AND ( col1 )
----
0

query I rowsort
SELECT DISTINCT - col1 + + - col2 + - 25 + - + 81 * + col0 AS col1 FROM tab0 AS cor0
----
-1368
-7103
-7982

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 + + - col1 + col0 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + - - MIN( ALL - + col0 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + - - MIN ( ALL - + col0 ) AS col1 FROM tab0
----
-96

query I rowsort
SELECT 65 + + + col1 FROM tab1
----
112
70
79

query II rowsort
SELECT col1, 83 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT COUNT( * ) * 78 + - COUNT( * ) * + - ( COUNT( * ) ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT COUNT ( * ) * 78 + - COUNT ( * ) * + - ( COUNT ( * ) ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - MAX( + - 12 ) + - 72 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2545
SELECT - MAX ( + - 12 ) + - 72 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT col1 + - + col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL col2 / + - col2 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL col2 / + - col2 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 90 FROM tab2 AS cor0 WHERE NOT + col2 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col2 FROM tab2 cor0
----
-71

query II rowsort
SELECT + col1 AS col1, - col0 * - col2 * - col0 FROM tab1 AS cor0
----
14
-249696
47
-563108
5
-426275

query II rowsort
SELECT DISTINCT 82 * - 49 AS col1, 89 FROM tab0
----
-4018
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2553
SELECT CAST( NULL AS SIGNED ) - + CAST( - + 80 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-2553
SELECT CAST ( NULL AS INTEGER ) - + CAST ( - + 80 AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( + + col2 - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 25 + col1 + col1 AS col2 FROM tab2
----
127
159
179

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-46
-64
-75

query I rowsort
SELECT - col1 * + col0 * col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2559
SELECT * FROM tab0 WHERE NOT ( + - col1 + CAST( NULL AS SIGNED ) ) BETWEEN + col1 AND + ( - 78 )
----

skipif mysql # not compatible
query III rowsort label-2559
SELECT * FROM tab0 WHERE NOT ( + - col1 + CAST ( NULL AS INTEGER ) ) BETWEEN + col1 AND + ( - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 29 AS col0, + col2 col0 FROM tab0 AS cor0
----
-29
10
-29
47
-29
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2561
SELECT - 69 col0, CAST( NULL AS SIGNED ) + - - col2 FROM tab2 AS cor0
----
-69
NULL
-69
NULL
-69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2561
SELECT - 69 col0, CAST ( NULL AS INTEGER ) + - - col2 FROM tab2 AS cor0
----
-69
NULL
-69
NULL
-69
NULL

query I rowsort
SELECT - 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT 57 * + 6 * 69 AS col2 FROM tab0
----
23598
23598
23598

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2565
SELECT + 93 * + CAST( NULL AS SIGNED ) AS col1, 15 + + col2 FROM tab0 cor0
----
NULL
114
NULL
25
NULL
62

skipif mysql # not compatible
query II rowsort label-2565
SELECT + 93 * + CAST ( NULL AS INTEGER ) AS col1, 15 + + col2 FROM tab0 cor0
----
NULL
114
NULL
25
NULL
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT - col2 DIV - - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT - col2 / - - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - 91 + + ( 10 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * - col1 * - + 14 / + col0 ) >= - 16 / + 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 95, col0 FROM tab1
----
95
51
95
85
95
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT + 14 DIV - 11 + 80 * col0 AS col2 FROM tab2
----
3679
5119
5999

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + 14 / - 11 + 80 * col0 AS col2 FROM tab2
----
3679
5119
5999

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT - COUNT( DISTINCT col0 ) * + COUNT( * ) + + 26 AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT - COUNT ( DISTINCT col0 ) * + COUNT ( * ) + + 26 AS col2 FROM tab1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2574
SELECT ALL + col0 AS col0, + 65 + - CAST( + ( col0 ) AS SIGNED ) AS col2 FROM tab0
----
15
50
87
-22
97
-32

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL + col0 AS col0, + 65 + - CAST ( + ( col0 ) AS INTEGER ) AS col2 FROM tab0
----
15
50
87
-22
97
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT DISTINCT col0 DIV - col0 + - ( - - 55 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT col0 / - col0 + - ( - - 55 ) FROM tab1
----
-56

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 54 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - + COUNT( * ) + COUNT( 35 ) + - 73 AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2578
SELECT - + COUNT ( * ) + COUNT ( 35 ) + - 73 AS col2 FROM tab0 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 66 AND - - 12 - + col0
----

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + 15 - - - col1 * + 47 FROM tab0 AS cor0
----
-3777
-885
65

query I rowsort
SELECT DISTINCT col2 - - col1 - - - col1 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col2 + + 82 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT - 10 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-2585
SELECT - 10 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - MAX( - - ( 98 ) ) + 63 AS col2 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2586
SELECT - MAX ( - - ( 98 ) ) + 63 AS col2 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + + 11 - 14 * - col0 * - col2 FROM tab2 AS cor0
----
-14801
-35829
-60889

query I rowsort
SELECT + 68 + ( + + col1 ) FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT ALL - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT 73 + col2 FROM tab2 AS cor0
----
113
131
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE 50 - - 21 - ( + 22 ) < col1 / ( - 35 ) * col2
----

query I rowsort
SELECT - col0 + - + col1 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT DISTINCT - 26 * + COUNT( * ) + - + 65 FROM tab2 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - 26 * + COUNT ( * ) + - + 65 FROM tab2 AS cor0
----
-143

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + SUM( col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + SUM ( col0 ) FROM tab1
----
227

query I rowsort
SELECT + 43 * - 36 FROM tab2
----
-1548
-1548
-1548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * 55 + 4
----

query I rowsort
SELECT DISTINCT + + 0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL IS NULL ) OR NOT + - col0 * - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + + CAST( 32 AS SIGNED ) AS col0 FROM tab2 WHERE NOT 74 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2604
SELECT + + CAST ( 32 AS INTEGER ) AS col0 FROM tab2 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 + - + col0 * + - col0 * + ( + col2 ) * - 52 AS col0, + col0 + col2 FROM tab2 AS cor0
----
-16965075
133
-2530782
69
-8519744
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT ALL + 62 + - ( - col1 ) FROM tab0 cor0 WHERE NOT - ( col0 ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 62 + - ( - col1 ) FROM tab0 cor0 WHERE NOT - ( col0 ) > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 45 ) IN ( + + col1, - col2 * + + col0 )
----

query I rowsort
SELECT col2 + - 86 FROM tab1 AS cor0
----
-18
-27
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2612
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT ALL + col0 / - col2 * - - CAST( NULL AS SIGNED ) + - col2 col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2614
SELECT ALL + col0 / - col2 * - - CAST ( NULL AS INTEGER ) + - col2 col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col2 ) + - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 20 ) > col0
----
15
81
47

query II rowsort
SELECT DISTINCT 84 + + 22 AS col1, + col1 AS col2 FROM tab0
----
106
1
106
21
106
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + SUM( + 77 ) AS col1 FROM tab1, tab0 AS cor0
----
693

skipif mysql # not compatible
query I rowsort label-2619
SELECT + SUM ( + 77 ) AS col1 FROM tab1, tab0 AS cor0
----
693

query I rowsort
SELECT DISTINCT + col0 + + col2 + 30 + col0 FROM tab2
----
145
198
238

query III rowsort
SELECT * FROM tab0 WHERE 13 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + - col2 = NULL OR 79 NOT BETWEEN ( + - 97 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 55 - 32 AS col1 FROM tab0 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 >= + 97 * - col1 * + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48, 96 col0 FROM tab0 AS cor0
----
48
96
48
96
48
96

query II rowsort
SELECT - + col1 AS col2, + 73 FROM tab2 AS cor0
----
-51
73
-67
73
-77
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + col2 * + + ( + + ( - col0 ) ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT ( MAX( DISTINCT + + 45 ) ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT ( MAX ( DISTINCT + + 45 ) ) FROM tab1
----
45

query I rowsort
SELECT ( + - col1 ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col0 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT ALL ( - 29 ) * - - col2 AS col2 FROM tab2 AS cor0
----
-1160
-1682
-667

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + 33 * + 19 AND ( col0 + - - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - COUNT( DISTINCT - col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT - COUNT ( DISTINCT - col2 ) col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 - - col2 BETWEEN col0 AND col0 / - - col0 + 34 * + + col1 + 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + + + ( + - 58 ) col2 FROM tab2 cor0
----
2288
4870
4967

query II rowsort
SELECT DISTINCT + 25, 3 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - col0 * ( + col1 ) * ( 62 ) AS col2 FROM tab1 cor0
----
2239750
2257668
24130834

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + ( - col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - - 78 ) * - col0 * 74 FROM tab2 AS cor0
----
-265512
-369408
-432900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) IN ( - - col1, col2 * + 68 )
----

query I rowsort
SELECT - col2 + + + 39 FROM tab1 AS cor0
----
-20
-29
-57

query I rowsort
SELECT ALL col2 * + - 23 * + - 6 AS col2 FROM tab0
----
13662
1380
6486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2649
SELECT ALL col0 + + ( - + ( 73 ) ) AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
-58
NULL
14
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL col0 + + ( - + ( 73 ) ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
-58
NULL
14
NULL
24
NULL

query II rowsort
SELECT DISTINCT col0 - - col2, + col2 * 50 AS col0 FROM tab1
----
144
2950
147
4800
159
3400

query I rowsort
SELECT ALL - 28 + - - col0 - + 23 FROM tab2
----
-5
13
24

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + col0 = + 94
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT 8 AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-2653
SELECT 8 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
8
3

query I rowsort
SELECT ( + - 20 ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + MIN( - 98 ) + - - 73 AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + MIN ( - 98 ) + - - 73 AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - - ( - 11 ) - COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - - ( - 11 ) - COUNT ( * ) FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - COUNT( * ) * - + 40 * 78 FROM tab2 AS cor0
----
9360

skipif mysql # not compatible
query I rowsort label-2657
SELECT - COUNT ( * ) * - + 40 * 78 FROM tab2 AS cor0
----
9360

query III rowsort
SELECT * FROM tab0 WHERE NULL <= NULL OR - 22 NOT BETWEEN + 29 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + ( + 8 ) AS col2 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT - ( - 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2661
SELECT SUM ( - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT DISTINCT - + 17 DIV + - 42 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2662
SELECT DISTINCT - + 17 / + - 42 col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 * + 4 * - - 35 AS col1 FROM tab1 AS cor0 WHERE NOT 10 * + col0 IS NULL
----
13440
8260
9520

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 84 ) BETWEEN + col1 AND - 65
----
-3

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 84 ) BETWEEN + col1 AND - 65
----
-3

query II rowsort
SELECT ALL - ( + 45 ) AS col2, - col2 FROM tab1 AS cor0
----
-45
-59
-45
-68
-45
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT SUM( ALL 61 ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT SUM ( ALL 61 ) AS col1 FROM tab1
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT + CAST( + COUNT( * ) AS SIGNED ) * 0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * 0 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2669
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2670
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2670
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT 56 * + COUNT( * ) + - 81 AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2671
SELECT 56 * + COUNT ( * ) + - 81 AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT ALL - - COUNT( * ) AS col1, + 50 * ( MAX( DISTINCT + + col2 ) ) AS col1 FROM tab0 AS cor0
----
3
4950

skipif mysql # not compatible
query II rowsort label-2672
SELECT ALL - - COUNT ( * ) AS col1, + 50 * ( MAX ( DISTINCT + + col2 ) ) AS col1 FROM tab0 AS cor0
----
3
4950

query I rowsort
SELECT - + 26 AS col2 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + ( + MAX( DISTINCT - - 7 ) ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2674
SELECT + ( + MAX ( DISTINCT - - 7 ) ) FROM tab0 cor0
----
7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 18 * 1 - - ( - + col1 ) + ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT DISTINCT 74 + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1
10
28

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT 74 + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - + COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - + COUNT ( col1 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col1 + - col2, col0 FROM tab0 cor0
----
-100
97
-128
15
-31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - MIN( DISTINCT - col0 ) + - + 48 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2679
SELECT - MIN ( DISTINCT - col0 ) + - + 48 FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 / col2 IS NOT NULL )
----

query II rowsort
SELECT - 5 + + 90, + 2 * - col2 AS col2 FROM tab0 AS cor0
----
85
-198
85
-20
85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + col2 + - - 89 AS col0 FROM tab0
----
151
186
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 * + + 56 FROM tab2 WHERE + col1 NOT IN ( 3 )
----
-172480
-217616
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT 20 - - COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2688
SELECT 20 - - COUNT ( * ) FROM tab1
----
23

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND 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 + + col2 - - col0 + col0 * + 61 AS col2 FROM tab2 AS cor0
----
2875
4008
4708

query II rowsort
SELECT DISTINCT - col2 - - + col0 * - - 8, + ( - + ( col0 ) ) AS col2 FROM tab1 cor0
----
312
-51
621
-85
660
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT col2 DIV - 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT col2 / - 90 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( 38 ) FROM tab0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2695
SELECT ALL col0, ( - col0 ) * col2 + CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
-786
87
-891
97
-9604

skipif mysql # not compatible
query II rowsort label-2695
SELECT ALL col0, ( - col0 ) * col2 + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
-786
87
-891
97
-9604

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2696
SELECT - col2 AS col2, CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2696
SELECT - col2 AS col2, CAST ( NULL AS REAL ) FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT ALL + 9, - 81 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 AS col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT - col2 AS col0, - 76 FROM tab2 AS cor0
----
-23
-76
-40
-76
-58
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 + + - ( col0 ) col0 FROM tab1 WHERE NOT col0 IN ( + col2 )
----
-24
-58
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2703
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + 37 - 52 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + 37 - 52 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
-15

query I rowsort
SELECT col1 * 50 * + + 14 FROM tab0
----
14700
56700
700

query III rowsort
SELECT * FROM tab2 WHERE NOT 66 BETWEEN - col0 AND - col2 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT ALL + 87 DIV + - MAX( DISTINCT col0 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + 87 / + - MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT - ( col0 ) DIV col2 + - + col0 col2 FROM tab0
----
-15
-95
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2707
SELECT DISTINCT - ( col0 ) / col2 + - + col0 col2 FROM tab0
----
-15
-95
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 2 * + - col1 + + 17 FROM tab0 AS cor0 WHERE NOT - col0 + - 52 = NULL
----

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab2 AS cor0 WHERE NOT + 17 <> - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2711
SELECT DISTINCT + ( - col1 ) + + col0 * 95 * 45 DIV + col0 AS col2, + 25 FROM tab1
----
4228
25
4261
25
4270
25

skipif mysql # not compatible
query II rowsort label-2711
SELECT DISTINCT + ( - col1 ) + + col0 * 95 * 45 / + col0 AS col2, + 25 FROM tab1
----
4228
25
4261
25
4270
25

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT col2 * col1 AS col2 FROM tab0 WHERE NULL NOT IN ( + 20, col2, + 16 / ( 84 ) * - col0 + col0 + - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT DISTINCT - CAST( + 63 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-114
-130
-140

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - CAST ( + 63 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-114
-130
-140

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL + - ( + col2 ) - - - col2 + + 47 AS col2 FROM tab1 cor0
----
-145
-71
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col0 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT col1 DIV col0 + col0 + 22 * col1 AS col2 FROM tab2
----
1169
1549
1759

skipif mysql # not compatible
query I rowsort label-2718
SELECT col1 / col0 + col0 + 22 * col1 AS col2 FROM tab2
----
1169
1549
1759

query I rowsort
SELECT ALL - 28 * + 46 * + col1 FROM tab1
----
-18032
-60536
-6440

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 33 + + col2 + - col1 AS col0 FROM tab1
----
-12
21
49

query I rowsort
SELECT + + col2 * 24 * + + col1 AS col1 FROM tab0 AS cor0
----
2376
5040
91368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT + 18 - col0 - + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + 69 <= ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + 18 - col0 - + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + 69 <= ( + col1 )
----

query II rowsort
SELECT - col1 * - col0 AS col1, - col0 + col0 + - ( + 71 ) FROM tab1 AS cor0
----
425
-71
4277
-71
714
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL - SUM( DISTINCT col1 ) * 96 + - 18 + - CAST( NULL AS SIGNED ) * - 76 * + 48 AS col1 FROM tab1 WHERE NOT col2 - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - SUM ( DISTINCT col1 ) * 96 + - 18 + - CAST ( NULL AS INTEGER ) * - 76 * + 48 AS col1 FROM tab1 WHERE NOT col2 - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( - 22, + 37 + + + col0 )
----

query II rowsort
SELECT DISTINCT + col2, + col2 * + col1 * 98 FROM tab1
----
59
28910
68
313208
96
131712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT + CAST( NULL AS SIGNED ) * + + 38 * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT + CAST ( NULL AS INTEGER ) * + + 38 * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2729
SELECT + 24 col0, + col2 DIV + col0 AS col1 FROM tab2 cor0
----
24
0
24
0
24
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2729
SELECT + 24 col0, + col2 / + col0 AS col1 FROM tab2 cor0
----
24
0
24
0
24
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 57 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT + ( - MAX( ALL col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + ( - MAX ( ALL col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT + 83 DIV - MIN( 26 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 83 / - MIN ( 26 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2734
SELECT ALL - col0 AS col0, 13 - - 87 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL - col0 AS col0, 13 - - 87 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - + col2 + - col1
----

query I rowsort
SELECT col1 * + - 50 AS col0 FROM tab1
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT 9 + MIN( DISTINCT col2 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT 9 + MIN ( DISTINCT col2 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT COUNT( * ) * - 88 AS col2 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( * ) * - 88 AS col2 FROM tab1
----
-264

query I rowsort
SELECT ALL - 6 * 68 + - col1 FROM tab1
----
-413
-422
-455

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT col0 * col1 DIV col2 FROM tab2
----
102
123
86

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT col0 * col1 / col2 FROM tab2
----
102
123
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2743
SELECT col0 / - 79 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT col0 / - 79 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - + col2, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 WHERE ( 58 IS NOT NULL )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 / 43 + - + 72 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( - 9 ) > col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 89 + + 15 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + + COUNT( ALL + col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2752
SELECT + + COUNT ( ALL + col2 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col1 * - - col0 + + col2 + col2 * + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
-177667
-263
-9605

query I rowsort
SELECT DISTINCT + - col0 - col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + MIN( - 60 ) FROM tab2 AS cor0 WHERE + 12 NOT BETWEEN col1 AND - col2
----
-60

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + MIN ( - 60 ) FROM tab2 AS cor0 WHERE + 12 NOT BETWEEN col1 AND - col2
----
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 17 > - col0 - - + col2
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT ALL - + 35 - col0 FROM tab1 AS cor0
----
-120
-126
-86

query I rowsort
SELECT + 56 * - col2 AS col0 FROM tab0 AS cor0
----
-2632
-5544
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab0
----
67
67
67

query I rowsort
SELECT ( + 28 ) * + 46 + - col0 - + col0 AS col2 FROM tab2
----
1138
1160
1196

query I rowsort
SELECT col2 * + - col2 - - + 0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT col2 - ( + col1 ) FROM tab0
----
-11
-34
98

query I rowsort
SELECT - col0 + + 98 FROM tab0
----
1
11
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <> 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL - - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + + 90 + - ( + col0 ) ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT MIN( DISTINCT + 97 ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2771
SELECT MIN ( DISTINCT + 97 ) AS col1 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + MAX( + + ( + - 78 ) ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-2772
SELECT + MAX ( + + ( + - 78 ) ) FROM tab1
----
-78

query I rowsort
SELECT + col1 * 1 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 3 + - + col0 + + col2 < + - ( 60 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL - - COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT ALL - - COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT + COUNT( + - 16 ) * 79 col2 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2777
SELECT DISTINCT + COUNT ( + - 16 ) * 79 col2 FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2778
SELECT DISTINCT + 75 + + - 35 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + 75 + + - 35 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + MAX( 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2779
SELECT + MAX ( 32 ) FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT - MAX( - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2780
SELECT - MAX ( - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + 20 * - COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + 20 * - COUNT ( * ) FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT SUM( - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2782
SELECT SUM ( - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 99 * - col1 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + ( - + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2784
SELECT + ( - + COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + 66 * + 13 AS col0 FROM tab1
----
858
858
858

query I rowsort
SELECT col1 * + + col2 + ( - - col0 ) + - col1 * col2 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col1 * 30 FROM tab1
----
1410
150
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT - COUNT( * ) / - SUM( ALL - + ( - col2 ) ) + 38 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT - COUNT ( * ) / - SUM ( ALL - + ( - col2 ) ) + 38 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 84 + + col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT ALL - 70 * 47 AS col1 FROM tab2 AS cor0
----
-3290
-3290
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2792
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT ALL + ( + - ( 55 ) ) DIV 56 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + ( + - ( 55 ) ) / 56 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( + - ( + + 55 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - ( + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2795
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col0 - col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 10 - 68 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 63
----

query I rowsort
SELECT 41 + ( + - col1 ) FROM tab1 AS cor0
----
-6
27
36

query I rowsort
SELECT ALL 43 - + col2 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT + 95 FROM tab2 AS cor0 WHERE ( NOT ( - col1 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT ALL - COUNT( * ) AS col0, + 25 FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL - COUNT ( * ) AS col0, + 25 FROM tab1 AS cor0
----
-3
25

query I rowsort
SELECT col2 + - 26 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT ALL + col0 * - col1 - col1 AS col2 FROM tab1 cor0
----
-430
-4324
-728

query I rowsort
SELECT - col0 * + - 85 AS col0 FROM tab0
----
1275
7395
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT - + col2 * ( CAST( NULL AS SIGNED ) ) * 21 + 56 FROM tab2 WHERE NOT NULL <= - col1
----

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - + col2 * ( CAST ( NULL AS INTEGER ) ) * 21 + 56 FROM tab2 WHERE NOT NULL <= - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 82 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT + MIN( ALL 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + MIN ( ALL 15 ) FROM tab1
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 / col0 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT + MAX( - 90 ) FROM tab1 WHERE NOT NULL >= + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + MAX ( - 90 ) FROM tab1 WHERE NOT NULL >= + - 39
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - col1 col0 FROM tab2 AS cor0
----
-4335
-5695
-6545

query II rowsort
SELECT DISTINCT + 74 AS col0, 83 AS col1 FROM tab1 AS cor0
----
74
83

query I rowsort
SELECT ALL + + 7 * + 94 AS col2 FROM tab0 AS cor0
----
658
658
658

query I rowsort
SELECT + 35 + + 41 * col0 FROM tab0 AS cor0
----
3602
4012
650

query I rowsort
SELECT - col2 + + col1 * - + 14 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2819
SELECT SUM( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 23 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2821
SELECT DISTINCT + MIN( + + col1 ) * - - COUNT( * ) * 74 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + MIN ( + + col1 ) * - - COUNT ( * ) * 74 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col1 FROM tab0 AS cor0 WHERE NULL <= col0 * col2
----

query I rowsort
SELECT - - col0 * - 42 - + col0 FROM tab0 AS cor0
----
-3741
-4171
-645

query I rowsort
SELECT ALL + col1 * - - 12 AS col1 FROM tab0 AS cor0
----
12
252
972

query I rowsort
SELECT - - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2827
SELECT ALL + + 73 DIV col0 * col0 * - 92, - col2 col2 FROM tab0 AS cor0
----
-5520
-47
0
-10
0
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT ALL + + 73 / col0 * col0 * - 92, - col2 col2 FROM tab0 AS cor0
----
-5520
-47
0
-10
0
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NOT ( col0 + - 4 * - col0 IS NULL ) ) ) )
----
-14
-14
-14

query II rowsort
SELECT DISTINCT - col2, + ( - + 99 ) + col1 * col0 * + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( + col1 ) AND ( NULL )
----

query II rowsort
SELECT ALL col0 + - - col0 * - col1, + col1 AS col2 FROM tab2
----
-2300
51
-4864
77
-4950
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT 4 + - SUM( - col2 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT 4 + - SUM ( - col2 ) FROM tab1
----
227

query I rowsort
SELECT ALL + 44 - - col1 + - 35 * - - 1 AS col2 FROM tab0
----
10
30
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - - col1 * + 93 * + + col2 + + 61 < NULL
----

query I rowsort
SELECT 57 FROM tab0 AS cor0 WHERE + 62 IS NOT NULL
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 - col2 col2 FROM tab1 AS cor0
----
-21
-30
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 20 col1 FROM tab2 cor0
----
-20
-3
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2838
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL ( CAST( - col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL ( CAST ( - col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT ALL 96 AS col1, 50 * col1 * + 72 + - - col2 FROM tab1
----
96
169268
96
18059
96
50496

query II rowsort
SELECT - col0, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT col1 DIV + - 66 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT col1 / + - 66 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT col0 * CAST( NULL AS SIGNED ) * + 16 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT col0 * CAST ( NULL AS INTEGER ) * + 16 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2844
SELECT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT MIN( - - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2845
SELECT MIN ( - - col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT ( 97 ) DIV + MAX( ALL + col1 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT ( 97 ) / + MAX ( ALL + col1 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL MAX( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL MAX ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + col2 AS col0, + 67 FROM tab2 AS cor0
----
23
67
40
67
58
67

query II rowsort
SELECT - + 6, + col1 AS col2 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query II rowsort
SELECT col2, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2851
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab2
----
65

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + ( + - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT COUNT( * ) * MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT COUNT ( * ) * MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT 88 * - - col0 DIV - col0 FROM tab1
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-2855
SELECT 88 * - - col0 / - col0 FROM tab1
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT 93 * + + COUNT( * ) col2 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT 93 * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
279

query I rowsort
SELECT - - 29 AS col0 FROM tab1 cor0
----
29
29
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT - + MIN( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT - + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT - ( + + col1 ), col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 84 col1 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL - MAX( - 2 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL - MAX ( - 2 ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - col0 + 16 AS col0 FROM tab1
----
-35
-69
-75

query I rowsort
SELECT + 74 + + 16 FROM tab1
----
90
90
90

query II rowsort
SELECT + + col2 * + 82 + 31, 3 AS col2 FROM tab0 WHERE NULL BETWEEN col1 AND - ( + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + 21 + + - 56 * + col1 * + col1 AS col1 FROM tab2
----
-145635
-251363
-332003

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT + SUM( ALL - col0 ) + + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + SUM ( ALL - col0 ) + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - 98 * col0, col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - ( ( + + col0 ) ) * 80 + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT + CAST( - ( + + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2874
SELECT + CAST ( - ( + + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL SUM( DISTINCT col2 ) * - 99 + - 58 - + 84 + 17 + - COUNT( * ) FROM tab1 AS cor0
----
-22205

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL SUM ( DISTINCT col2 ) * - 99 + - 58 - + 84 + 17 + - COUNT ( * ) FROM tab1 AS cor0
----
-22205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, col1 col0 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + + COUNT( * ) * - COUNT( * ) + + 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) + + 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

query I rowsort
SELECT col1 - + + 9 FROM tab0
----
-8
12
72

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - col0 + - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT col0 * CAST( + col0 AS SIGNED ) * col1 * + + 6 + - col0 FROM tab1 AS cor0
----
216665
218433
2335151

skipif mysql # not compatible
query I rowsort label-2881
SELECT col0 * CAST ( + col0 AS INTEGER ) * col1 * + + 6 + - col0 FROM tab1 AS cor0
----
216665
218433
2335151

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - + COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2882
SELECT - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT - MAX( 98 ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2884
SELECT - MAX ( 98 ) AS col0 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2885
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * + 91 * - col1 col0, - col2 AS col2 FROM tab0 AS cor0
----
-110565
-47
-166257
-10
-8827
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2885
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * + 91 * - col1 col0, - col2 AS col2 FROM tab0 AS cor0
----
-110565
-47
-166257
-10
-8827
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( ALL - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( ALL - - col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL 84 * - 84 FROM tab1
----
-7056
-7056
-7056

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT col2 DIV + 21 AS col0 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2888
SELECT col2 / + 21 AS col0 FROM tab1
----
2
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT - 61 DIV + COUNT( * ) AS col1 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - 61 / + COUNT ( * ) AS col1 FROM tab0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT 55 DIV COUNT( * ) col2 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2890
SELECT 55 / COUNT ( * ) col2 FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 72
----

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col0 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT ALL col1 + + ( 91 ) + + 0 AS col0 FROM tab2 AS cor0 WHERE + col1 < + + col2
----

query I rowsort
SELECT + 31 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 + + 29 ) <> NULL
----

query II rowsort
SELECT ALL - col1, + 55 AS col0 FROM tab0
----
-1
55
-21
55
-81
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT MIN( DISTINCT col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2897
SELECT MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab2 WHERE ( col0 * + + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1, 78 AS col0 FROM tab0
----
-1
78
-21
78
-81
78

query I rowsort
SELECT ALL + ( 85 ) AS col0 FROM tab0
----
85
85
85

query I rowsort
SELECT - col1 + - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - + 47 + ( 20 ) FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT - ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2903
SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT ALL col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query II rowsort
SELECT DISTINCT 10, col2 FROM tab1 cor0
----
10
59
10
68
10
96

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL + MAX( + col2 ) + 77 FROM tab1
----
173

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL + MAX ( + col2 ) + 77 FROM tab1
----
173

query I rowsort
SELECT ALL 35 * + - 10 * - + col0 * 31 + - - col1 FROM tab0
----
1052451
162831
943971

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2911
SELECT ALL - col2 + - + col2 + col2 DIV + col0 - + - CAST( col0 AS SIGNED ) col0 FROM tab2
----
-16
-41
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2911
SELECT ALL - col2 + - + col2 + col2 / + col0 - + - CAST ( col0 AS INTEGER ) col0 FROM tab2
----
-16
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - MIN( col1 ) + 92 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - MIN ( col1 ) + 92 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + 45 + - SUM( DISTINCT 5 ) * 60 col0 FROM tab1 cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2913
SELECT + 45 + - SUM ( DISTINCT 5 ) * 60 col0 FROM tab1 cor0
----
-255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2914
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE CAST( + - ( 62 ) AS DECIMAL ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2914
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( + - ( 62 ) AS REAL ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL + CAST( + 71 AS SIGNED ) AS col0 FROM tab1 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + CAST ( + 71 AS INTEGER ) AS col0 FROM tab1 cor0
----
71
71
71

query II rowsort
SELECT ALL 78 + - + col2 + - col1 AS col0, col0 * - - 53 AS col2 FROM tab1
----
-32
2703
-37
4823
14
4505

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + ( + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT 52, col0 FROM tab2 AS cor0
----
52
46
52
64
52
75

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col2 + col2 / col0 / - + col2 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / 99 NOT BETWEEN ( 74 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2922
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 90 * 57 FROM tab0 AS cor0
----
NULL
5130
NULL
5130
NULL
5130

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 90 * 57 FROM tab0 AS cor0
----
NULL
5130
NULL
5130
NULL
5130

query I rowsort
SELECT col1 / + 57 - + col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2924
SELECT DISTINCT - - 86 * + col0 * + + CAST( NULL AS SIGNED ), - 4 AS col2 FROM tab2 cor0
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-2924
SELECT DISTINCT - - 86 * + col0 * + + CAST ( NULL AS INTEGER ), - 4 AS col2 FROM tab2 cor0
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT SUM( 99 ) AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-2925
SELECT SUM ( 99 ) AS col2 FROM tab1
----
297

query I rowsort
SELECT ALL - 27 * col1 FROM tab1
----
-1269
-135
-378

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - + col1 + + col2 - - col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL - SUM( ALL - ( col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - SUM ( ALL - ( col1 ) ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + ( + 28 ) * + COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2929
SELECT + ( + 28 ) * + COUNT ( * ) AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL COUNT( * ) * - - MIN( ALL col0 ) AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL COUNT ( * ) * - - MIN ( ALL col0 ) AS col1 FROM tab2
----
138

query I rowsort
SELECT DISTINCT + 13 + + - col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-34
-86
3

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + col1 + - col0 + + col2 FROM tab0 AS cor0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 7 + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * - 70 + col2 FROM tab2
----
-164197
-344920
-351692

query II rowsort
SELECT col2 AS col1, + col0 + - - col0 AS col2 FROM tab0
----
10
174
47
30
99
194

query I rowsort
SELECT ALL col2 + + + col0 * + col1 - - 34 AS col2 FROM tab1
----
4379
518
844

query I rowsort
SELECT ALL + 87 AS col0 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + 66 - - + 80 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
146
146
146

query I rowsort
SELECT col0 + 69 AS col1 FROM tab2 AS cor0
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + + 81 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2943
SELECT + + 81 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT col1 + - - col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT - 49 + COUNT( * ) AS col0 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2945
SELECT - 49 + COUNT ( * ) AS col0 FROM tab1 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COUNT( * ) + + COUNT( * ) + - 54 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2946
SELECT COUNT ( * ) + + COUNT ( * ) + - 54 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + COUNT( * ) * - 16 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + COUNT ( * ) * - 16 FROM tab0
----
-48

query I rowsort
SELECT ALL col0 + - - 30 AS col0 FROM tab2
----
105
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - 0 + MIN( DISTINCT - 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 0 + MIN ( DISTINCT - 66 ) FROM tab2
----
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 9
----

query I rowsort
SELECT ALL - 44 + + col1 AS col0 FROM tab2
----
23
33
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2952
SELECT CAST( NULL AS DECIMAL ) + - - COUNT( 5 ) + 42 / + - 1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( NULL AS REAL ) + - - COUNT ( 5 ) + 42 / + - 1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT ALL 42 DIV - - col2 + + col1 FROM tab0
----
1
25
81

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL 42 / - - col2 + + col1 FROM tab0
----
1
25
81

query II rowsort
SELECT - 72, + 57 AS col2 FROM tab2
----
-72
57
-72
57
-72
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 * - 34 col2 FROM tab1 AS cor0
----
2414
2414
2414

query II rowsort
SELECT DISTINCT - col2 AS col0, 27 * + - col2 FROM tab2 AS cor0
----
-23
-621
-40
-1080
-58
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + MAX( ALL + + 2 ) * + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + MAX ( ALL + + 2 ) * + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT - + COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col2 * 26 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT - 40 * 74 FROM tab2 AS cor0
----
-2960
-2960
-2960

query I rowsort
SELECT DISTINCT + 57 * - col1 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - COUNT( + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - COUNT ( + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + 26 AS col0 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT ALL + ( + 30 ) AS col0, + 49 + - - COUNT( * ) AS col2 FROM tab2 WHERE ( - 90 IS NULL )
----
30
49

skipif mysql # not compatible
query II rowsort label-2965
SELECT ALL + ( + 30 ) AS col0, + 49 + - - COUNT ( * ) AS col2 FROM tab2 WHERE ( - 90 IS NULL )
----
30
49

query I rowsort
SELECT 6 * - 92 AS col1 FROM tab1
----
-552
-552
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT col2 * + CAST( col0 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2967
SELECT col2 * + CAST ( col0 AS INTEGER ) FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE NOT - 63 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - 39 DIV - - 14 col0 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT - 39 / - - 14 col0 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT ALL - col0 * + 29 * - - 81 AS col2 FROM tab0 AS cor0
----
-204363
-227853
-35235

query I rowsort
SELECT + - ( ( col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + 56 * col2 AS col1 FROM tab2 AS cor0
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT - col2 * - col0 * 32 FROM tab2 AS cor0
----
139200
33856
81920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT ALL CAST( NULL AS SIGNED ) / + + 53 * + col1 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL CAST ( NULL AS INTEGER ) / + + 53 * + col1 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) < ( col2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 27 * col0 AS col1 FROM tab0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT + 85 + - 51 * + COUNT( * ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT + 85 + - 51 * + COUNT ( * ) AS col1 FROM tab2
----
-68

query I rowsort
SELECT DISTINCT 48 FROM tab1 WHERE NULL IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + COUNT( * ) * + 21 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) * + 21 AS col0 FROM tab2
----
63

query I rowsort
SELECT ALL - 3 - 61 FROM tab2
----
-64
-64
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT + CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) * + ( + 78 * COUNT( * ) ) FROM tab1
----
-702

skipif mysql # not compatible
query I rowsort label-2982
SELECT + CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) * + ( + 78 * COUNT ( * ) ) FROM tab1
----
-702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT + CAST( - 57 AS SIGNED ) * + col2 AS col0 FROM tab0
----
-2679
-5643
-570

skipif mysql # not compatible
query I rowsort label-2983
SELECT + CAST ( - 57 AS INTEGER ) * + col2 AS col0 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IN ( + col0 + + 30 )
----

skipif mysql # not compatible
query I rowsort label-2984
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IN ( + col0 + + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL ( COUNT( col1 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL ( COUNT ( col1 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col1 + 54 * + col2 AS col1 FROM tab0
----
2619
5347
561

query I rowsort
SELECT DISTINCT ( - 0 ) * + 61 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 52 * + col2 FROM tab2
----
1196
2080
3016

query I rowsort
SELECT ALL + col0 + 29 AS col2 FROM tab1
----
114
120
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT ALL col1 DIV 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL col1 / 89 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT ALL 76 DIV col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL 76 / col1 FROM tab1
----
1
15
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + MAX( 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2995
SELECT + MAX ( 25 ) FROM tab2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2996
SELECT * FROM tab0 WHERE ( 27 ) <= + 78 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2996
SELECT * FROM tab0 WHERE ( 27 ) <= + 78 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( - 25 ) + col2 FROM tab0
----
-15
22
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT - ( - 32 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2998
SELECT - ( - 32 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL col1 * + 60 AS col2 FROM tab0
----
1260
4860
60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT 0 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT 0 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 > ( 8 + + 85 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3004
SELECT - CAST( NULL AS DECIMAL ) / 9 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT - CAST ( NULL AS REAL ) / 9 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 - col0 col2 FROM tab0
----
-7
3
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE + 11 * - 69 NOT BETWEEN col0 * + 84 + - 31 * 76 AND CAST( - ( col2 ) AS SIGNED ) - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE + 11 * - 69 NOT BETWEEN col0 * + 84 + - 31 * 76 AND CAST ( - ( col2 ) AS INTEGER ) - + 86
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 - col0 NOT BETWEEN 45 / col2 AND 65 + - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT - col0 DIV 25 AS col2 FROM tab1
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col0 / 25 AS col2 FROM tab1
----
-2
-3
-3

query I rowsort
SELECT ALL col1 + 14 AS col0 FROM tab2
----
65
81
91

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN NULL AND 49 + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) < ( + 93 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3014
SELECT * FROM tab1 AS cor0 WHERE NOT ( 18 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3014
SELECT * FROM tab1 AS cor0 WHERE NOT ( 18 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col2 ) IN ( - col1 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3017
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3017
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT - CAST( AVG ( DISTINCT 58 ) AS SIGNED ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - CAST ( AVG ( DISTINCT 58 ) AS INTEGER ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT 22 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT 22 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + SUM( DISTINCT col2 ) col1 FROM tab1 AS cor0 WHERE - col1 <> + col2 * col2
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3022
SELECT ALL + SUM ( DISTINCT col2 ) col1 FROM tab1 AS cor0 WHERE - col1 <> + col2 * col2
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL + MAX( DISTINCT - 93 ) col2 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3023
SELECT ALL + MAX ( DISTINCT - 93 ) col2 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT - MAX( 19 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT - MAX ( 19 ) FROM tab0 AS cor0
----
-19

query I rowsort
SELECT col2 * - col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) + + col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + + COUNT( ALL ( col2 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + COUNT ( ALL ( col2 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + 30 AS col1 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT col2 * col0 DIV 15 AS col0 FROM tab2
----
170
290
70

skipif mysql # not compatible
query I rowsort label-3028
SELECT col2 * col0 / 15 AS col0 FROM tab2
----
170
290
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3029
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3029
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 53 * 66 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3498
3498
3498

query I rowsort
SELECT - col0 * + col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - 85 + + - SUM( - col0 ) * + 95 AS col0 FROM tab2
----
17490

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - 85 + + - SUM ( - col0 ) * + 95 AS col0 FROM tab2
----
17490

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT 17 + + COUNT( * ) * COUNT( - 58 + + col1 ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT 17 + + COUNT ( * ) * COUNT ( - 58 + + col1 ) AS col0 FROM tab1
----
26

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 38 ) <> NULL
----

query I rowsort
SELECT - 53 * + col2 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab1 WHERE NOT col0 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 79 * + + 20 * ( 69 ) FROM tab1 AS cor0
----
109020

query I rowsort
SELECT DISTINCT + 64 + + 26 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col0 * 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT COUNT( * ) + 93 AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT COUNT ( * ) + 93 AS col1 FROM tab0
----
96

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE ( NULL ) <> + ( col1 )
----

query I rowsort
SELECT + 71 * 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ff0a531fb401c68ca8e23b7140756a6e

query I rowsort
SELECT 45 - - - col2 + + col1 + + col1 * - col0 FROM tab2 cor0
----
-2273
-4846
-4971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( ( - CAST( NULL AS SIGNED ) ) * - 11 ) NOT BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( ( - CAST ( NULL AS INTEGER ) ) * - 11 ) NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT + COUNT( * ) - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + COUNT ( * ) - 52 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT - - 31 + + 55 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT ALL col1 - + ( 74 ) AS col2 FROM tab2 AS cor0 WHERE ( col0 + + col2 ) NOT IN ( col1 * - col0 )
----
-23
-7
3

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 * - col2 + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT 41 * - col0 + - 97 AS col0 FROM tab2 AS cor0
----
-1983
-2721
-3172

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - ( SUM( - - ( - ( col0 ) ) ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - ( SUM ( - - ( - ( col0 ) ) ) ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT 96 + + CAST( NULL AS SIGNED ) - - - ( 91 ) / COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT 96 + + CAST ( NULL AS INTEGER ) - - - ( 91 ) / COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( + ( + - col1 ) ) + COUNT( * ) col1 FROM tab0 cor0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3054
SELECT - SUM ( + ( + - col1 ) ) + COUNT ( * ) col1 FROM tab0 cor0
----
106

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 98 * col0 + col0 BETWEEN + ( col2 ) + col2 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - - ( + + COUNT( * ) ) + - - COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT - - ( + + COUNT ( * ) ) + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col1 + ( - + col1 ) * + 88 AS col0 FROM tab2
----
-4437
-5829
-6699

query II rowsort
SELECT DISTINCT col0 * - + col2 AS col0, col0 * col0 FROM tab2
----
-1058
2116
-2560
4096
-4350
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT ALL - 51 + + 75 DIV - col1 AS col1 FROM tab1
----
-52
-56
-66

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - 51 + + 75 / - col1 AS col1 FROM tab1
----
-52
-56
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab0 WHERE + 85 NOT BETWEEN + - col0 * - col1 + col1 AND col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab0 WHERE + 85 NOT BETWEEN + - col0 * - col1 + col1 AND col2
----
1
21
81

query I rowsort
SELECT ALL - col1 + - col1 * + col2 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT - COUNT( * ) - - 26 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT - COUNT ( * ) - - 26 FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab0 WHERE NOT - + ( col0 ) + + ( col2 ) / - col0 NOT BETWEEN ( col0 * + col2 + col1 * - 60 ) AND ( 32 )
----
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT + CAST( - col1 AS SIGNED ) * - col1 FROM tab0 cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-3065
SELECT + CAST ( - col1 AS INTEGER ) * - col1 FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + 38 > 2 + - + col0 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col2 AS col0, + col2 * - + col2 * - + col2 * ( + col0 ) * 46 FROM tab2 AS cor0
----
23
25745372
40
188416000
58
673136400

query II rowsort
SELECT ALL - col0 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3070
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), + 53, - col2 )
----

skipif mysql # not compatible
query III rowsort label-3070
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), + 53, - col2 )
----

query I rowsort
SELECT 56 * + - ( + 37 ) * + + 84 + - - ( col1 ) FROM tab2 cor0
----
-173971
-173981
-173997

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 32, col1 FROM tab0
----
-32
1
-32
21
-32
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT - COUNT( ALL + - col1 ), 22 AS col2 FROM tab0
----
-3
22

skipif mysql # not compatible
query II rowsort label-3075
SELECT - COUNT ( ALL + - col1 ), 22 AS col2 FROM tab0
----
-3
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3076
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN ( - 62 ) AND - col0 * - ( ( ( col0 ) ) ) + - col0
----

skipif mysql # not compatible
query III rowsort label-3076
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN ( - 62 ) AND - col0 * - ( ( ( col0 ) ) ) + - col0
----

query II rowsort
SELECT 51, - 50 AS col1 FROM tab0
----
51
-50
51
-50
51
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3078
SELECT col0 AS col1, col0 DIV - col2 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-3078
SELECT col0 AS col1, col0 / - col2 FROM tab2
----
46
-2
64
-1
75
-1

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3080
SELECT col1 AS col2, - col0 DIV - col2 + + col1 FROM tab0
----
1
1
21
29
81
81

skipif mysql # not compatible
query II rowsort label-3080
SELECT col1 AS col2, - col0 / - col2 + + col1 FROM tab0
----
1
1
21
29
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT COUNT( * ) * + 82 * + ( 75 ) AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 IS NULL
----
18450

skipif mysql # not compatible
query I rowsort label-3081
SELECT COUNT ( * ) * + 82 * + ( 75 ) AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
18450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL - + ( + + col0 ) FROM tab2 AS cor0 WHERE NOT 12 = + CAST( - col2 AS SIGNED )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - + ( + + col0 ) FROM tab2 AS cor0 WHERE NOT 12 = + CAST ( - col2 AS INTEGER )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < - + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + 6 + + + 56 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
62

query III rowsort
SELECT * FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + col1 * + ( + col2 ) FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT + 0 FROM tab0 cor0
----
0

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE 63 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col1 IN ( + - ( + col2 ) * - 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT + 35 - + ( col1 ) - + - col2 DIV col1 AS col2 FROM tab2 cor0
----
-16
-32
-42

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + 35 - + ( col1 ) - + - col2 / col1 AS col2 FROM tab2 cor0
----
-16
-32
-42

query I rowsort
SELECT + col2 - - col1 + col1 FROM tab1
----
124
162
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) col0 FROM tab0
----
15
87
97

query I rowsort
SELECT 79 - + col0 AS col1 FROM tab2 WHERE + 78 * ( - + col1 ) + col0 * + col2 NOT BETWEEN - - col1 * + col1 AND + col2
----
15
33
4

query I rowsort
SELECT ALL + col0 * + - 71 * col2 * col2 FROM tab2
----
-1727714
-17913300
-7270400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL - col1 * + CAST( + col0 AS SIGNED ) - + 48 + col2 - - col2 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-1169
-1855
53

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - col1 * + CAST ( + col0 AS INTEGER ) - + 48 + col2 - - col2 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-1169
-1855
53

query II rowsort
SELECT 36 AS col1, - col1 FROM tab2
----
36
-51
36
-67
36
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 83 col0 FROM tab0
----
-1743
-6723
-83

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + - 17 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 20 AS col0 FROM tab1
----
1020
1700
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT + + col0 DIV + col2 col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT DISTINCT + + col0 / + col2 col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 * + 44 IS NOT NULL
----

query I rowsort
SELECT - ( - 39 ) AS col1 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + + col1 ) > - col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - ( COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3107
SELECT - ( COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3108
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT DISTINCT + col2 + + + CAST( - col0 AS SIGNED ) + + 32 FROM tab2
----
15
8
9

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + col2 + + + CAST ( - col0 AS INTEGER ) + + 32 FROM tab2
----
15
8
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( + - 40 ) / - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( + - 40 ) / - - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 56 + + 6 FROM tab0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 38 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + + + 81 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + 33 + - 68 + + - 77 * + + MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE 70 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + 33 + - 68 + + - 77 * + + MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE 70 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col1 * - - 41 + - col0 FROM tab0 AS cor0
----
-138
-3336
-948

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col2 < - 73 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 27 col1, - col1 AS col0 FROM tab0 WHERE + + 97 IS NOT NULL
----
-27
-1
-27
-21
-27
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( col1 ) + col1 * - - col2 AND - 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - COUNT( * ) + 16 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3121
SELECT - COUNT ( * ) + 16 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT col2 - - col2 * + 53 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT ALL col2 + + col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - - 57 FROM tab0 AS cor0
----
-4959
-5529
-855

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3125
SELECT - + CAST( NULL AS DECIMAL ) + COUNT( * ) * + SUM( ALL + + 72 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT - + CAST ( NULL AS REAL ) + COUNT ( * ) * + SUM ( ALL + + 72 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 58 ) <= ( 5 )
----

query I rowsort
SELECT - 79 + + col1 FROM tab0 AS cor0
----
-58
-78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3128
SELECT COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( - 2 ) FROM tab2 AS cor0
----
-2
-2
-2

query II rowsort
SELECT DISTINCT + 5 AS col1, col1 AS col1 FROM tab2 AS cor0
----
5
51
5
67
5
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col0 * + 47 + col1 )
----

query I rowsort
SELECT DISTINCT col0 * - + ( - - 67 ) FROM tab1
----
-3417
-5695
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 30 col2 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3134
SELECT ALL - CAST( NULL AS SIGNED ), - col2 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL - CAST ( NULL AS INTEGER ), - col2 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT MAX( DISTINCT - col1 ) * COUNT( * ) + 33 AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3136
SELECT MAX ( DISTINCT - col1 ) * COUNT ( * ) + 33 AS col1 FROM tab0
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * col0 IS NOT NULL )
----

query I rowsort
SELECT 38 * col2 AS col1 FROM tab1
----
2242
2584
3648

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 + - + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab0 WHERE NOT - 36 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col0 + - - 85 * - 8 FROM tab2 AS cor0
----
-605
-616
-634

query I rowsort
SELECT - + col2 + - col0 + - 21 * - 97 * - + col2 * - col0 FROM tab1 AS cor0
----
10215411
12604797
9973005

query II rowsort
SELECT ALL - - 46 AS col1, col0 FROM tab0 AS cor0
----
46
15
46
87
46
97

query I rowsort
SELECT ALL + col2 * 77 AS col2 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT DISTINCT + col1 + - - col1 + + 89 AS col2 FROM tab1 AS cor0
----
117
183
99

query I rowsort
SELECT ALL - - col0 * - col0 AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( + + col2 <> - col1 )
----
23
40
58

query I rowsort
SELECT col1 + + col0 FROM tab2 WHERE + 81 IS NULL
----

query II rowsort
SELECT + col1 * col1 AS col1, - col2 AS col2 FROM tab2
----
2601
-23
4489
-58
5929
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + COUNT( * ) FROM tab1 WHERE - - col2 - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3152
SELECT + COUNT ( * ) FROM tab1 WHERE - - col2 - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT COUNT( * ) + - + 55 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT COUNT ( * ) + - + 55 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + COUNT( ALL col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3155
SELECT + COUNT ( ALL col2 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab2
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - COUNT( - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3157
SELECT - COUNT ( - col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + col0 - + col2 + + col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT + col0 + col1 DIV col1 * - - 32 + - 63 AS col0 FROM tab1 cor0
----
20
54
60

skipif mysql # not compatible
query I rowsort label-3160
SELECT + col0 + col1 / col1 * - - 32 + - 63 AS col0 FROM tab1 cor0
----
20
54
60

query I rowsort
SELECT ALL ( + col2 ) - 30 FROM tab1 AS cor0
----
29
38
66

query III rowsort
SELECT col2 AS col2, col2, 83 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 88 * + 0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 59 * + - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4012
-5664

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / + col2 * + col1 + + + col0 NOT BETWEEN + + col1 AND NULL
----

query II rowsort
SELECT DISTINCT col0, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > ( - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + + ( COUNT( 61 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + + ( COUNT ( 61 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + 85 / - 15 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT - ( + + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3171
SELECT - ( + + COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL COUNT( * ) * + - 75 * - 94 AS col1 FROM tab2
----
21150

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL COUNT ( * ) * + - 75 * - 94 AS col1 FROM tab2
----
21150

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + SUM( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3173
SELECT + SUM ( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT 10 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT 10 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT 18 * CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3175
SELECT 18 * CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
54

query I rowsort
SELECT ALL - ( col0 ) - + col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - 28 * + + col1 FROM tab0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT CAST( - + SUM( + + col2 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT CAST ( - + SUM ( + + col2 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 * col1 * - col1 IS NULL )
----

query I rowsort
SELECT + 19 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT DISTINCT + + col2 DIV col2 - - col2 * + 45 * + - col1 FROM tab1 AS cor0
----
-13274
-143819
-60479

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + + col2 / col2 - - col2 * + 45 * + - col1 FROM tab1 AS cor0
----
-13274
-143819
-60479

query I rowsort
SELECT DISTINCT + + col2 + - 91 AS col2 FROM tab0 AS cor0
----
-44
-81
8

query I rowsort
SELECT DISTINCT col0 * - 4 * ( - col0 ) FROM tab0
----
30276
37636
900

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - + col1 / + ( - 88 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + - col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3186
SELECT DISTINCT 29 DIV + COUNT( * ), COUNT( * ) AS col1 FROM tab1 cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT 29 / + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 cor0
----
9
3

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----

query I rowsort
SELECT 88 * 41 FROM tab2 cor0
----
3608
3608
3608

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 42 + 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 30 * col1 * - + col1 - 48 col1 FROM tab0 AS cor0
----
-18
13182
196782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3191
SELECT * FROM tab2 WHERE ( NOT col1 * - CAST( NULL AS SIGNED ) / + 25 * - col0 <> col1 )
----

skipif mysql # not compatible
query III rowsort label-3191
SELECT * FROM tab2 WHERE ( NOT col1 * - CAST ( NULL AS INTEGER ) / + 25 * - col0 <> col1 )
----

query I rowsort
SELECT col2 + - - 4 FROM tab2
----
27
44
62

query I rowsort
SELECT ALL 49 + ( - 71 ) - + 95 FROM tab2
----
-117
-117
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT MAX( DISTINCT 96 ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3194
SELECT MAX ( DISTINCT 96 ) AS col2 FROM tab1 cor0
----
96

query I rowsort
SELECT DISTINCT ( - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT ALL + CAST( NULL AS SIGNED ) + - - 82 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 82 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT MAX( + + 87 ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-3197
SELECT MAX ( + + 87 ) FROM tab2 cor0
----
87

query I rowsort
SELECT ALL col0 * + col2 * + col2 FROM tab1 cor0
----
295885
420784
470016

query I rowsort
SELECT + 82 AS col0 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - - col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + 60 FROM tab2 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( 6 ) AS col1 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - col1 + + col0 * - col2 + - - col1 + col2 + + - col2 * - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 69 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT - - MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT - - MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT COUNT( DISTINCT + ( + - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT COUNT ( DISTINCT + ( + - col1 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + 73
----

query I rowsort
SELECT + 75 * + col1 AS col0 FROM tab0
----
1575
6075
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col2 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT MAX( + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT MAX ( + col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL + ( - 83 ) FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + - ( - + 35 ) * col1 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL - + SUM( ALL - 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - + SUM ( ALL - 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT + COUNT( * ) * + 47 AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + COUNT ( * ) * + 47 AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT + SUM( - 89 ) FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + SUM ( - 89 ) FROM tab0 AS cor0
----
-267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, col0 col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT ALL CAST( NULL AS SIGNED ) + + 25 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL CAST ( NULL AS INTEGER ) + + 25 AS col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT COUNT( ALL - col2 ) + - SUM( + 20 ) AS col1, - 81 FROM tab0
----
-57
-81

skipif mysql # not compatible
query II rowsort label-3220
SELECT COUNT ( ALL - col2 ) + - SUM ( + 20 ) AS col1, - 81 FROM tab0
----
-57
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + 34 * COUNT( * ) + + + MAX( - 66 ) FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-3221
SELECT + 34 * COUNT ( * ) + + + MAX ( - 66 ) FROM tab1 cor0
----
36

query I rowsort
SELECT + 72 + - + col2 * 26 * - col0 AS col0 FROM tab1 AS cor0 WHERE - col0 - - col2 * 30 / + col1 * + col1 IS NOT NULL
----
127368
130462
160960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT + 64 + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + 64 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT - col2 * - col2 - + CAST( 98 AS SIGNED ) FROM tab1 AS cor0
----
3383
4526
9118

skipif mysql # not compatible
query I rowsort label-3224
SELECT - col2 * - col2 - + CAST ( 98 AS INTEGER ) FROM tab1 AS cor0
----
3383
4526
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT - COUNT( + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - COUNT ( + col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 31 * col1 * 69 BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-3228
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT COUNT( * ) + - 98 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT COUNT ( * ) + - 98 FROM tab1
----
-95

query I rowsort
SELECT ALL + ( - col2 ) - - - col2 + + + col0 FROM tab2
----
-16
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3231
SELECT + col2 - - col2 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
198
NULL
20
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-3231
SELECT + col2 - - col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
198
NULL
20
NULL
94
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT - 46 - - 46 DIV col2 col1 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3232
SELECT - 46 - - 46 / col2 col1 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT + CAST( - - col2 AS SIGNED ) - - 59 FROM tab2
----
117
82
99

skipif mysql # not compatible
query I rowsort label-3233
SELECT + CAST ( - - col2 AS INTEGER ) - - 59 FROM tab2
----
117
82
99

query I rowsort
SELECT 57 * col0 - + - 39 FROM tab1
----
2946
4884
5226

query I rowsort
SELECT ALL - 51 + + 40 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT ALL - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT - 85 DIV 30 AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3237
SELECT - 85 / 30 AS col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT - 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col1 * + + col2 FROM tab2 cor0 WHERE NOT + col2 * - - 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT ALL + col1 DIV - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
44
63
74

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + col1 / - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
44
63
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT + - COUNT( * ) AS col0, + COUNT( + + 32 ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3242
SELECT + - COUNT ( * ) AS col0, + COUNT ( + + 32 ) AS col1 FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT COUNT( * ) * + COUNT( * ) FROM tab0, tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3243
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0, tab0 cor0
----
81

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE - col1 + + col2 > NULL
----

query I rowsort
SELECT ALL - 51 * + col2 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3246
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT - 51 * - col2 AS col2 FROM tab2
----
1173
2040
2958

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - 40 * + 29 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE ( ( col0 IS NOT NULL ) )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - + col2 + + + 72 FROM tab1 AS cor0
----
-24
13
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT + col0 DIV col0 + + 68 + 19 AS col0 FROM tab1 cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3254
SELECT + col0 / col0 + + 68 + 19 AS col0 FROM tab1 cor0
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 >= - + col1 * + - 30
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 + - + 91 * + - col1 FROM tab1 AS cor0
----
1370
4345
514

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3258
SELECT col0 + + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT col0 + + CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, col0 col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + SUM( ALL col0 ) + + + MIN( ALL - 54 ) FROM tab2 cor0
----
131

skipif mysql # not compatible
query I rowsort label-3260
SELECT + SUM ( ALL col0 ) + + + MIN ( ALL - 54 ) FROM tab2 cor0
----
131

query I rowsort
SELECT ALL - 99 * + - col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3262
SELECT - CAST( NULL AS DECIMAL ) + col0 / + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT - CAST ( NULL AS REAL ) + col0 / + + col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + 61 col2 FROM tab1
----
39
39
39

query II rowsort
SELECT DISTINCT - col1 + + + col1 AS col1, col2 AS col1 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT * FROM tab0 WHERE + - ( col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT + SUM( DISTINCT + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3266
SELECT + SUM ( DISTINCT + + col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3267
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + CAST( - col0 AS DECIMAL ) + ( CAST( NULL AS SIGNED ) ) IS NOT NULL ) OR NOT NULL IN ( 84 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3267
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + CAST ( - col0 AS REAL ) + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL ) OR NOT NULL IN ( 84 + - col1 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( - 28 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3269
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3271
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV + SUM( DISTINCT + + 78 ) DIV + COUNT( * ) + + 22 AS col2 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-3271
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / + SUM ( DISTINCT + + 78 ) / + COUNT ( * ) + + 22 AS col2 FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3272
SELECT - + 64 DIV col1 AS col2, CAST( 15 AS SIGNED ) col2 FROM tab1 AS cor0
----
-1
15
-12
15
-4
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3272
SELECT - + 64 / col1 AS col2, CAST ( 15 AS INTEGER ) col2 FROM tab1 AS cor0
----
-1
15
-12
15
-4
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT + 41 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
1
25
81

skipif mysql # not compatible
query I rowsort label-3273
SELECT + 41 / col2 + col1 AS col0 FROM tab0 AS cor0
----
1
25
81

query II rowsort
SELECT - 67 * + col2, + col2 FROM tab1 cor0 WHERE NOT - col2 + col2 BETWEEN - + 13 * 91 + - - 25 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3275
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - col1 col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3275
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - col1 col2 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT ALL col0 * - 94 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT - 84 + - COUNT( * ) AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - 84 + - COUNT ( * ) AS col2 FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 + col2 < NULL
----

query I rowsort
SELECT DISTINCT 1 * col0 * - + col2 * col0 AS col1 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL MAX( DISTINCT + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - SUM( DISTINCT - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3282
SELECT - SUM ( DISTINCT - col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3283
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT + col2 * 6 AS col0 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT - + col1 * + + col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 33 col2 FROM tab1 AS cor0
----
1551
165
462

query I rowsort
SELECT ALL 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL - col0 - + - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - col0 - + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT + col0 * - CAST( col1 AS SIGNED ) + + - col1 * col0 + 50 AS col1 FROM tab1 AS cor0
----
-1378
-800
-8504

skipif mysql # not compatible
query I rowsort label-3289
SELECT + col0 * - CAST ( col1 AS INTEGER ) + + - col1 * col0 + 50 AS col1 FROM tab1 AS cor0
----
-1378
-800
-8504

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 91 - - + 13 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + col1 + + - col1 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - COUNT( * ) - - COUNT( DISTINCT - + 75 ) AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3292
SELECT - COUNT ( * ) - - COUNT ( DISTINCT - + 75 ) AS col1 FROM tab2
----
-2

query I rowsort
SELECT + col2 - + ( - col2 ) AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL MAX( ALL + 62 ) col1 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3294
SELECT ALL MAX ( ALL + 62 ) col1 FROM tab1
----
62

query I rowsort
SELECT ALL ( + 59 ) FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 / col2 + - - ( + 37 ) + + - 88 + + col0 FROM tab2 AS cor0 WHERE col1 > - - col2 * col0 + col2
----

query I rowsort
SELECT + col2 * + + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 38 * - 9 AS col0 FROM tab2
----
342
342
342

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3299
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + MAX( - col0 ) * + + 58 AS col2 FROM tab2
----
-2668

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + MAX ( - col0 ) * + + 58 AS col2 FROM tab2
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 8 AS col1, - col0 FROM tab0 AS cor0
----
8
-15
8
-87
8
-97

query II rowsort
SELECT DISTINCT + + 44 AS col2, + col1 * + 45 AS col2 FROM tab0 AS cor0
----
44
3645
44
45
44
945

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - COUNT( * ) * + 92 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - COUNT ( * ) * + 92 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-828

query I rowsort
SELECT ALL + col1 - + 95 FROM tab2 AS cor0 WHERE - col2 + 74 IS NOT NULL
----
-18
-28
-44

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT MAX( ALL - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3308
SELECT MAX ( ALL - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) * + 27 + + - COUNT( DISTINCT - ( + col1 ) ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) * + 27 + + - COUNT ( DISTINCT - ( + col1 ) ) FROM tab2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3311
SELECT ALL - ( 74 ), + COUNT( * ) * - CAST( + 52 AS SIGNED ) - - 69 - - 85 AS col1 FROM tab1
----
-74
-2

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL - ( 74 ), + COUNT ( * ) * - CAST ( + 52 AS INTEGER ) - - 69 - - 85 AS col1 FROM tab1
----
-74
-2

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE - - 35 >= + col1
----
-48
-48

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 / + ( col0 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3314
SELECT ALL ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT 32 * 17 AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
544
3

skipif mysql # not compatible
query II rowsort label-3315
SELECT 32 * 17 AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
544
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL CAST( + 13 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL CAST ( + 13 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT SUM( - - 94 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
846

skipif mysql # not compatible
query I rowsort label-3317
SELECT SUM ( - - 94 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
846

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 91 IN ( - 41, + 84, - ( - col0 ) * + 33 + - + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL col0 + - 81 FROM tab2
----
-17
-35
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3321
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - + col2 AS col0 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3323
SELECT + col0 FROM tab1 AS cor0 WHERE NULL <= CAST( 44 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3323
SELECT + col0 FROM tab1 AS cor0 WHERE NULL <= CAST ( 44 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - + COUNT( * ) - - 92 col0 FROM tab1 cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT ALL - + COUNT ( * ) - - 92 col0 FROM tab1 cor0
----
89

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 34 + col0 * - 25 AS col0 FROM tab1 AS cor0
----
-1241
-2091
-2241

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - 53 + + - 28 * + 65 FROM tab1 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT ALL - 39 - + col0 + - 53 AS col1 FROM tab2 AS cor0
----
-138
-156
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL - - 79 - COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL - - 79 - COUNT ( * ) FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + COUNT( * ) / + 51 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) / + 51 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col0 * - col1 * col1 * - - col0 FROM tab2 WHERE NOT + 1 IS NULL
----
-24285184
-25250625
-5503716

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL NOT IN ( + - col1 - - col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + COUNT( - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + COUNT ( - + col1 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 46 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL < - 53 * ( - col2 ) + col0 + + col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - 43 / + - 72 + + - col2 - - col2 + - col0 BETWEEN col1 / - 79 AND - - col1 - + col0
----

query I rowsort
SELECT + col2 * + - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT - + CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3339
SELECT - + CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 64 * + col1 - - + col0 + - col2 * 32 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT 39 * + - MIN( ALL - col0 ) * + - 38 - + - ( 4 ) + - 82 AS col1 FROM tab0 AS cor0
----
-143832

skipif mysql # not compatible
query I rowsort label-3341
SELECT 39 * + - MIN ( ALL - col0 ) * + - 38 - + - ( 4 ) + - 82 AS col1 FROM tab0 AS cor0
----
-143832

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT + + MAX( - 33 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3342
SELECT + + MAX ( - 33 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT + CAST( NULL AS SIGNED ) + + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT + CAST ( NULL AS INTEGER ) + + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + - 80 * + 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3347
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( col0 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3347
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( col0 AS INTEGER ) ) > NULL
----

query I rowsort
SELECT DISTINCT + 46 + - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 23 + - 85 AS col0 FROM tab1
----
-62
-62
-62

query II rowsort
SELECT - 44 AS col0, col1 * - col0 AS col2 FROM tab0
----
-44
-1215
-44
-1827
-44
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 + - 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - 6 + + + ( - COUNT( * ) ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 6 + + + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT + col0 AS col1, 7 AS col2, 70 * col1 AS col2 FROM tab1
----
9 values hashing to a9b4d276adc46e80bbdd85241587132e

query I rowsort
SELECT DISTINCT ( + col1 ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 WHERE col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL 9 * COUNT( * ) * 20 * + ( COUNT( * ) ) FROM tab1
----
1620

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL 9 * COUNT ( * ) * 20 * + ( COUNT ( * ) ) FROM tab1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + 87 * - COUNT( * ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 87 * - COUNT ( * ) FROM tab1
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT + 71 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 71 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + COUNT( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3362
SELECT + COUNT ( - col1 ) FROM tab0
----
3

query I rowsort
SELECT ALL - + 15 + - 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + CAST( - - 53 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort label-3364
SELECT + CAST ( - - 53 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 - - - col1 + + ( + 87 ) col2 FROM tab1 cor0 WHERE ( NOT NULL >= - col0 )
----

query I rowsort
SELECT 99 * - col0 FROM tab1 AS cor0
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + COUNT( * ) * - - 60 * + ( 16 ) AS col1 FROM tab0
----
2880

skipif mysql # not compatible
query I rowsort label-3367
SELECT + COUNT ( * ) * - - 60 * + ( 16 ) AS col1 FROM tab0
----
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 * + 70 AS col2 FROM tab1
----
59
4130
68
4760
96
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL + + 38 + - COUNT( * ) FROM tab2 WHERE NOT + col1 - 26 BETWEEN + col2 + - 11 / col1 * + 28 * - + col1 AND - col2
----
35

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + + 38 + - COUNT ( * ) FROM tab2 WHERE NOT + col1 - 26 BETWEEN + col2 + - 11 / col1 * + 28 * - + col1 AND - col2
----
35

query I rowsort
SELECT col1 * 23 AS col1 FROM tab2
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT - col1 DIV - + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3372
SELECT - col1 / - + col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - COUNT( + ( + col0 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3373
SELECT - COUNT ( + ( + col0 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL NOT IN ( + - col0 + col0 * - col0 + - + col1, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( + - col0 + col0 * - col0 + - + col1, + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3375
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + ( + col0 ) + + col2 * + 42 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3375
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + ( + col0 ) + + col2 * + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 47 * COUNT( * ) * - - 81 FROM tab1
----
-11421

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 47 * COUNT ( * ) * - - 81 FROM tab1
----
-11421

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3378
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT + col1 * CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3379
SELECT + col1 * CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT + - SUM( - + col2 ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + - SUM ( - + col2 ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT - 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL - - MIN( - col1 ) * + + COUNT( * ) + + - 57 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-288

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - - MIN ( - col1 ) * + + COUNT ( * ) + + - 57 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-288

query II rowsort
SELECT + ( 30 ) + + col1 * + + 76 * - col0 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-178266
46
-374498
64
-381870
75

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT COUNT( * ) - + 2 AS col0 FROM tab2 WHERE + - ( col1 ) <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT COUNT ( * ) - + 2 AS col0 FROM tab2 WHERE + - ( col1 ) <= - col0
----
0

query II rowsort
SELECT ALL - col1 * + col1 + + - col2 + - 34 + ( col1 ) * - 85 * - - 53 + ( + 21 ) AS col1, 87 * + col1 AS col1 FROM tab1
----
-214025
4089
-22622
435
-63375
1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT col1 + - 72 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT col1 + - 72 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 99 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 * + + col1 AS col2 FROM tab0
----
38367
97
98415

query I rowsort
SELECT DISTINCT 76 * + col0 * - col0 + + col0 AS col1 FROM tab0
----
-17085
-575157
-714987

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 39 - + col2 * - col2 / 11 / - 37, + ( - col0 ), 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL 6 + COUNT( DISTINCT - col2 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL 6 + COUNT ( DISTINCT - col2 ) FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 * - 20 ) < - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3396
SELECT - + COUNT( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT - + COUNT ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( + col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( - 82 ) AS col0 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT COUNT( * ) * + 93 * + MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
16182

skipif mysql # not compatible
query I rowsort label-3399
SELECT COUNT ( * ) * + 93 * + MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
16182

query I rowsort
SELECT - - 76 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3401
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 44, + col2 + col0 AS col1 FROM tab2
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-3401
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 44, + col2 + col0 AS col1 FROM tab2
----
NULL
104
NULL
133
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + MIN( DISTINCT - + col2 ) - - ( - MIN( col0 ) ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) - - ( - MIN ( col0 ) ) FROM tab0
----
-114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT 90 DIV col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT 90 / col0 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - col2 col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT - 80 * - + 54 * + COUNT( * ) FROM tab1 AS cor0
----
12960

skipif mysql # not compatible
query I rowsort label-3408
SELECT - 80 * - + 54 * + COUNT ( * ) FROM tab1 AS cor0
----
12960

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 <= NULL
----

query II rowsort
SELECT ALL + 50 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
50
-15
50
-87
50
-97

query II rowsort
SELECT ALL + - col2, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT SUM( DISTINCT + - col1 ) * - COUNT( * ) AS col0 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-3413
SELECT SUM ( DISTINCT + - col1 ) * - COUNT ( * ) AS col0 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + - MIN( + col0 ) FROM tab2 WHERE NOT ( NOT - col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + - MIN ( + col0 ) FROM tab2 WHERE NOT ( NOT - col2 IS NULL )
----
NULL

query I rowsort
SELECT ALL + 13 * - 48 * - 93 AS col0 FROM tab1
----
58032
58032
58032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT DISTINCT COUNT( - ( - ( + - col1 ) ) ) DIV + + MIN( + col1 ) + + 60 * - 32 AS col1 FROM tab0
----
-1917

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT COUNT ( - ( - ( + - col1 ) ) ) / + + MIN ( + col1 ) + + 60 * - 32 AS col1 FROM tab0
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT + COUNT( * ) * 41 AS col0 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + COUNT ( * ) * 41 AS col0 FROM tab0
----
123

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query II rowsort
SELECT + + ( - col2 ) AS col1, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT - col0 * + CAST( NULL AS SIGNED ) >= + - 2
----

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT - col0 * + CAST ( NULL AS INTEGER ) >= + - 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL 10 DIV + col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 10 / + col1 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT COUNT( * ) + - + 32 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3423
SELECT COUNT ( * ) + - + 32 FROM tab1
----
-29

query I rowsort
SELECT - col1 + - 58 - + col2 * - 48 * + 23 + ( col0 ) * + - col1 AS col2 FROM tab1 AS cor0
----
105198
64648
70690

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ALL + 94, - col2 AS col1 FROM tab0 AS cor0
----
94
-10
94
-47
94
-99

query II rowsort
SELECT ALL + col0, + col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( ALL + 35 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3429
SELECT COUNT ( ALL + 35 ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT DISTINCT 43 + CAST( - + col1 AS SIGNED ) FROM tab0
----
-38
22
42

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT 43 + CAST ( - + col1 AS INTEGER ) FROM tab0
----
-38
22
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - - ( - col0 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - ( - col0 ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 85 FROM tab0
----
-38
-75
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL COUNT( * ) + - SUM( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL COUNT ( * ) + - SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 + + - ( col2 ) FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL SUM( ALL 52 ) * + - 17 AS col2 FROM tab2 WHERE NOT col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL SUM ( ALL 52 ) * + - 17 AS col2 FROM tab2 WHERE NOT col1 > NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + COUNT( DISTINCT - 33 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3437
SELECT + COUNT ( DISTINCT - 33 ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 * - ( - 75 ), - 51 col1 FROM tab2
----
2550
-51
2550
-51
2550
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT DISTINCT ( - ( + COUNT( * ) ) ) AS col0, 71 AS col2 FROM tab2
----
-3
71

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) AS col0, 71 AS col2 FROM tab2
----
-3
71

query I rowsort
SELECT ALL + + 59 AS col2 FROM tab1 AS cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col1 + - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 4 AS col1 FROM tab1 cor0
----
4
4
4

query I rowsort
SELECT ALL + 93 * col1 AS col1 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - MIN( ALL + + 11 ) FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3444
SELECT - MIN ( ALL + + 11 ) FROM tab2 cor0
----
-11

query II rowsort
SELECT ALL col1 * - col2, col0 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3446
SELECT DISTINCT CAST( NULL AS DECIMAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3446
SELECT DISTINCT CAST ( NULL AS REAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3447
SELECT ALL ( + 78 ) * - + CAST( NULL AS DECIMAL ) * + + col0 col0, - col0 AS col1 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-3447
SELECT ALL ( + 78 ) * - + CAST ( NULL AS REAL ) * + + col0 col0, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT COUNT( + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3448
SELECT COUNT ( + col2 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT col2, + ( - 63 ) AS col1 FROM tab0
----
10
-63
47
-63
99
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3450
SELECT 1 * COUNT( * ) DIV 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3450
SELECT 1 * COUNT ( * ) / 45 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT + col0 DIV - - 69 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + col0 / - - 69 AS col1 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - SUM( - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - SUM ( - col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT - CAST( + - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3454
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT ALL - - ( - + col0 ) DIV col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - - ( - + col0 ) / col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT ALL + - 3 * - col0 * + - col0 FROM tab0 AS cor0
----
-22707
-28227
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT ALL - col0 DIV - col2 + + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
12
2
6

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - col0 / - col2 + + + col2 / col1 AS col1 FROM tab1 AS cor0
----
12
2
6

query II rowsort
SELECT + + 2 * + col1 * col0 + + ( col0 ) AS col1, - 96 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 93 IS NULL
----

query I rowsort
SELECT - 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3462
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL AND NOT + CAST( NULL AS SIGNED ) * - 99 * - 57 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3462
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL AND NOT + CAST ( NULL AS INTEGER ) * - 99 * - 57 IS NULL
----

query I rowsort
SELECT - col0 + - + col0 + + - 86 AS col1 FROM tab2 AS cor0
----
-178
-214
-236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + + col0, 15 * - + col2 col1 FROM tab1 AS cor0
----
-45
-1440
23
-1020
26
-885

query I rowsort
SELECT ALL - - col1 * - 92 + col1 * col0 AS col2 FROM tab2 AS cor0
----
-1139
-2156
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - COUNT( * ) + - - ( - 9 ) * + - 52 FROM tab1 cor0
----
465

skipif mysql # not compatible
query I rowsort label-3466
SELECT - COUNT ( * ) + - - ( - 9 ) * + - 52 FROM tab1 cor0
----
465

query I rowsort
SELECT DISTINCT col2 * + - col0 + - 73 FROM tab1 AS cor0
----
-4969
-5088
-6261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( 69 ) + col1 col1 FROM tab0 cor0 WHERE + ( col0 ) > + 35
----
-669
-6830

query I rowsort
SELECT ALL - + 26 FROM tab0 cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - 27 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + 72 + - + col1 AS col1 FROM tab0
----
-9
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL COUNT( ALL + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL COUNT ( ALL + - col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 3 + - - col1 AS col1 FROM tab0
----
-2
18
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + COUNT( * ) - + COUNT( ALL + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3475
SELECT + COUNT ( * ) - + COUNT ( ALL + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT DISTINCT - - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + COUNT( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3477
SELECT + COUNT ( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col1 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ( col2 ) * ( - 29 ) AS col1 FROM tab2 WHERE - col0 / - 81 + - 1 * + CAST( NULL AS SIGNED ) IS NULL
----
-1160
-1682
-667

skipif mysql # not compatible
query I rowsort label-3479
SELECT ( col2 ) * ( - 29 ) AS col1 FROM tab2 WHERE - col0 / - 81 + - 1 * + CAST ( NULL AS INTEGER ) IS NULL
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT MIN( + 48 ) col2 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3480
SELECT DISTINCT MIN ( + 48 ) col2 FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT - COUNT( - CAST( col1 AS SIGNED ) ) * + COUNT( * ) + MIN( + col1 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-3481
SELECT - COUNT ( - CAST ( col1 AS INTEGER ) ) * + COUNT ( * ) + MIN ( + col1 ) AS col1 FROM tab1
----
-4

query I rowsort
SELECT + ( - ( col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - SUM( - 7 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3483
SELECT - SUM ( - 7 ) FROM tab1
----
21

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= 57 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 93 = NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + 70 < ( + 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( col2 ) ) col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * 52 col0 FROM tab1 WHERE NOT col2 + col2 * col2 NOT BETWEEN - col1 AND 20
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE col1 = 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT MIN( ALL + col2 ) - + COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3493
SELECT MIN ( ALL + col2 ) - + COUNT ( * ) FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT DISTINCT col1 - col0 * + CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab1 WHERE ( - 59 + col1 ) <= + 42
----
-420
-4230
-700

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT col1 - col0 * + CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab1 WHERE ( - 59 + col1 ) <= + 42
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT COUNT ( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + COUNT( * ) * 8 + + 58 AS col2 FROM tab1 WHERE - col0 - - 36 IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + COUNT ( * ) * 8 + + 58 AS col2 FROM tab1 WHERE - col0 - - 36 IS NOT NULL
----
82

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 71 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 95 col2 FROM tab2
----
-20
-31
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - 71 )
----

skipif mysql # not compatible
query I rowsort label-3502
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT - COUNT( + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3503
SELECT - COUNT ( + col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - MIN( ALL col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3504
SELECT - MIN ( ALL col0 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab2 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT - ( 10 ) FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT COUNT( ALL + 47 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT COUNT ( ALL + 47 ) FROM tab1
----
3

query I rowsort
SELECT + 67 + 11 FROM tab0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 58 < ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + + 51 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + COUNT( * ) * + 35 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + COUNT ( * ) * + 35 FROM tab2 AS cor0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3512
SELECT DISTINCT + CAST( MIN( 4 ) AS SIGNED ) DIV COUNT( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT + CAST ( MIN ( 4 ) AS INTEGER ) / COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + 37 ) * col0 AS col1 FROM tab1 AS cor0
----
1887
3145
3367

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( 59 + col2 ) NOT IN ( - ( col1 ) + col0 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL + 48 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + 48 / col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT - + CAST( 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-3517
SELECT - + CAST ( 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT + 22 * MAX( + 52 ) FROM tab0 cor0
----
1144

skipif mysql # not compatible
query I rowsort label-3518
SELECT + 22 * MAX ( + 52 ) FROM tab0 cor0
----
1144

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE col0 NOT BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = col2
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT + COUNT( * ) DIV - 83 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT + COUNT ( * ) / - 83 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3524
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( 70 * + 84 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3524
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( 70 * + 84 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0 WHERE + col2 * + 2 NOT BETWEEN + 76 AND NULL
----
-67

query I rowsort
SELECT col0 FROM tab0 WHERE col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - - 7 / 52 AS col0 FROM tab0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 78 * col1 col2 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT col0 * 65 - col1 AS col0 FROM tab1
----
3301
5520
5868

query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) + - col1 FROM tab2
----
1122
3003
3819

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 63 + col1 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + col0 - ( - col2 + - 59 ) col1 FROM tab0
----
177
202
256

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT 35 + + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT 35 + + COUNT ( * ) AS col2 FROM tab2
----
38

query III rowsort
SELECT * FROM tab2 WHERE - col2 / - 1 + 62 <= + col0
----

query I rowsort
SELECT ALL + AVG ( + col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT 84 + + SUM( DISTINCT - col2 ) - - ( SUM( + 35 ) ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3537
SELECT 84 + + SUM ( DISTINCT - col2 ) - - ( SUM ( + 35 ) ) FROM tab2
----
68

query I rowsort
SELECT DISTINCT col0 * - col2 * + 90 - col2 FROM tab0
----
-63497
-78310
-864369

query I rowsort
SELECT DISTINCT col2 - - 88 AS col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT + ( + 16 ) FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - ( ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3544
SELECT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL - 95 + COUNT( * ) * + 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - 95 + COUNT ( * ) * + 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT COUNT( * ) * 42 AS col2 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT COUNT ( * ) * 42 AS col2 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT + MIN( - + 64 ) DIV + COUNT( * ) col1 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3548
SELECT + MIN ( - + 64 ) / + COUNT ( * ) col1 FROM tab0
----
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT - col1 DIV - 9 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3550
SELECT - col1 / - 9 FROM tab1
----
0
1
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 > NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - 50 * - col2 AS col1 FROM tab1 AS cor0
----
51
4800
85
2950
91
3400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - + col0 BETWEEN + 40 + 9 AND NULL
----

query I rowsort
SELECT ALL 54 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 99 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col1 + + 52
----

query I rowsort
SELECT ALL - + 50 * + col1 FROM tab1 cor0
----
-2350
-250
-700

query I rowsort
SELECT DISTINCT + col0 * - + 44 AS col0 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT + CAST( NULL AS SIGNED ) * - col0 * - - CAST( col0 AS SIGNED ) + 58 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT + CAST ( NULL AS INTEGER ) * - col0 * - - CAST ( col0 AS INTEGER ) + 58 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - ( - MAX( ALL + - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3559
SELECT - ( - MAX ( ALL + - col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL MIN( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL MIN ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - COUNT( * ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT - COUNT ( * ) col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + ( col0 ) * + 52 AS col0 FROM tab0
----
4524
5044
780

query I rowsort
SELECT col2 * - 19 + - + col1 FROM tab0
----
-1882
-211
-974

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col2 * + col2 - + col0 >= ( col1 + - col2 * col0 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - col0 + col0 IN ( + ( col1 ) * col2 + + col1 * - ( - col2 ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT MAX( - 63 ) + - + MAX( - 78 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3566
SELECT MAX ( - 63 ) + - + MAX ( - 78 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL COUNT( ALL col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL COUNT ( ALL col0 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 81 * - 86 AS col1, - 25 AS col1 FROM tab2
----
-6966
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT + CAST( - col2 AS SIGNED ) + + col0 AS col2 FROM tab1 cor0 WHERE ( - col1 / 6 NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-3569
SELECT + CAST ( - col2 AS INTEGER ) + + col0 AS col2 FROM tab1 cor0 WHERE ( - col1 / 6 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - ( MIN( ALL col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - ( MIN ( ALL col1 ) ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 72 col2, - col1 AS col1 FROM tab1
----
-72
-14
-72
-47
-72
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - MAX( - 59 ) / - - 21 - COUNT( * ) * - 79 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT - MAX ( - 59 ) / - - 21 - COUNT ( * ) * - 79 FROM tab2 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT - - CAST( - + col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3574
SELECT - - CAST ( - + col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 93 - 8 * - + col2 FROM tab2 AS cor0
----
227
371
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + ( 88 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT - + COUNT( * ) DIV MAX( - - col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - + COUNT ( * ) / MAX ( - - col1 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + - + col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT DISTINCT 9 - + MIN( - col1 ) AS col0, ( - + ( + 73 ) ) AS col0 FROM tab1 AS cor0
----
56
-73

skipif mysql # not compatible
query II rowsort label-3579
SELECT DISTINCT 9 - + MIN ( - col1 ) AS col0, ( - + ( + 73 ) ) AS col0 FROM tab1 AS cor0
----
56
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + COUNT( * ) + - - 81 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + COUNT ( * ) + - - 81 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT col0 * - 30 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT ALL col0 + col2 DIV + + col0 col1 FROM tab1
----
52
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3582
SELECT ALL col0 + col2 / + + col0 col1 FROM tab1
----
52
85
91

query III rowsort
SELECT ALL + col1 AS col1, - col1, - - 82 - - col1 + + 67 * + + 27 AS col0 FROM tab1
----
9 values hashing to ee99cb93212c6823cbeb96f795604e60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + COUNT( DISTINCT - + col0 ) + 8 AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + COUNT ( DISTINCT - + col0 ) + 8 AS col2 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL + 32 + - + MIN( col0 ) * - 62 col0 FROM tab1 WHERE ( NULL NOT IN ( 52 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3586
SELECT ALL + 32 + - + MIN ( col0 ) * - 62 col0 FROM tab1 WHERE ( NULL NOT IN ( 52 ) )
----
NULL

query I rowsort
SELECT ALL 49 AS col0 FROM tab0 cor0
----
49
49
49

query II rowsort
SELECT - + col1 AS col1, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT ALL + col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT - col0 * col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-3591
SELECT - col0 * col2 / - - col1 AS col2 FROM tab1 AS cor0
----
-1003
-131
-349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 86 col2 FROM tab1 AS cor0
----
NULL
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3592
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 86 col2 FROM tab1 AS cor0
----
NULL
-86

query I rowsort
SELECT + col2 * col2 + - 33 * 83 FROM tab0 cor0 WHERE NOT ( + col0 * - - col2 * - col1 ) IS NULL
----
-2639
-530
7062

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT DISTINCT 26 AS col2, ( COUNT( * ) ) FROM tab1 cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3594
SELECT DISTINCT 26 AS col2, ( COUNT ( * ) ) FROM tab1 cor0
----
26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT ALL col0 DIV + - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL col0 / + - col1 AS col1 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 46 * - col2 * col0 * + col0 * - - 91 BETWEEN ( col2 + col0 ) AND col1 * col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - - col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - - MIN( + 37 ) col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT - - MIN ( + 37 ) col0 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - - COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3599
SELECT - - COUNT ( * ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL 90 + - COUNT( * ) col2 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3600
SELECT ALL 90 + - COUNT ( * ) col2 FROM tab0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT + COUNT( * ) + + MAX( CAST( 81 AS SIGNED ) ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + COUNT ( * ) + + MAX ( CAST ( 81 AS INTEGER ) ) AS col2 FROM tab2
----
84

query II rowsort
SELECT + 28 AS col0, - col0 AS col2 FROM tab2
----
28
-46
28
-64
28
-75

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE ( - col1 ) >= - - 8 + - 50 + + - col2
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( - + ( - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT SUM( - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3605
SELECT SUM ( - - col1 ) FROM tab1
----
66

query II rowsort
SELECT col1 AS col1, + 67 AS col1 FROM tab2
----
51
67
67
67
77
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT COUNT( * ) * + SUM( ALL - - 24 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-3607
SELECT COUNT ( * ) * + SUM ( ALL - - 24 ) FROM tab2
----
216

query I rowsort
SELECT DISTINCT col1 * ( + 69 ) FROM tab0
----
1449
5589
69

query I rowsort
SELECT + ( + - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + 22 + + - COUNT( * ) + - + COUNT( - col2 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 22 + + - COUNT ( * ) + - + COUNT ( - col2 ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3613
SELECT + CAST( - + MIN( + + col0 ) AS SIGNED ) DIV - 71 * 9 + - + SUM( ALL - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3613
SELECT + CAST ( - + MIN ( + + col0 ) AS INTEGER ) / - 71 * 9 + - + SUM ( ALL - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + 44 + + COUNT( * ) - 64 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-3614
SELECT + 44 + + COUNT ( * ) - 64 FROM tab0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT - col2 + - 3 - 27 DIV + col2 AS col2 FROM tab1
----
-62
-71
-99

skipif mysql # not compatible
query I rowsort label-3615
SELECT - col2 + - 3 - 27 / + col2 AS col2 FROM tab1
----
-62
-71
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 25 IS NULL
----

query II rowsort
SELECT ALL + col0 + + col2 AS col1, - col0 AS col1 FROM tab2
----
104
-64
133
-75
69
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 29 * - 39 NOT IN ( 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 - - col2 * - 4 AS col1 FROM tab2 AS cor0
----
-138
-224
-307

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL 78 - + col2 FROM tab2 AS cor0
----
20
38
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 46 AS col2, 57 * - ( - + 49 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 - col0 + + col0 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col1 + + col2 = 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 65 * + col1 )
----

query I rowsort
SELECT ALL + col1 * - 44 AS col0 FROM tab2
----
-2244
-2948
-3388

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT 35 DIV - col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT 35 / - col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL + col2 * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT 57 AS col1, col0 FROM tab1
----
57
51
57
85
57
91

query I rowsort
SELECT - 43 * + col1 * 66 FROM tab2
----
-144738
-190146
-218526

query I rowsort
SELECT DISTINCT + 25 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NULL > - col1 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3636
SELECT DISTINCT 95 AS col2, 20 DIV + 32 FROM tab0
----
95
0

skipif mysql # not compatible
query II rowsort label-3636
SELECT DISTINCT 95 AS col2, 20 / + 32 FROM tab0
----
95
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + - col0 + + col1 + + - col2 * - 82 * + 30 * col1 * col0 - - col1 / 62 col1 FROM tab1 WHERE NOT - + 33 + - + 84 > ( NULL )
----

query I rowsort
SELECT col1 * - 94 * col1 + + + 9 + + col1 * - col1 AS col0 FROM tab2 WHERE NOT - 59 IS NULL
----
-247086
-426446
-563246

query I rowsort
SELECT DISTINCT ( + 91 ) * + + col0 + + col1 * - col0 FROM tab2
----
1800
1840
896

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / 64 IS NOT NULL
----

query II rowsort
SELECT ALL - 3, col2 FROM tab0 AS cor0
----
-3
10
-3
47
-3
99

query I rowsort
SELECT DISTINCT + col2 + - 12 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3643
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3643
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - + 56 / - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - 21 * - - 84 - - - COUNT( * ) FROM tab2 AS cor0
----
-1767

skipif mysql # not compatible
query I rowsort label-3645
SELECT - 21 * - - 84 - - - COUNT ( * ) FROM tab2 AS cor0
----
-1767

query I rowsort
SELECT DISTINCT + + col1 * + 89 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT ALL col1 * + - 34 - col2 * - col1 + + col2 + col2 * + 13 AS col1 FROM tab1 AS cor0
----
2212
2550
951

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + - col0 - - 3 * + col1 - + - ( - + 32 ) - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + - col0 - - 3 * + col1 - + - ( - + 32 ) - col2 )
----
0

query I rowsort
SELECT ALL + 65 + - 21 AS col1 FROM tab0
----
44
44
44

query I rowsort
SELECT ALL - 25 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - MIN( ALL col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3651
SELECT - MIN ( ALL col2 ) AS col2 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - - 44 * + COUNT( * ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3652
SELECT - - 44 * + COUNT ( * ) FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3653
SELECT - col2 * - CAST( NULL AS DECIMAL ) - - 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT - col2 * - CAST ( NULL AS REAL ) - - 53 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT col1 * - col2 * - - CAST( NULL AS SIGNED ) * + + 48 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-3655
SELECT col1 * - col2 * - - CAST ( NULL AS INTEGER ) * + + 48 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * - 85 + - 30 FROM tab2
----
4305
5665
6515

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT + COUNT( 76 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + COUNT ( 76 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col0 * - 17 + - col2 FROM tab1
----
-1504
-1615
-963

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3659
SELECT ALL * FROM tab2 WHERE NOT - ( - 71 ) * - CAST( ( - col1 ) AS DECIMAL ) + + col0 < ( - - col0 ) AND NOT ( col0 + + + col1 + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3659
SELECT ALL * FROM tab2 WHERE NOT - ( - 71 ) * - CAST ( ( - col1 ) AS REAL ) + + col0 < ( - - col0 ) AND NOT ( col0 + + + col1 + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 99 + - col2 AS col2 FROM tab2 AS cor0
----
-122
-139
-157

query I rowsort
SELECT ( + col2 ) * col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + - 48 + - + MIN( + - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT + - 48 + - + MIN ( + - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL < - col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN 90 AND + 59 * - - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - - ( - col0 ) col1, 26 * + 55 * - col2 AS col0 FROM tab0 AS cor0
----
-108
-14300
-96
-67210
-98
-141570

query II rowsort
SELECT + + col1 AS col0, 25 FROM tab1 AS cor0
----
14
25
47
25
5
25

query I rowsort
SELECT - + ( - + col0 ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + 75 AS col0, col1 AS col0 FROM tab0 AS cor0
----
75
1
75
21
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL + - 20 * - COUNT( * ) + - - SUM( DISTINCT + - 38 ) + - COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + - 20 * - COUNT ( * ) + - - SUM ( DISTINCT + - 38 ) + - COUNT ( * ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT DISTINCT col0 * 59 - + col1 AS col2 FROM tab0 WHERE NOT col2 > - col0
----

query I rowsort
SELECT ALL 6 * 93 FROM tab2
----
558
558
558

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - col1 + 62, col2 + - col1 )
----

query I rowsort
SELECT - 11 * 11 FROM tab1
----
-121
-121
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( + col1 ) col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT + col1 * + 31 AS col0 FROM tab2
----
1581
2077
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + SUM( DISTINCT - + 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3676
SELECT + SUM ( DISTINCT - + 86 ) AS col0 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT DISTINCT + 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
55

query I rowsort
SELECT ALL 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT col1 DIV - - col0 - - + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
24
41
58

skipif mysql # not compatible
query I rowsort label-3679
SELECT col1 / - - col0 - - + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
24
41
58

query I rowsort
SELECT ALL - col0 * ( + col2 ) AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + + 55 AS col0 FROM tab1 cor0
----
55

query I rowsort
SELECT 15 FROM tab0 AS cor0 WHERE NOT - col0 * + - 16 IS NULL
----
15
15
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col0 > + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT - 27 + + - COUNT( * ) + 40 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3685
SELECT - 27 + + - COUNT ( * ) + 40 FROM tab2 cor0
----
10

query I rowsort
SELECT - 36 * - col0 * - + col1 FROM tab0 AS cor0
----
-3492
-43740
-65772

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT 58 DIV + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT 58 / + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + col0 * - 37 + + + col1 FROM tab1 AS cor0
----
-1873
-3140
-3320

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE ( - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE ( - + col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT COUNT( * ) + - MIN( ALL + + col2 ) col2 FROM tab0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL + + col2 ) col2 FROM tab0
----
-7

query I rowsort
SELECT ALL col2 * - - 88 - + - col0 FROM tab0
----
4151
8809
967

query I rowsort
SELECT col1 - - 87 + - + 43 FROM tab1
----
49
58
91

query I rowsort
SELECT - - col0 FROM tab1 WHERE + col2 IS NOT NULL AND NOT - col1 * + + 81 / col2 <= - 29 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + SUM( DISTINCT - - col0 ) - + + COUNT( * ) AS col0 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-3696
SELECT + SUM ( DISTINCT - - col0 ) - + + COUNT ( * ) AS col0 FROM tab2
----
182

query II rowsort
SELECT ALL + 83 AS col1, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
14
83
47
83
5

query I rowsort
SELECT - ( col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + - + col0 * col1 col1 FROM tab2 AS cor0
----
-2273
-4855
-4952

query II rowsort
SELECT col1 * - ( 64 ) AS col1, + 98 * 2 AS col1 FROM tab2
----
-3264
196
-4288
196
-4928
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( * ) * + - 59 AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( * ) * + - 59 AS col0 FROM tab0
----
-177

query I rowsort
SELECT ALL 46 * 20 + - 27 FROM tab1
----
893
893
893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT DISTINCT + 95 DIV MAX( ALL + - col1 ) + - + COUNT( * ) AS col1 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 95 / MAX ( ALL + - col1 ) + - + COUNT ( * ) AS col1 FROM tab2
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT - + 56 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN 58 AND - col1
----

skipif mysql # not compatible
query I rowsort label-3705
SELECT - + 56 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN 58 AND - col1
----

query I rowsort
SELECT ALL - + 22 FROM tab0 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT + + MAX( + col1 ) col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3707
SELECT DISTINCT + + MAX ( + col1 ) col0 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

query II rowsort
SELECT 13 AS col0, col2 - - 26 + 94 AS col2 FROM tab0
----
13
130
13
167
13
219

onlyif mysql # DIV for integer division: 
query II rowsort label-3710
SELECT DISTINCT 34 AS col2, col1 DIV - col2 * col0 AS col0 FROM tab1
----
34
0

skipif mysql # not compatible
query II rowsort label-3710
SELECT DISTINCT 34 AS col2, col1 / - col2 * col0 AS col0 FROM tab1
----
34
0

query I rowsort
SELECT col1 * + 57 AS col2 FROM tab2
----
2907
3819
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT - col0 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT - col0 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + 69 * + + COUNT( * ) AS col0 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-3713
SELECT + 69 * + + COUNT ( * ) AS col0 FROM tab0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE NOT + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col0 < NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 11 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT 56 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-3717
SELECT 56 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
56
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3718
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - 36 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - 36 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 96 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - col1 * col0 + + col0 NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT col0 + + col2 / + col2 - + 76 * - col1 * + + 43 * + - 40 FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col2 <= + col0
----

skipif mysql # not compatible
query I rowsort label-3722
SELECT + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col2 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3723
SELECT + + ( + col1 ) * CAST( + + 99 AS SIGNED ), 84 - col2 AS col0 FROM tab0 cor0
----
2079
74
8019
37
99
-15

skipif mysql # not compatible
query II rowsort label-3723
SELECT + + ( + col1 ) * CAST ( + + 99 AS INTEGER ), 84 - col2 AS col0 FROM tab0 cor0
----
2079
74
8019
37
99
-15

query I rowsort
SELECT ALL col1 * + 81 AS col0 FROM tab0 cor0
----
1701
6561
81

query I rowsort
SELECT DISTINCT - ( - + col2 ) * col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT - - col1 + col2 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
1343
1858
197

query I rowsort
SELECT - col0 + + col1 * - 34 AS col1 FROM tab0 AS cor0
----
-131
-2769
-801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 95 + + col1 FROM tab1 cor0
----
100
109
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT ALL col2 DIV + 95 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3730
SELECT ALL col2 / + 95 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT + 56 DIV - 35 + + col2 * col1 AS col0 FROM tab1 cor0
----
1343
294
3195

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 56 / - 35 + + col2 * col1 AS col0 FROM tab1 cor0
----
1343
294
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + COUNT ( + col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL + 38 + - - COUNT( * ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + 38 + - - COUNT ( * ) AS col0 FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col2 col0 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT col0 + - 42 + + ( + 68 ) FROM tab2
----
101
72
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL col0 DIV + + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL col0 / + + col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 43 + col1 FROM tab0
----
124
44
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3740
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE ( + + col1 ) * - col1 * + col0 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3740
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE ( + + col1 ) * - col1 * + col0 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 34 + + 35 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT ALL + col1 DIV - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + col1 / - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - 2 FROM tab2
----
49
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 59 * + col2 * + - col2 AS col0 FROM tab1
----
-205379
-272816
-543744

query I rowsort
SELECT ALL - - 91 AS col2 FROM tab1 cor0
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 77 BETWEEN NULL AND col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT ALL + - 1, + MAX( ALL - - 11 ) AS col2 FROM tab2 AS cor0
----
-1
11

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL + - 1, + MAX ( ALL - - 11 ) AS col2 FROM tab2 AS cor0
----
-1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + MIN( ALL + - 49 ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3749
SELECT + MIN ( ALL + - 49 ) FROM tab0 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 12 ) col1 FROM tab2 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + ( MAX( ALL 42 ) ) col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3752
SELECT DISTINCT + ( MAX ( ALL 42 ) ) col0 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT - col2 * 13 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 76, 31 * + col2 * - - ( - + col0 ) * 22 * + - col2 / - ( - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-3753
SELECT - col2 * 13 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 76, 31 * + col2 * - - ( - + col0 ) * 22 * + - col2 / - ( - - CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - + col2 ) IN ( + + ( - - col0 ) - + col0 + col0 + col1 + + 40 + - col2, - col2 / - col2 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - COUNT( 55 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - COUNT ( 55 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT COUNT( ALL col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT + COUNT( col2 ) DIV - - 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT + COUNT ( col2 ) / - - 87 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + ( - + 44 ) < + col0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + ( - + 44 ) < + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT 96 * - + CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab2
----
-249696
-430944
-569184

skipif mysql # not compatible
query I rowsort label-3759
SELECT 96 * - + CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab2
----
-249696
-430944
-569184

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT + 38 DIV + col2 + + - col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3760
SELECT + 38 / + col2 + + - col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - 42 * + SUM( ALL col1 ) FROM tab0 AS cor0
----
-4326

skipif mysql # not compatible
query I rowsort label-3761
SELECT - 42 * + SUM ( ALL col1 ) FROM tab0 AS cor0
----
-4326

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 35 + + col1 - + - col0 col0 FROM tab2
----
-1259
-1888
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT - COUNT( * ) * 22 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - COUNT ( * ) * 22 FROM tab2
----
-66

query I rowsort
SELECT ALL + 99 * - 90 AS col2 FROM tab1
----
-8910
-8910
-8910

query I rowsort
SELECT + col2 + - - col2 * col0 * 19 AS col1 FROM tab2
----
20125
48680
82708

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3767
SELECT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL 92 + + 4 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT DISTINCT + 28 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + 28 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 67 FROM tab1 cor0 WHERE NULL IS NULL
----
67
67
67

query I rowsort
SELECT col0 - - + col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT - + SUM( ALL col1 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN 16 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT - + SUM ( ALL col1 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN 16 AND col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col2 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL col0 + 20 AS col1 FROM tab0
----
107
117
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ( + COUNT( * ) ) - - ( + - 65 ), ( + 43 ) AS col2 FROM tab2
----
-62
43

skipif mysql # not compatible
query II rowsort label-3775
SELECT ( + COUNT ( * ) ) - - ( + - 65 ), ( + 43 ) AS col2 FROM tab2
----
-62
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT col2 + + - col1 - col1 + + + col1 DIV + - col0 + + - col2 FROM tab0
----
-167
-2
-42

skipif mysql # not compatible
query I rowsort label-3776
SELECT col2 + + - col1 - col1 + + + col1 / + - col0 + + - col2 FROM tab0
----
-167
-2
-42

query I rowsort
SELECT 28 + 75 AS col0 FROM tab2
----
103
103
103

query I rowsort
SELECT DISTINCT col2 + + col0 * col1 + col2 FROM tab2
----
2392
5008
5141

query I rowsort
SELECT 41 * + + col0 AS col0 FROM tab2
----
1886
2624
3075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col1 FROM tab2
----
-30

query I rowsort
SELECT - - ( 30 ) AS col2 FROM tab2 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab2 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT - ( - CAST( - 47 AS SIGNED ) ) AS col2, - ( - 45 ) AS col1 FROM tab0 cor0
----
-47
45
-47
45
-47
45

skipif mysql # not compatible
query II rowsort label-3783
SELECT - ( - CAST ( - 47 AS INTEGER ) ) AS col2, - ( - 45 ) AS col1 FROM tab0 cor0
----
-47
45
-47
45
-47
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3784
SELECT ALL + col2 FROM tab0 AS cor0 WHERE CAST( - 58 AS DECIMAL ) + + 83 + + 32 = - col2 + - + col0
----

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col2 FROM tab0 AS cor0 WHERE CAST ( - 58 AS REAL ) + + 83 + + 32 = - col2 + - + col0
----

query II rowsort
SELECT DISTINCT + col1, - col0 * + + 30 FROM tab0 AS cor0
----
1
-2910
21
-2610
81
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT ALL 65 AS col2, COUNT( col0 ) * + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
65
-27

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL 65 AS col2, COUNT ( col0 ) * + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
65
-27

query I rowsort
SELECT DISTINCT ( + - 76 ) AS col2 FROM tab2 cor0
----
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL MAX( DISTINCT + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL MAX ( DISTINCT + 79 ) FROM tab0
----
79

query I rowsort
SELECT - ( - + col2 ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + ( 11 ) FROM tab2
----
11
11
11

query II rowsort
SELECT 92 AS col0, col2 FROM tab0
----
92
10
92
47
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT SUM( + + 92 ) col2 FROM tab0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3793
SELECT DISTINCT SUM ( + + 92 ) col2 FROM tab0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - ( + COUNT( ALL col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3794
SELECT - ( + COUNT ( ALL col1 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL 14 + + ( + COUNT( * ) ) + ( + - MIN( col1 ) ) AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL 14 + + ( + COUNT ( * ) ) + ( + - MIN ( col1 ) ) AS col2 FROM tab2
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3798
SELECT - MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - - col0 + col1 + - + 80 * + 76 FROM tab2 AS cor0
----
-5938
-5939
-5983

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 23 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * + col0 + + - col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ( + COUNT( * ) ) + + - MAX( ALL - col0 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3802
SELECT ( + COUNT ( * ) ) + + - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT + CAST( NULL AS SIGNED ) * + ( - 65 ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + CAST ( NULL AS INTEGER ) * + ( - 65 ) + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3804
SELECT CAST( NULL AS DECIMAL ) + + 35 + - 36 AS col1, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3804
SELECT CAST ( NULL AS REAL ) + + 35 + - 36 AS col1, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col0
----
0

query I rowsort
SELECT 49 + + 14 AS col2 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT DISTINCT + COUNT( * ), ( - AVG ( col2 ) ) AS col0 FROM tab2 WHERE - 13 BETWEEN ( + 37 ) AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3807
SELECT DISTINCT + COUNT ( * ), ( - AVG ( col2 ) ) AS col0 FROM tab2 WHERE - 13 BETWEEN ( + 37 ) AND NULL
----
0
NULL

query I rowsort
SELECT DISTINCT + 93 + - col1 AS col2 FROM tab2
----
16
26
42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col2 + 81 + col1
----

query I rowsort
SELECT ALL 5 - col2 AS col1 FROM tab2 AS cor0
----
-18
-35
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 - 41 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3812
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - - 77 * + 17 * + col0 FROM tab1 AS cor0
----
111265
119119
66759

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3814
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) + - - 48 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3814
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) + - - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT 20 * + MAX( ALL 40 ) AS col0 FROM tab2
----
800

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT 20 * + MAX ( ALL 40 ) AS col0 FROM tab2
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + ( - col2 ) * ( + 94 ) - + col0 FROM tab2 AS cor0
----
-2208
-3824
-5527

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 cor0 WHERE NOT 41 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col1 + col0 - + + col2 + - + col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + + col2 * - ( - - 83 ) >= NULL
----

query I rowsort
SELECT - 39 * - col1 AS col2 FROM tab2
----
1989
2613
3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT CAST( NULL AS SIGNED ) * + 60 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT CAST ( NULL AS INTEGER ) * + 60 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 + + + 32 col1 FROM tab2
----
-15

query I rowsort
SELECT + - 96 * + col0 AS col0 FROM tab0 cor0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT - - MAX( ALL - 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT - - MAX ( ALL - 48 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT - - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ALL col2 - - + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 66 * + + col1 col2 FROM tab0 AS cor0
----
-29106
-433026
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL - 42 + - COUNT( * ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - 42 + - COUNT ( * ) FROM tab2 cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT + + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3830
SELECT + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT - 27 + + - 58 AS col2, - COUNT( * ) FROM tab2 cor0
----
-85
-3

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT - 27 + + - 58 AS col2, - COUNT ( * ) FROM tab2 cor0
----
-85
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 17
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + ( + SUM( + 1 ) ) FROM tab2 AS cor0 WHERE NOT ( + + 70 <> col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + ( + SUM ( + 1 ) ) FROM tab2 AS cor0 WHERE NOT ( + + 70 <> col1 )
----
NULL

query I rowsort
SELECT col1 - 32 AS col1 FROM tab0
----
-11
-31
49

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT 11 * 8 + + - 99 AS col0 FROM tab0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 83 * + + 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT SUM( ( + 94 ) ) AS col1 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3841
SELECT SUM ( ( + 94 ) ) AS col1 FROM tab2
----
282

onlyif mysql # DIV for integer division: 
query II rowsort label-3842
SELECT + col2 DIV - - col1 col2, 52 + col2 * - col2 AS col1 FROM tab1
----
1
-4572
11
-3429
6
-9164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3842
SELECT + col2 / - - col1 col2, 52 + col2 * - col2 AS col1 FROM tab1
----
1
-4572
11
-3429
6
-9164

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE col2 * - - 21 IS NULL
----

query II rowsort
SELECT col0 AS col1, col0 + + 35 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 40 + col0 * + col2 FROM tab1 WHERE NOT ( ( NOT - col0 IS NOT NULL ) )
----
4936
5055
6228

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 69 BETWEEN + col1 * - col1 * - 79 + - 87 AND + col2
----

query II rowsort
SELECT ALL - + col1, ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query II rowsort
SELECT DISTINCT - 94, col2 FROM tab0 AS cor0
----
-94
10
-94
47
-94
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 + - ( 96 ) / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 95, + 96 AS col0 FROM tab0 AS cor0
----
95
96
95
96
95
96

query I rowsort
SELECT ( - 41 ) AS col0 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + 99 + - COUNT( * ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + 99 + - COUNT ( * ) AS col0 FROM tab0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT col0 DIV + + col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT col0 / + + col0 AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL COUNT( * ) + + 59 + + MAX( + - col0 ) * - MIN( DISTINCT - col0 ) AS col2 FROM tab2
----
-3388

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL COUNT ( * ) + + 59 + + MAX ( + - col0 ) * - MIN ( DISTINCT - col0 ) AS col2 FROM tab2
----
-3388

query I rowsort
SELECT + col2 + + 18 AS col1 FROM tab0
----
117
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - COUNT( * ) + + 33 + + + 0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3857
SELECT - COUNT ( * ) + + 33 + + + 0 FROM tab1
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 + - col1 / - col1 * - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 4 + + 89 * + 86 FROM tab0
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 98 ) + - ( + ( + 88 ) ) FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( - - col0 * - - col2 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL + - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT ALL + - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - - 49 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 80 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT 3 + 24 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT + CAST( NULL AS SIGNED ) + + col2 / + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3869
SELECT + CAST ( NULL AS INTEGER ) + + col2 / + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col0 + - - 4 AS col1 FROM tab0 AS cor0
----
-28
2
81

query I rowsort
SELECT ALL - col1 + - col1 FROM tab0 AS cor0 WHERE ( - col1 ) >= - + ( - - col2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT 18 + + CAST( MAX( 15 ) AS SIGNED ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3872
SELECT 18 + + CAST ( MAX ( 15 ) AS INTEGER ) FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - - MIN( DISTINCT + + 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3873
SELECT - - MIN ( DISTINCT + + 52 ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT 69 * + COUNT( * ) * MIN( col2 ) AS col2 FROM tab1 AS cor0
----
12213

skipif mysql # not compatible
query I rowsort label-3874
SELECT 69 * + COUNT ( * ) * MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
12213

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT ALL + col0 * - col0 DIV col0 * col2 AS col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + col0 * - col0 / col0 * col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT ALL - col2 AS col0, - col0, + col2 AS col1 FROM tab1
----
9 values hashing to a0fff1165c29b2a83c4080065cf09934

query II rowsort
SELECT ALL col1, - col1 AS col2 FROM tab1 WHERE NOT + + 98 IS NOT NULL
----

query II rowsort
SELECT ALL - 46, 19 AS col1 FROM tab1
----
-46
19
-46
19
-46
19

query II rowsort
SELECT ALL - 90 AS col0, col1 AS col1 FROM tab0
----
-90
1
-90
21
-90
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - 26 - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 26 - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3881
SELECT ALL col2, col2 + - + ( + 17 ) * + col1 + + CAST( - col1 AS SIGNED ) + + 63 AS col0 FROM tab2
----
23
-832
40
-1283
58
-1085

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL col2, col2 + - + ( + 17 ) * + col1 + + CAST ( - col1 AS INTEGER ) + + 63 AS col0 FROM tab2
----
23
-832
40
-1283
58
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + SUM( - 92 ) AS col1 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-3882
SELECT + SUM ( - 92 ) AS col1 FROM tab2
----
-276

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col0 / 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3884
SELECT - CAST( NULL AS SIGNED ) col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3884
SELECT - CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT + col0 DIV + col0 - + - 45 FROM tab1 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3885
SELECT + col0 / + col0 - + - 45 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT ALL + + CAST( + 31 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL + + CAST ( + 31 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - - col2 ) * col1 / col2 + - - col2
----

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + col2 * - 74 AS col0 FROM tab1 cor0
----
-4366
-5032
-7104

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( - + 24, col1 )
----

query I rowsort
SELECT ALL 38 FROM tab2 WHERE NOT + - col1 IS NULL
----
38
38
38

query I rowsort
SELECT DISTINCT + 56 FROM tab2 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= col2 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( + + col0 ) + + col2 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( + col0 ) * + col1 * - 78 * - + col1 + - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + col0 - + - col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT ALL + 78 * col0 FROM tab0 AS cor0
----
1170
6786
7566

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - - col2 ) BETWEEN + 29 + col2 * - - 21 / ( + col1 ) AND NULL ) )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT - - 15 + - ( - - 44 ) + + CAST( - 22 AS SIGNED ) * + ( col0 ) AS col1 FROM tab1 cor0
----
-1151
-1899
-2031

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - - 15 + - ( - - 44 ) + + CAST ( - 22 AS INTEGER ) * + ( col0 ) AS col1 FROM tab1 cor0
----
-1151
-1899
-2031

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - COUNT( + 90 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3901
SELECT - COUNT ( + 90 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( * ) * + + 89 AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( * ) * + + 89 AS col1 FROM tab2
----
267

query I rowsort
SELECT DISTINCT col2 * + 27 AS col1 FROM tab1
----
1593
1836
2592

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + - 61 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT DISTINCT - col1 DIV + - col1 - - ( - col2 ) + - 97 FROM tab0 AS cor0
----
-106
-143
-195

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - col1 / + - col1 - - ( - col2 ) + - 97 FROM tab0 AS cor0
----
-106
-143
-195

query I rowsort
SELECT DISTINCT - - col2 + - ( - 97 ) FROM tab0 AS cor0
----
107
144
196

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT + - col1 DIV - 84 + - col0 + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT + - col1 / - 84 + - col0 + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT DISTINCT - MIN( + 38 ) * - ( + 54 ) AS col1, - COUNT( * ) col0 FROM tab2 AS cor0
----
2052
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3908
SELECT DISTINCT - MIN ( + 38 ) * - ( + 54 ) AS col1, - COUNT ( * ) col0 FROM tab2 AS cor0
----
2052
-3

query I rowsort
SELECT + 28 + col1 * - - col0 AS col0 FROM tab0 AS cor0
----
1243
125
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 + 22 + + col2 AS col0 FROM tab1
----
132
137
86

query I rowsort
SELECT 4 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT COUNT( DISTINCT + 56 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3913
SELECT COUNT ( DISTINCT + 56 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT - 59 - + COUNT( * ) AS col1 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - 59 - + COUNT ( * ) AS col1 FROM tab2
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 - + 5 * 15 FROM tab1 AS cor0
----
-24
10
16

query I rowsort
SELECT 23 - + 55 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + 61 * - COUNT( * ) * - 77 * 80 - + SUM( 55 ) FROM tab1 AS cor0
----
1127115

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 61 * - COUNT ( * ) * - 77 * 80 - + SUM ( 55 ) FROM tab1 AS cor0
----
1127115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT - - col2 - - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-3919
SELECT - - col2 - - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab0 cor0
----
79

query II rowsort
SELECT DISTINCT 19 AS col2, + 0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT + + 10 * + col0 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + + 10 * + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - COUNT( ALL + 39 ) * - 49 - + + 61 AS col1 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3923
SELECT - COUNT ( ALL + 39 ) * - 49 - + + 61 AS col1 FROM tab2
----
86

query I rowsort
SELECT ( 78 ) AS col1 FROM tab1
----
78
78
78

query I rowsort
SELECT - - ( + - col0 ) AS col0 FROM tab2 WHERE NOT + + col1 * 23 <= - 93
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT COUNT( - - 21 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT COUNT ( - - 21 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3927
SELECT * FROM tab2 WHERE NOT ( + col0 * - CAST( - col1 AS SIGNED ) ) > + 32 * - col0
----

skipif mysql # not compatible
query III rowsort label-3927
SELECT * FROM tab2 WHERE NOT ( + col0 * - CAST ( - col1 AS INTEGER ) ) > + 32 * - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 31
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 30 * + 68 FROM tab0 AS cor0
----
-2040
-2040
-2040

query II rowsort
SELECT DISTINCT + - 13 AS col2, + col1 FROM tab2 cor0
----
-13
51
-13
67
-13
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - MIN( + ( + 55 ) ) AS col1 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-3933
SELECT - MIN ( + ( + 55 ) ) AS col1 FROM tab1
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 53, col2 + + - col1 col1 FROM tab1
----
-53
21
-53
54
-53
82

query I rowsort
SELECT ALL + + 17 + col2 FROM tab1 AS cor0
----
113
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + 60 * - COUNT( + col0 ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 60 * - COUNT ( + col0 ) FROM tab0 AS cor0
----
-180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query II rowsort
SELECT DISTINCT col1 + + col1 * + 96 - + + 78, - ( 34 ) AS col0 FROM tab0 AS cor0
----
19
-34
1959
-34
7779
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) + + AVG ( ALL + 90 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + AVG ( ALL + 90 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 22 + + 9 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE 7 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE 7 IS NULL
----
0

query I rowsort
SELECT + + col2 * col1 FROM tab1 WHERE + col2 <> 54
----
1344
295
3196

query I rowsort
SELECT DISTINCT col2 + - + 43 + 42 * + ( col1 ) * 3 FROM tab1
----
1817
5947
646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT ALL CAST( + + col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT ALL CAST ( + + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col2 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

query II rowsort
SELECT DISTINCT col1, ( col2 ) + - - 86 FROM tab0 AS cor0
----
1
185
21
96
81
133

query I rowsort
SELECT 48 * col1 * col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, 30 FROM tab2 AS cor0
----
-51
30
-67
30
-77
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * - - col2 col1 FROM tab2
----
-1120
-1624
-644

query I rowsort
SELECT DISTINCT + 71 * + 92 * + col1 AS col1 FROM tab1
----
307004
32660
91448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3956
SELECT DISTINCT * FROM tab0 WHERE NULL <= 43 OR NOT ( NOT + 26 < col1 * - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3956
SELECT DISTINCT * FROM tab0 WHERE NULL <= 43 OR NOT ( NOT + 26 < col1 * - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN + 48 AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 87 DIV + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3959
SELECT 87 / + col2 AS col0 FROM tab1
----
0
1
1

query II rowsort
SELECT ALL + 76 * col2 AS col0, col2 AS col2 FROM tab1
----
4484
59
5168
68
7296
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL + MAX( DISTINCT ( + - ( col0 ) ) ) + + 37 AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + MAX ( DISTINCT ( + - ( col0 ) ) ) + + 37 AS col0 FROM tab2
----
-9

query I rowsort
SELECT 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT - + 51 AS col2 FROM tab2 AS cor0 WHERE ( - + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( + + col2 ) col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - + ( 31 ) FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + col0 + 14 FROM tab1 AS cor0
----
105
65
99

query I rowsort
SELECT - - ( - col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - - COUNT( ALL col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3969
SELECT - - COUNT ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 29 + + 26 AS col0 FROM tab1 cor0
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT 63 DIV - + 67 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT 63 / - + 67 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - 86
----

query II rowsort
SELECT col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT COUNT( ALL + + col2 ) - - - 36 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3974
SELECT COUNT ( ALL + + col2 ) - - - 36 AS col0 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - ( - - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - ( - - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT CAST( NULL AS SIGNED ) * 2 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 2 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL - col0 * + CAST( + 41 AS SIGNED ) FROM tab2 AS cor0
----
-1886
-2624
-3075

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - col0 * + CAST ( + 41 AS INTEGER ) FROM tab2 AS cor0
----
-1886
-2624
-3075

query I rowsort
SELECT ALL - - ( + 55 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT + CAST( + + 43 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif mysql # not compatible
query I rowsort label-3979
SELECT + CAST ( + + 43 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT 48 + COUNT( * ) col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3980
SELECT DISTINCT 48 + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE - ( - ( + col0 ) ) - + 74 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND 80
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3985
SELECT ALL COUNT( * ) DIV + - 31 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL COUNT ( * ) / + - 31 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3986
SELECT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + 13 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3986
SELECT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + 13 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT - 18, + COUNT( * ) AS col2 FROM tab1
----
-18
3

skipif mysql # not compatible
query II rowsort label-3987
SELECT - 18, + COUNT ( * ) AS col2 FROM tab1
----
-18
3

query I rowsort
SELECT 18 + 34 FROM tab2
----
52
52
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - 54
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3990
SELECT col2, - col1 DIV + + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-3990
SELECT col2, - col1 / + + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 43 BETWEEN + col0 * col2 * 94 + - 46 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - SUM( 43 ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - SUM ( 43 ) FROM tab2
----
-129

query I rowsort
SELECT col0 * 8 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col0 + 41 * - col0 FROM tab0
----
-3480
-3880
-600

query III rowsort
SELECT * FROM tab0 WHERE 48 NOT IN ( + ( + col1 ) * + 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 98 + 65 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 63 * + col1 + - 20 FROM tab0
----
1303
43
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + COUNT( * ) FROM tab1 WHERE NOT - 55 NOT IN ( - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - 55 NOT IN ( - 25 )
----
0

query I rowsort
SELECT ALL - col2 + - col2 * + col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT - 54 * - col0 FROM tab0
----
4698
5238
810

query I rowsort
SELECT ALL + 4 * col1 + col0 FROM tab1
----
105
107
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT COUNT( * ) * COUNT( + col1 ) FROM tab0 WHERE ( 66 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT COUNT ( * ) * COUNT ( + col1 ) FROM tab0 WHERE ( 66 ) IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT 44 * - col0 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT 60 * + 7 - - col0 * col1 AS col1 FROM tab1
----
1134
4697
845

query I rowsort
SELECT col0 + 81 AS col2 FROM tab2
----
127
145
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT col1 DIV - 9 + + 20 * - 39 col2 FROM tab1
----
-780
-781
-785

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4006
SELECT col1 / - 9 + + 20 * - 39 col2 FROM tab1
----
-780
-781
-785

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - SUM( DISTINCT + col0 ) + COUNT( col0 ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - SUM ( DISTINCT + col0 ) + COUNT ( col0 ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT DISTINCT + 65 * SUM( ALL - 28 DIV col0 ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + 65 * SUM ( ALL - 28 / col0 ) FROM tab0
----
-65

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab0 WHERE NOT ( + col1 + ( - col1 ) ) < + 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT 9 DIV 77 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT 9 / 77 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT col2 * + 28 + - ( + ( - CAST( NULL AS SIGNED ) ) + + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT col2 * + 28 + - ( + ( - CAST ( NULL AS INTEGER ) ) + + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT - 50 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT - 50 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT DISTINCT - col0 DIV col1 col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4015
SELECT DISTINCT - col0 / col1 col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - SUM( DISTINCT 1 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4016
SELECT - SUM ( DISTINCT 1 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 97 * 48 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + ( COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + ( COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT - - 11 DIV 13 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT - - 11 / 13 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL + ( MAX( ( col0 ) ) ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + ( MAX ( ( col0 ) ) ) AS col0 FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4021
SELECT - ( SUM( ALL CAST( col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4021
SELECT - ( SUM ( ALL CAST ( col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 / ( + col2 * col0 ) FROM tab0 cor0 WHERE NULL BETWEEN + col0 + - 34 AND ( - ( ( + col0 ) ) / + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col0 NOT BETWEEN ( col2 ) AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT COUNT( ALL col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 24 / col0 + col2 BETWEEN 81 - - 48 * + col0 AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT DISTINCT + 34 DIV - - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT + 34 / - - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT + 62 * col1 - - 34 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab2 WHERE NOT col2 = - col1
----
-28
-37
-9

query I rowsort
SELECT col0 * + + 87 * 22 AS col2 FROM tab1
----
162690
174174
97614

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL + SUM( - + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + SUM ( - + col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( 37 ) / + 40 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab1
----
-38
-38
-38

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR NOT - col1 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 + col2 <= NULL
----

query I rowsort
SELECT ALL 76 * + 73 + + col2 AS col2 FROM tab1
----
5607
5616
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + COUNT( * ) * + - 84 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-4040
SELECT + COUNT ( * ) * + - 84 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT - + CAST( - 39 AS SIGNED ) FROM tab2 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4041
SELECT - + CAST ( - 39 AS INTEGER ) FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT COUNT( * ) + + 58 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 32 * col1 ) AND ( - 51 )
----
58

skipif mysql # not compatible
query I rowsort label-4042
SELECT COUNT ( * ) + + 58 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 32 * col1 ) AND ( - 51 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT - - CAST( + MIN( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4043
SELECT - - CAST ( + MIN ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT ( - - col0 ) * 37 AS col2 FROM tab0 AS cor0
----
3219
3589
555

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 1 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT COUNT( * ) DIV + 17 + - - COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4048
SELECT DISTINCT COUNT ( * ) / + 17 + - - COUNT ( * ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4049
SELECT ALL COUNT( * ) / + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL COUNT ( * ) / + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT - + CAST( COUNT( - 60 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - + CAST ( COUNT ( - 60 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT col1 * - 66 AS col2 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT DISTINCT - ( - + 85 ) + col0 * + 14 AS col2 FROM tab1 AS cor0
----
1275
1359
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col1 AND col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col1 AND col2 * col2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 + + ( 45 + col1 ) * 0 > ( - col1 - 31 ) OR - col0 + col2 <> NULL
----
51
14
96
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 96 col2, - ( + col1 ) FROM tab1 AS cor0
----
96
-14
96
-47
96
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-4057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( CAST ( NULL AS INTEGER ) / col1 )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND col0 + + 62
----

query I rowsort
SELECT DISTINCT + col2 - + col0 * - 74 * col1 AS col2 FROM tab0 AS cor0
----
135208
7277
89957

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL - MIN( DISTINCT - + 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - MIN ( DISTINCT - + 70 ) FROM tab2 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT ALL + col2 DIV + ( 79 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + col2 / + ( 79 ) FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2
----
22

query III rowsort
SELECT * FROM tab2 WHERE + - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT COUNT( * ) DIV COUNT( * ) + + COUNT( * ) * + 61 FROM tab1
----
184

skipif mysql # not compatible
query I rowsort label-4064
SELECT COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) * + 61 FROM tab1
----
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * col1 + + 49 col2 FROM tab1
----
1647
219
525

query I rowsort
SELECT - col0 + - col2 * - col0 AS col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT DISTINCT col2 - + 56 FROM tab2
----
-16
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ( - - CAST( NULL AS SIGNED ) ) / + col0 * + col1 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ( - - CAST ( NULL AS INTEGER ) ) / + col0 * + col1 + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - col0 * 80 FROM tab1
----
-4029
-6715
-7189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( 99 ) - col2 * + 68 AND col1
----

query I rowsort
SELECT DISTINCT - col1 + 4 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col0 * col0 * + col1 + - col1 IS NULL
----
59
68
96

query II rowsort
SELECT - 71, 3 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 * ( - 53 ), col1 AS col1 FROM tab2
----
-2438
51
-3392
77
-3975
67

query II rowsort
SELECT - col0, col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT col1 * - + 31 * - + col0 AS col0 FROM tab0
----
3007
37665
56637

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT - 90 * COUNT( * ) FROM tab2 AS cor0 WHERE col0 * + 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - 90 * COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * + 89 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4078
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( ( - col1 ) ) * CAST( 93 AS SIGNED ) * 71
----

skipif mysql # not compatible
query III rowsort label-4078
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( ( - col1 ) ) * CAST ( 93 AS INTEGER ) * 71
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( + 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT col2 / + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4080
SELECT col2 / + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 * + 57 FROM tab2 AS cor0
----
2907
3819
4389

query II rowsort
SELECT DISTINCT col2, col1 + - col0 FROM tab1 cor0
----
59
-80
68
-44
96
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL - + col0 * col2 - - + 40 - + 86 * col1 DIV col0 AS col2 FROM tab1 cor0
----
-4879
-4980
-6192

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - + col0 * col2 - - + 40 - + 86 * col1 / col0 AS col2 FROM tab1 cor0
----
-4879
-4980
-6192

query I rowsort
SELECT + 81 * - + col1 FROM tab0 AS cor0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT col0 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 70 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - - MIN( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - MIN ( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 + - + col0 + col0 AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL + 18, col2 - - ( + col0 ) * - col2 AS col2 FROM tab2
----
18
-1035
18
-2520
18
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-4090
SELECT ALL - SUM( DISTINCT - + col2 ) AS col2, - SUM( - 40 ) FROM tab1
----
223
120

skipif mysql # not compatible
query II rowsort label-4090
SELECT ALL - SUM ( DISTINCT - + col2 ) AS col2, - SUM ( - 40 ) FROM tab1
----
223
120

query I rowsort
SELECT 90 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT col0 + col2 + - - 79 FROM tab1
----
223
226
238

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 85 + col0 AS col1 FROM tab0
----
100
172
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * - 85 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * - 85 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 22 * + col0 IS NOT NULL
----

query II rowsort
SELECT - col1 + - + 43 AS col0, 47 + + 42 + - col2 AS col2 FROM tab2
----
-110
31
-120
49
-94
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT NULL < 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT + - COUNT( * ) DIV - 68 + ( 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + - COUNT ( * ) / - 68 + ( 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4101
SELECT + CAST( + MIN( DISTINCT + - col2 ) AS DECIMAL ) / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CAST ( + MIN ( DISTINCT + - col2 ) AS REAL ) / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL + MIN( 17 ) FROM tab2 WHERE + - ( - col1 ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + MIN ( 17 ) FROM tab2 WHERE + - ( - col1 ) BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT - + 35 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - + 35 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 + + col0 BETWEEN - 95 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + col2 * - 65 AS col2 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT ALL - 73 AS col0, + MIN( - col0 ) FROM tab0
----
-73
-97

skipif mysql # not compatible
query II rowsort label-4107
SELECT ALL - 73 AS col0, + MIN ( - col0 ) FROM tab0
----
-73
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 15 ) col2 FROM tab0 WHERE NOT NULL NOT IN ( - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - COUNT( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4110
SELECT - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT DISTINCT - - COUNT( * ) DIV + 45 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - - COUNT ( * ) / + 45 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - + COUNT( * ) * + 90 AS col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4112
SELECT - + COUNT ( * ) * + 90 AS col0 FROM tab2 AS cor0
----
-270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 82 BETWEEN - 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT + + COUNT( * ), 56 AS col0 FROM tab1 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-4114
SELECT + + COUNT ( * ), 56 AS col0 FROM tab1 AS cor0
----
3
56

query II rowsort
SELECT - col0, col0 AS col2 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL SUM ( ALL + col0 ) FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col1 = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4118
SELECT - - col1 * 68 FROM tab0 WHERE NOT - col0 NOT BETWEEN + col0 * + + ( - CAST( NULL AS DECIMAL ) ) / - ( - col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4118
SELECT - - col1 * 68 FROM tab0 WHERE NOT - col0 NOT BETWEEN + col0 * + + ( - CAST ( NULL AS REAL ) ) / - ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - COUNT( * ) - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-4119
SELECT - COUNT ( * ) - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT ( SUM( DISTINCT + - col0 ) ) DIV - SUM( + col1 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( SUM ( DISTINCT + - col0 ) ) / - SUM ( + col1 ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT + col0 DIV + 78 col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4121
SELECT + col0 / + 78 col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 * 54 * - col0 FROM tab0 AS cor0
----
-12150
-408726
-508086

query I rowsort
SELECT ALL 77 * - col2 FROM tab0 AS cor0
----
-3619
-7623
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 81 col2 FROM tab2 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 84 * + col1 col0, col2 + + + 18 FROM tab2 AS cor0
----
-4284
41
-5628
76
-6468
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4126
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4126
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT DISTINCT CAST( + COUNT( - + 57 ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT CAST ( + COUNT ( - + 57 ) AS INTEGER ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + col0 * - 2 + col1 AS col1 FROM tab2
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT COUNT( * ) * - 77 AS col1 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT COUNT ( * ) * - 77 AS col1 FROM tab1
----
-231

query I rowsort
SELECT DISTINCT col0 * + col0 + + 6 * col2 AS col2 FROM tab1
----
3177
7579
8689

query III rowsort
SELECT * FROM tab2 WHERE - - col1 NOT BETWEEN + 15 - - + 90 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT - 62 + + + CAST( + col1 AS SIGNED ) FROM tab0
----
-41
-61
19

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - 62 + + + CAST ( + col1 AS INTEGER ) FROM tab0
----
-41
-61
19

query I rowsort
SELECT ALL 1 + + 13 FROM tab2
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 35 ) col0 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL 91 DIV - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-54
-68
-79

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 91 / - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-54
-68
-79

query II rowsort
SELECT - col2 AS col2, 23 FROM tab2 AS cor0
----
-23
23
-40
23
-58
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + SUM( - col2 ) / - 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT + SUM ( - col2 ) / - 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 72 - + col1 FROM tab0 AS cor0
----
-153
-73
-93

query II rowsort
SELECT DISTINCT + 8 AS col1, + 73 FROM tab0 AS cor0
----
8
73

query I rowsort
SELECT ALL + 5 * - 97 AS col0 FROM tab2
----
-485
-485
-485

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 56 * + 58 FROM tab1
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + 54 DIV col1 * + 47 FROM tab1
----
141
47
470

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 54 / col1 * + 47 FROM tab1
----
141
47
470

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT COUNT( * ) * - 23 AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4147
SELECT COUNT ( * ) * - 23 AS col1 FROM tab2
----
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 26 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4149
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT COUNT( * ) AS col2, + 91 FROM tab0, tab0 AS cor0
----
9
91

skipif mysql # not compatible
query II rowsort label-4150
SELECT COUNT ( * ) AS col2, + 91 FROM tab0, tab0 AS cor0
----
9
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 * + col2 + col0 * + ( col0 ) ) < + ( - col1 ) * + col2 + - col0 + - + ( - col0 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query II rowsort
SELECT - col2 AS col2, + col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4154
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 44 NOT IN ( + 62, - 80 + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4154
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 44 NOT IN ( + 62, - 80 + CAST ( + col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - 2 AS col1 FROM tab2 AS cor0
----
51
-2
67
-2
77
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col1 ) + - + col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4158
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT CAST ( NULL AS REAL ) + - col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 52 * - col0 col2 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT 74 + - 44, - COUNT( * ) + - - MAX( + col1 ) AS col1 FROM tab0
----
30
78

skipif mysql # not compatible
query II rowsort label-4160
SELECT 74 + - 44, - COUNT ( * ) + - - MAX ( + col1 ) AS col1 FROM tab0
----
30
78

query I rowsort
SELECT DISTINCT - col2 + 71 AS col1 FROM tab1
----
-25
12
3

query I rowsort
SELECT + 61 * + - ( + - col0 ) * 6 + + col0 FROM tab1 WHERE NULL BETWEEN col2 + - - 89 AND col1 * 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE + 75 + col2 / + - 97 - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4163
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE + 75 + col2 / + - 97 - - col2 IS NOT NULL
----
3

query I rowsort
SELECT 22 + col1 AS col0 FROM tab1
----
27
36
69

query I rowsort
SELECT + 87 - + col0 AS col0 FROM tab1 WHERE + 86 + 0 IS NULL
----

query I rowsort
SELECT - + ( 18 ) AS col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - MAX( ALL - ( col0 ) ) + COUNT( * ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-4167
SELECT - MAX ( ALL - ( col0 ) ) + COUNT ( * ) FROM tab1 cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT CAST( NULL AS SIGNED ) + - - 6 + + 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT CAST ( NULL AS INTEGER ) + - - 6 + + 26 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 8 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + COUNT( ALL + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4170
SELECT + COUNT ( ALL + - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT COUNT( ALL CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( ALL CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4172
SELECT - col0, + col2 DIV + + col0 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-4172
SELECT - col0, + col2 / + + col0 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT DISTINCT + 38 * + - col0 AS col2 FROM tab1 AS cor0
----
-1938
-3230
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT CAST( - - ( - - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4174
SELECT CAST ( - - ( - - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - col2 * + 54 * + - col2 FROM tab0
----
119286
529254
5400

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4176
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + - col1 + + - 43 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 57 + col2 AS col0 FROM tab0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT ( + 85 ) * 66 FROM tab0
----
5610
5610
5610

query I rowsort
SELECT 13 * - + 86 FROM tab0
----
-1118
-1118
-1118

query I rowsort
SELECT ALL col1 * + col1 - + ( + - col2 ) + col0 FROM tab1 AS cor0
----
169
2368
343

query I rowsort
SELECT DISTINCT + 8 * + 40 FROM tab0 AS cor0
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4185
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4186
SELECT + CAST( NULL AS DECIMAL ) + col1 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT + CAST ( NULL AS REAL ) + col1 + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 + ( + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - col1 * ( - 11 ) + - col2 FROM tab1 AS cor0
----
-4
449
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> 30
----

query I rowsort
SELECT DISTINCT + - col0 * 7 FROM tab2 AS cor0
----
-322
-448
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT + + 33 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + 33 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - - 30 * - - MIN( - 45 ) AS col0 FROM tab2 AS cor0
----
-1350

skipif mysql # not compatible
query I rowsort label-4195
SELECT - - 30 * - - MIN ( - 45 ) AS col0 FROM tab2 AS cor0
----
-1350

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < 83 * + 30
----

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + + 26 ) FROM tab2 AS cor0 WHERE ( NULL ) = - 18 * + col1 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT col1 * 80 * - + col0 AS col2, + 78 + + 35 + + 60, col0 AS col0 FROM tab2
----
9 values hashing to 484d1f142894ee7057909c0c52f1f4b1

query II rowsort
SELECT col1, 56 FROM tab0
----
1
56
21
56
81
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL COUNT( * ) + COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL COUNT ( * ) + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + ( + col2 ) + + col1 + + col0 FROM tab2 WHERE NULL IS NULL
----
120
181
200

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT DISTINCT col0 + - - col2 DIV col2 DIV col2 col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT DISTINCT col0 + - - col2 / col2 / col2 col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - MIN( ALL col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - MIN ( ALL col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4207
SELECT + col1 DIV col1 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4207
SELECT + col1 / col1 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT ALL 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - - + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + - 22 + - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + MIN( DISTINCT + col1 ) * + COUNT( * ) * + 71 AS col1 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-4211
SELECT + MIN ( DISTINCT + col1 ) * + COUNT ( * ) * + 71 AS col1 FROM tab0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + MAX( - 20 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-4212
SELECT + MAX ( - 20 ) FROM tab0
----
-20

query I rowsort
SELECT - col0 * - col1 * - + col2 + - col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 * + col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( + - col0 * - - col1 * - - 11 * col1 - - 95 * 69 ) AND ( 87 * - 2 * + - 58 )
----
99

query I rowsort
SELECT ALL + ( + + col0 ) * - 82 + col0 AS col2 FROM tab2 AS cor0
----
-3726
-5184
-6075

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 / + ( 29 ) NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT DISTINCT - col0, + 74 * - + col0 AS col2 FROM tab0
----
-15
-1110
-87
-6438
-97
-7178

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT col1 DIV - 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT col1 / - 99 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4220
SELECT ALL * FROM tab2 WHERE NOT - + 73 < CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4220
SELECT ALL * FROM tab2 WHERE NOT - + 73 < CAST ( + col2 AS INTEGER )
----

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + 74 * - - 68 AS col0 FROM tab0
----
5032
5032
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + COUNT( - - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + COUNT ( - - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL + ( + ( COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + ( + ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 + - ( col1 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - 67 * - - col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 28 + - col2 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT 98 * + + col2 * - col0 AS col2 FROM tab0
----
-69090
-85260
-941094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab2
----
74
74
74

query I rowsort
SELECT ALL 1 * col2 + - col0 AS col0 FROM tab0 cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT ALL + col0 DIV - + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + col0 / - + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4234
SELECT ALL col1 * + + ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL col1 * + + ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL + 57 DIV - col2 col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT ALL + 57 / - col2 col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col0 * 34 + col0 FROM tab0 AS cor0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + MAX( ALL + col2 ) * + + COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + MAX ( ALL + col2 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT + - col1 + col0 AS col0 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - 52 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 27 + 21 AS col0 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT 17 + - + MIN( ALL 68 ) * + - ( + 59 ) FROM tab2
----
4029

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT 17 + - + MIN ( ALL 68 ) * + - ( + 59 ) FROM tab2
----
4029

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL COUNT( * ) + + 67 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL COUNT ( * ) + + 67 FROM tab2
----
70

query I rowsort
SELECT ALL - col0 + col1 * - 29 FROM tab0 AS cor0
----
-126
-2364
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL ( - + COUNT( ( + 35 ) ) ) * + ( - 60 ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL ( - + COUNT ( ( + 35 ) ) ) * + ( - 60 ) FROM tab1 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4246
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4246
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - col2 ) * + - col2 * + + col2 + + col1 + - - col2 / + col0 * ( col2 ) ) <> NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, + 68 FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4249
SELECT + col0 AS col0, col0 * - col0 DIV - - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-4249
SELECT + col0 AS col0, col0 * - col0 / - - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT - col1 * 87 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT ALL 77 AS col0 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - ( + + 8 ) AS col1 FROM tab1
----
-8

query I rowsort
SELECT + col2 * + 29 FROM tab0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4254
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4254
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT + ( 35 ) * - - 31 AS col2 FROM tab0
----
1085
1085
1085

query I rowsort
SELECT - col1 * - + 3 AS col1 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - - SUM( + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4257
SELECT - - SUM ( + + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT - - 42 * - - 88 + + + col2 * 71 AS col1 FROM tab1 AS cor0
----
10512
7885
8524

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 69 NOT BETWEEN NULL AND - + col2 + + + col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 59 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT 42 + - + col1 FROM tab1
----
-5
28
37

query I rowsort
SELECT - col1 * + col1 * + + col0 * - col0 FROM tab1
----
180625
18292729
509796

query I rowsort
SELECT ALL col0 + - + 33 AS col2 FROM tab0
----
-18
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT ( CAST( NULL AS SIGNED ) ) * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ( CAST ( NULL AS INTEGER ) ) * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4265
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( - - 56 AS SIGNED ) * + col0 + - + col2 BETWEEN col0 + - col2 * + - 90 AND ( + 21 ) )
----

skipif mysql # not compatible
query III rowsort label-4265
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( - - 56 AS INTEGER ) * + col0 + - + col2 BETWEEN col0 + - col2 * + - 90 AND ( + 21 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT col0 * + 57 AS col0 FROM tab1 AS cor0
----
2907
4845
5187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 77 col1 FROM tab0 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT DISTINCT - col0 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - col0 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT ALL - - col1 / - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - - col1 / - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4272
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) / + 89 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) / + 89 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + 57 * + + col2 AS col2 FROM tab2 AS cor0
----
1260
2203
3239

query II rowsort
SELECT ALL + col1 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT 51 * + col2 + col1 - + + 61 FROM tab1 AS cor0
----
2953
3454
4849

query I rowsort
SELECT DISTINCT 81 + - + 28 + - col1 + + 76 AS col1 FROM tab1
----
115
124
82

query I rowsort
SELECT + 47 - col0 AS col1 FROM tab0
----
-40
-50
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL col1 * + - col1 - + - col2 FROM tab2
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT - 90 + + COUNT( * ) AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - 90 + + COUNT ( * ) AS col2 FROM tab2
----
-87

query I rowsort
SELECT 12 + + col0 FROM tab0
----
109
27
99

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( 29 ) - - col1 < + + 16 * + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 67 ) + col0 col1 FROM tab2
----
113
131
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + 80 + + - COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 80 + + - COUNT ( * ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT + 66 - - 44 FROM tab1
----
110

query I rowsort
SELECT DISTINCT col1 - - col0 + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL - + COUNT( * ) + 46 * 76 FROM tab1 AS cor0
----
3493

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL - + COUNT ( * ) + 46 * 76 FROM tab1 AS cor0
----
3493

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - 49 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + + 67 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
67
67
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT + - ( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT + CAST( - + col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4294
SELECT + CAST ( - + col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - 91 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT + COUNT( * ) AS col0, MIN( DISTINCT + 97 ) FROM tab0 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-4296
SELECT + COUNT ( * ) AS col0, MIN ( DISTINCT + 97 ) FROM tab0 AS cor0
----
3
97

query I rowsort
SELECT ALL - col0 + col1 - 31 * - + col0 AS col0 FROM tab2 AS cor0
----
1431
1997
2317

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT + COUNT( * ) - 72 AS col2, + 7 * - ( + 24 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63
-168

skipif mysql # not compatible
query II rowsort label-4298
SELECT + COUNT ( * ) - 72 AS col2, + 7 * - ( + 24 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63
-168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / - - 17 IS NULL
----

query I rowsort
SELECT ALL - 72 - + col1 FROM tab0 AS cor0
----
-153
-73
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + + 36 col1 FROM tab1 AS cor0
----
102
102
102

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - MIN( - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4303
SELECT ALL - MIN ( - col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( 55 ) + - 47 AS col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - COUNT( * ) + SUM( DISTINCT col1 ) + - SUM( - 18 ) FROM tab0 cor0
----
154

skipif mysql # not compatible
query I rowsort label-4305
SELECT - COUNT ( * ) + SUM ( DISTINCT col1 ) + - SUM ( - 18 ) FROM tab0 cor0
----
154

query I rowsort
SELECT ALL ( 9 ) FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + col1 + - col0 - col1 * col1 FROM tab0 AS cor0 WHERE + 4 + - + col2 IS NOT NULL
----
-507
-6495
-97

query II rowsort
SELECT + - 99 + + 59, + col2 FROM tab0 AS cor0
----
-40
10
-40
47
-40
99

query I rowsort
SELECT col0 + + 27 - col0 AS col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4310
SELECT - + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab0 WHERE NOT - col2 / ( - - col2 ) IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab0 WHERE NOT - col2 / ( - - col2 ) IS NULL
----
15

query I rowsort
SELECT + ( - 26 ) AS col0 FROM tab2
----
-26
-26
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4313
SELECT ( CAST( - COUNT( 26 ) AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4313
SELECT ( CAST ( - COUNT ( 26 ) AS INTEGER ) ) FROM tab2
----
-3

query II rowsort
SELECT ALL + 85 * + - 69 + + - col1, col1 AS col2 FROM tab0
----
-5866
1
-5886
21
-5946
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + 38 + - COUNT( * ) AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + 38 + - COUNT ( * ) AS col0 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * CAST( + - 70 AS SIGNED ) + - + 73 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4316
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * CAST ( + - 70 AS INTEGER ) + - + 73 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL - + ( MAX( ALL + 56 ) ) col2 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4317
SELECT ALL - + ( MAX ( ALL + 56 ) ) col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - col2 * + - 88 FROM tab2 AS cor0
----
2024
3520
5104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4321
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT ALL + 95 DIV 50 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL + 95 / 50 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 20 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - + col0 ) BETWEEN + 91 AND - col1 * + col0 - - 8 + col2 + + + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <= 49
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4327
SELECT + - COUNT( * ) DIV 62 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT + - COUNT ( * ) / 62 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + + col2 AS col0, - ( 91 ) AS col2 FROM tab1 AS cor0
----
59
-91
68
-91
96
-91

query II rowsort
SELECT + - 28 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-28
59
-28
68
-28
96

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT + 13 DIV + COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 13 / + COUNT ( * ) FROM tab1 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 AS col2, col0 * + 78 col2 FROM tab2 AS cor0
----
-51
3588
-67
5850
-77
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT - - MAX( + - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - - MAX ( + - col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT + 2 * + 3 + + col2 + col1 FROM tab2 AS cor0
----
123
131
80

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - col1 * + + col2 - - col0 <> + + 55 * - 65
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 26 * + + col2 FROM tab0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - + 24 * + COUNT( * ) * 27 + - COUNT( * ) FROM tab2 AS cor0
----
-1947

skipif mysql # not compatible
query I rowsort label-4340
SELECT - + 24 * + COUNT ( * ) * 27 + - COUNT ( * ) FROM tab2 AS cor0
----
-1947

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT - - ( + 18 ) * + COUNT( * ) * - 72, + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-11664
9

skipif mysql # not compatible
query II rowsort label-4341
SELECT - - ( + 18 ) * + COUNT ( * ) * - 72, + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-11664
9

query I rowsort
SELECT - + col0 FROM tab1 WHERE + + 20 >= + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 2 + 50 FROM tab1
----
48
48
48

query I rowsort
SELECT DISTINCT + col0 * col2 - + - col0 + col2 + - 41 AS col2 FROM tab2
----
1086
2623
4442

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL <> col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + - 74, + col2 FROM tab2 AS cor0
----
-74
23
-74
40
-74
58

query I rowsort
SELECT DISTINCT + col0 - - 68 FROM tab1 AS cor0
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + MIN( ALL - - 77 ) AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4351
SELECT + MIN ( ALL - - 77 ) AS col0 FROM tab0 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - + COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT - + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * + 58 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4356
SELECT ALL CAST( NULL AS DECIMAL ) * - 75 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL CAST ( NULL AS REAL ) * - 75 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + - col0 AND ( ( + col0 IN ( - col1 ) ) )
----

query I rowsort
SELECT col1 + - + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT - col0 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-4359
SELECT - col0 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-141
-142
-97

query I rowsort
SELECT - col2 * - + col1 * - col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4361
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 95 * - 99 FROM tab1
----
9405
9405
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - + MIN( DISTINCT 83 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT - + MIN ( DISTINCT 83 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 39 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 73 * + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 9 * - 15 FROM tab2 cor0
----
-135
-135
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - + 68 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT - + 68 / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4369
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - ( 91 ) * + 22 <> + 34
----

skipif mysql # not compatible
query III rowsort label-4369
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - ( 91 ) * + 22 <> + 34
----

query I rowsort
SELECT + 96 + + col2 FROM tab2 AS cor0
----
119
136
154

query II rowsort
SELECT DISTINCT - col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT col0 + - - 76 AS col1 FROM tab0
----
163
173
91

query I rowsort
SELECT ALL + 89 + + col1 FROM tab2
----
140
156
166

query I rowsort
SELECT col1 + - - col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col1 + + - col2 AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) * - - 61 + - 69 col2 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4376
SELECT COUNT ( * ) * - - 61 + - 69 col2 FROM tab2
----
114

query I rowsort
SELECT col2 + 46 FROM tab2
----
104
69
86

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 10 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 1 - col2 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 1 - col2 col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - + 8 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - + 8 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 9 + - - col0 FROM tab0 AS cor0
----
-3
-408
-794

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT - - CAST( NULL AS SIGNED ) + + ( - AVG ( ALL - col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT - - CAST ( NULL AS INTEGER ) + + ( - AVG ( ALL - col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col1 FROM tab1 AS cor0 WHERE 63 <= - - 31
----

query I rowsort
SELECT 98 * col1 * - col1 FROM tab2 cor0
----
-254898
-439922
-581042

query I rowsort
SELECT ALL + 44 - - - col2 AS col2 FROM tab1 AS cor0
----
-15
-24
-52

query I rowsort
SELECT ALL - ( + 93 ) * - - col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

query II rowsort
SELECT ALL - col2, 99 AS col0 FROM tab2
----
-23
99
-40
99
-58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT + SUM( ALL + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + SUM ( ALL + - col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col1, + col1 - col0 AS col1 FROM tab2
----
-51
5
-67
-8
-77
13

query II rowsort
SELECT DISTINCT + col0, - 18 * col2 FROM tab1
----
51
-1728
85
-1062
91
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL - + col0 FROM tab0 WHERE NOT + 43 / - - ( CAST( col0 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - + col0 FROM tab0 WHERE NOT + 43 / - - ( CAST ( col0 AS INTEGER ) ) > NULL
----

query I rowsort
SELECT DISTINCT - ( + - 8 ) FROM tab1 AS cor0
----
8

query II rowsort
SELECT ALL - col0 AS col2, - 69 FROM tab0 AS cor0
----
-15
-69
-87
-69
-97
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4398
SELECT 28 AS col2, + col1 * + - CAST( + + 24 AS SIGNED ) + - - col0 * + 8 FROM tab1 AS cor0
----
28
-400
28
560
28
72

skipif mysql # not compatible
query II rowsort label-4398
SELECT 28 AS col2, + col1 * + - CAST ( + + 24 AS INTEGER ) + - - col0 * + 8 FROM tab1 AS cor0
----
28
-400
28
560
28
72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4399
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + col1 + - + CAST( NULL AS DECIMAL ) * 72 <> NULL
----

skipif mysql # not compatible
query III rowsort label-4399
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + col1 + - + CAST ( NULL AS REAL ) * 72 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL MAX( DISTINCT + 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL MAX ( DISTINCT + 98 ) FROM tab0
----
98

query I rowsort
SELECT ALL - 9 * + col2 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT + - COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT + + 41 + - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + 85 <> + - col2
----
41

skipif mysql # not compatible
query I rowsort label-4404
SELECT + + 41 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + 85 <> + - col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT DISTINCT - + 75 DIV - - col2 FROM tab2 cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - + 75 / - - col2 FROM tab2 cor0
----
-1
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) / MIN( DISTINCT - 19 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) / MIN ( DISTINCT - 19 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * - + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL + CAST( NULL AS SIGNED ) + - 20 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + CAST ( NULL AS INTEGER ) + - 20 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - 28 * - 98 * + COUNT( * ) FROM tab1
----
8232

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - 28 * - 98 * + COUNT ( * ) FROM tab1
----
8232

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL COUNT( * ) + - MIN( DISTINCT + 21 ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT + 21 ) AS col0 FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT col1 DIV + - 23 + + col0 + + col0 FROM tab0
----
174
194
27

skipif mysql # not compatible
query I rowsort label-4417
SELECT col1 / + - 23 + + col0 + + col0 FROM tab0
----
174
194
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL MAX ( + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT SUM( - + col2 ) + - COUNT( * ) FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-4419
SELECT SUM ( - + col2 ) + - COUNT ( * ) FROM tab2
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-4420
SELECT DISTINCT col1 + 5 DIV + - ( + col1 ) FROM tab1
----
14
4
47

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT col1 + 5 / + - ( + col1 ) FROM tab1
----
14
4
47

query I rowsort
SELECT ALL + 35 + + 31 FROM tab2 AS cor0
----
66
66
66

query II rowsort
SELECT - 64 - - col1 AS col0, col2 FROM tab0 cor0
----
-43
10
-63
99
17
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <> + + 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT SUM( + col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT SUM ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 47 AS col2 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT - COUNT( DISTINCT + 36 ) DIV - 78 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - COUNT ( DISTINCT + 36 ) / - 78 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 49 AS col2 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT 32 * - - col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 53 FROM tab0 WHERE NOT - 44 * - col2 / 36 + + + col2 + - col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 WHERE NOT + 1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 36 ) AS col1 FROM tab1
----
-36

query I rowsort
SELECT 94 * - - col2 + - 82 AS col0 FROM tab2 WHERE NOT ( NOT col1 * 70 < + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + COUNT( + 97 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4433
SELECT + COUNT ( + 97 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT col1 DIV - + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4435
SELECT col1 / - + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
59
68
96

query I rowsort
SELECT ALL ( + col1 ) * col2 * - col2 - + - 46 + col1 AS col1 FROM tab1
----
-128964
-17354
-217235

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4437
SELECT ALL + 68 + + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL + 68 + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4438
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4440
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS DECIMAL ) <= - - col1 / + col1
----

skipif mysql # not compatible
query III rowsort label-4440
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS REAL ) <= - - col1 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL - + col2 DIV + + 26 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - + col2 / + + 26 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CAST( 38 AS SIGNED ) + + - 19 + ( + - 18 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CAST ( 38 AS INTEGER ) + + - 19 + ( + - 18 ) AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT + + ( + - CAST( NULL AS SIGNED ) ) + - 51 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT + + ( + - CAST ( NULL AS INTEGER ) ) + - 51 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL - COUNT( * ) * - 25 col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4444
SELECT ALL - COUNT ( * ) * - 25 col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT + + col0 * + col1 + col0 + - + 11 + + 29 * - 19 AS col1 FROM tab0 AS cor0
----
-368
1352
668

query I rowsort
SELECT DISTINCT - ( + + 2 ) + + col2 FROM tab1
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT COUNT( * ) + - 28 + COUNT( * ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-4447
SELECT COUNT ( * ) + - 28 + COUNT ( * ) FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL + COUNT( - + 13 ) + - 18 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + COUNT ( - + 13 ) + - 18 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col2 FROM tab2 WHERE + col0 + + col2 IS NULL
----

query I rowsort
SELECT ALL col2 + - - col1 + col1 FROM tab2
----
125
192
194

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 27 < - + col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT MIN( + - 78 ) + + + 91 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT MIN ( + - 78 ) + + + 91 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - 19 AS col0 FROM tab0 cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 92 col1 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT - col0 - - - col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + + 55 + - + 28 FROM tab2 WHERE NOT NULL IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT COUNT( 94 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4457
SELECT COUNT ( 94 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - - col1 col1 FROM tab2 AS cor0
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - COUNT( ALL - 15 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4461
SELECT - COUNT ( ALL - 15 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT + - 21 * 79 FROM tab1 AS cor0
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL + MAX( 65 ) col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT ALL + MAX ( 65 ) col1 FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4465
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - ( COUNT( * ) ) FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4465
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - ( COUNT ( * ) ) FROM tab2
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 * + + 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 * + + 83 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - COUNT( * ) * + 21 * 43 AS col1 FROM tab2
----
-2709

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - COUNT ( * ) * + 21 * 43 AS col1 FROM tab2
----
-2709

query III rowsort
SELECT col2, 19, col2 FROM tab0
----
9 values hashing to 92f4a140bf9b1cc264721cf7b03cd32c

query I rowsort
SELECT - AVG ( - 41 ) FROM tab2 WHERE NOT + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - ( + 54 ) FROM tab0 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT - MIN( ALL ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - MIN ( ALL ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT - ( - CAST( + ( + col1 ) AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4472
SELECT - ( - CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT col0 + + 45 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT - 24 DIV + MAX( DISTINCT - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 24 / + MAX ( DISTINCT - col2 ) FROM tab2
----
1

query II rowsort
SELECT ALL - + 10 + - + col2 AS col1, col1 FROM tab2 AS cor0
----
-33
51
-50
77
-68
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4476
SELECT CAST( NULL AS DECIMAL ) * - col1 * + 72 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT CAST ( NULL AS REAL ) * - col1 * + 72 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - MIN( + 43 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4477
SELECT - MIN ( + 43 ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT DISTINCT 44 + + MAX( 19 ) AS col0, - ( + - 82 ) + - 8 + + - COUNT( * ) FROM tab0
----
63
71

skipif mysql # not compatible
query II rowsort label-4480
SELECT DISTINCT 44 + + MAX ( 19 ) AS col0, - ( + - 82 ) + - 8 + + - COUNT ( * ) FROM tab0
----
63
71

query II rowsort
SELECT ALL - ( ( + 18 ) ) AS col1, + col2 AS col1 FROM tab0
----
-18
10
-18
47
-18
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 11 * - - 72 * - 98 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 15 >= NULL
----

query I rowsort
SELECT DISTINCT 11 * + 88 AS col1 FROM tab2
----
968

query II rowsort
SELECT ALL col1 * + col0 + + col1 AS col2, 77 * - 8 FROM tab2
----
2397
-616
5005
-616
5092
-616

query I rowsort
SELECT DISTINCT - 45 - + col2 + - 8 FROM tab1
----
-112
-121
-149

query I rowsort
SELECT 39 * + 14 * - col0 FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + COUNT( * ) FROM tab2 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT + COUNT ( * ) FROM tab2 WHERE - - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + - 88 + + 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + ( 24 ) - - - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-4872
-4991
-6164

query I rowsort
SELECT DISTINCT - 9 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 85 * - 98 FROM tab2 AS cor0 WHERE NULL BETWEEN 41 + + 38 / - 63 + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 8 FROM tab1
----
13
22
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT MIN( DISTINCT col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT col0 DIV col1 + + col0 AS col0 FROM tab2
----
46
64
76

skipif mysql # not compatible
query I rowsort label-4499
SELECT col0 / col1 + + col0 AS col0 FROM tab2
----
46
64
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT - col1 DIV col0 + - 73 AS col0 FROM tab2
----
-73
-74

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - col1 / col0 + - 73 AS col0 FROM tab2
----
-73
-74

query III rowsort
SELECT * FROM tab0 WHERE + col1 * 81 >= ( + col2 + - col1 / + 5 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col1 + - 25 AS col0 FROM tab1
----
-11
-20
22

query I rowsort
SELECT + col1 + 94 AS col2 FROM tab2
----
145
161
171

query I rowsort
SELECT DISTINCT - 61 + col0 AS col1 FROM tab0
----
-46
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL < - col1 + ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL < - col1 + ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( ALL - ( col2 ) ) col0 FROM tab2 WHERE - col2 BETWEEN NULL AND col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + col0 col0 FROM tab1
----
420
4230
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - COUNT( * ) + - 10 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-4509
SELECT - COUNT ( * ) + - 10 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + col2 + 54 NOT BETWEEN NULL AND ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + col2 + 54 NOT BETWEEN NULL AND ( - col0 )
----
0

query I rowsort
SELECT + col1 + - col2 * col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( 95 * - col1 ) NOT BETWEEN - 57 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) NOT IN ( 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab2 WHERE NOT col1 * col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT 86 + COUNT( * ) AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4515
SELECT 86 + COUNT ( * ) AS col0 FROM tab0
----
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 + + ( + col0 ) FROM tab1
----
142
176
182

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT ALL - col0 DIV col2 + ( 22 ) AS col1 FROM tab0
----
14
22
22

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - col0 / col2 + ( 22 ) AS col1 FROM tab0
----
14
22
22

query I rowsort
SELECT ALL 6 AS col0 FROM tab2 WHERE + 72 NOT IN ( col2 )
----
6
6
6

query I rowsort
SELECT 24 * - 82 + + col2 AS col1 FROM tab1
----
-1872
-1900
-1909

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - COUNT( * ) * + 23 AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - COUNT ( * ) * + 23 AS col0 FROM tab2 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT 6 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT 6 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT + 33 * 33 + + MIN( DISTINCT - 83 ) FROM tab0 WHERE ( NULL ) >= 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + 33 * 33 + + MIN ( DISTINCT - 83 ) FROM tab0 WHERE ( NULL ) >= 34
----
NULL

query I rowsort
SELECT - col2 + 96 AS col1 FROM tab2 WHERE col0 NOT BETWEEN NULL AND 18 * 90
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) / + MIN( - col2 ) AS col1 FROM tab1 WHERE 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + MIN ( - col2 ) AS col1 FROM tab1 WHERE 15 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT 29 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT + CAST( NULL AS SIGNED ) * 12 IS NOT NULL
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif mysql # not compatible
query I rowsort label-4528
SELECT 29 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * 12 IS NOT NULL
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab2 WHERE + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL - ( - MAX( DISTINCT - col0 ) ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - ( - MAX ( DISTINCT - col0 ) ) AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT + col1 + ( 95 ) * - col0 AS col0 FROM tab2 AS cor0
----
-4319
-6003
-7058

query I rowsort
SELECT + - ( col1 ) + col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4534
SELECT 24 + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT 24 + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 83 + - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-310

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 83 + - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-310

query I rowsort
SELECT + - 9 + col0 * col2 AS col2 FROM tab2 AS cor0
----
1049
2551
4341

query I rowsort
SELECT + col0 + + 72 * - col2 AS col0 FROM tab1 AS cor0
----
-4163
-4805
-6861

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4539
SELECT MIN ( DISTINCT + col1 ) FROM tab1
----
5

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT col0 * - - 59 AS col2 FROM tab0
----
5133
5723
885

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT + ( + col1 ) DIV + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4542
SELECT + ( + col1 ) / + col0 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col2 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL - col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col2 ) * ( - ( col0 ) + - ( col2 ) ) + ( col2 ) AS col0 FROM tab1
----
10880
14208
8555

query I rowsort
SELECT + col2 - 30 AS col2 FROM tab1 AS cor0
----
29
38
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + 58 - - COUNT( * ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4547
SELECT + 58 - - COUNT ( * ) FROM tab1 AS cor0
----
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + ( + col2 ) * col2 <= ( + col0 * + 8 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4549
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= col0 + ( - CAST( NULL AS SIGNED ) ) / col1
----

skipif mysql # not compatible
query III rowsort label-4549
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= col0 + ( - CAST ( NULL AS INTEGER ) ) / col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL >= col2 + + col0 * - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL >= col2 + + col0 * - CAST ( - col0 AS INTEGER )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT 40 DIV - COUNT( * ) col0 FROM tab1
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4553
SELECT 40 / - COUNT ( * ) col0 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4554
SELECT + ( COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT ( - + 72 ) <> - col0
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE + col1 + + col2 + col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4557
SELECT - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ALL + col0 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + col0 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-3

query II rowsort
SELECT 5, col0 AS col1 FROM tab0 AS cor0
----
5
15
5
87
5
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * col1 BETWEEN 24 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL - col1 DIV + 42 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - col1 / + 42 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab0 cor0 WHERE NOT ( + col2 / 22 * 28 - + 91 ) IN ( - col1 )
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + 80 + - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 13 AS col2, 96 FROM tab0 AS cor0
----
13
96
13
96
13
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col1 ) * + col1 AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + + 97 >= + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT 46 * - MAX( - - 92 ) AS col0 FROM tab0
----
-4232

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 46 * - MAX ( - - 92 ) AS col0 FROM tab0
----
-4232

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN - col1 AND col1 + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - col0 ) + - 47 IS NOT NULL
----

query I rowsort
SELECT ALL 28 AS col1 FROM tab1 WHERE NOT + - ( - + 83 ) + - 88 NOT IN ( 1 * 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4572
SELECT * FROM tab1 WHERE NOT + + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4572
SELECT * FROM tab1 WHERE NOT + + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT + CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4573
SELECT + CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col2 * - col0 + + 29 IS NULL
----
46
64
75

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + + col1 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT - 97 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - 97 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 98 - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - + col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT 45 * SUM( ALL 26 ) FROM tab2
----
3510

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT 45 * SUM ( ALL 26 ) FROM tab2
----
3510

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT ALL - + COUNT( * ) * - - 92 AS col0, + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-276
15

skipif mysql # not compatible
query II rowsort label-4580
SELECT ALL - + COUNT ( * ) * - - 92 AS col0, + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-276
15

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4582
SELECT ALL + col2 * - 71, col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3337
3807
-7029
99
-710
210

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL + col2 * - 71, col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3337
3807
-7029
99
-710
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT + AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 17 FROM tab1 WHERE NULL BETWEEN col0 + 20 + - 45 * col1 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( ( + col2 ) * col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - + MAX( DISTINCT - ( + col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4586
SELECT - + MAX ( DISTINCT - ( + col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL - + col0 - + - CAST( NULL AS SIGNED ) + + + 97 + - 82 / + col0 * + 65 * ( + CAST( NULL AS SIGNED ) - - col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - + col0 - + - CAST ( NULL AS INTEGER ) + + + 97 + - 82 / + col0 * + 65 * ( + CAST ( NULL AS INTEGER ) - - col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 - + 65 - ( - col2 ) AS col0 FROM tab2 AS cor0
----
39
4
68

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT DISTINCT - COUNT( + col0 ) DIV - + MAX( ALL + col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - COUNT ( + col0 ) / - + MAX ( ALL + col2 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( - 49 * - - 5 + 69 - + - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( - 49 * - - 5 + 69 - + - col1 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT col1, 79 FROM tab2
----
51
79
67
79
77
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT - ( - 31 ) + - col0 + - col0 * - col1 - - - ( + ( col1 ) ) DIV col2 AS col0 FROM tab2
----
2329
4894
4980

skipif mysql # not compatible
query I rowsort label-4596
SELECT - ( - 31 ) + - col0 + - col0 * - col1 - - - ( + ( col1 ) ) / col2 AS col0 FROM tab2
----
2329
4894
4980

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4598
SELECT CAST( NULL AS SIGNED ) + + + col2 AS col2, 57 FROM tab1
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
query II rowsort label-4598
SELECT CAST ( NULL AS INTEGER ) + + + col2 AS col2, 57 FROM tab1
----
NULL
57
NULL
57
NULL
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + ( + 4 ) col0 FROM tab1
----
14
4
47
4
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4600
SELECT + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL - 29 * - - col1 * + 60 + + col1 DIV col2 * - 73 col2 FROM tab0
----
-141013
-1740
-36686

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4601
SELECT ALL - 29 * - - col1 * + 60 + + col1 / col2 * - 73 col2 FROM tab0
----
-141013
-1740
-36686

query I rowsort
SELECT DISTINCT 83 * - 6 + col1 + + + 7 * ( 59 ) * - col2 FROM tab0
----
-19828
-41384
-4607

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT - 10 DIV - col0 FROM tab0 WHERE + ( + col0 ) * - col1 >= + - col2
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT - 10 / - col0 FROM tab0 WHERE + ( + col0 ) * - col1 >= + - col2
----
0

query I rowsort
SELECT - col1 * + - 78 * col1 / - col2 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL + + 10 AS col0, col2 FROM tab1 cor0
----
10
59
10
68
10
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE + 9 + - ( - + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE + 9 + - ( - + col0 ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 41 + + 73 + - col0 + col0 * ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - - 78
----

query I rowsort
SELECT - col0 - + 42 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN col1 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 * + col0 + 64
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * col2 AND NULL
----

query I rowsort
SELECT ALL - - 80 * - col2 AS col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - col0 * - 46 + col1 IN ( - - col2 / + 58 ) )
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4616
SELECT DISTINCT + CAST( 66 AS SIGNED ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
66
-3

skipif mysql # not compatible
query II rowsort label-4616
SELECT DISTINCT + CAST ( 66 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
66
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL COUNT( * ) + + + 69 AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL COUNT ( * ) + + + 69 AS col2 FROM tab1
----
72

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - 96 + - ( - col2 ) + + 8 * - 23 + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT COUNT( * ) + + 45 AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4619
SELECT COUNT ( * ) + + 45 AS col2 FROM tab2
----
48

query II rowsort
SELECT DISTINCT - ( + 63 ) * + 55 AS col0, - col2 * - col1 FROM tab1
----
-3465
1344
-3465
295
-3465
3196

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 43 / + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - col2 + + col0 AS col1 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT - col0 * - col0 * + col2 + + - ( - 40 ) FROM tab2
----
163880
326290
48708

query I rowsort
SELECT + + col2 FROM tab0 WHERE ( 18 * + col0 ) = col0 - - 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT ALL - ( + + col1 ) DIV - col1 + col0 AS col1 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - ( + + col1 ) / - col1 + col0 AS col1 FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col0 IN ( - + ( - ( - col0 ) ) )
----
-1
-21
-81

query I rowsort
SELECT col2 + - col0 * col0 * col1 - 24 + 57 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * 4 * col1 col2 FROM tab0 AS cor0
----
1233468
17640
396

query I rowsort
SELECT DISTINCT + + col1 * - 15 FROM tab0 AS cor0
----
-1215
-15
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT - ( - MAX( DISTINCT ( + col1 ) ) ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - ( - MAX ( DISTINCT ( + col1 ) ) ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 27 AS col2, + col1 FROM tab1 cor0
----
27
14
27
47
27
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 91 ) NOT BETWEEN + col0 AND + col1 / - ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT + - CAST( NULL AS SIGNED ) * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT + - CAST ( NULL AS INTEGER ) * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + COUNT( 22 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4636
SELECT + COUNT ( 22 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT + 75 - - 69, - col1 * col1 * + + col1 AS col2 FROM tab2
----
144
-132651
144
-300763
144
-456533

query II rowsort
SELECT ALL col0 + - + 20 AS col2, ( + - col0 ) FROM tab0
----
-5
-15
67
-87
77
-97

query I rowsort
SELECT DISTINCT - col0 - - - col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL OR - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT MIN( DISTINCT + col0 ) + - 33 FROM tab1 AS cor0 WHERE 7 * 68 BETWEEN col0 + col2 * - col0 AND ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT MIN ( DISTINCT + col0 ) + - 33 FROM tab1 AS cor0 WHERE 7 * 68 BETWEEN col0 + col2 * - col0 AND ( 33 )
----
NULL

query I rowsort
SELECT DISTINCT 86 * - - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4042
8514
860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4644
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + CAST ( NULL AS REAL ) - col1 AS col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - col2 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 IS NULL
----

query I rowsort
SELECT - 61 * - + ( ( col2 ) ) FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4649
SELECT + COUNT( * ) DIV + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT + COUNT ( * ) / + 72 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT ALL - 30 DIV COUNT( * ) AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - 30 / COUNT ( * ) AS col1 FROM tab1
----
-10

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT NULL > - col0
----

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col1 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL COUNT( * ) * 61 AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( * ) * 61 AS col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT ALL - 71, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-71
-3

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL - 71, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-71
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4657
SELECT - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT MIN( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4658
SELECT MIN ( DISTINCT + ( - col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL + - COUNT( + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + - COUNT ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT - COUNT( ALL - col2 ) FROM tab2 AS cor0 WHERE col0 + + 17 <> ( - 60 )
----
-3

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - COUNT ( ALL - col2 ) FROM tab2 AS cor0 WHERE col0 + + 17 <> ( - 60 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL COUNT( * ) * - + SUM( DISTINCT col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL COUNT ( * ) * - + SUM ( DISTINCT col2 ) FROM tab1
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL - + CAST( NULL AS SIGNED ) * + 28 * - - 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 28 * - - 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4664
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT + + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4665
SELECT + + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ( - 60 ) * - SUM( ALL + 61 ) AS col2 FROM tab0 AS cor0
----
10980

skipif mysql # not compatible
query I rowsort label-4666
SELECT ( - 60 ) * - SUM ( ALL + 61 ) AS col2 FROM tab0 AS cor0
----
10980

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT MIN( ALL + - 75 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4667
SELECT MIN ( ALL + - 75 ) AS col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT + - col1 AS col2, 75 AS col0 FROM tab1 AS cor0
----
-14
75
-47
75
-5
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43, 9 col2 FROM tab2 AS cor0
----
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT MIN( ALL - col2 ) * MIN( col2 ) * - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
2970

skipif mysql # not compatible
query I rowsort label-4670
SELECT MIN ( ALL - col2 ) * MIN ( col2 ) * - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
2970

query I rowsort
SELECT DISTINCT - + col2 + + 42 + 70 FROM tab0 AS cor0
----
102
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 18 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + + 58 <= ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + + 58 <= ( - col1 )
----
0

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT col0 * - - col0 * - col0 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT DISTINCT + ( 73 ) + ( + 40 ) FROM tab0
----
113

query I rowsort
SELECT DISTINCT 86 FROM tab2 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT DISTINCT + MIN( col0 ) DIV - COUNT( * ) + - 85 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + MIN ( col0 ) / - COUNT ( * ) + - 85 FROM tab2 AS cor0
----
-100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - - 81 ) <= + col1 - + 7
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col1 * + ( - - col2 ) IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - col2 col1 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT ALL - col0, + 13 AS col0 FROM tab0
----
-15
13
-87
13
-97
13

query II rowsort
SELECT col0 AS col0, - 50 FROM tab2
----
46
-50
64
-50
75
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - CAST( - + ( + - ( - - col0 ) ) AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT - CAST ( - + ( + - ( - - col0 ) ) AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + + col0 - col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0 WHERE + col0 * + + col2 - + + col0 * + 33 IS NULL
----

query I rowsort
SELECT DISTINCT - 48 - - 81 FROM tab1 cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + 60 ) col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT 52 DIV + - col0 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT 52 / + - col0 AS col2 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 53 FROM tab0 WHERE NOT + col0 <> ( - 80 )
----

query I rowsort
SELECT + 78 * + - 70 FROM tab0
----
-5460
-5460
-5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * 5 col0, 50 * 86 FROM tab2
----
-230
4300
-320
4300
-375
4300

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT ALL - 68 * MAX( DISTINCT + 17 ) * - 30 AS col2, COUNT( * ) col2 FROM tab0
----
34680
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4696
SELECT ALL - 68 * MAX ( DISTINCT + 17 ) * - 30 AS col2, COUNT ( * ) col2 FROM tab0
----
34680
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT 11 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT 11 / col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL - MAX( ( + - 77 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - MAX ( ( + - 77 ) ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - ( + SUM( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4699
SELECT - ( + SUM ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 57 ) * + 83 col0, + col2 FROM tab2 AS cor0
----
4731
23
4731
40
4731
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT DISTINCT + COUNT( * ) AS col2, 42 AS col1 FROM tab2 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-4702
SELECT DISTINCT + COUNT ( * ) AS col2, 42 AS col1 FROM tab2 AS cor0
----
3
42

query II rowsort
SELECT ALL 81, + col1 AS col2 FROM tab2 cor0
----
81
51
81
67
81
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 66 ) col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT + 87 * + - col0 + + ( + CAST( NULL AS SIGNED ) ) + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 87 * + - col0 + + ( + CAST ( NULL AS INTEGER ) ) + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + 80 col2 FROM tab1 AS cor0
----
111
111
111

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + 56 OR NOT + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4708
SELECT CAST( - 63 AS SIGNED ) DIV 16 + col2 AS col0 FROM tab1 AS cor0
----
56
65
93

skipif mysql # not compatible
query I rowsort label-4708
SELECT CAST ( - 63 AS INTEGER ) / 16 + col2 AS col0 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL + COUNT( DISTINCT + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 48 + - 50 AS col2 FROM tab0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT DISTINCT COUNT( * ) + - - SUM( - CAST( NULL AS SIGNED ) ) + 69 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT COUNT ( * ) + - - SUM ( - CAST ( NULL AS INTEGER ) ) + 69 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4712
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT + 82 + + col0 AS col2 FROM tab1
----
133
167
173

query I rowsort
SELECT - col0 + 45 AS col2 FROM tab2
----
-1
-19
-30

query II rowsort
SELECT ALL - ( col0 ) AS col0, 3 FROM tab1
----
-51
3
-85
3
-91
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - MIN( DISTINCT - 65 ) AS col2 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - MIN ( DISTINCT - 65 ) AS col2 FROM tab2 cor0
----
65

query I rowsort
SELECT + 66 * + - col1 AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 27 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 3 + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4722
SELECT + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4723
SELECT + 9 * CAST( - - col2 AS SIGNED ) DIV col0 * - 8 + + col1 AS col2 FROM tab1 AS cor0
----
-1
-114
-43

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 9 * CAST ( - - col2 AS INTEGER ) / col0 * - 8 + + col1 AS col2 FROM tab1 AS cor0
----
-1
-114
-43

query I rowsort
SELECT ALL - col1 * - 37 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col2 * + + 24 + + - col1 + + 21 + - + col0 / - col2 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col1 col2 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT + + 31 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + MAX( ALL - col1 ) * + - SUM( 82 ) AS col1 FROM tab2 cor0
----
12546

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MAX ( ALL - col1 ) * + - SUM ( 82 ) AS col1 FROM tab2 cor0
----
12546

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT - col1 DIV - + col0 * - + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT - col1 / - + col0 * - + col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT MIN( ALL 48 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4730
SELECT MIN ( ALL 48 ) FROM tab2
----
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL - CAST( col2 AS SIGNED ) * - col0 + col1 AS col0 FROM tab2
----
1109
2637
4417

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - CAST ( col2 AS INTEGER ) * - col0 + col1 AS col0 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * col1 / + + col1 * - col2 * col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 82 ) FROM tab2
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT + MIN( + 44 ) col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT DISTINCT + MIN ( + 44 ) col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT 8 DIV + col0 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4737
SELECT DISTINCT 8 / + col0 col2 FROM tab0
----
0

query II rowsort
SELECT col1 AS col0, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + COUNT( * ) * + - MAX( DISTINCT - - col0 ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + COUNT ( * ) * + - MAX ( DISTINCT - - col0 ) AS col0 FROM tab1
----
-273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4740
SELECT ALL - CAST( + col2 AS SIGNED ), - col0 DIV col2 + 63 AS col2 FROM tab1
----
-59
62
-68
62
-96
63

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL - CAST ( + col2 AS INTEGER ), - col0 / col2 + 63 AS col2 FROM tab1
----
-59
62
-68
62
-96
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT - 64 + + COUNT( * ) FROM tab2 WHERE CAST( NULL AS SIGNED ) > - 41 * 57
----
-64

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - 64 + + COUNT ( * ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) > - 41 * 57
----
-64

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( + col0 ) * + + 71 + + - 63 <= col2 + - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT - col0 * - col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-4744
SELECT - col0 * - col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10575
75690
931491

query II rowsort
SELECT col1 AS col2, col1 * 29 * col1 + - ( - + col1 ) AS col2 FROM tab2 cor0 WHERE - col1 NOT BETWEEN - 94 + + col0 + - 22 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT MIN( ALL - 26 ) * + COUNT( * ) + + COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT MIN ( ALL - 26 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT SUM( DISTINCT + 66 ) FROM tab2 WHERE + - 48 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-4747
SELECT SUM ( DISTINCT + 66 ) FROM tab2 WHERE + - 48 IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + 25 + + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + 25 + + COUNT ( * ) FROM tab0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT - 19 - + COUNT( * ) + + 78 DIV - + 35 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - 19 - + COUNT ( * ) + + 78 / - + 35 FROM tab2
----
-24

query III rowsort
SELECT * FROM tab1 WHERE + + 22 * - col2 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( + - 78 ) + - - col2 AS col1, 18 AS col0 FROM tab2
----
-20
18
-38
18
-55
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT + CAST( NULL AS SIGNED ) + 98 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT + CAST ( NULL AS INTEGER ) + 98 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT 59 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT 59 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
56

query I rowsort
SELECT col0 + - 74 - col1 * + 58 AS col2 FROM tab0 AS cor0
----
-1205
-35
-4757

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT - ( + + COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4756
SELECT DISTINCT - ( + + COUNT ( * ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT + - 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL + 93 * + COUNT( * ) FROM tab0 cor0
----
279

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 93 * + COUNT ( * ) FROM tab0 cor0
----
279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4761
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 * + + CAST( col1 AS SIGNED ) NOT BETWEEN - + 0 + + + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4761
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 * + + CAST ( col1 AS INTEGER ) NOT BETWEEN - + 0 + + + col1 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - + col2 AS col0, ( - col0 ) FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 43 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - 18 * MIN( col2 ) AS col1 FROM tab1
----
-1062

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - 18 * MIN ( col2 ) AS col1 FROM tab1
----
-1062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ( - CAST( + 85 AS SIGNED ) ) AS col2 FROM tab1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-4765
SELECT ( - CAST ( + 85 AS INTEGER ) ) AS col2 FROM tab1
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4766
SELECT ALL 18 * - col2 col0, col1 * - - col0 * - col2, + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
9 values hashing to 97d26fd7d5b783caa1c62a20f8d97620

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4766
SELECT ALL 18 * - col2 col0, col1 * - - col0 * - col2, + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
9 values hashing to 97d26fd7d5b783caa1c62a20f8d97620

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 13 / col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 36 * - col2 AS col1 FROM tab0
----
-1692
-3564
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col2 col2, + col2 + + col2 FROM tab2 AS cor0
----
-1173
46
-3080
80
-3886
116

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL - col2 DIV + ( - + col1 ) * + 9 + - 13 FROM tab2
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - col2 / + ( - + col1 ) * + 9 + - 13 FROM tab2
----
-13
-13
-13

query II rowsort
SELECT + col1 AS col1, 56 AS col0 FROM tab0
----
1
56
21
56
81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - MAX( ALL - 64 ) AS col1 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-4772
SELECT - MAX ( ALL - 64 ) AS col1 FROM tab1
----
64

query I rowsort
SELECT ALL col0 + col0 * - - 87 + + col1 + - - 85 * + 32 * - + 92 FROM tab1
----
-242185
-242755
-245738

query I rowsort
SELECT ALL + 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( + col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT DISTINCT + COUNT( * ) col2, MAX( ALL 19 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4776
SELECT DISTINCT + COUNT ( * ) col2, MAX ( ALL 19 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4777
SELECT + COUNT( * ) + - ( - 0 ) * + 71 * 42 FROM tab1 AS cor0 WHERE 41 + + + col1 + + CAST( NULL AS DECIMAL ) IS NOT NULL AND NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( * ) + - ( - 0 ) * + 71 * 42 FROM tab1 AS cor0 WHERE 41 + + + col1 + + CAST ( NULL AS REAL ) IS NOT NULL AND NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 34 + ( - col2 ) + - 70 AS col2 FROM tab0 AS cor0
----
-135
-46
-83

query I rowsort
SELECT DISTINCT - col2 * + - col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-4781
SELECT DISTINCT - col0 DIV + col0 + + col2, + 51 AS col1 FROM tab1 AS cor0
----
58
51
67
51
95
51

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT - col0 / + col0 + + col2, + 51 AS col1 FROM tab1 AS cor0
----
58
51
67
51
95
51

query I rowsort
SELECT ALL 57 * + 63 AS col2 FROM tab1 AS cor0
----
3591
3591
3591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4784
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV 12 col0 FROM tab0
----
0
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / 12 col0 FROM tab0
----
0
3
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 82 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 92 * + 44 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + COUNT( * ) + - - 50 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + COUNT ( * ) + - - 50 FROM tab0
----
53

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( 45 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 WHERE NULL > + - 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 37 + col1 col0 FROM tab0 AS cor0
----
-103
-133
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + + COUNT( * ) - + + COUNT( * ) + 94 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4793
SELECT + + COUNT ( * ) - + + COUNT ( * ) + 94 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4794
SELECT + + 16 - CAST( NULL AS SIGNED ), + col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4794
SELECT + + 16 - CAST ( NULL AS INTEGER ), + col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT - COUNT( * ) * - CAST( ( + 59 ) AS SIGNED ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT - COUNT ( * ) * - CAST ( ( + 59 ) AS INTEGER ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT + - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - ( + col0 ) + + + 25 col0 FROM tab2 AS cor0
----
1083
2585
4375

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - MAX( + 38 ) FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4799
SELECT - MAX ( + 38 ) FROM tab1 cor0
----
-38

query II rowsort
SELECT - col1 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT CAST( COUNT( ALL 9 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4801
SELECT CAST ( COUNT ( ALL 9 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 63 AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - - 30 AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT + MIN( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL - 71, + 42 AS col2 FROM tab2
----
-71
42
-71
42
-71
42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + 73 FROM tab0
----
-8
52
72

query I rowsort
SELECT - - 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - col2 * - col2 + + - col2 AS col2 FROM tab2 AS cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - COUNT( * ) * - COUNT( * ) - - 75 * - COUNT( * ) - + MAX( - + col1 ) FROM tab1 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - 75 * - COUNT ( * ) - + MAX ( - + col1 ) FROM tab1 AS cor0
----
-211

query II rowsort
SELECT + + col2 * col1, col0 * col2 AS col0 FROM tab0 AS cor0
----
210
870
3807
705
99
9603

query I rowsort
SELECT ALL - 98 * - 80 * + ( 27 ) FROM tab0 AS cor0
----
211680
211680
211680

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - + 31 AS col0 FROM tab1 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT - MAX( + 71 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - MAX ( + 71 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 21 AS col2 FROM tab0
----
15
21
87
21
97
21

query I rowsort
SELECT ALL col1 + 62 AS col2 FROM tab2
----
113
129
139

query I rowsort
SELECT + 56 * + + 26 + - 27 + + col1 * - 35 FROM tab2
----
-1266
-356
-916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT CAST( NULL AS SIGNED ) * + ( - - 99 ) + + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT CAST ( NULL AS INTEGER ) * + ( - - 99 ) + + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + + col1 * col0 AS col2 FROM tab1
----
366
4209
618

query III rowsort
SELECT * FROM tab0 WHERE - + 20 + - - col1 BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + ( - - 82 ) AS col1, + col1 col0 FROM tab2
----
105
51
122
77
140
67

query I rowsort
SELECT ALL 52 - - + col0 FROM tab0
----
139
149
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 53 col0 FROM tab2 AS cor0
----
-117
-128
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT - SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4828
SELECT ( - CAST( NULL AS DECIMAL ) ), - 88 col1 FROM tab1
----
NULL
-88
NULL
-88
NULL
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4828
SELECT ( - CAST ( NULL AS REAL ) ), - 88 col1 FROM tab1
----
NULL
-88
NULL
-88
NULL
-88

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + COUNT( ALL - - col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4830
SELECT + COUNT ( ALL - - col0 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - col0 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - col0 / - col0
----
0

query I rowsort
SELECT - 4 AS col2 FROM tab2 cor0
----
-4
-4
-4

query II rowsort
SELECT + col2 AS col0, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL - col1 + - + CAST( NULL AS SIGNED ) + + + 58 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - col1 + - + CAST ( NULL AS INTEGER ) + + + 58 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT + 27 DIV + 53 + - SUM( DISTINCT 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 27 / + 53 + - SUM ( DISTINCT 26 ) FROM tab1
----
-26

query I rowsort
SELECT - 24 + + col2 - + - 91 AS col1 FROM tab1
----
126
135
163

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 <= - - col0 + + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - 57 * - COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 57 * - COUNT ( * ) FROM tab2
----
171

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 62 * - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - 81 * + ( - COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 81 * + ( - COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
729

query I rowsort
SELECT DISTINCT - col0 - + 53 * + col1 AS col2 FROM tab1
----
-2582
-350
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL - MAX( DISTINCT 99 ) + - - 80 AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - MAX ( DISTINCT 99 ) + - - 80 AS col0 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT SUM( col0 ) + + + MIN( - - 3 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT SUM ( col0 ) + + + MIN ( - - 3 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - 80 - + COUNT( * ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - 80 - + COUNT ( * ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT + - 22 * col1 FROM tab1 cor0
----
-1034
-110
-308

query I rowsort
SELECT - col1 * - + ( + 18 ) AS col2 FROM tab2 AS cor0
----
1206
1386
918

query II rowsort
SELECT ALL 30 * 69, + col0 * + - 42 AS col0 FROM tab2
----
2070
-1932
2070
-2688
2070
-3150

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE + col0 + - col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - 7 + - + 32 * + ( - - ( + col1 ) ) * - - 13 * + + col1 AS col1 FROM tab0
----
-183463
-2729383
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT SUM( + + 81 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-4851
SELECT SUM ( + + 81 ) FROM tab1
----
243

query I rowsort
SELECT DISTINCT ( - - col2 ) + - - 96 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT DISTINCT + MAX( - 6 ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + MAX ( - 6 ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT ALL + - CAST( - - col1 AS SIGNED ), col1 col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4855
SELECT ALL + - CAST ( - - col1 AS INTEGER ), col1 col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL ( - 29 ) * - 50 FROM tab0
----
1450
1450
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4857
SELECT - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 + + col0 <= NULL
----

query II rowsort
SELECT - col1, 33 AS col2 FROM tab0 AS cor0
----
-1
33
-21
33
-81
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - 8, col2 FROM tab1 AS cor0
----
-8
59
-8
68
-8
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT + + 74 AS col0, MIN( DISTINCT + + 69 ) * - + 35 AS col2 FROM tab0 cor0
----
74
-2415

skipif mysql # not compatible
query II rowsort label-4862
SELECT + + 74 AS col0, MIN ( DISTINCT + + 69 ) * - + 35 AS col2 FROM tab0 cor0
----
74
-2415

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4863
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IN ( 30, - 98, + + 56, + col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-4863
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IN ( 30, - 98, + + 56, + col1 + col2 )
----

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - 44 ) + + - 26 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + ( - col2 ) - - col2 col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT SUM( - 98 ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-4866
SELECT SUM ( - 98 ) FROM tab1
----
-294

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 30 ) <= + + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4869
SELECT * FROM tab0 WHERE + CAST( + 28 AS SIGNED ) = - col1
----

skipif mysql # not compatible
query III rowsort label-4869
SELECT * FROM tab0 WHERE + CAST ( + 28 AS INTEGER ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL MAX( ALL - 86 ) AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL MAX ( ALL - 86 ) AS col2 FROM tab1
----
-86

query I rowsort
SELECT ALL - 94 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) + - MAX( ALL - 90 ) * - COUNT( * ) AS col2 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) + - MAX ( ALL - 90 ) * - COUNT ( * ) AS col2 FROM tab0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT + - COUNT( ALL col0 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4877
SELECT + - COUNT ( ALL col0 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ( - + 28 ) / col2 AS col1 FROM tab0 AS cor0 WHERE - 96 IS NULL
----

query I rowsort
SELECT ALL col0 * + - 81 AS col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 43 col2 FROM tab0
----
130
140
58

query I rowsort
SELECT + ( - 70 ) FROM tab1
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL COUNT( - 11 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL COUNT ( - 11 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-81

query II rowsort
SELECT col1, col1 * + + col0 FROM tab2
----
51
2346
67
5025
77
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT COUNT( * ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4885
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT - col0 DIV 47 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT - col0 / 47 FROM tab0
----
-1
-2
0

query I rowsort
SELECT col0 * + 55 AS col0 FROM tab2
----
2530
3520
4125

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab1 WHERE NOT - col1 <= col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL SUM( col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL SUM ( col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT ALL + 66 * + CAST( NULL AS SIGNED ) / + col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + 66 * + CAST ( NULL AS INTEGER ) / + col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 74 + col0 * - col2 * - 40 - col1 + - col2 > 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - 64 + + COUNT( * ), - 20 AS col1 FROM tab2 AS cor0
----
-61
-20

skipif mysql # not compatible
query II rowsort label-4893
SELECT - 64 + + COUNT ( * ), - 20 AS col1 FROM tab2 AS cor0
----
-61
-20

query I rowsort
SELECT col1 + - col0 + col2 - + + col2 * + col2 * + 82 * + + col1 FROM tab0
----
-14672065
-172256
-803679

query I rowsort
SELECT ALL 32 * + + 33 * col0 FROM tab2
----
48576
67584
79200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT + col2 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT + col2 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 0 + - ( - COUNT( * ) ) FROM tab1 WHERE + col0 * + - 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4897
SELECT 0 + - ( - COUNT ( * ) ) FROM tab1 WHERE + col0 * + - 32 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 81 col0 FROM tab0
----
-34
-71
18

query I rowsort
SELECT ALL col0 + + + col1 * - + col0 * 96 AS col1 FROM tab0
----
-116625
-175305
-9215

query I rowsort
SELECT DISTINCT + col0 + - 85 AS col0 FROM tab0
----
-70
12
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4901
SELECT ALL 13 AS col0, MIN( ALL - col2 ) DIV + COUNT( * ) FROM tab2
----
13
-19

skipif mysql # not compatible
query II rowsort label-4901
SELECT ALL 13 AS col0, MIN ( ALL - col2 ) / + COUNT ( * ) FROM tab2
----
13
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4902
SELECT ALL + - col1 * CAST( + 84 AS SIGNED ) DIV - col1 + + + col1 * 82 + + - col2 FROM tab1 AS cor0
----
1136
3870
435

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + - col1 * CAST ( + 84 AS INTEGER ) / - col1 + + + col1 * 82 + + - col2 FROM tab1 AS cor0
----
1136
3870
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 * + - col0 col1 FROM tab0 AS cor0
----
-3045
-3395
-525

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN - col1 + - col0 + + - ( + col0 ) + col1 + + - col1 * - col2 / - + col0 AND - col0 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT ALL + + CAST( + ( + - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + + CAST ( + ( + - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - MAX( ALL + - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT - MIN( DISTINCT - - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - col2 - col1 * + + col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 23 * - 50 FROM tab2 AS cor0
----
-1150
-1150
-1150

query I rowsort
SELECT ALL + 67 - - col2 + - 51 * + + col2 * - + col2 * col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
11083863
6580387
887781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4913
SELECT DISTINCT + MIN( DISTINCT - col0 ) * 71 - ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4913
SELECT DISTINCT + MIN ( DISTINCT - col0 ) * 71 - ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE 54 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4915
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 42 + + 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - - col1 * col1 FROM tab1 AS cor0
----
1475
150212
18816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 > + 6 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 16 FROM tab2, tab2 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4921
SELECT ALL * FROM tab1 WHERE CAST( + - 54 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4921
SELECT ALL * FROM tab1 WHERE CAST ( + - 54 AS INTEGER ) >= NULL
----

query I rowsort
SELECT - 68 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4923
SELECT CAST( NULL AS DECIMAL ) + + 88 * + COUNT( DISTINCT + - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT CAST ( NULL AS REAL ) + + 88 * + COUNT ( DISTINCT + - col1 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + ( - col2 ) col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL 15 + - - COUNT( * ) col1 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT ALL 15 + - - COUNT ( * ) col1 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL + 82 * + 57 + + MIN( ALL 3 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 - - 8 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + 82 * + 57 + + MIN ( ALL 3 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 - - 8 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + + COUNT( col0 ) + 25 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + COUNT ( col0 ) + 25 FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL + 70 * - col2 * - col1 - - col0 FROM tab2 AS cor0
----
215664
272095
82156

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + - SUM( 67 ) FROM tab0 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + - SUM ( 67 ) FROM tab0 cor0
----
-201

query III rowsort
SELECT * FROM tab2 WHERE + 64 IS NULL
----

query I rowsort
SELECT ALL + col2 * 20 / - ( col1 ) * - 69 + + col0 + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 18 col2 FROM tab0
----
-105
-115
-33

query I rowsort
SELECT 78 - 52 FROM tab2
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT COUNT( * ) + + 96 AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT COUNT ( * ) + + 96 AS col0 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ( + + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4936
SELECT ( + + COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT - col0 AS col2, + col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4938
SELECT ALL - + col1 DIV ( 49 ) AS col2, col0 + + col0 AS col1 FROM tab2 cor0
----
-1
128
-1
150
-1
92

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL - + col1 / ( 49 ) AS col2, col0 + + col0 AS col1 FROM tab2 cor0
----
-1
128
-1
150
-1
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0, + col0 * + col0 FROM tab0 AS cor0
----
15
225
87
7569
97
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4941
SELECT ALL - + 51 AS col2, CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-4941
SELECT ALL - + 51 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL MIN( - 76 ) AS col1 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL MIN ( - 76 ) AS col1 FROM tab1 cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL + 86 FROM tab0 WHERE col0 + 16 + - col1 IN ( + 86 - - col0, + col2 * + - 0 * - 27, - 19 + + CAST( NULL AS SIGNED ) ) OR NOT ( + 71 BETWEEN 62 * - + col1 AND + col0 * - col2 * - col2 * - + 11 )
----
86
86
86

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + 86 FROM tab0 WHERE col0 + 16 + - col1 IN ( + 86 - - col0, + col2 * + - 0 * - 27, - 19 + + CAST ( NULL AS INTEGER ) ) OR NOT ( + 71 BETWEEN 62 * - + col1 AND + col0 * - col2 * - col2 * - + 11 )
----
86
86
86

query I rowsort
SELECT + 10 AS col2 FROM tab0
----
10
10
10

query I rowsort
SELECT + col1 * col0 * + 22 FROM tab2
----
108416
110550
51612

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT COUNT( + - 0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4946
SELECT COUNT ( + - 0 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT - col1 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT - col1 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 42 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + col0 ) * col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - ( + 33 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - MAX( col1 ) col2 FROM tab2 WHERE NOT col0 < + col0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4951
SELECT - MAX ( col1 ) col2 FROM tab2 WHERE NOT col0 < + col0
----
-77

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - col2 = - - col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL COUNT( * ) * - MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL COUNT ( * ) * - MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-4954
SELECT ALL + + 98 * + - col1 * - 79 + - - 35 DIV - - col1 + - + col2, + col0 FROM tab0 AS cor0
----
162573
87
627055
15
7678
97

skipif mysql # not compatible
query II rowsort label-4954
SELECT ALL + + 98 * + - col1 * - 79 + - - 35 / - - col1 + - + col2, + col0 FROM tab0 AS cor0
----
162573
87
627055
15
7678
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4956
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + col0 * + CAST( ( + + col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4956
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + col0 * + CAST ( ( + + col2 ) AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + col2 + 73, - 86 AS col2 FROM tab1
----
132
-86
141
-86
169
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT - COUNT( * ) AS col1, + ( - - COUNT( * ) ) AS col0 FROM tab2 WHERE NULL > + - 29
----
0
0

skipif mysql # not compatible
query II rowsort label-4958
SELECT - COUNT ( * ) AS col1, + ( - - COUNT ( * ) ) AS col0 FROM tab2 WHERE NULL > + - 29
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL ( MAX( ALL + 63 ) ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL ( MAX ( ALL + 63 ) ) FROM tab1
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + + col2 < - 97 + + 77
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT + col1 + + 73 FROM tab1
----
120
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1, col1 * col1 + col2 + + 92 col0 FROM tab0
----
100
192
128
6700
31
543

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT DISTINCT - col1 DIV - + col1 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - col1 / - + col1 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4965
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( 85 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4965
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( 85 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 77 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL + 36 * + + 74 FROM tab2
----
2664
2664
2664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col0 * - - ( col1 ) col1 FROM tab0
----
158949
18225
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4971
SELECT ALL col0, col1 + + col1 DIV + col1 FROM tab2
----
46
52
64
78
75
68

skipif mysql # not compatible
query II rowsort label-4971
SELECT ALL col0, col1 + + col1 / + col1 FROM tab2
----
46
52
64
78
75
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT DISTINCT 9, COUNT( * ) * 8 AS col2 FROM tab1
----
9
24

skipif mysql # not compatible
query II rowsort label-4972
SELECT DISTINCT 9, COUNT ( * ) * 8 AS col2 FROM tab1
----
9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4974
SELECT - CAST( NULL AS DECIMAL ) AS col1, col1 * - col0 * + 17 AS col1 FROM tab0 AS cor0
----
NULL
-1649
NULL
-20655
NULL
-31059

skipif mysql # not compatible
query II rowsort label-4974
SELECT - CAST ( NULL AS REAL ) AS col1, col1 * - col0 * + 17 AS col1 FROM tab0 AS cor0
----
NULL
-1649
NULL
-20655
NULL
-31059

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT ALL - 99 FROM tab2 AS cor0 WHERE 5 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT 85 * ( + COUNT( - col2 ) ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT 85 * ( + COUNT ( - col2 ) ) FROM tab1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + 96 * - ( - SUM( - 87 ) * COUNT( DISTINCT - 12 + + col0 ) ) FROM tab1
----
-75168

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 96 * - ( - SUM ( - 87 ) * COUNT ( DISTINCT - 12 + + col0 ) ) FROM tab1
----
-75168

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + COUNT( * ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4979
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL - AVG ( ALL + col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - AVG ( ALL + col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * col1 + + col0 col1 FROM tab1
----
1395
4603
565

query I rowsort
SELECT - col2 * 92 + col0 FROM tab0
----
-4309
-833
-9011

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 49 col0 FROM tab0
----
4263
4753
735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT CAST( NULL AS SIGNED ) + - col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4984
SELECT CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT MIN( DISTINCT col0 ) * + COUNT( - col0 ) + - 40 AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT MIN ( DISTINCT col0 ) * + COUNT ( - col0 ) + - 40 AS col1 FROM tab2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT DISTINCT + col0 + + col0 DIV - 89 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + col0 + + col0 / - 89 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
30

query I rowsort
SELECT - col2 * + 52 + - col0 FROM tab0
----
-2459
-5245
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + MIN( DISTINCT + 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4989
SELECT + MIN ( DISTINCT + 94 ) FROM tab1
----
94

query I rowsort
SELECT + col0 * col2 + + col0 FROM tab2 WHERE NOT NULL NOT IN ( + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - COUNT( + 39 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4991
SELECT - COUNT ( + 39 ) FROM tab2
----
-3

query I rowsort
SELECT ALL col2 * + 61 AS col2 FROM tab0
----
2867
6039
610

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT col0 DIV col0 + + col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4993
SELECT col0 / col0 + + col1 FROM tab0
----
2
22
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - 4 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT CAST( - col1 AS SIGNED ) <> col0
----

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > col2 / col2
----

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > col2 / col2
----

query I rowsort
SELECT ALL - ( 39 ) FROM tab1 WHERE col1 + col0 / col1 BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col2 NOT BETWEEN ( + 2 ) AND + col2 + ( + col0 ) * - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + + 9 * col0 col1 FROM tab0
----
149
797
887

query I rowsort
SELECT + col1 * + 81 AS col1 FROM tab0
----
1701
6561
81

query I rowsort
SELECT ALL col2 * - col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT 77 * - col0 AS col1 FROM tab2
----
-3542
-4928
-5775

query I rowsort
SELECT col2 + ( + 11 ) * - 63 FROM tab1
----
-597
-625
-634

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <= 84
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + ( col0 )
----

query I rowsort
SELECT 2 + col1 FROM tab1 cor0
----
16
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( col2 ) col0 FROM tab2 AS cor0 WHERE col0 * col2 < + col1
----

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * + 94 col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 934bc06cf37eaf696517a8a476076e2f

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT 54 DIV ( + col1 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT 54 / ( + col1 ) FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL 94 * COUNT( * ) AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL 94 * COUNT ( * ) AS col2 FROM tab0
----
282

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND + 37 - - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT COUNT( 52 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5015
SELECT COUNT ( 52 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - ( 58 ) AS col2 FROM tab0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + 32 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT 91 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
100

skipif mysql # not compatible
query I rowsort label-5018
SELECT 91 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT - ( + 0 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT - ( + 0 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 19 * + col0 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( 11 ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT DISTINCT - + MAX( ALL ( col1 ) ) DIV SUM( + col1 * col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - + MAX ( ALL ( col1 ) ) / SUM ( + col1 * col2 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 5 AS col1 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - MAX( ALL col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - MAX ( ALL col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col0 * + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 57 + ( col2 - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col2 FROM tab0
----
88
88
88

query I rowsort
SELECT 16 * - col0 FROM tab2
----
-1024
-1200
-736

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 74 ) NOT BETWEEN ( + 23 ) AND ( 73 )
----

query I rowsort
SELECT col2 + - - col0 + col0 FROM tab2
----
115
168
208

query I rowsort
SELECT ALL - ( - 69 ) AS col0 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT MIN( ALL 28 ) * - ( ( + 43 ) ) FROM tab0
----
-1204

skipif mysql # not compatible
query I rowsort label-5036
SELECT MIN ( ALL 28 ) * - ( ( + 43 ) ) FROM tab0
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT COUNT( col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5037
SELECT COUNT ( col0 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT + COUNT( * ) * - MAX( + col1 ) FROM tab0 WHERE NOT - 14 * + col2 + 69 IS NULL
----
-243

skipif mysql # not compatible
query I rowsort label-5038
SELECT + COUNT ( * ) * - MAX ( + col1 ) FROM tab0 WHERE NOT - 14 * + col2 + 69 IS NULL
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + COUNT( DISTINCT + + 62 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5039
SELECT + COUNT ( DISTINCT + + 62 ) AS col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT + - COUNT( * ) DIV + - 57 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT + - COUNT ( * ) / + - 57 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + - col2 + + col2 + col0 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + 80 * + col1 BETWEEN + col0 * + 88 AND ( - col0 * + col2 + 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5045
SELECT * FROM tab2 WHERE ( - - CAST( + 40 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5045
SELECT * FROM tab2 WHERE ( - - CAST ( + 40 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col1 AS col0 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + - col0 * - - col0 * + col2 + - col0 * col1 FROM tab1 AS cor0
----
-250410
-426700
-567385

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5049
SELECT MIN( ALL ( - col2 ) ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT MIN ( ALL ( - col2 ) ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL OR NOT col0 + + 24 <> 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT - CAST( + 2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + 83 + col0 AS col0 FROM tab2 AS cor0
----
129
147
158

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT col0 DIV + 60 + + col1 FROM tab0 AS cor0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-5054
SELECT col0 / + 60 + + col1 FROM tab0 AS cor0
----
2
22
81

query I rowsort
SELECT + 93 + - - ( + 6 ) FROM tab1 AS cor0
----
99
99
99

query II rowsort
SELECT col2, 75 FROM tab0 cor0
----
10
75
47
75
99
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5058
SELECT 15 DIV + + col0 AS col1, + col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-5058
SELECT 15 / + + col0 AS col1, + col2 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - + 64 * - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab2
----
74
74
74

query II rowsort
SELECT DISTINCT - 76 + + col2 AS col1, 80 AS col0 FROM tab2
----
-18
80
-36
80
-53
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT - col1 + 16 AS col0 FROM tab1 WHERE - + col2 IN ( - - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5062
SELECT - col1 + 16 AS col0 FROM tab1 WHERE - + col2 IN ( - - CAST ( col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT col2 DIV - ( + col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT col2 / - ( + col0 ) FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col1 NOT BETWEEN NULL AND ( col2 )
----
91
47
68

query I rowsort
SELECT DISTINCT + col1 + + col1 + + 3 FROM tab2
----
105
137
157

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT ALL + 83 DIV + col2 + - col1 + col0 AS col0 FROM tab1
----
37
45
81

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + 83 / + col2 + - col1 + col0 AS col0 FROM tab1
----
37
45
81

query I rowsort
SELECT DISTINCT 3 + - col0 FROM tab0
----
-12
-84
-94

query I rowsort
SELECT + - 87 * + col0 + ( + 43 ) FROM tab2 cor0
----
-3959
-5525
-6482

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT ( - COUNT( * ) ) col2, - 52 AS col0 FROM tab0 cor0
----
-3
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5069
SELECT ( - COUNT ( * ) ) col2, - 52 AS col0 FROM tab0 cor0
----
-3
-52

query II rowsort
SELECT + ( + - 13 ), - col0 AS col1 FROM tab0 AS cor0
----
-13
-15
-13
-87
-13
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT - - CAST( NULL AS SIGNED ) * - 25 * ( col2 ) + 52 / col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT - - CAST ( NULL AS INTEGER ) * - 25 * ( col2 ) + 52 / col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT - 53 * + 78 * - ( - MAX( ALL - 64 ) ) FROM tab2 AS cor0
----
264576

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - 53 * + 78 * - ( - MAX ( ALL - 64 ) ) FROM tab2 AS cor0
----
264576

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL col2 * col0 DIV - - col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL col2 * col0 / - - col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + 21 * - 31 <= ( NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5075
SELECT ALL - 84 * col0 + col0 DIV col0 AS col2 FROM tab0 WHERE NOT 5 = + col2 DIV - + 43 + - CAST( col2 + col0 AS SIGNED )
----
-1259
-7307
-8147

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - 84 * col0 + col0 / col0 AS col2 FROM tab0 WHERE NOT 5 = + col2 / - + 43 + - CAST ( col2 + col0 AS INTEGER )
----
-1259
-7307
-8147

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT 78 * col0 * col0 FROM tab1 AS cor0
----
202878
563550
645918

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT DISTINCT + 82 * + COUNT( * ) * - 38 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + 82 * + COUNT ( * ) * - 38 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT + col0 DIV - ( - ( + - col2 ) ) FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT + col0 / - ( - ( + - col2 ) ) FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT ALL + col1, + col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col1 col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL MAX( ALL - 82 ) AS col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL MAX ( ALL - 82 ) AS col2 FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT DISTINCT - col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT + col0 * + ( - + col1 ) NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT DISTINCT 64 * + 50 AS col2 FROM tab1 AS cor0
----
3200

query I rowsort
SELECT DISTINCT col1 * + col1 * - 25 AS col0 FROM tab0
----
-11025
-164025
-25

query II rowsort
SELECT 34, ( col0 ) FROM tab2
----
34
46
34
64
34
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - ( col0 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + MAX( ALL + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5091
SELECT + MAX ( ALL + col0 ) FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND ( 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5094
SELECT ALL + col2, - col1 + - CAST( + col2 AS SIGNED ) * + col1 AS col0 FROM tab2
----
23
-1224
40
-3157
58
-3953

skipif mysql # not compatible
query II rowsort label-5094
SELECT ALL + col2, - col1 + - CAST ( + col2 AS INTEGER ) * + col1 AS col0 FROM tab2
----
23
-1224
40
-3157
58
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT COUNT( * ) * - COUNT( * ) - + + 60 + - 69 AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5095
SELECT COUNT ( * ) * - COUNT ( * ) - + + 60 + - 69 AS col1 FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT + + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col0 col0, + col1 * + - col0 AS col0 FROM tab2 AS cor0
----
128
-4928
150
-5025
92
-2346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT ALL - col1 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - col1 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT - + col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 37 * + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5099
SELECT - + col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 37 * + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col0, col0 * col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT ALL 56 + COUNT( * ) DIV - 88 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL 56 + COUNT ( * ) / - 88 FROM tab2
----
56

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - 89 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 < ( NULL )
----

query I rowsort
SELECT ALL - - col2 + + ( - col0 ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5105
SELECT * FROM tab1 AS cor0 WHERE ( ( - col1 ) NOT BETWEEN + 21 AND - CAST( + col1 AS SIGNED ) * 47 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5105
SELECT * FROM tab1 AS cor0 WHERE ( ( - col1 ) NOT BETWEEN + 21 AND - CAST ( + col1 AS INTEGER ) * 47 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT - - CAST( NULL AS SIGNED ) * col0 - + ( - 20 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT - - CAST ( NULL AS INTEGER ) * col0 - + ( - 20 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
111
195
195

query II rowsort
SELECT DISTINCT + ( - col2 ) + - col0 * 77, col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL - 85 - + + SUM( ALL + - 92 ) FROM tab1 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - 85 - + + SUM ( ALL + - 92 ) FROM tab1 AS cor0
----
191

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5110
SELECT * FROM tab0 cor0 WHERE 54 * CAST( NULL AS DECIMAL ) * + col0 NOT IN ( + + 2 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-5110
SELECT * FROM tab0 cor0 WHERE 54 * CAST ( NULL AS REAL ) * + col0 NOT IN ( + + 2 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / col2 / - 26 + col0 NOT BETWEEN - 33 * - col2 / 37 + 26 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE + ( - col2 ) * + 43 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col0 + - 76 FROM tab2 AS cor0 WHERE NOT ( - 85 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + - col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5114
SELECT + - col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 15 + col1 FROM tab2
----
66
82
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT DISTINCT COUNT( * ) col2, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5116
SELECT DISTINCT COUNT ( * ) col2, + COUNT ( * ) FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = ( NULL )
----

query I rowsort
SELECT - 98 * - col1 + 99 AS col0 FROM tab0
----
197
2157
8037

onlyif mysql # DIV for integer division: 
query II rowsort label-5119
SELECT + ( - col0 ) DIV + col1 + col2 AS col2, col0 FROM tab2
----
23
46
40
64
57
75

skipif mysql # not compatible
query II rowsort label-5119
SELECT + ( - col0 ) / + col1 + col2 AS col2, col0 FROM tab2
----
23
46
40
64
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT MAX ( - col0 ) FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL MIN( col2 ) / + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 * + col2 - + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL MIN ( col2 ) / + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * + col2 - + + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - col2 AND + - col0 * 18
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - - 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 84 + 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT DISTINCT 1 * 63 AS col2 FROM tab2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT CAST( NULL AS SIGNED ) * COUNT( - - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT CAST ( NULL AS INTEGER ) * COUNT ( - - col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT - - 85 * col2 * + + col1 - CAST( NULL AS SIGNED ) * - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT - - 85 * col2 * + + col1 - CAST ( NULL AS INTEGER ) * - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT DISTINCT + COUNT( * ) * 76 DIV COUNT( * ) col1 FROM tab2 cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT DISTINCT + COUNT ( * ) * 76 / COUNT ( * ) col1 FROM tab2 cor0
----
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + 73 <= + 52 / ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - 12 FROM tab0 AS cor0
----
1188
120
564

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 + + col2 * - col1 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - 62 * + 8 + + col2 FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

query I rowsort
SELECT + 53 * - col1 + - col0 AS col1 FROM tab0 cor0
----
-1200
-150
-4308

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 57 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5136
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) + - col1 + - + 1 )
----

skipif mysql # not compatible
query III rowsort label-5136
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) + - col1 + - + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL + 32 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL + 32 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT DISTINCT 3 * + 70 * + col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT - col0 + + - CAST( NULL AS SIGNED ) * - col0 * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT - col0 + + - CAST ( NULL AS INTEGER ) * - col0 * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT ALL 86 DIV + 5 FROM tab1
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL 86 / + 5 FROM tab1
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT - CAST( NULL AS SIGNED ) * + col2 + - 15 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT - CAST ( NULL AS INTEGER ) * + col2 + - 15 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + ( - col0 ) * col0 AS col0 FROM tab0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL - CAST( - + col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - CAST ( - + col2 AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT + ( + - ( + col1 ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - MIN( DISTINCT + 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5145
SELECT - MIN ( DISTINCT + 66 ) FROM tab2
----
-66

query III rowsort
SELECT * FROM tab2 WHERE 11 + - col1 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT 82 - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - + col2 )
----
85

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT 82 - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - + col2 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 44 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 44 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 74 + - 65 AS col0 FROM tab0 AS cor0
----
9
9
9

query II rowsort
SELECT col1 * + col0 + col1 + - col0, col1 AS col2 FROM tab2
----
2351
51
4941
77
5017
67

query III rowsort
SELECT ALL * FROM tab0 WHERE + 22 IS NULL
----

query I rowsort
SELECT DISTINCT - 88 * + + col1 - + + 85 FROM tab2
----
-4573
-5981
-6861

query I rowsort
SELECT + 93 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL - - 54 + COUNT( * ) FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - - 54 + COUNT ( * ) FROM tab2 cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + 60 col0 FROM tab0 AS cor0
----
-2820
-5940
-600

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 + col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + - col2 FROM tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + - col2
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT ALL + SUM( ALL - 21 ) DIV + 98 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL + SUM ( ALL - 21 ) / + 98 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + ( - 79 ) + - col0 AS col1 FROM tab0 AS cor0
----
-166
-176
-94

query II rowsort
SELECT + + col2, - col2 + + col1 FROM tab2 AS cor0
----
23
28
40
37
58
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + ( + 29 ) * + COUNT( * ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5164
SELECT + ( + 29 ) * + COUNT ( * ) AS col1 FROM tab1
----
87

query I rowsort
SELECT ALL - col2 * 6 AS col1 FROM tab1
----
-354
-408
-576

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

query II rowsort
SELECT ALL col1 * - 71, col0 FROM tab0
----
-1491
87
-5751
15
-71
97

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 * + col0 * + col2 / + + col2 <= NULL
----

query I rowsort
SELECT + + 95 AS col2 FROM tab2 AS cor0
----
95
95
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - 26 * + - COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5173
SELECT - 26 * + - COUNT ( * ) FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT + COUNT( ALL + + 97 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + COUNT ( ALL + + 97 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 57 IS NULL
----

query III rowsort
SELECT DISTINCT + col2 * - col1 + col2, + col1, + 45 AS col0 FROM tab1 cor0
----
9 values hashing to c253edb1b09d4656f93e88842d3703d1

query II rowsort
SELECT ALL + col0 * - + 60 + + 46, col0 FROM tab0 AS cor0
----
-5174
87
-5774
97
-854
15

query II rowsort
SELECT - + col2 AS col2, col1 * + 56 AS col0 FROM tab2 AS cor0
----
-23
2856
-40
4312
-58
3752

query II rowsort
SELECT ALL - - col1 AS col0, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT DISTINCT - COUNT( * ) AS col0, + MAX( col0 ) FROM tab0 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT - COUNT ( * ) AS col0, + MAX ( col0 ) FROM tab0 AS cor0
----
-3
97

query I rowsort
SELECT - 37 AS col0 FROM tab2 cor0 WHERE 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT + ( + - 2 ) + + COUNT( - col0 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + ( + - 2 ) + + COUNT ( - col0 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col0 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT - col2 + col1 DIV 27 FROM tab2
----
-22
-38
-56

skipif mysql # not compatible
query I rowsort label-5184
SELECT - col2 + col1 / 27 FROM tab2
----
-22
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL + 71 * + MAX( 24 ) FROM tab1
----
1704

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + 71 * + MAX ( 24 ) FROM tab1
----
1704

query I rowsort
SELECT + + col1 + + + col1 AS col2 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT ALL - col2 - + - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) + - + 43 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
-43

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) + - + 43 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 35 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5189
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 35 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 + - - 93 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT - 49 + + COUNT( * ) AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - 49 + + COUNT ( * ) AS col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + COUNT( * ) - - + MIN( + - 93 ) * + - 47 col1 FROM tab2 AS cor0
----
4374

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5193
SELECT ALL + COUNT ( * ) - - + MIN ( + - 93 ) * + - 47 col1 FROM tab2 AS cor0
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + ( - COUNT( * ) ) - - 1 - + 55 AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + ( - COUNT ( * ) ) - - 1 - + 55 AS col2 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - + - 71 * col1 FROM tab1 AS cor0
----
1045
3428
440

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2 cor0
----
-18

query II rowsort
SELECT - 5 AS col0, 78 FROM tab0 AS cor0
----
-5
78
-5
78
-5
78

query II rowsort
SELECT ALL col0 AS col2, - col0 * + 29 FROM tab1
----
51
-1479
85
-2465
91
-2639

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5201
SELECT + col0 FROM tab0 WHERE NOT - 17 + - 63 + - CAST( - col2 AS DECIMAL ) + - col1 < ( + 87 ) * - col2
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5201
SELECT + col0 FROM tab0 WHERE NOT - 17 + - 63 + - CAST ( - col2 AS REAL ) + - col1 < ( + 87 ) * - col2
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT - 88 DIV + - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 88 / + - col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + 70 * + - col1 * - col2 AS col0 FROM tab0
----
14700
266490
6930

query I rowsort
SELECT col2 * ( - - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL + CAST( NULL AS SIGNED ) * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT + 54 DIV + ( + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 54 / + ( + col2 ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT ALL + col1 + + + 94 DIV col2 + - col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
10
32
39

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + col1 + + + 94 / col2 + - col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
10
32
39

query I rowsort
SELECT ALL col0 * + 52 FROM tab0
----
4524
5044
780

query I rowsort
SELECT 28 AS col0 FROM tab0 WHERE NOT + - col1 / + col2 >= NULL
----

query II rowsort
SELECT 67, + 51 AS col2 FROM tab2
----
67
51
67
51
67
51

query II rowsort
SELECT DISTINCT col1, + 29 * + col0 AS col0 FROM tab1
----
14
1479
47
2639
5
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT 17 * + - COUNT( + col0 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5213
SELECT 17 * + - COUNT ( + col0 ) FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - - 64 + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col0 IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-5214
SELECT - - 64 + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col0 IS NULL
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5215
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT + col1 - + CAST( NULL AS SIGNED ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5215
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT + col1 - + CAST ( NULL AS INTEGER ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 col2, col0 AS col2 FROM tab0 AS cor0
----
88
15
88
87
88
97

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT ALL 35 + + + CAST( NULL AS SIGNED ) AS col1, + col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL 35 + + + CAST ( NULL AS INTEGER ) AS col1, + col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - SUM( + + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5220
SELECT - SUM ( + + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + SUM( - - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + SUM ( - - col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + - MAX( - + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + - MAX ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 94 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - SUM( ALL + col0 ) + - ( - 96 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5224
SELECT - SUM ( ALL + col0 ) + - ( - 96 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT col0 + + - 85 FROM tab0
----
-70
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL 39 + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL 39 + - COUNT ( * ) FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT COUNT( ALL col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5227
SELECT DISTINCT COUNT ( ALL col2 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 37 + - col2 * + 4 FROM tab2
----
-123
-195
-55

query I rowsort
SELECT - col0 + + ( - col1 ) AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col0 * + 24 + col2 AS col1 FROM tab1
----
1320
2099
2252

query III rowsort
SELECT * FROM tab1 WHERE + ( - col1 ) NOT BETWEEN ( + col0 ) AND ( 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col2, col1 * col2 FROM tab0
----
-1
99
-21
210
-81
3807

query I rowsort
SELECT DISTINCT 26 + + col2 * + col2 FROM tab0
----
126
2235
9827

query I rowsort
SELECT DISTINCT col2 - - col0 - - + 66 FROM tab1 AS cor0
----
210
213
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT - 66 * - CAST( + - col2 AS SIGNED ) - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-3889
-4441
-6322

skipif mysql # not compatible
query I rowsort label-5235
SELECT - 66 * - CAST ( + - col2 AS INTEGER ) - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-3889
-4441
-6322

query I rowsort
SELECT - + 33 - - col1 - - + col2 * + col2 FROM tab0 AS cor0
----
2257
88
9769

query I rowsort
SELECT + 47 - + col0 + - - col1 FROM tab2 AS cor0
----
39
52
60

query IIIIII rowsort
SELECT ALL * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT 36 + - + ( + ( + 5 ) ) FROM tab0
----
31
31
31

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5241
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + ( ( CAST( - col2 AS SIGNED ) ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5241
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + ( ( CAST ( - col2 AS INTEGER ) ) ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 * - 35 AS col1, 47 FROM tab1 AS cor0
----
1645
47
175
47
490
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5243
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + CAST ( NULL AS REAL ) * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col2, ( + col0 ) AS col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT col0 DIV CAST( + 53 AS SIGNED ) col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT DISTINCT col0 / CAST ( + 53 AS INTEGER ) col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT COUNT( * ) * - MAX( col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-5246
SELECT COUNT ( * ) * - MAX ( col1 ) FROM tab1
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT DISTINCT col2 DIV - 62 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT col2 / - 62 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( * ) * + + 81 AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( * ) * + + 81 AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + + MIN( 8 ) col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5249
SELECT + + MIN ( 8 ) col1 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - + COUNT( + - 79 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5250
SELECT - + COUNT ( + - 79 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 + col1 col1 FROM tab0
----
-6
-66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + MAX( DISTINCT + col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT + MAX ( DISTINCT + col0 ) col1 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + SUM( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5254
SELECT + SUM ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 + + col0 + - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5256
SELECT - - 45, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-5256
SELECT - - 45, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5257
SELECT - - col0 AS col1, 67 - - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5257
SELECT - - col0 AS col1, 67 - - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ( - 26 ) FROM tab2 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1, 85 * col0 col0 FROM tab0 AS cor0
----
1
8245
21
7395
81
1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) * + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) * + 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND + 89
----

query I rowsort
SELECT 16 * + 64 * + col0 FROM tab0 AS cor0
----
15360
89088
99328

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - ( COUNT( * ) ) + ( 22 ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - ( COUNT ( * ) ) + ( 22 ) AS col2 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT + col2 + - + 73 AS col2 FROM tab2
----
-15
-33
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT - COUNT( * ) DIV COUNT( * ) + COUNT( ALL + 48 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5265
SELECT - COUNT ( * ) / COUNT ( * ) + COUNT ( ALL + 48 ) FROM tab1
----
2

query I rowsort
SELECT 14 * 35 + 31 FROM tab0
----
521
521
521

query I rowsort
SELECT + col2 * - col1 + - col2 AS col1 FROM tab1
----
-1440
-3264
-354

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 < NULL
----

query I rowsort
SELECT - col1 + + - 35 + - - col2 FROM tab0 AS cor0
----
-46
-69
63

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT col0, 83 FROM tab1
----
51
83
85
83
91
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5272
SELECT CAST( + col1 AS DECIMAL ) + + CAST( - 47 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT - col1 * + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5272
SELECT CAST ( + col1 AS REAL ) + + CAST ( - 47 AS REAL ) FROM tab0 AS cor0 WHERE NOT - col1 * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= + 92 * 54
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= + 92 * 54
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 0 * col0 + - 79 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT ALL 27 * - COUNT( * ), MIN( ( + 22 ) ) * + + MIN( ALL + col0 ) + 51 + + COUNT( col1 ) AS col1 FROM tab0
----
-81
384

skipif mysql # not compatible
query II rowsort label-5275
SELECT ALL 27 * - COUNT ( * ), MIN ( ( + 22 ) ) * + + MIN ( ALL + col0 ) + 51 + + COUNT ( col1 ) AS col1 FROM tab0
----
-81
384

query I rowsort
SELECT + 76 * + col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 - col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT 58 DIV 42 DIV - - col1 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5278
SELECT 58 / 42 / - - col1 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 74 * - col1 * 36 FROM tab1
----
-125208
-13320
-37296

query III rowsort
SELECT * FROM tab2 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + 77 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5283
SELECT DISTINCT 28 * - COUNT( * ) AS col0, CAST( 43 AS SIGNED ) * + ( 30 ) FROM tab1 AS cor0
----
-84
1290

skipif mysql # not compatible
query II rowsort label-5283
SELECT DISTINCT 28 * - COUNT ( * ) AS col0, CAST ( 43 AS INTEGER ) * + ( 30 ) FROM tab1 AS cor0
----
-84
1290

query I rowsort
SELECT ALL + 92 * - col2 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT - CAST( ( + + col0 ) AS SIGNED ) * col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-5285
SELECT - CAST ( ( + + col0 ) AS INTEGER ) * col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col0 + + - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5287
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col0 + - - CAST( NULL AS SIGNED ) + col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5287
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col0 + - - CAST ( NULL AS INTEGER ) + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5288
SELECT - col1 + + ( - CAST( NULL AS DECIMAL ) ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT - col1 + + ( - CAST ( NULL AS REAL ) ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * col2 + col1 * - + col0 FROM tab2 cor0
----
-1139
-1173
-1848

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * col1 * + 88 > + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL + COUNT( * ) * + + 38 col1 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5291
SELECT ALL + COUNT ( * ) * + + 38 col1 FROM tab1 AS cor0
----
114

query I rowsort
SELECT ALL + 38 + - - 54 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - 38 / + ( - col2 ) * col2 FROM tab0 WHERE + 95 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5294
SELECT 83 AS col1, 74 DIV col0 + + 39 - - + col2 AS col2 FROM tab0
----
83
138
83
49
83
90

skipif mysql # not compatible
query II rowsort label-5294
SELECT 83 AS col1, 74 / col0 + + 39 - - + col2 AS col2 FROM tab0
----
83
138
83
49
83
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT - COUNT( col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5295
SELECT - COUNT ( col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT MAX( 50 ) AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5296
SELECT MAX ( 50 ) AS col2 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT COUNT( * ) FROM tab1 WHERE - 66 = - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT COUNT ( * ) FROM tab1 WHERE - 66 = - - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT DISTINCT - col2 - + col0 + + - ( + + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-115
-168
-208

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - col2 - + col0 + + - ( + + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-115
-168
-208

query I rowsort
SELECT ALL col1 - col2 * col0 FROM tab0 AS cor0
----
-624
-849
-9602

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 * - + 25 <= ( + + col2 - + col0 )
----

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND col0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 IN ( + col0, - col0 * + 94, - 53, col2, - col2 * 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + 8 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 * + + 60 col1 FROM tab0 AS cor0
----
-109620
-5820
-72900

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5306
SELECT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - SUM( col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5307
SELECT - SUM ( col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT CAST( - 85 AS SIGNED ) AS col0 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT CAST ( - 85 AS INTEGER ) AS col0 FROM tab2
----
-85

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE NOT - - 63 = - 2
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + COUNT( * ) * 7 AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + COUNT ( * ) * 7 AS col0 FROM tab1
----
21

query II rowsort
SELECT ALL col2 * - ( 3 ) AS col0, - col2 FROM tab2 AS cor0
----
-120
-40
-174
-58
-69
-23

query I rowsort
SELECT ALL col2 + + - 16 AS col1 FROM tab1 AS cor0
----
43
52
80

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-43

query I rowsort
SELECT DISTINCT 27 - - - 50 + - col2 AS col0 FROM tab2 AS cor0
----
-46
-63
-81

query I rowsort
SELECT ALL - 29 * + 96 - - + 79 FROM tab1 AS cor0
----
-2705
-2705
-2705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 52 + + col1 - - col1 * - - 24 / - col0 + + - CAST( NULL AS SIGNED ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 52 + + col1 - - col1 * - - 24 / - col0 + + - CAST ( NULL AS INTEGER ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + COUNT( * ) * - - 15 + 34 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + COUNT ( * ) * - - 15 + 34 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT MIN( DISTINCT + 34 ) * - MIN( ALL + col0 ) FROM tab0 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT MIN ( DISTINCT + 34 ) * - MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT + - 61 - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT + - 61 - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 - 44 + - ( + col1 ) + + 64 AS col2 FROM tab0 AS cor0
----
-142
-22
18

query I rowsort
SELECT col2 + + 73 AS col1 FROM tab2
----
113
131
96

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL + - MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + - MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col1 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 52 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ( - 45 ) * - COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-5327
SELECT ( - 45 ) * - COUNT ( * ) FROM tab2
----
135

query I rowsort
SELECT ALL - 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + COUNT( DISTINCT + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5329
SELECT + COUNT ( DISTINCT + - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT - + col0 AS col0, + 22 AS col1 FROM tab1 AS cor0
----
-51
22
-85
22
-91
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5331
SELECT ALL + - CAST( NULL AS SIGNED ) col0, COUNT( + col2 ) AS col0 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5331
SELECT ALL + - CAST ( NULL AS INTEGER ) col0, COUNT ( + col2 ) AS col0 FROM tab2 cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5333
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) * - col1 + 66, + col0 AS col2 FROM tab0 cor0
----
9 values hashing to fb84ba66f891d4ffd4b0ae0be494ec10

skipif mysql # not compatible
query III rowsort label-5333
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * - col1 + 66, + col0 AS col2 FROM tab0 cor0
----
9 values hashing to fb84ba66f891d4ffd4b0ae0be494ec10

onlyif mysql # DIV for integer division: 
query II rowsort label-5334
SELECT col0, + 18 DIV + col0 col1 FROM tab0 AS cor0
----
15
1
87
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5334
SELECT col0, + 18 / + col0 col1 FROM tab0 AS cor0
----
15
1
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + MIN( + + col0 ) FROM tab0 cor0 WHERE col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + MIN ( + + col0 ) FROM tab0 cor0 WHERE col1 > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT + + 49 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT + col2 * - - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5337
SELECT + col2 * - - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5338
SELECT ALL - CAST( - - 62 AS SIGNED ), + col2 * + col0 FROM tab1 WHERE NOT + - 28 > - - col2 - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5338
SELECT ALL - CAST ( - - 62 AS INTEGER ), + col2 * + col0 FROM tab1 WHERE NOT + - 28 > - - col2 - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT col0 * - 9 * - - col1 AS col2 FROM tab1 AS cor0
----
-3825
-38493
-6426

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 91 AS col2 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT 74 + + + ( + - ( col2 ) ) FROM tab0
----
-25
27
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT + + 40, + COUNT( * ) + + 79 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
40
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5343
SELECT + + 40, + COUNT ( * ) + + 79 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
40
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT + + col1 FROM tab2 WHERE + 81 BETWEEN + CAST( + + 16 AS SIGNED ) + - ( + - col2 ) + 36 AND col1
----

skipif mysql # not compatible
query I rowsort label-5344
SELECT + + col1 FROM tab2 WHERE + 81 BETWEEN + CAST ( + + 16 AS INTEGER ) + - ( + - col2 ) + 36 AND col1
----

query I rowsort
SELECT + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + col2 * + + col0 + + ( + col0 ) FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - 21 + - + COUNT( - ( 51 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-5347
SELECT - 21 + - + COUNT ( - ( 51 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL - MIN( ALL + - 9 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - MIN ( ALL + - 9 ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + + 84 * - 42 * - col0 * col2 AS col0 FROM tab0 cor0
----
2487240
3069360
33879384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT + + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5350
SELECT + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + - ( - + col2 ) * - + 42 AS col2 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL - SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - SUM ( - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT + 98 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5353
SELECT + 98 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
-1

query II rowsort
SELECT ALL - - col2 * - + col0, - col2 AS col1 FROM tab0 AS cor0
----
-705
-47
-870
-10
-9603
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col0 + + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 71 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT + - 73 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT + 80 * - col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

query I rowsort
SELECT ALL + + 20 * 31 * - 95 AS col1 FROM tab2 AS cor0
----
-58900
-58900
-58900

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - col2 + + 99 AS col2 FROM tab1 AS cor0
----
3
31
40

query II rowsort
SELECT + col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT - col1, 98 AS col2 FROM tab0
----
-1
98
-21
98
-81
98

query I rowsort
SELECT ALL col1 * + + 10 + col1 * - 78 * - col0 AS col1 FROM tab2
----
183498
385154
392620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT CAST( - - 28 AS SIGNED ) * col2 FROM tab0
----
1316
2772
280

skipif mysql # not compatible
query I rowsort label-5367
SELECT CAST ( - - 28 AS INTEGER ) * col2 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT COUNT( * ) * + COUNT( * ) * 55 * - - 88 FROM tab2
----
43560

skipif mysql # not compatible
query I rowsort label-5368
SELECT COUNT ( * ) * + COUNT ( * ) * 55 * - - 88 FROM tab2
----
43560

query I rowsort
SELECT DISTINCT - col0 * + 52 FROM tab0
----
-4524
-5044
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 28 col2 FROM tab2 AS cor0
----
-23
-39
-49

query II rowsort
SELECT DISTINCT - - 51 AS col2, 97 AS col0 FROM tab2 AS cor0
----
51
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + - col1 * + col1 + + 12 + col0 col0 FROM tab0 AS cor0
----
-38268
-98388
12

query I rowsort
SELECT + col1 / + + col1 + - 39 FROM tab0 AS cor0 WHERE 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT + 31 + + COUNT( * ) + 99 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
331

skipif mysql # not compatible
query I rowsort label-5374
SELECT + 31 + + COUNT ( * ) + 99 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
331

query I rowsort
SELECT ALL + ( - - ( + col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5376
SELECT * FROM tab0 WHERE 53 * + CAST( + CAST( - ( - - col1 ) AS DECIMAL ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5376
SELECT * FROM tab0 WHERE 53 * + CAST ( + CAST ( - ( - - col1 ) AS REAL ) AS REAL ) IS NULL
----

query I rowsort
SELECT + - col2 - - - 32 * - - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-2773
-3202
-446

query I rowsort
SELECT ALL col0 - + - col0 AS col0 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT + ( - - col1 ) + - 33 + - 7 * - + col1 * 26 * + col2 * 59 AS col1 FROM tab0 WHERE NOT + + 16 + col2 < NULL
----

query I rowsort
SELECT DISTINCT 2 * - - col2 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 7 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( - col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( - col2 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 10 * + col1 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT - MIN( - - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - MIN ( - - col1 ) AS col1 FROM tab2
----
-51

query II rowsort
SELECT + col0 AS col1, + 65 FROM tab0
----
15
65
87
65
97
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5386
SELECT DISTINCT - COUNT( - CAST( 68 AS DECIMAL ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - COUNT ( - CAST ( 68 AS REAL ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - 42 * + col1 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5388
SELECT - col1 * + CAST( NULL AS SIGNED ) + - ( + 77 ) AS col2, 62 + + col2 AS col2, + col2 AS col1 FROM tab0 cor0
----
9 values hashing to ebab27bdb7c78fbe73cb3e580807d05b

skipif mysql # not compatible
query III rowsort label-5388
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - ( + 77 ) AS col2, 62 + + col2 AS col2, + col2 AS col1 FROM tab0 cor0
----
9 values hashing to ebab27bdb7c78fbe73cb3e580807d05b

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 34 + + 0 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT 82 - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
82

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT 82 - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT - col0 + - col1 + - 69 AS col1 FROM tab1 AS cor0
----
-134
-159
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT + - COUNT( * ) * + 60 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + - COUNT ( * ) * + 60 FROM tab0 AS cor0
----
-180

query I rowsort
SELECT ALL - + 49 * + + 62 AS col2 FROM tab0 cor0
----
-3038
-3038
-3038

query I rowsort
SELECT DISTINCT 34 * + + 94 AS col0 FROM tab0 AS cor0
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL COUNT( * ) + - MAX( ALL + - 6 ) * - + COUNT( * ) + + - COUNT( + col0 ) - COUNT( * ) * + 74 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL COUNT ( * ) + - MAX ( ALL + - 6 ) * - + COUNT ( * ) + + - COUNT ( + col0 ) - COUNT ( * ) * + 74 FROM tab2 AS cor0
----
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 * - 98 + + 3 * + col0, - col0 * + col0 * col2 * + col2 col0 FROM tab0
----
-42957
-756900
-642933
-497025
193
-92217609

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT 88 * 97 FROM tab2
----
8536
8536
8536

query I rowsort
SELECT ALL + 76 + + col2 FROM tab2
----
116
134
99

query I rowsort
SELECT ALL - + 44 * + col2 AS col2 FROM tab1 WHERE NOT - - ( + col1 ) + - + col0 IS NULL
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5404
SELECT SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ( - + col0 ) - + col0 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - 27 + + MIN( ALL + col0 ) + COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5408
SELECT - 27 + + MIN ( ALL + col0 ) + COUNT ( * ) FROM tab2
----
22

query III rowsort
SELECT * FROM tab0 WHERE - - 12 * - 31 * - col1 + 54 IS NULL
----

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT + COUNT( * ) - + 34 AS col0 FROM tab0 WHERE + col1 * col2 IS NULL
----
-34

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + COUNT ( * ) - + 34 AS col0 FROM tab0 WHERE + col1 * col2 IS NULL
----
-34

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
95

query I rowsort
SELECT DISTINCT + col1 - + col2 * + col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

query I rowsort
SELECT - col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT - CAST( CAST( - ( + col2 ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - CAST ( CAST ( - ( + col2 ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT ALL - 1 AS col1, COUNT( * ) * + 16 AS col1 FROM tab2 AS cor0
----
-1
48

skipif mysql # not compatible
query II rowsort label-5416
SELECT ALL - 1 AS col1, COUNT ( * ) * + 16 AS col1 FROM tab2 AS cor0
----
-1
48

query I rowsort
SELECT + 35 * - - col0 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT DISTINCT 99 * 1 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - SUM( DISTINCT ( - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - SUM ( DISTINCT ( - col1 ) ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - SUM( DISTINCT - ( col0 ) ) col0 FROM tab1 WHERE NULL IS NULL
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5420
SELECT DISTINCT - SUM ( DISTINCT - ( col0 ) ) col0 FROM tab1 WHERE NULL IS NULL
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 26 * + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 91 + - 9 + + col1 + + col0 * + col1 + col0 + - - col0 * 8 AND - - ( - 78 )
----

query I rowsort
SELECT + - ( - 63 ) * - + 90 * + col0 AS col1 FROM tab1 AS cor0
----
-289170
-481950
-515970

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - + COUNT( ( - 54 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5424
SELECT - + COUNT ( ( - 54 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5425
SELECT - CAST( + col0 AS SIGNED ) AS col0, col2 + + - col2 AS col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-5425
SELECT - CAST ( + col0 AS INTEGER ) AS col0, col2 + + - col2 AS col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT DISTINCT - + 12 DIV - + 77 * - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT - + 12 / - + 77 * - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 AS cor0 WHERE col0 * + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL + + COUNT( * ) * + 97 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + COUNT ( * ) * + 97 FROM tab1 AS cor0
----
291

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + 29 + + + col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 3 AND col1 * - - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT MIN( - 74 ) AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5432
SELECT MIN ( - 74 ) AS col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT ALL + - col1 + - ( - + col1 ) + + - ( + - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE 63 + - col0 - col2 = ( 58 )
----

query I rowsort
SELECT - - col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL 68 * + 20 + + + COUNT( * ) - - 60 - - 58 FROM tab2
----
1481

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL 68 * + 20 + + + COUNT ( * ) - - 60 - - 58 FROM tab2
----
1481

query I rowsort
SELECT + col2 - + + 28 + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT + COUNT( * ) + 30 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT + COUNT ( * ) + 30 FROM tab1
----
33

query I rowsort
SELECT ALL - 16 + + col1 + + - col1 + + col2 + - - col1 FROM tab2
----
101
109
58

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5441
SELECT DISTINCT - col1 * 4 * + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 23 * + + col2 * + col1 + + + col1 - + CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) + + col0 / - - 92 * + 53 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - col1 * 4 * + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 23 * + + col2 * + col1 + + + col1 - + CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) + + col0 / - - 92 * + 53 AND NULL
----

query II rowsort
SELECT - + 65 + 7 AS col0, - 71 * col2 FROM tab1 AS cor0
----
-58
-4189
-58
-4828
-58
-6816

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( + 30 AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( + 30 AS INTEGER ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 + - + col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT 20 * + 27 AS col2 FROM tab0 AS cor0
----
540
540
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT COUNT( - - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5447
SELECT COUNT ( - - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - COUNT( DISTINCT 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT - COUNT ( DISTINCT 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL + MAX( - 1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + MAX ( - 1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT COUNT( * ) * + - 72 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-216

skipif mysql # not compatible
query I rowsort label-5451
SELECT COUNT ( * ) * + - 72 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5452
SELECT MAX( + col2 ) * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT MAX ( + col2 ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 77 ), + col1 col2 FROM tab0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5454
SELECT DISTINCT - col1, col2 DIV - + CAST( + 7 AS SIGNED ) AS col2 FROM tab1
----
-14
-13
-47
-9
-5
-8

skipif mysql # not compatible
query II rowsort label-5454
SELECT DISTINCT - col1, col2 / - + CAST ( + 7 AS INTEGER ) AS col2 FROM tab1
----
-14
-13
-47
-9
-5
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL SUM( ALL - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL SUM ( ALL - col2 ) FROM tab1
----
-223

query II rowsort
SELECT - 16 AS col2, + col2 AS col1 FROM tab0
----
-16
10
-16
47
-16
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27, + col1 col2 FROM tab1
----
27
14
27
47
27
5

query II rowsort
SELECT ALL - 92 AS col2, col0 * + col0 AS col0 FROM tab0
----
-92
225
-92
7569
-92
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab2 AS cor0 WHERE NOT NULL > + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT COUNT( ALL - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5461
SELECT COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT + + col2 AS col2, + col1 * - - col2 + - ( - 54 ) FROM tab2 cor0
----
23
1227
40
3134
58
3940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT DISTINCT ( + 21 ) / - + ( + + 16 ) + - CAST( NULL AS SIGNED ) + + + col2 + col2 + + + col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT ( + 21 ) / - + ( + + 16 ) + - CAST ( NULL AS INTEGER ) + + + col2 + col2 + + + col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + 22 * - 92 AS col2 FROM tab1 AS cor0
----
-2024
-2024
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL + 53 * + col2 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
184493
245072
488448

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + 53 * + col2 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
184493
245072
488448

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 85 BETWEEN + ( + col0 ) AND + - col2 / - col2 - - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 * - col1, + col0 FROM tab0 AS cor0
----
1
97
441
87
6561
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT ALL CAST( + col1 AS SIGNED ) * + - ( - col2 ) + - 45 AS col0 FROM tab2 AS cor0
----
1128
3035
3841

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL CAST ( + col1 AS INTEGER ) * + - ( - col2 ) + - 45 AS col0 FROM tab2 AS cor0
----
1128
3035
3841

query I rowsort
SELECT - col2 * - col1 + + 56 AS col0 FROM tab1 AS cor0
----
1400
3252
351

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT ALL - col1 * + - CAST( + + ( - col1 ) AS SIGNED ) + - ( + 84 ) col1 FROM tab2 AS cor0
----
-2685
-4573
-6013

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5473
SELECT ALL - col1 * + - CAST ( + + ( - col1 ) AS INTEGER ) + - ( + 84 ) col1 FROM tab2 AS cor0
----
-2685
-4573
-6013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT col2 + - - col1 * + - col1 * 24 + CAST( - - 16 AS SIGNED ) FROM tab2 AS cor0
----
-107662
-142240
-62385

skipif mysql # not compatible
query I rowsort label-5474
SELECT col2 + - - col1 * + - col1 * 24 + CAST ( - - 16 AS INTEGER ) FROM tab2 AS cor0
----
-107662
-142240
-62385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5475
SELECT ALL col0, - CAST( NULL AS SIGNED ) + - - 46 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL col0, - CAST ( NULL AS INTEGER ) + - - 46 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT DISTINCT col0 * col0 * col2 + ( + ( - 17 ) ) AS col0 FROM tab2
----
163823
326233
48651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col2 FROM tab1 WHERE NULL IS NULL
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + MAX( ALL 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-5479
SELECT + MAX ( ALL 67 ) FROM tab1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT ALL - col0 DIV + + 67 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - col0 / + + 67 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5481
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----
0

query I rowsort
SELECT + - col0 - - 24 FROM tab2 AS cor0
----
-22
-40
-51

query I rowsort
SELECT + col1 * 61 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT DISTINCT col0 * + col2 - - col2 FROM tab2 WHERE - col1 * ( col2 ) IS NOT NULL
----
1081
2600
4408

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + 18 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 + + 25
----

query I rowsort
SELECT - ( ( + col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + COUNT( - 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + COUNT ( - 5 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT MIN( - 90 ) + COUNT( * ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5489
SELECT MIN ( - 90 ) + COUNT ( * ) FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT COUNT ( + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT + MAX( 2 ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + MAX ( 2 ) AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL ( + MIN( - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL ( + MIN ( - col1 ) ) FROM tab1
----
-47

query I rowsort
SELECT + 53 * col2 + 78 AS col0 FROM tab0
----
2569
5325
608

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT SUM( - col0 ) + COUNT( * ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-5494
SELECT SUM ( - col0 ) + COUNT ( * ) FROM tab1
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 96 ) IN ( 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT + SUM( col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + SUM ( col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT 1 + MIN( DISTINCT ( 59 ) ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT 1 + MIN ( DISTINCT ( 59 ) ) FROM tab0
----
60

query I rowsort
SELECT + col2 * + 80 + + col2 AS col2 FROM tab0
----
3807
8019
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 - - col0 col2 FROM tab1
----
131
137
97

query I rowsort
SELECT ALL col1 + - 34 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-20
-29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT 93 * COUNT( * ) + + 80 col0 FROM tab1
----
359

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5502
SELECT DISTINCT 93 * COUNT ( * ) + + 80 col0 FROM tab1
----
359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT COUNT( * ) DIV 16 + COUNT( * ) * - 13 col0 FROM tab2 AS cor0 WHERE NOT col1 DIV + col0 BETWEEN NULL AND ( - 33 )
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5503
SELECT COUNT ( * ) / 16 + COUNT ( * ) * - 13 col0 FROM tab2 AS cor0 WHERE NOT col1 / + col0 BETWEEN NULL AND ( - 33 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT + 74 DIV - 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 74 / - 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 28 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5507
SELECT DISTINCT MIN( ALL CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5507
SELECT DISTINCT MIN ( ALL CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT DISTINCT - col0 + col2 DIV col2 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - col0 + col2 / col2 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT DISTINCT + 38 + col2 FROM tab2
----
61
78
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + COUNT( * ) + ( 91 + COUNT( col1 + 11 ) ) * + 91 AS col2 FROM tab1
----
8557

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + COUNT ( * ) + ( 91 + COUNT ( col1 + 11 ) ) * + 91 AS col2 FROM tab1
----
8557

query I rowsort
SELECT ALL + ( + col1 ) * col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ( + COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5513
SELECT ( + COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + SUM( - 40 ) col1 FROM tab1 AS cor0 WHERE 28 + - col2 NOT BETWEEN ( - col0 ) AND 40
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5514
SELECT ALL + SUM ( - 40 ) col1 FROM tab1 AS cor0 WHERE 28 + - col2 NOT BETWEEN ( - col0 ) AND 40
----
-40

query I rowsort
SELECT DISTINCT + + col0 + + ( + 0 + col2 ) AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL col1 + - 53 FROM tab0 AS cor0
----
-32
-52
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT - ( + MAX( 69 ) ) col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT DISTINCT - ( + MAX ( 69 ) ) col2 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * 53 AS col1 FROM tab0 cor0 WHERE NOT ( - 11 ) IS NULL
----
4611
5141
795

query I rowsort
SELECT - - col1 * + col2 - + ( col2 ) * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 12 AS col2 FROM tab0 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 21 col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab2 WHERE NOT NULL <> ( 48 )
----

query I rowsort
SELECT + 65 + + col2 AS col2 FROM tab0
----
112
164
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN col0 AND - col0
----

query I rowsort
SELECT + 31 + - col0 + col0 * col2 * + col0 AS col1 FROM tab1
----
249676
426221
563048

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5527
SELECT DISTINCT * FROM tab0 WHERE CAST( 45 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5527
SELECT DISTINCT * FROM tab0 WHERE CAST ( 45 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 87 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE 93 = ( + ( ( + col1 ) ) * + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - COUNT( * ) + + 73 AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( * ) + + 73 AS col1 FROM tab0
----
70

query I rowsort
SELECT ALL 13 + + - 62 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT 42 + 78 + + ( - col1 ) * - 50 AS col1 FROM tab1
----
2470
370
820

query I rowsort
SELECT DISTINCT col0 + + col2 - 81 AS col1 FROM tab1 AS cor0
----
63
66
78

query I rowsort
SELECT - ( 35 ) AS col2 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + col1 * + 59 - + col1 AS col0 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + SUM( DISTINCT - - col1 ) col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT ALL + SUM ( DISTINCT - - col1 ) col0 FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT + 33 * - col1 AS col0 FROM tab1 AS cor0
----
-1551
-165
-462

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 86 IS NULL
----

query I rowsort
SELECT ALL 44 * + 16 FROM tab1
----
704
704
704

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + ( + MAX( ALL + col1 ) ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5541
SELECT + ( + MAX ( ALL + col1 ) ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - COUNT( - col1 ) * COUNT( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5542
SELECT - COUNT ( - col1 ) * COUNT ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + 54 + - + COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-5543
SELECT + 54 + - + COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
54

query I rowsort
SELECT DISTINCT 90 * AVG ( ALL 0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - COUNT( * ) * 0 * + ( - COUNT( * ) ) * 34 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - COUNT ( * ) * 0 * + ( - COUNT ( * ) ) * 34 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5546
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 79 ) BETWEEN CAST( NULL AS SIGNED ) AND ( + col2 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5546
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 79 ) BETWEEN CAST ( NULL AS INTEGER ) AND ( + col2 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col1 ), col0 col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT SUM( - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5548
SELECT SUM ( - - col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT - 2 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5550
SELECT - 2 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 AS col1 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * ( + col1 ) * + + col1 * - col2 + - 89 col0 FROM tab2
----
-10674931
-2452832
-9723649

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col2 - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5555
SELECT ALL - 40 + + ( - col1 ) FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) * - col2 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - 40 + + ( - col1 ) FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) * - col2 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) <= + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT 9 + + col0 DIV - 46 col2 FROM tab2
----
8
8
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5558
SELECT 9 + + col0 / - 46 col2 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL MAX( ALL - - ( 23 ) ) + 82 * - 42 FROM tab2 WHERE NOT - 99 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL MAX ( ALL - - ( 23 ) ) + 82 * - 42 FROM tab2 WHERE NOT - 99 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab0 cor0
----
-42

query I rowsort
SELECT ALL ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT - col1 + + CAST( NULL AS SIGNED ) + - col1 * + ( + col2 ) / - 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT - col1 + + CAST ( NULL AS INTEGER ) + - col1 * + ( + col2 ) / - 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 + + col0 + - CAST( NULL AS SIGNED ) * - 56 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 + + col0 + - CAST ( NULL AS INTEGER ) * - 56 AND NULL
----

query I rowsort
SELECT - col2 * - col2 * + 68 FROM tab2 AS cor0
----
108800
228752
35972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE 97 * col1 BETWEEN - - col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE 97 * col1 BETWEEN - - col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT - col1 DIV + + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5566
SELECT - col1 / + + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5567
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col2, col0, - - CAST( + 74 AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-5567
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col2, col0, - - CAST ( + 74 AS INTEGER ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT - 13 * + ( - COUNT( - 69 ) ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - 13 * + ( - COUNT ( - 69 ) ) AS col1 FROM tab2
----
39

query I rowsort
SELECT ALL col1 - + + 98 FROM tab1
----
-51
-84
-93

query I rowsort
SELECT ALL + ( - col0 ) + - col2 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + ( COUNT( * ) ) FROM tab1 WHERE - - 35 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5571
SELECT + ( COUNT ( * ) ) FROM tab1 WHERE - - 35 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 62 * col0 FROM tab2 AS cor0 WHERE NOT + 32 * - - ( + - 44 ) / - col0 * + - 31 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 36 ) FROM tab1 AS cor0
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5576
SELECT col0 + + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT - 61 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5576
SELECT col0 + + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT - 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 69 FROM tab0 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT + COUNT( * ) * MIN( DISTINCT + 50 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5578
SELECT + COUNT ( * ) * MIN ( DISTINCT + 50 ) FROM tab1 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT ALL 41 * + col0 + 94 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 31 * - col1 - col0 > + col2
----

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL 41 * + col0 + 94 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 31 * - col1 - col0 > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT - - 55 * col1 * - CAST( ( + + 69 ) AS SIGNED ) + - col0 + + - col1 FROM tab0 AS cor0
----
-307491
-3893
-79803

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - - 55 * col1 * - CAST ( ( + + 69 ) AS INTEGER ) + - col0 + + - col1 FROM tab0 AS cor0
----
-307491
-3893
-79803

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT + col2 * col2 * - 83 < + 3 * col2 * + col2 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT + col2 * col2 * - 83 < + 3 * col2 * + col2 + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL COUNT( * ) * + + 42 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL COUNT ( * ) * + + 42 FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT col1 col1 FROM tab2 AS cor0 WHERE NOT + CAST( 24 AS SIGNED ) * col2 * - 31 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5583
SELECT col1 col1 FROM tab2 AS cor0 WHERE NOT + CAST ( 24 AS INTEGER ) * col2 * - 31 <= NULL
----

query I rowsort
SELECT ALL - col2 + ( col1 ) FROM tab2
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5586
SELECT COUNT( * ) AS col1, 93 + MAX( + - ( col1 ) ) AS col1 FROM tab0
----
3
92

skipif mysql # not compatible
query II rowsort label-5586
SELECT COUNT ( * ) AS col1, 93 + MAX ( + - ( col1 ) ) AS col1 FROM tab0
----
3
92

query I rowsort
SELECT DISTINCT 14 * - 7 * 62 FROM tab0
----
-6076

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5588
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) / + COUNT( * ), + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5588
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) / + COUNT ( * ), + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2
----
NULL
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ( COUNT( * ) ) + 7 FROM tab2 WHERE NOT 24 - + 63 + + col2 + col1 / col1 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-5590
SELECT ( COUNT ( * ) ) + 7 FROM tab2 WHERE NOT 24 - + 63 + + col2 + col1 / col1 IS NULL
----
10

query I rowsort
SELECT DISTINCT - 80 + - col2 + - + col2 AS col1 FROM tab1
----
-198
-216
-272

query I rowsort
SELECT ALL - - 97 FROM tab0 WHERE NOT + col0 + - col2 * 2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 col2, col1 + col1 FROM tab2
----
20
102
20
134
20
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 - + col0 + - + 99 + col1 * col2 + + 70 - col0 col0 FROM tab1 AS cor0
----
1258
2962
70

query I rowsort
SELECT DISTINCT + - 93 FROM tab1 AS cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL 0 + + ( 28 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ALL col2 DIV + 76 - - col0 DIV - col2 + + 54 col2 FROM tab0
----
46
54
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5599
SELECT ALL col2 / + 76 - - col0 / - col2 + + 54 col2 FROM tab0
----
46
54
55

query I rowsort
SELECT DISTINCT - - 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query I rowsort
SELECT 1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT col0 / 46 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 70 + + - col2 FROM tab2 AS cor0
----
12
30
47

query II rowsort
SELECT - col0 - + 57 AS col2, + col2 * - - 56 FROM tab0 cor0
----
-144
560
-154
5544
-72
2632

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 * - - col0 * + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT MIN( ALL - col2 ) - + 31 FROM tab0 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-5606
SELECT MIN ( ALL - col2 ) - + 31 FROM tab0 AS cor0
----
-130

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 - + col2 IS NOT NULL
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE - 56 + ( - - col1 ) + + col1 + - + col2 / - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ( + + col2 ) + - - 3 - - + col0 FROM tab0
----
100
199
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - MAX( ALL + 12 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT - MAX ( ALL + 12 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, col0 + + col2 AS col2 FROM tab2
----
46
69
64
104
75
133

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5613
SELECT col1 DIV 75 * col1 AS col0, - 56 + - + col1 col1 FROM tab1
----
0
-103
0
-61
0
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5613
SELECT col1 / 75 * col1 AS col0, - 56 + - + col1 col1 FROM tab1
----
0
-103
0
-61
0
-70

query I rowsort
SELECT ( + 27 ) AS col1 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - SUM( DISTINCT - - col1 ) col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5615
SELECT - SUM ( DISTINCT - - col1 ) col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE + 36 * - col2 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL = 80
----
0

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL = 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 + + col0 * col2 > - 61
----
3

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 + + col0 * col2 > - 61
----
3

query I rowsort
SELECT + 71 * + 97 FROM tab1
----
6887
6887
6887

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT DISTINCT + 42, COUNT( * ) AS col1 FROM tab1 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-5622
SELECT DISTINCT + 42, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
42
3

query I rowsort
SELECT DISTINCT col0 * - 32 AS col0 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT + ( + + 5 ) FROM tab2 AS cor0
----
5
5
5

query II rowsort
SELECT ALL + 77, + 33 AS col0 FROM tab1 AS cor0
----
77
33
77
33
77
33

query I rowsort
SELECT DISTINCT - - 71 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
129717
6887
86265

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL - 14 * + + COUNT( * ) * - 89 FROM tab2 cor0
----
3738

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - 14 * + + COUNT ( * ) * - 89 FROM tab2 cor0
----
3738

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 / + - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * + col2 AS col0 FROM tab0 cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * + col2 AS col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - 27 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - 27 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL - 44 * - col1 AS col0 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * + + CAST( + 56 AS SIGNED ) AND - - ( - 83 )
----

skipif mysql # not compatible
query III rowsort label-5632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * + + CAST ( + 56 AS INTEGER ) AND - - ( - 83 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT - - CAST( NULL AS SIGNED ) * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT - - CAST ( NULL AS INTEGER ) * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5635
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5635
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT ALL 1 DIV + COUNT( * ) + + COUNT( * ) + - 17 AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL 1 / + COUNT ( * ) + + COUNT ( * ) + - 17 AS col2 FROM tab2
----
-14

query III rowsort
SELECT DISTINCT 57 * + + col0, + col1 AS col0, - - 26 * + - col2 AS col1 FROM tab0
----
9 values hashing to 60d4c4f44400e93c19519dc53883a636

query I rowsort
SELECT ALL - + 30 * + col0 * - - col1 FROM tab0 AS cor0
----
-2910
-36450
-54810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL - 26 * + + col1 + + CAST( + col1 AS SIGNED ) + + col2 AS