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 col0 FROM tab2 AS cor0
----
-1252
-1617
-1885

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 26 * + + col1 + + CAST ( + col1 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
-1252
-1617
-1885

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL + 73 DIV - - 76 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + 73 / - - 76 AS col1 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT MAX( - + 76 ) DIV - - COUNT( * ) + + 42 AS col1 FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-5644
SELECT MAX ( - + 76 ) / - - COUNT ( * ) + + 42 AS col1 FROM tab1 cor0
----
17

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

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

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

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

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

query II rowsort
SELECT col0 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5650
SELECT + - col2, col1 DIV - 77 col2 FROM tab0 AS cor0
----
-10
0
-47
-1
-99
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT 44 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT 44 / - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( 11 ) IS NOT NULL
----

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

query I rowsort
SELECT + col2 * - col2 * + + 56 * - 65 FROM tab1
----
12670840
16831360
33546240

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT CAST( NULL AS SIGNED ) + + ( + 73 ) * - + 26 + + - col1 AS col0 FROM tab0 WHERE NOT NULL > - col0
----

skipif mysql # not compatible
query I rowsort label-5660
SELECT CAST ( NULL AS INTEGER ) + + ( + 73 ) * - + 26 + + - col1 AS col0 FROM tab0 WHERE NOT NULL > - col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col2 col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT 7 * + - 16 AS col2 FROM tab2 AS cor0
----
-112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - COUNT( DISTINCT - 64 ) * - - MAX( DISTINCT 26 ) * 76 AS col1 FROM tab1 AS cor0
----
-1976

skipif mysql # not compatible
query I rowsort label-5665
SELECT - COUNT ( DISTINCT - 64 ) * - - MAX ( DISTINCT 26 ) * 76 AS col1 FROM tab1 AS cor0
----
-1976

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

query I rowsort
SELECT - - 66 AS col0 FROM tab1 AS cor0
----
66
66
66

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

query I rowsort
SELECT ALL + col0 * col1 * + - col2 + - 60 AS col0 FROM tab2 AS cor0
----
-197180
-291510
-54018

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL COUNT( * ) * - 12 + - 6 col2 FROM tab1
----
-42

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

query III rowsort
SELECT * FROM tab1 WHERE + + col1 / - 96 IS NULL
----

query I rowsort
SELECT DISTINCT - + AVG ( ALL - col2 ) AS col0 FROM tab1 WHERE - + 46 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 34 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 34 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab0 WHERE + + 9 NOT IN ( 19, col1 + + 85, - 42 * + col1 * - + col1, + + col1 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT SUM( DISTINCT 52 ) + + + 3 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT SUM ( DISTINCT 52 ) + + + 3 FROM tab0
----
55

query I rowsort
SELECT ALL - 35 + - ( + - col2 ) FROM tab0
----
-25
12
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT - COUNT( * ) + 13 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - COUNT ( * ) + 13 FROM tab2
----
10

query I rowsort
SELECT 84 + - + col2 AS col1 FROM tab0 AS cor0
----
-15
37
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - - col2 col0 FROM tab1 AS cor0
----
12
3
40

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( + col2 ) IN ( + ( - 3 ) + 10, - 47 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE ( - col2 / col1 * col1 - + col1 - + + 20 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT - ( 95 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT 37 - - COUNT( * ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-5686
SELECT 37 - - COUNT ( * ) AS col2 FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT 71 - - col0 - + col1 * - CAST( 61 AS SIGNED ) AS col1 FROM tab2
----
3228
4233
4832

skipif mysql # not compatible
query I rowsort label-5687
SELECT 71 - - col0 - + col1 * - CAST ( 61 AS INTEGER ) AS col1 FROM tab2
----
3228
4233
4832

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ( 91 ) - - - COUNT( 84 ) AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5688
SELECT ( 91 ) - - - COUNT ( 84 ) AS col0 FROM tab1
----
88

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 46 / - COUNT ( * ) AS col0 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - col2 col1 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL SUM( DISTINCT 97 ) AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL SUM ( DISTINCT 97 ) AS col2 FROM tab2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT DISTINCT - AVG ( ALL - - 47 ) AS col0 FROM tab2 WHERE - ( - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - AVG ( ALL - - 47 ) AS col0 FROM tab2 WHERE - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) < NULL
----
NULL

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

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

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

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

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

query II rowsort
SELECT col0, - col1 * col2 AS col2 FROM tab0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT + col1 * + - col2 * - 82 AS col2 FROM tab1
----
110208
24190
262072

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

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

query I rowsort
SELECT DISTINCT 59 * - col0 FROM tab0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL SUM( col2 ) DIV MIN( + col0 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL SUM ( col2 ) / MIN ( + col0 ) FROM tab2 AS cor0
----
2

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

query I rowsort
SELECT - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5707
SELECT MIN( - col0 ) AS col2, SUM( DISTINCT - 97 ) FROM tab1
----
-91
-97

skipif mysql # not compatible
query II rowsort label-5707
SELECT MIN ( - col0 ) AS col2, SUM ( DISTINCT - 97 ) FROM tab1
----
-91
-97

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE - col2 * - col0 IS NULL
----

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

query II rowsort
SELECT - 11, - col0 * - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 11 * + - col1 AS col2 FROM tab0 AS cor0 WHERE - 28 IS NOT NULL
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL 93 + + MIN( DISTINCT - - col1 ) * COUNT( * ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL 93 + + MIN ( DISTINCT - - col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
108

query I rowsort
SELECT + 60 + + 33 - + + col1 FROM tab0 AS cor0
----
12
72
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT - 7 DIV col2 * + col1 + + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 7 / col2 * + col1 + + col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - - col1 + - col1 FROM tab0 WHERE + - 55 <= + 15 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT COUNT( + - col1 ) * 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5716
SELECT COUNT ( + - col1 ) * 20 FROM tab2
----
60

query III rowsort
SELECT * FROM tab2 WHERE - 38 <= NULL
----

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

query I rowsort
SELECT ALL ( + col1 ) + + 6 AS col2 FROM tab1
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL + 35 - + SUM( ALL 95 ) AS col2 FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + 35 - + SUM ( ALL 95 ) AS col2 FROM tab0
----
-250

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

query I rowsort
SELECT DISTINCT 18 + col0 FROM tab1
----
103
109
69

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 13 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN ( col0 + - col1 * + col2 - 23 ) AND ( - 35 + - col1 )
----

query I rowsort
SELECT col0 + - col0 * col0 FROM tab1 WHERE NULL IS NULL
----
-2550
-7140
-8190

query II rowsort
SELECT ALL - - col2 - - ( - 71 ) AS col1, 92 FROM tab1 AS cor0
----
-12
92
-3
92
25
92

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

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

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

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

query I rowsort
SELECT col2 + 37 AS col2 FROM tab0
----
136
47
84

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

skipif mysql # not compatible
query I rowsort label-5732
SELECT - COUNT ( * ) FROM tab1, tab1 cor0
----
-9

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

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

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

query II rowsort
SELECT col0 AS col0, col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - 87 AS col1 FROM tab1 AS cor0
----
-14
-87
-47
-87
-5
-87

query I rowsort
SELECT DISTINCT 56 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-102312
-5432
-68040

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5738
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) = - 1 * 57 * + CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5738
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) = - 1 * 57 * + CAST ( col1 AS REAL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + - col2 AS col1, - 89, - - col1 col2 FROM tab0 AS cor0
----
9 values hashing to 9f5bef85f79229e9aad096f9a10c75f3

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

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

query I rowsort
SELECT + col2 * + col0 * col2 AS col1 FROM tab2
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query II rowsort label-5743
SELECT ALL col0 DIV + - col1 AS col2, - 14 AS col2 FROM tab1
----
-1
-14
-17
-14
-3
-14

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL col0 / + - col1 AS col2, - 14 AS col2 FROM tab1
----
-1
-14
-17
-14
-3
-14

query I rowsort
SELECT DISTINCT - 41 * + 5 FROM tab1
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 50 * - col2 IN ( ( + 49 ), + col1, col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5745
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 50 * - col2 IN ( ( + 49 ), + col1, col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL - MIN( ALL col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - MIN ( ALL col0 ) AS col1 FROM tab1
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5748
SELECT ALL COUNT( * ) DIV SUM( - + CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL COUNT ( * ) / SUM ( - + CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT ALL + col0 + + ( + - col1 ) FROM tab2
----
-13
-5
8

query II rowsort
SELECT DISTINCT col1 AS col0, 79 FROM tab1
----
14
79
47
79
5
79

query II rowsort
SELECT ALL + col1, + 93 + + col0 * col0 + - col1 AS col0 FROM tab0
----
1
9501
21
7641
81
237

query I rowsort
SELECT + + 46 * + col0 FROM tab2 AS cor0
----
2116
2944
3450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 74 NOT BETWEEN + 92 * - - col1 AND NULL
----

query II rowsort
SELECT - 82, - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-82
-2116
-82
-4096
-82
-5625

query I rowsort
SELECT + + col0 * - col1 * 99 + - 21 AS col2 FROM tab0 AS cor0
----
-120306
-180894
-9624

query II rowsort
SELECT DISTINCT 97 * + col0 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab2 cor0
----
-40

query I rowsort
SELECT - 31 - - - col1 AS col2 FROM tab2 AS cor0
----
-108
-82
-98

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

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

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

query I rowsort
SELECT + 72 * + col0 + - 35 AS col0 FROM tab0
----
1045
6229
6949

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT - col1 DIV - - col2 + col1 AS col0 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-5766
SELECT - col1 / - - col2 + col1 AS col0 FROM tab2
----
49
66
76

query I rowsort
SELECT ALL + 77 - - col0 AS col2 FROM tab2 AS cor0
----
123
141
152

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

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

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

query I rowsort
SELECT col1 * - 46 FROM tab0
----
-3726
-46
-966

query I rowsort
SELECT ALL col1 * + - 67 * - 96 * + 55 FROM tab0
----
28654560
353760
7428960

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5772
SELECT + - MAX ( DISTINCT - ( + col1 ) ) col0 FROM tab1 AS cor0
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT + + col2 DIV col1 DIV - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
51
83
91

skipif mysql # not compatible
query I rowsort label-5774
SELECT + + col2 / col1 / - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
51
83
91

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + + ( col2 ) * + + 35 FROM tab1 AS cor0
----
-121835
-161840
-322560

query I rowsort
SELECT ALL - 5 * + ( - 88 ) AS col0 FROM tab1 AS cor0
----
440
440
440

query I rowsort
SELECT DISTINCT - col0 * + col1 * col1 AS col0 FROM tab0
----
-38367
-97
-98415

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT COUNT( * ) * + SUM( ALL + 67 ) FROM tab2
----
603

skipif mysql # not compatible
query I rowsort label-5781
SELECT COUNT ( * ) * + SUM ( ALL + 67 ) FROM tab2
----
603

query I rowsort
SELECT col1 * ( + 35 ) FROM tab0
----
2835
35
735

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT COUNT( * ) * 35 AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT COUNT ( * ) * 35 AS col2 FROM tab0
----
105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT 6 * - SUM( DISTINCT + + col0 ) FROM tab1
----
-1362

skipif mysql # not compatible
query I rowsort label-5785
SELECT 6 * - SUM ( DISTINCT + + col0 ) FROM tab1
----
-1362

query I rowsort
SELECT col2 * + - 73 AS col0 FROM tab2
----
-1679
-2920
-4234

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5789
SELECT DISTINCT ( + + col2 ) + + + col1 * - 30 / col1, 34 * + 24 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT ( + + col2 ) + + + col1 * - 30 / col1, 34 * + 24 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL COUNT( * ) * + 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL COUNT ( * ) * + 32 FROM tab0 AS cor0
----
96

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL <> + ( - 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT ALL col0 + - - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL col0 + - - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col2 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT 20 * 80 + + ( SUM( + + col2 ) ) + - + 60 FROM tab0 AS cor0
----
1696

skipif mysql # not compatible
query I rowsort label-5796
SELECT 20 * 80 + + ( SUM ( + + col2 ) ) + - + 60 FROM tab0 AS cor0
----
1696

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5797
SELECT * FROM tab0 cor0 WHERE col0 BETWEEN - - col2 * - - CAST( - + ( - - 9 ) AS SIGNED ) + - col1 AND + col2 * - col2 - 94
----

skipif mysql # not compatible
query III rowsort label-5797
SELECT * FROM tab0 cor0 WHERE col0 BETWEEN - - col2 * - - CAST ( - + ( - - 9 ) AS INTEGER ) + - col1 AND + col2 * - col2 - 94
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - col0 ) + + ( - 6 ) AS col0 FROM tab0
----
-103
-21
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT 11 + - MIN( ALL + 45 ) AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT 11 + - MIN ( ALL + 45 ) AS col0 FROM tab0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT - 62 DIV - col2 - + col2 AS col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 62 / - col2 - + col2 AS col2 FROM tab2
----
-21
-39
-57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - - 19 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-5809
SELECT - - 19 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT ( - 95 ) FROM tab0 AS cor0
----
-95
-95
-95

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

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

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

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - - 96 * - - CAST ( NULL AS INTEGER ) * - - 1 * - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 42 + 43 + + col1 * col2 > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5820
SELECT - - col2 + 44 DIV - col1, col2 AS col2 FROM tab1 cor0
----
51
59
68
68
93
96

skipif mysql # not compatible
query II rowsort label-5820
SELECT - - col2 + 44 / - col1, col2 AS col2 FROM tab1 cor0
----
51
59
68
68
93
96

query I rowsort
SELECT ALL col0 * col0 * - 14 + - col0 FROM tab1
----
-101235
-116025
-36465

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT 13 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT 13 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 + 23, col1 AS col0 FROM tab1 AS cor0
----
108
5
114
47
74
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + MAX( ( - col0 ) ) * - MIN( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-3450

skipif mysql # not compatible
query I rowsort label-5826
SELECT + MAX ( ( - col0 ) ) * - MIN ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-3450

query I rowsort
SELECT - col0 - 48 AS col1 FROM tab0 AS cor0
----
-135
-145
-63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT col1 DIV col0 DIV - - 86 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT col1 / col0 / - - 86 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( - 35 ) - - 27 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + MIN( 80 ) + MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-5832
SELECT + MIN ( 80 ) + MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
127

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

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

query I rowsort
SELECT + col0 * - 15 + + + col2 + - col2 FROM tab2
----
-1125
-690
-960

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL CAST( - 94 AS SIGNED ) AS col1 FROM tab1
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL CAST ( - 94 AS INTEGER ) AS col1 FROM tab1
----
-94
-94
-94

query II rowsort
SELECT - col2, - col2 * + 83 AS col1 FROM tab0
----
-10
-830
-47
-3901
-99
-8217

query I rowsort
SELECT DISTINCT + 10 * + col0 FROM tab2 cor0
----
460
640
750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 * + 38 * + - col0 + + + col2 ) BETWEEN 76 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 * + 38 * + - col0 + + + col2 ) BETWEEN 76 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - MIN( - col0 ) + + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - MIN ( - col0 ) + + COUNT ( * ) FROM tab1
----
94

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

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

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL + 95 * - - 45 + col0 FROM tab0 AS cor0
----
4290
4362
4372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT CAST( - + col0 AS SIGNED ) + col2 + - 72 + + - col2 AS col1 FROM tab2
----
-118
-136
-147

skipif mysql # not compatible
query I rowsort label-5849
SELECT CAST ( - + col0 AS INTEGER ) + col2 + - 72 + + - col2 AS col1 FROM tab2
----
-118
-136
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - ( + - col0 ) AS col0, - col0 + - 81 col0 FROM tab0
----
-225
-96
-7569
-168
-9409
-178

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

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

query I rowsort
SELECT DISTINCT - - col2 - - col2 - col0 AS col0 FROM tab1 cor0
----
141
33
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 col0 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT + col2 * - col2 - 59 + - col1 AS col0 FROM tab2 cor0
----
-1736
-3490
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT - + COUNT( * ) - 47 AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT - + COUNT ( * ) - 47 AS col2 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT - SUM( ALL - + 3 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - SUM ( ALL - + 3 ) AS col0 FROM tab2 AS cor0
----
9

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

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

query I rowsort
SELECT col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5859
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5859
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5860
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + - CAST( NULL AS SIGNED ) + col0 + - 77 * col1 * col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-5860
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + - CAST ( NULL AS INTEGER ) + col0 + - 77 * col1 * col1 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL COUNT ( * ) * + 24 FROM tab0
----
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5863
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - 44 FROM tab2
----
NULL
-44
NULL
-44
NULL
-44

skipif mysql # not compatible
query II rowsort label-5863
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 44 FROM tab2
----
NULL
-44
NULL
-44
NULL
-44

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

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

query II rowsort
SELECT col2, ( - col0 ) + col1 - + 58 * - col0 FROM tab0 AS cor0
----
10
4980
47
936
99
5530

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

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

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

query I rowsort
SELECT - + 30 AS col0 FROM tab1 cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 91 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
15
-1306
87
-1918
97
-188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - SUM( 53 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5872
SELECT - SUM ( 53 ) FROM tab0 AS cor0
----
-159

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 86 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5876
SELECT ALL * FROM tab1 WHERE NULL > + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5876
SELECT ALL * FROM tab1 WHERE NULL > + CAST ( + col2 AS INTEGER )
----

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

query I rowsort
SELECT ALL - col2 + - 69 FROM tab2
----
-109
-127
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT ALL col1 DIV + - col2 + - col1 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL col1 / + - col2 + - col1 FROM tab2
----
-53
-68
-78

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

query I rowsort
SELECT ALL - 1 + 74 + + col0 * - col2 FROM tab1
----
-4823
-4942
-6115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5882
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 21 AS col1 FROM tab0
----
NULL
-21
NULL
-21
NULL
-21

skipif mysql # not compatible
query II rowsort label-5882
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 21 AS col1 FROM tab0
----
NULL
-21
NULL
-21
NULL
-21

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab0 WHERE NOT - - 71 + 46 + + + 33 IS NOT NULL
----

query II rowsort
SELECT + col1 + + - ( - 10 ) AS col2, - col1 FROM tab2
----
61
-51
77
-67
87
-77

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= + col1 + + + col0
----

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

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

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

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

query I rowsort
SELECT DISTINCT 93 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - - SUM( col2 ) - + 46 AS col2 FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - - SUM ( col2 ) - + 46 AS col2 FROM tab0 AS cor0
----
110

query I rowsort
SELECT 58 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - + col0 - + ( + 93 ) FROM tab0 AS cor0
----
-108
-180
-190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT + COUNT( * ) + + + COUNT( ALL col2 ) + COUNT( * ) DIV + + ( ( - 75 ) ) FROM tab2 AS cor0
----
6

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

query I rowsort
SELECT DISTINCT - col1 * - + 78 FROM tab1
----
1092
3666
390

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5897
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5897
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

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

query I rowsort
SELECT col1 * + ( - 5 ) * - 44 * - - 47 AS col0 FROM tab1
----
144760
485980
51700

query I rowsort
SELECT - ( 0 ) AS col0 FROM tab0
----
0
0
0

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 93 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 34 * - 34 AS col2 FROM tab0
----
-1156
-1156
-1156

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT 93, - MIN( + 90 ) col1 FROM tab2
----
93
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5905
SELECT 93, - MIN ( + 90 ) col1 FROM tab2
----
93
-90

query I rowsort
SELECT col0 * + ( + + col1 ) * + col0 AS col2 FROM tab0
----
158949
18225
9409

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

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

query II rowsort
SELECT - col2 AS col0, - 38 FROM tab2
----
-23
-38
-40
-38
-58
-38

query II rowsort
SELECT ALL col2 AS col0, col1 * + col1 AS col0 FROM tab0
----
10
441
47
6561
99
1

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT - - col1 DIV + + col2 + 76 FROM tab2 AS cor0
----
77
77
78

skipif mysql # not compatible
query I rowsort label-5914
SELECT - - col1 / + + col2 + 76 FROM tab2 AS cor0
----
77
77
78

query I rowsort
SELECT + 26 + + col2 FROM tab1 AS cor0
----
122
85
94

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

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

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

query I rowsort
SELECT + + col0 + + - 28 FROM tab2 AS cor0
----
18
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT - COUNT( * ) + + 20 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - COUNT ( * ) + + 20 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - MIN( ALL - col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT - MIN ( ALL - col0 ) col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL - COUNT( * ) + - SUM( 4 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - COUNT ( * ) + - SUM ( 4 ) FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT SUM( - 81 ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT SUM ( - 81 ) AS col1 FROM tab0
----
-243

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

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 27 >= - 43 / - + 69
----
-51
-67
-77

query I rowsort
SELECT col2 + + ( - col0 ) * + col2 AS col1 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT 51 + 27 AS col2 FROM tab2
----
78
78
78

query I rowsort
SELECT 25 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

query I rowsort
SELECT DISTINCT - col1 - + + 81 AS col1 FROM tab1 AS cor0
----
-128
-86
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 87 * ( - - col2 ) * + - col1 / ( + ( - - 18 ) ) IS NULL
----

query II rowsort
SELECT ALL 80 AS col1, col0 + col0 FROM tab0 AS cor0
----
80
174
80
194
80
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT + CAST( + MIN( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + CAST ( + MIN ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT + + COUNT( - col0 ) * ( - 14 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5937
SELECT + + COUNT ( - col0 ) * ( - 14 ) FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - col1 * + ( + 85 ) AS col2 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + 26, + 55, + - col0, - - 96 + - 27, + col2 * 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5940
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND NULL ) OR NOT - col1 / - CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5940
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND NULL ) OR NOT - col1 / - CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 25 * col0 * + col2 AS col0 FROM tab2
----
108750
26450
64000

query II rowsort
SELECT - - 96 + col0 AS col2, - 68 / 37 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - ( - 25 ), - col1 AS col2 FROM tab0 AS cor0
----
-25
-1
-25
-21
-25
-81

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5947
SELECT DISTINCT + 47 AS col2, 51 + - + col2 DIV col2 FROM tab1
----
47
50

skipif mysql # not compatible
query II rowsort label-5947
SELECT DISTINCT + 47 AS col2, 51 + - + col2 / col2 FROM tab1
----
47
50

query I rowsort
SELECT - 28 * - 35 * - 77 AS col0 FROM tab2 AS cor0
----
-75460
-75460
-75460

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

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

query I rowsort
SELECT ALL - 2 * + 54 * 63 FROM tab0 AS cor0
----
-6804
-6804
-6804

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

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

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

query I rowsort
SELECT ALL - col0 * - ( col0 ) FROM tab0 AS cor0
----
225
7569
9409

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

skipif mysql # not compatible
query I rowsort label-5954
SELECT - col2 / 60 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT ( - COUNT( * ) ) * ( 44 ) DIV - 24 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5955
SELECT ( - COUNT ( * ) ) * ( 44 ) / - 24 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL - - MAX( 23 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - - MAX ( 23 ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT - ( col0 ) * + 23 + + ( col1 ) * - 46 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 15 ) + 39 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL 43 + + 56 AS col2 FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT - 83 + + - 96 + ( COUNT( * ) ) + COUNT( ALL col2 ) AS col2, MAX( - + col1 ) * + COUNT( * ) * + - COUNT( * ) FROM tab0
----
-173
9

skipif mysql # not compatible
query II rowsort label-5960
SELECT - 83 + + - 96 + ( COUNT ( * ) ) + COUNT ( ALL col2 ) AS col2, MAX ( - + col1 ) * + COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-173
9

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 19 FROM tab1 AS cor0
----
-19

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5969
SELECT DISTINCT CAST( NULL AS SIGNED ) / 47, - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 47, - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
NULL
-9

query I rowsort
SELECT + 81 * col1 AS col2 FROM tab0
----
1701
6561
81

query I rowsort
SELECT + - 39 FROM tab0 WHERE NOT - - col0 + - - ( + - 27 ) * + col1 = + 75 + + + col0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT - ( + MAX( ALL + - col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - ( + MAX ( ALL + - col1 ) ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + 92 * + col1 AS col2 FROM tab1
----
1288
4324
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11, col0 col2 FROM tab0
----
11
15
11
87
11
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - COUNT( * ) + 22 * MIN( 65 * - col2 ) FROM tab0
----
-141573

skipif mysql # not compatible
query I rowsort label-5977
SELECT - COUNT ( * ) + 22 * MIN ( 65 * - col2 ) FROM tab0
----
-141573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT + 54 + CAST( NULL AS SIGNED ) / - 14 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT + 54 + CAST ( NULL AS INTEGER ) / - 14 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 42 ) col2 FROM tab0
----
42
42
42

query I rowsort
SELECT ALL 15 * + 85 AS col2 FROM tab2
----
1275
1275
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT MAX( - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5981
SELECT MAX ( - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT ALL col1 + + col2 * col0 AS col2 FROM tab1 WHERE - col1 IN ( CAST( - 64 AS SIGNED ) / 86 )
----

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL col1 + + col2 * col0 AS col2 FROM tab1 WHERE - col1 IN ( CAST ( - 64 AS INTEGER ) / 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) * 16 ) + - COUNT( * ) AS col1 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) * 16 ) + - COUNT ( * ) AS col1 FROM tab0
----
-147

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col2 + + 7 FROM tab2
----
1607
3371
536

query I rowsort
SELECT col0 + ( 49 ) AS col0 FROM tab2
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL 29 * + COUNT( ALL - col1 * + col0 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 29 * + COUNT ( ALL - col1 * + col0 ) FROM tab2
----
87

query I rowsort
SELECT + ( 97 ) + col0 * 44 FROM tab0
----
3925
4365
757

query I rowsort
SELECT DISTINCT + col2 - - col1 * 35 AS col0 FROM tab2 WHERE NULL IS NULL
----
1808
2403
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT MIN( + col1 ) * + 90 col1 FROM tab0
----
90

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

query I rowsort
SELECT + 53 * + col2 AS col0 FROM tab2
----
1219
2120
3074

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

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

query I rowsort
SELECT ALL - 72 + + col2 AS col1 FROM tab1
----
-13
-4
24

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT COUNT( * ) * + 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT COUNT ( * ) * + 23 FROM tab0
----
69

query I rowsort
SELECT - ( - col2 ) FROM tab0 WHERE ( NULL ) <= 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - 16 - + COUNT( * ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 16 - + COUNT ( * ) FROM tab1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT - col2 DIV 30 AS col2 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - col2 / 30 AS col2 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT + col0 + 65 FROM tab2
----
111
129
140

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

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

skipif mysql # not compatible
query I rowsort label-6001
SELECT COUNT ( * ) / - 44 AS col0 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL + MIN( ALL - 61 ) - + COUNT( * ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + MIN ( ALL - 61 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT col1 - ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT - 42 DIV - 76 FROM tab1 AS cor0 WHERE + col0 NOT IN ( + ( 48 ) )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT - 42 / - 76 FROM tab1 AS cor0 WHERE + col0 NOT IN ( + ( 48 ) )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT col2 DIV 51 - + col2 FROM tab2 cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT col2 / 51 - + col2 FROM tab2 cor0
----
-23
-40
-57

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( 97 ) ) / 91 NOT BETWEEN NULL AND ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6011
SELECT - CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6011
SELECT - CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif mysql # not compatible
query III rowsort label-6012
SELECT ALL * FROM tab1 WHERE ( NULL ) <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 89 NOT BETWEEN 9 AND ( col2 * - 17 )
----

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

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

query I rowsort
SELECT DISTINCT 85 FROM tab0 AS cor0 WHERE col0 <> ( NULL )
----

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

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

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

query I rowsort
SELECT 78 * + ( col0 * + 36 ) FROM tab0 AS cor0
----
244296
272376
42120

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6021
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) * - 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) * - 30 FROM tab1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT + COUNT( col0 ) + ( 88 ) * - 38 AS col1 FROM tab2 WHERE NOT + CAST( col2 AS SIGNED ) + 86 / + col0 BETWEEN col0 AND 49 * ( + 69 )
----
-3341

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + COUNT ( col0 ) + ( 88 ) * - 38 AS col1 FROM tab2 WHERE NOT + CAST ( col2 AS INTEGER ) + 86 / + col0 BETWEEN col0 AND 49 * ( + 69 )
----
-3341

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

query I rowsort
SELECT + 42 FROM tab0 WHERE NOT ( 51 ) BETWEEN NULL AND 20
----
42
42
42

query I rowsort
SELECT DISTINCT - 10 * 2 FROM tab0 WHERE NOT - col1 IS NULL
----
-20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT - col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + ( CAST( NULL AS SIGNED ) ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6029
SELECT - col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + ( CAST ( NULL AS INTEGER ) ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - 54 + + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col2 + col0 NOT IN ( - 17 * - col1 )
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6030
SELECT ALL - 54 + + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col2 + col0 NOT IN ( - 17 * - col1 )
----
-54

query I rowsort
SELECT col2 * - col2 + 45 AS col1 FROM tab0 AS cor0
----
-2164
-55
-9756

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

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

query I rowsort
SELECT DISTINCT + col0 * 21 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1071
1785
1911

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT - col1 DIV - 31 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6037
SELECT - col1 / - 31 FROM tab2 AS cor0
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + 7 / - - col2 + - col1 )
----

query I rowsort
SELECT + ( col1 ) * - col0 - + col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT 18 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( ( + CAST( + 24 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6040
SELECT 18 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( ( + CAST ( + 24 AS INTEGER ) ) )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6042
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 47 * col1 ) IS NOT NULL OR NOT + CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6042
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 47 * col1 ) IS NOT NULL OR NOT + CAST ( NULL AS REAL ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 91 * col1 + + 59 FROM tab2 AS cor0
----
-4582
-6038
-6948

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

query I rowsort
SELECT DISTINCT + 98 + - + col0 FROM tab0
----
1
11
83

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 AS col1 FROM tab0
----
-1134
-1806
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - SUM( ALL - col2 ) * + COUNT( * ) + + 95 FROM tab2
----
458

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - SUM ( ALL - col2 ) * + COUNT ( * ) + + 95 FROM tab2
----
458

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT + 84 - + COUNT( * ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + 84 - + COUNT ( * ) FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 94 - + + col2 col0, ( 42 ) FROM tab0 AS cor0
----
-5
42
47
42
84
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( 26 * col2 + 46 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT + 41 DIV - col2 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 41 / - col2 AS col2 FROM tab2
----
-1
-1
0

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

query II rowsort
SELECT col2, + col2 * - col0 AS col0 FROM tab0
----
10
-870
47
-705
99
-9603

query I rowsort
SELECT 47 * - col0 - - - 85 FROM tab0 AS cor0
----
-4174
-4644
-790

query I rowsort
SELECT ALL + + col2 * + - 26 FROM tab2 cor0
----
-1040
-1508
-598

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) <= + 87 + - ( + col2 ) * - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) <= + 87 + - ( + col2 ) * - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6060
SELECT DISTINCT COUNT( * ) AS col0, SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
3
103

skipif mysql # not compatible
query II rowsort label-6060
SELECT DISTINCT COUNT ( * ) AS col0, SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
3
103

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6062
SELECT DISTINCT * FROM tab1 WHERE - 5 >= CAST( NULL AS DECIMAL ) * - + col2
----

skipif mysql # not compatible
query III rowsort label-6062
SELECT DISTINCT * FROM tab1 WHERE - 5 >= CAST ( NULL AS REAL ) * - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT ALL 64 col2, COUNT( * ) col1 FROM tab1
----
64
3

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

query I rowsort
SELECT 91 * + 50 * col1 FROM tab2
----
232050
304850
350350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT COUNT( * ) * + MAX( DISTINCT - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) * + MAX ( DISTINCT - col2 ) FROM tab0
----
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + + col1 AS col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + + col1 AS col1 FROM tab0
----
162
2
42

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

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL col0 / - + 59 FROM tab2
----
-1
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT DISTINCT 27 DIV + col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT 27 / + col1 FROM tab1
----
0
1
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6073
SELECT DISTINCT col2, col1 + - + col2 / + CAST( NULL AS SIGNED ) + col2 + - 12 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6073
SELECT DISTINCT col2, col1 + - + col2 / + CAST ( NULL AS INTEGER ) + col2 + - 12 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT - - col0 + 22 FROM tab0 AS cor0
----
109
119
37

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT CAST( - - 44 AS SIGNED ) + col1 AS col1 FROM tab1
----
49
58
91

skipif mysql # not compatible
query I rowsort label-6076
SELECT CAST ( - - 44 AS INTEGER ) + col1 AS col1 FROM tab1
----
49
58
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT col0 DIV + col0 + 19 FROM tab1 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-6078
SELECT col0 / + col0 + 19 FROM tab1 AS cor0
----
20
20
20

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

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

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

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

query II rowsort
SELECT col1, ( - col1 ) FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT ALL - 74 DIV 64 + ( - + col1 ) AS col2 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - 74 / 64 + ( - + col1 ) AS col2 FROM tab2
----
-52
-68
-78

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

query I rowsort
SELECT ALL + 71 * - 81 FROM tab0
----
-5751
-5751
-5751

query I rowsort
SELECT - col2 * - col1 - + col2 FROM tab2
----
1150
3040
3828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT - 64 - + SUM( ALL - 17 ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - 64 - + SUM ( ALL - 17 ) AS col2 FROM tab2
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col1 FROM tab2 WHERE NOT + ( + col1 ) IS NULL OR NOT - - 70 > NULL
----
84
84
84

query I rowsort
SELECT DISTINCT 45 - + col0 AS col1 FROM tab2
----
-1
-19
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6092
SELECT ALL + + col2, - 27 + col1 + + CAST( + col2 AS SIGNED ) * + ( + 13 ) FROM tab1 AS cor0
----
59
745
68
904
96
1235

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL + + col2, - 27 + col1 + + CAST ( + col2 AS INTEGER ) * + ( + 13 ) FROM tab1 AS cor0
----
59
745
68
904
96
1235

query I rowsort
SELECT + + col2 * - - 20 * + - ( + + col2 ) FROM tab0 AS cor0
----
-196020
-2000
-44180

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

skipif mysql # not compatible
query I rowsort label-6097
SELECT + COUNT ( * ) / 80 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6098
SELECT ALL - - 15 * - 24 - - - CAST( NULL AS SIGNED ) + + SUM( ALL + 5 ) col2, COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6098
SELECT ALL - - 15 * - 24 - - - CAST ( NULL AS INTEGER ) + + SUM ( ALL + 5 ) col2, COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
NULL
3

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

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

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

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

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

query I rowsort
SELECT ALL + 24 * col1 AS col1 FROM tab1 AS cor0
----
1128
120
336

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 < + 80
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6104
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - 85 <= + col0
----

skipif mysql # not compatible
query III rowsort label-6104
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - 85 <= + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT + 46 BETWEEN + col1 AND + 66 * + 35 * - - ( - col2 ) + + col2 * + col2 / col1
----
51
67
77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6108
SELECT DISTINCT 42 DIV + 80 + + COUNT( * ), - COUNT( - col1 ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT 42 / + 80 + + COUNT ( * ), - COUNT ( - col1 ) AS col1 FROM tab0
----
3
-3

query I rowsort
SELECT col0 + col0 + + col1 * - 27 AS col0 FROM tab0
----
-2157
-393
167

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 = ( 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT col1 + 19 * + col1 * + col1 * - - CAST( + ( + 17 ) AS SIGNED ) FROM tab0 AS cor0
----
142464
2119284
324

skipif mysql # not compatible
query I rowsort label-6112
SELECT col1 + 19 * + col1 * + col1 * - - CAST ( + ( + 17 ) AS INTEGER ) FROM tab0 AS cor0
----
142464
2119284
324

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

query II rowsort
SELECT ALL col1 AS col2, + 62 AS col2 FROM tab0 AS cor0
----
1
62
21
62
81
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT - MAX( + 30 ) col2 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6117
SELECT - MAX ( + 30 ) col2 FROM tab1
----
-30

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

query I rowsort
SELECT DISTINCT - - col2 - - - 76 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + + SUM( + + 45 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6120
SELECT + + SUM ( + + 45 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6121
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST( NULL AS DECIMAL ) + - col1
----

skipif mysql # not compatible
query III rowsort label-6121
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( NULL AS REAL ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 - 12 + - col1 col0 FROM tab2 AS cor0
----
-1236
-3169
-3965

query I rowsort
SELECT - col2 - col0 + + + 88 FROM tab0 cor0
----
-108
-9
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6124
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT + col2 - - + col0, - 71 AS col2 FROM tab0 AS cor0
----
196
-71
62
-71
97
-71

query I rowsort
SELECT DISTINCT - + col2 - + - 59 FROM tab1 AS cor0
----
-37
-9
0

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

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

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

query I rowsort
SELECT - 27 + 4 FROM tab2 AS cor0
----
-23
-23
-23

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

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

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

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

query I rowsort
SELECT - 99 AS col2 FROM tab0 WHERE + 55 IS NOT NULL
----
-99
-99
-99

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6137
SELECT + col2 AS col1, 48 DIV col2 * - 27 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
-54
40
-27
58
0

skipif mysql # not compatible
query II rowsort label-6137
SELECT + col2 AS col1, 48 / col2 * - 27 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
-54
40
-27
58
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 79 + 30 + + col2 / col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 + + col2 >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT - MAX( - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT - MAX ( - - col0 ) FROM tab0
----
-97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6143
SELECT ALL col0 * + col0 * + + CAST( NULL AS SIGNED ) col2, + 10 * - 1 * + + 72 FROM tab0 AS cor0
----
NULL
-720
NULL
-720
NULL
-720

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6143
SELECT ALL col0 * + col0 * + + CAST ( NULL AS INTEGER ) col2, + 10 * - 1 * + + 72 FROM tab0 AS cor0
----
NULL
-720
NULL
-720
NULL
-720

query I rowsort
SELECT ALL + col1 * - + col2 * + - 56 + - 59 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
172421
217557
65629

query I rowsort
SELECT ALL - + 43 * + col1 AS col0 FROM tab0 cor0
----
-3483
-43
-903

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6146
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6146
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab0 WHERE + + 39 / ( - col2 ) IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6150
SELECT + MIN ( - 26 ) AS col2 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + 20 * + COUNT( * ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + 20 * + COUNT ( * ) AS col1 FROM tab0
----
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * 34 < ( - - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT ( NOT ( NOT + 7 <= ( NULL ) ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 IN ( + col0, + col0, - col1 )
----

query I rowsort
SELECT ALL - 44 * - - col1 - 5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2249
-2953
-3393

query I rowsort
SELECT DISTINCT - col1 * + 84 - - 58 FROM tab2 AS cor0
----
-4226
-5570
-6410

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

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

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

query I rowsort
SELECT col2 * + col2 + + 0 * - + 74 + - + col2 * - 8 * - 97 FROM tab1 AS cor0
----
-42303
-48144
-65280

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col1, - col2 * + - col2 FROM tab2
----
-46
529
-64
1600
-75
3364

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

query I rowsort
SELECT ( + col0 ) * + + 48 FROM tab2
----
2208
3072
3600

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

query I rowsort
SELECT 54 * - 77 * + col2 AS col1 FROM tab1
----
-245322
-282744
-399168

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT - + ( MIN( 11 ) ) col2 FROM tab2 WHERE + col2 <= col0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6173
SELECT DISTINCT - + ( MIN ( 11 ) ) col2 FROM tab2 WHERE + col2 <= col0
----
-11

query I rowsort
SELECT col1 * - col2 * 63 * ( ( - - col2 ) ) FROM tab2
----
-14199444
-1699677
-7761600

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

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL = NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6179
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6179
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= NULL
----
NULL
0

query I rowsort
SELECT - - 89 AS col2 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT - 20 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - + 9 AND 81
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6183
SELECT - COUNT( ALL - col2 ) AS col0, CAST( NULL AS SIGNED ) + - 73 AS col0 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6183
SELECT - COUNT ( ALL - col2 ) AS col0, CAST ( NULL AS INTEGER ) + - 73 AS col0 FROM tab0
----
-3
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL + SUM( + - col2 ) * + ( + 27 ) FROM tab1 AS cor0
----
-6021

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + SUM ( + - col2 ) * + ( + 27 ) FROM tab1 AS cor0
----
-6021

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 + - col0 + - + col2 col1 FROM tab2 AS cor0
----
-112
-48
-83

query II rowsort
SELECT DISTINCT col1 + - col0 AS col2, col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query I rowsort
SELECT DISTINCT 97 + + col2 + 67 AS col1 FROM tab2
----
187
204
222

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT 32 + + MIN( - - col0 ) - ( - 85 ) FROM tab2
----
163

skipif mysql # not compatible
query I rowsort label-6195
SELECT 32 + + MIN ( - - col0 ) - ( - 85 ) FROM tab2
----
163

query I rowsort
SELECT 32 + + - col2 AS col1 FROM tab0 AS cor0
----
-15
-67
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT ALL col0 DIV - - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL col0 / - - col1 FROM tab2 AS cor0
----
0
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + 64 + 88 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT + MAX( + + 93 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT + MAX ( + + 93 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + col0 - + col1 col0 FROM tab0
----
39
675
775

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( col0 > + 65 * - + 44 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 92 BETWEEN - + ( - ( 49 ) ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - + 90 / - - col1 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT 82 * - + col1 AS col2 FROM tab2
----
-4182
-5494
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL - CAST( + + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - CAST ( + + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL col0 AS col2, 56 * - 77 FROM tab2
----
46
-4312
64
-4312
75
-4312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 3 ) * + 33 col0 FROM tab1
----
-99
-99
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6211
SELECT ALL COUNT( * ) DIV COUNT( * ) * - + 6 FROM tab0
----
-6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT + col1 * col0 / - 28 * col2 / - 78 AS col0 FROM tab0 WHERE NOT NULL < + - CAST( NULL AS SIGNED ) - - col2
----

skipif mysql # not compatible
query I rowsort label-6212
SELECT + col1 * col0 / - 28 * col2 / - 78 AS col0 FROM tab0 WHERE NOT NULL < + - CAST ( NULL AS INTEGER ) - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
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-6213
SELECT ALL - ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 15 * - col0 - 34 IS NULL
----

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

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

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

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

query I rowsort
SELECT 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + + 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + - + col2 + - col2 * + ( - col2 ) col1 FROM tab0
----
121
2290
9802

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col2, 21, - 16 * - - col0 + 18 + + col2 - + + col2 * + col2 )
----

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

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

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

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

query II rowsort
SELECT - ( 40 ) AS col1, col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL - COUNT( * ) + 27 AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - COUNT ( * ) + 27 AS col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT - + 78 + - col0 * - 69 * col0 FROM tab0 cor0
----
15447
522183
649143

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6227
SELECT - MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - - 9 * + col0 + + 32 FROM tab0 AS cor0
----
167
815
905

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL - 13 * + MAX( - 35 ) + + COUNT( * ) FROM tab1
----
458

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - 13 * + MAX ( - 35 ) + + COUNT ( * ) FROM tab1
----
458

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

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

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

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

query I rowsort
SELECT DISTINCT 41 + 11 FROM tab0
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT 8 + - COUNT( * ) * + 11 col1 FROM tab0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT DISTINCT 8 + - COUNT ( * ) * + 11 col1 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6236
SELECT DISTINCT COUNT( DISTINCT col2 ), + 58 col1 FROM tab1
----
3
58

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

query I rowsort
SELECT - col0 + + - col1 * + + 52 FROM tab2 AS cor0
----
-2698
-3559
-4068

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 28 <= - col0 - - + 9 + col2 ) OR NOT + 37 + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT ALL + - col1 AS col0 FROM tab0 WHERE NOT col1 <> + - CAST( + 80 AS SIGNED ) * - col0 - + 99
----

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + - col1 AS col0 FROM tab0 WHERE NOT col1 <> + - CAST ( + 80 AS INTEGER ) * - col0 - + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT 90 + + COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6240
SELECT 90 + + COUNT ( * ) AS col2 FROM tab2
----
93

query I rowsort
SELECT ALL - col0 + 52 FROM tab2
----
-12
-23
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 7 + + - col0 col2 FROM tab0
----
10
-80
47
-8
99
-90

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

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

query II rowsort
SELECT col0 AS col2, col2 * col1 * + 44 FROM tab1
----
51
59136
85
12980
91
140624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT - COUNT( * ) * 48 + 34 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - COUNT ( * ) * 48 + 34 FROM tab2 AS cor0
----
-110

query I rowsort
SELECT DISTINCT - - 51 AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + - 92 FROM tab0 AS cor0 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT 26 / - 90 + 64 - + - 10 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT ALL - CAST( 43 AS SIGNED ) FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL - CAST ( 43 AS INTEGER ) FROM tab0 AS cor0
----
-43
-43
-43

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

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

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

query I rowsort
SELECT ALL + 18 AS col1 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6255
SELECT col2 * + CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6255
SELECT col2 * + CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - 30 * 32 * + col0 col0 FROM tab0
----
2505600
2793600
432000

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT ALL 32 DIV + 55 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 32 / + 55 AS col0 FROM tab2
----
0
0
0

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + 93 - - + col0 * - 41 > NULL
----

query I rowsort
SELECT - col0 + + col0 * + 82 FROM tab2 AS cor0
----
3726
5184
6075

query I rowsort
SELECT DISTINCT + - col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + ( - 8 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT + + col0 DIV - col2 - + - 26 FROM tab1 AS cor0
----
25
25
26

skipif mysql # not compatible
query I rowsort label-6265
SELECT + + col0 / - col2 - + - 26 FROM tab1 AS cor0
----
25
25
26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6267
SELECT CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT 40 / - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT 40 / - col0 >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 + + col2 col2 FROM tab0 AS cor0
----
-31
-68
21

query II rowsort
SELECT ALL - + 16, col1 AS col2 FROM tab1 WHERE NULL = col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL + SUM( + ( + + col2 ) ) + + ( + - 44 ) AS col1 FROM tab1
----
179

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + SUM ( + ( + + col2 ) ) + + ( + - 44 ) AS col1 FROM tab1
----
179

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT col2 DIV - - col1 * + 39 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6276
SELECT col2 / - - col1 * + 39 AS col2 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT ALL + CAST( col1 AS SIGNED ) * + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + CAST ( col1 AS INTEGER ) * + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT DISTINCT - 57 * + 78 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
13338

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT - 57 * + 78 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13338

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 74 ) <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT ALL ( col2 ) * - col1 * - CAST( + 5 AS SIGNED ) AS col1 FROM tab1
----
1475
15980
6720

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL ( col2 ) * - col1 * - CAST ( + 5 AS INTEGER ) AS col1 FROM tab1
----
1475
15980
6720

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 12 >= - - 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT 30 DIV - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT 30 / - col2 FROM tab2
----
-1
0
0

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

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

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

query I rowsort
SELECT DISTINCT + 62 * + - 35 AS col1 FROM tab2 AS cor0
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - 81 * + + COUNT( * ) + MIN( ALL + 13 ) AS col1 FROM tab2
----
-230

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 81 * + + COUNT ( * ) + MIN ( ALL + 13 ) AS col1 FROM tab2
----
-230

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

skipif mysql # not compatible
query III rowsort label-6288
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) <> col1
----

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

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

query I rowsort
SELECT ( - + col2 ) * - 60 FROM tab0 AS cor0
----
2820
5940
600

query I rowsort
SELECT DISTINCT - 9 * + col0 AS col1 FROM tab0 AS cor0
----
-135
-783
-873

query I rowsort
SELECT ALL - col0 + - + col2 * - 79 * - + col1 + col1 FROM tab1 AS cor0
----
-106213
-23385
-252528

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6293
SELECT * FROM tab2 WHERE - col0 + + 28 * ( 92 ) + + CAST( NULL AS SIGNED ) + col1 = + 97
----

skipif mysql # not compatible
query III rowsort label-6293
SELECT * FROM tab2 WHERE - col0 + + 28 * ( 92 ) + + CAST ( NULL AS INTEGER ) + col1 = + 97
----

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

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

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

query I rowsort
SELECT - col0 - ( col0 ) AS col2 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + COUNT( * ) - SUM( + - 94 ) + + 68 FROM tab1
----
353

skipif mysql # not compatible
query I rowsort label-6297
SELECT + COUNT ( * ) - SUM ( + - 94 ) + + 68 FROM tab1
----
353

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, col0 * + + ( - 44 ) FROM tab2 AS cor0
----
-46
-2024
-64
-2816
-75
-3300

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

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

query II rowsort
SELECT 95 AS col2, - 55 FROM tab1 AS cor0
----
95
-55
95
-55
95
-55

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 44 )
----

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

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

query I rowsort
SELECT DISTINCT + col2 * - col2 + + + col2 FROM tab1
----
-3422
-4556
-9120

query I rowsort
SELECT + ( - col0 ) + 80 FROM tab0 AS cor0
----
-17
-7
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 47 BETWEEN NULL AND - 52 * + - 9
----

query I rowsort
SELECT DISTINCT + ( + 81 ) * + col1 FROM tab1 AS cor0
----
1134
3807
405

query I rowsort
SELECT ALL - 98 + + col1 FROM tab2
----
-21
-31
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT 97 - - MAX( ALL + - col1 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT 97 - - MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
92

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + - col1 / + 70 AND - col0
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE + ( 66 ) IS NULL
----

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

query I rowsort
SELECT ALL col1 - + col2 + - col0 FROM tab1 WHERE NOT col2 IS NULL
----
-112
-133
-139

query I rowsort
SELECT ALL - 88 + + + 10 * - + col2 * + col2 * + + 11 + - col2 + + ( - ( - 25 ) ) AS col0 FROM tab1
----
-1013919
-383032
-508771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT 18 * - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-6324
SELECT 18 * - COUNT ( * ) FROM tab2
----
-54

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + + + 95 FROM tab2 AS cor0
----
18
28
44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT + - COUNT( * ) * 71 AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + - COUNT ( * ) * 71 AS col2 FROM tab0 AS cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 59 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ALL + col2 DIV 24 + + 60 + + 82 FROM tab2 AS cor0
----
142
143
144

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + col2 / 24 + + 60 + + 82 FROM tab2 AS cor0
----
142
143
144

query I rowsort
SELECT 58 + - col1 * + + 0 * - 89 FROM tab0
----
58
58
58

query I rowsort
SELECT 88 + 1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT DISTINCT 21 DIV 68 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT 21 / 68 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 - + 81 + + 67 * 89 FROM tab1 AS cor0
----
5933
5967
5973

query I rowsort
SELECT + - 0 * - - col1 + - col1 AS col2 FROM tab0 cor0
----
-1
-21
-81

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

query I rowsort
SELECT 4 - + 57 FROM tab0
----
-53
-53
-53

query II rowsort
SELECT ALL col1, col0 * - - col2 + - 28 * - 20 FROM tab1
----
14
5456
47
6748
5
5575

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

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

query II rowsort
SELECT 73, 71 AS col1 FROM tab1
----
73
71
73
71
73
71

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

query I rowsort
SELECT DISTINCT 22 * 41 AS col0 FROM tab1
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL 40 * + + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
2360
2720
3840

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL 40 * + + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
2360
2720
3840

onlyif mysql # DIV for integer division: 
query II rowsort label-6351
SELECT - 62 col1, 33 DIV - + col1 + - + col1 FROM tab1 AS cor0
----
-62
-11
-62
-16
-62
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6351
SELECT - 62 col1, 33 / - + col1 + - + col1 FROM tab1 AS cor0
----
-62
-11
-62
-16
-62
-47

query II rowsort
SELECT - + col0 AS col0, ( - col2 ) * - col0 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= - 77 * + - 36 - + col1 * - - col1 / col1 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 20 * - 11 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 84 + - col2 col0 FROM tab1 cor0 WHERE - 33 >= - ( + col2 ) + + + 59
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6358
SELECT + 57 DIV - COUNT( ALL col2 ) col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6358
SELECT + 57 / - COUNT ( ALL col2 ) col0 FROM tab1 AS cor0
----
-19

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6362
SELECT 15 + + + col0 DIV col2 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
117
82
92

skipif mysql # not compatible
query I rowsort label-6362
SELECT 15 + + + col0 / col2 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
117
82
92

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

query II rowsort
SELECT + 80 + + ( col0 ), + col0 + col0 AS col1 FROM tab1
----
131
102
165
170
171
182

query I rowsort
SELECT - col0 + + 18 AS col1 FROM tab2
----
-28
-46
-57

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

query I rowsort
SELECT - - col1 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
124
162
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT - MIN( ALL - 99 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT - MIN ( ALL - 99 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - - COUNT ( - 86 ) FROM tab2 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND col1 - col0
----
3

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND col1 - col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, 20 col2 FROM tab1
----
51
20
85
20
91
20

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

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

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

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

query I rowsort
SELECT col1 + + - col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * - + col2 - + col2 + col0 col1 FROM tab0 AS cor0
----
-101
-133
-3839

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

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

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

query I rowsort
SELECT - col0 + - + 78 FROM tab2 cor0
----
-124
-142
-153

query II rowsort
SELECT ALL col2 * - col2 AS col2, 28 AS col0 FROM tab2
----
-1600
28
-3364
28
-529
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL + COUNT( * ) * COUNT( * ) * 27 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL + COUNT ( * ) * COUNT ( * ) * 27 FROM tab1
----
243

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

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

query I rowsort
SELECT ALL 4 * - + 9 AS col1 FROM tab0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6386
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( CAST( NULL AS SIGNED ) ) BETWEEN col1 * - 4 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6386
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN col1 * - 4 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6387
SELECT + MAX( col1 ) * + COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) AS col1, + COUNT( * ) AS col0 FROM tab2
----
231
3

skipif mysql # not compatible
query II rowsort label-6387
SELECT + MAX ( col1 ) * + COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col1, + COUNT ( * ) AS col0 FROM tab2
----
231
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT col2 DIV + 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT col2 / + 83 FROM tab2
----
0

query I rowsort
SELECT + 96 AS col0 FROM tab1 cor0
----
96
96
96

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

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 - - col0 AS col1 FROM tab2
----
46
92
64
128
75
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * + col0 AND + + 91
----
0

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * + col0 AND + + 91
----
0

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
10

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

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

query II rowsort
SELECT ALL 62, + 33 AS col1 FROM tab0 AS cor0
----
62
33
62
33
62
33

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

query II rowsort
SELECT ALL 19, col2 FROM tab0 cor0
----
19
10
19
47
19
99

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

query I rowsort
SELECT + 97 + + 53 AS col0 FROM tab0 AS cor0
----
150
150
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + 1 + + col2 + + col0 + 23 + - col2 col2, 49 * + col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + 43 FROM tab1
----
-42
-48
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + MIN( ALL - col0 ) + COUNT( - - ( - 12 ) ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + MIN ( ALL - col0 ) + COUNT ( - - ( - 12 ) ) FROM tab0
----
-94

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE + col2 - col1 >= + + 70
----

query I rowsort
SELECT DISTINCT - col2 - + + col2 AS col1 FROM tab2 cor0
----
-116
-46
-80

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

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

query I rowsort
SELECT + 72 + + 68 AS col0 FROM tab0 cor0
----
140
140
140

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

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

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

query I rowsort
SELECT 73 + + + 46 FROM tab0
----
119
119
119

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - 75
----

query I rowsort
SELECT DISTINCT 10 * - + 21 FROM tab1
----
-210

query I rowsort
SELECT + - 36 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

query II rowsort
SELECT ALL - col0 * + 57 - - col0, col0 FROM tab2 AS cor0
----
-2576
46
-3584
64
-4200
75

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT SUM( + + 78 ) AS col1 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT SUM ( + + 78 ) AS col1 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6419
SELECT - col1 AS col2, CAST( - + 61 AS SIGNED ) FROM tab2
----
-51
-61
-67
-61
-77
-61

skipif mysql # not compatible
query II rowsort label-6419
SELECT - col1 AS col2, CAST ( - + 61 AS INTEGER ) FROM tab2
----
-51
-61
-67
-61
-77
-61

query I rowsort
SELECT + col1 + col0 * + 51 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4458
4948
846

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6422
SELECT ALL * FROM tab0 WHERE NOT + - 87 * - CAST( col2 AS SIGNED ) > + col0
----

skipif mysql # not compatible
query III rowsort label-6422
SELECT ALL * FROM tab0 WHERE NOT + - 87 * - CAST ( col2 AS INTEGER ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( ( col1 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( ( col1 ) ) IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT + SUM( + 29 ) col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6425
SELECT DISTINCT + SUM ( + 29 ) col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + ( col2 ) * - - 82 AS col0 FROM tab1 AS cor0
----
4838
5576
7872

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6428
SELECT + - 91 DIV + - SUM( DISTINCT - col1 ) - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-6428
SELECT + - 91 / + - SUM ( DISTINCT - col1 ) - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
2

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

skipif mysql # not compatible
query I rowsort label-6429
SELECT COUNT ( col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT - 2 + col1 AS col2 FROM tab1 AS cor0
----
12
3
45

query I rowsort
SELECT ALL + - 66 * - + ( 94 ) * - col1 FROM tab0 AS cor0
----
-130284
-502524
-6204

query I rowsort
SELECT DISTINCT col2 + - + col1 - + 60 AS col0 FROM tab2
----
-69
-88
-97

query I rowsort
SELECT ALL 19 + + - col1 AS col1 FROM tab2
----
-32
-48
-58

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

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

query I rowsort
SELECT col1 * + 94 + + - col0 - 7 AS col1 FROM tab2
----
4741
6216
7167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) + 27 * + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + 27 * + + COUNT ( * ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 col2 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT + - col0 * - - col1 + + ( col0 ) * col1 * - col0 FROM tab0 AS cor0
----
-160776
-19440
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-6439
SELECT DISTINCT ( COUNT( * ) ) - + 63, + 62 * + MIN( col0 ) * - - COUNT( * ) - 12 + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-60
9469

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT ( COUNT ( * ) ) - + 63, + 62 * + MIN ( col0 ) * - - COUNT ( * ) - 12 + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-60
9469

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

query II rowsort
SELECT + - 9, + ( - 83 ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col1 - 55 AND - col1 * - col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL - 33 + col1 * - - col1 + + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-31
429
6609

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - 33 + col1 * - - col1 + + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-31
429
6609

query I rowsort
SELECT + col0 * 9 + col0 * + 24 FROM tab1
----
1683
2805
3003

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 77 + + ( col1 + col1 ) col1 FROM tab2
----
-3440
-4774
-5641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * - ( - col2 ) + - col1 col0 FROM tab0
----
4243
899
9107

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE 54 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT + col1 DIV 67 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6448
SELECT + col1 / 67 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - MAX( ALL 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-6449
SELECT - MAX ( ALL 54 ) FROM tab0
----
-54

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL - ( col1 ) + col0 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) + col1 IS NULL
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - ( col1 ) + col0 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) + col1 IS NULL
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= col0 * + col0 - + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 93 <= col0 * - col0
----
15
81
47

query I rowsort
SELECT + 71 + + col0 FROM tab1
----
122
156
162

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

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

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

query I rowsort
SELECT + col1 + - 7 AS col1 FROM tab2 WHERE - col2 + col0 IN ( - col2 * + col0 + col0 * 49 )
----

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

query I rowsort
SELECT 16 * + 65 + + col0 AS col1 FROM tab2
----
1086
1104
1115

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

query I rowsort
SELECT 37 + col1 FROM tab0
----
118
38
58

query I rowsort
SELECT 65 * 84 + + col0 FROM tab1
----
5511
5545
5551

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT - COUNT( * ) - - 67 AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-6466
SELECT - COUNT ( * ) - - 67 AS col0 FROM tab0
----
64

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

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

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT COUNT ( * ) FROM tab0 WHERE 6 - 1 > + ( - col1 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6469
SELECT - 25 DIV 1 col1 FROM tab2 cor0
----
-25
-25
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT - 25 / 1 col1 FROM tab2 cor0
----
-25
-25
-25

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

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 27 / - 88 )
----

query I rowsort
SELECT ALL + 55 * col1 AS col0 FROM tab2 cor0
----
2805
3685
4235

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

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

query I rowsort
SELECT ALL ( - col0 ) + + 51 FROM tab0 AS cor0
----
-36
-46
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT ALL - 28 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - 28 / col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT DISTINCT 44 * - 95 FROM tab1
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN + 75 AND col2 * 84
----
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN + 75 AND col2 * 84
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + ( col0 ) * col2 <> 26 * + 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND 51 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6484
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6484
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL - COUNT( DISTINCT 5 ) * - 53 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - COUNT ( DISTINCT 5 ) * - 53 FROM tab2 AS cor0
----
53

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

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

query I rowsort
SELECT col0 * - 22 AS col0 FROM tab1
----
-1122
-1870
-2002

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

query I rowsort
SELECT DISTINCT col2 + - col1 - + col0 * col1 FROM tab2
----
-2374
-4965
-5034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - 31 * - + SUM( ALL col0 ) FROM tab1
----
7037

skipif mysql # not compatible
query I rowsort label-6491
SELECT - 31 * - + SUM ( ALL col0 ) FROM tab1
----
7037

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 75 ) * - col2 - + 15 / 7 ) IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE 67 < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) + + 78 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) + + 78 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT DISTINCT + + col2 DIV - + 64 col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6496
SELECT DISTINCT + + col2 / - + 64 col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6497
SELECT DISTINCT + 66 AS col1, COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT + 66 AS col1, COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
66
3

query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-60

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col2 * + ( col2 ) + + col2 col0 FROM tab1
----
295944
420852
470112

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col2 ) IN ( + 85 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL COUNT ( ALL + col2 ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6507
SELECT - MAX ( DISTINCT + 74 ) FROM tab0 cor0
----
-74

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

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

query II rowsort
SELECT col0 AS col0, - 70 AS col1 FROM tab1 AS cor0
----
51
-70
85
-70
91
-70

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

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

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

query I rowsort
SELECT + 30 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
30
30
30

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

skipif mysql # not compatible
query I rowsort label-6514
SELECT + CAST ( + 19 AS INTEGER ) AS col0 FROM tab1
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 15 * + ( 97 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT ( + + 26 ) BETWEEN + col0 AND + col2 * col0
----
-87
-97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + + col2 * col2 col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6521
SELECT - COUNT( * ) DIV - CAST( + SUM( ALL - col1 ) AS SIGNED ) + - 4 * + COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6521
SELECT - COUNT ( * ) / - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) + - 4 * + COUNT ( * ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT + 84 AS col0 FROM tab2 cor0
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT DISTINCT - 84 DIV - 4 + COUNT( + col0 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - 84 / - 4 + COUNT ( + col0 ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL COUNT( ALL + 63 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL COUNT ( ALL + 63 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( COUNT( ALL + 60 ) AS SIGNED ) * - 63 col2 FROM tab0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6525
SELECT CAST ( COUNT ( ALL + 60 ) AS INTEGER ) * - 63 col2 FROM tab0
----
-189

query III rowsort
SELECT * FROM tab0 WHERE - 33 > ( + 3 )
----

query II rowsort
SELECT col0 AS col0, + ( col2 ) * - 88 + + 91 FROM tab1
----
51
-8357
85
-5101
91
-5893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 24 * ( + 47 ) * 26 col1 FROM tab0 AS cor0
----
-29229
-29281
-29318

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6529
SELECT * FROM tab0 AS cor0 WHERE ( col2 * + col2 + + + 11 ) BETWEEN - CAST( NULL AS SIGNED ) + ( + col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6529
SELECT * FROM tab0 AS cor0 WHERE ( col2 * + col2 + + + 11 ) BETWEEN - CAST ( NULL AS INTEGER ) + ( + col1 ) AND NULL
----

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

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

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

query I rowsort
SELECT col2 * + 43 - - - col1 * col1 FROM tab0 AS cor0
----
-11
-4540
4256

query I rowsort
SELECT 48 - + - col0 AS col2 FROM tab1 AS cor0
----
133
139
99

query I rowsort
SELECT - + 52 - + - 8 FROM tab2 AS cor0
----
-44
-44
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6537
SELECT + col0 DIV + CAST( - + 78 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-6537
SELECT + col0 / + CAST ( - + 78 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
14
4
46

query I rowsort
SELECT DISTINCT - AVG ( ALL col1 ) AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + ( col0 ) + col0 - - col2 FROM tab2
----
115
168
208

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

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE - 32 <> - + 80
----
51
85
91

query I rowsort
SELECT ALL - ( + + col2 ) - + - col0 AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= - 95 / + 39
----
-3

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= - 95 / + 39
----
-3

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

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

query I rowsort
SELECT - 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT 53 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND + 96
----

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

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT 69 / + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + col0 + + 24
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= - 56 + + col2
----

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

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

query I rowsort
SELECT DISTINCT col1 * + + col2 * - col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - 50 FROM tab1 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT ( - col2 ) FROM tab0 WHERE NOT ( + col1 * + - col2 ) NOT IN ( 43, col0 + - col1 + - col2 * 82 )
----

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

query I rowsort
SELECT + col1 * + 96 AS col0 FROM tab1
----
1344
4512
480

query III rowsort
SELECT * FROM tab1 WHERE NOT 43 * 92 <= - 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query II rowsort label-6565
SELECT col0 AS col0, CAST ( NULL AS INTEGER ) * - ( + 57 ) + + + 77 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6566
SELECT MAX( ALL ( - 9 ) ) DIV - 74 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT MAX ( ALL ( - 9 ) ) / - 74 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <> + + ( - - col2 ) * + - col0
----

query I rowsort
SELECT - 22 * col1 * + + col0 + - + 48 AS col2 FROM tab0
----
-2182
-26778
-40242

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col1, 11 col0 FROM tab1
----
-10
11
-28
11
-94
11

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE 25 IS NULL
----

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

query I rowsort
SELECT DISTINCT + + ( - - 41 ) + - col1 FROM tab1 AS cor0
----
-6
27
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0 WHERE col1 * 33 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6574
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 WHERE col1 * 33 IS NULL
----

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

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

query I rowsort
SELECT ALL - 60 - col1 + - - 33 AS col2 FROM tab1 AS cor0
----
-32
-41
-74

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

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

query I rowsort
SELECT - col1 * - ( + col2 ) + + - col2 + + col0 + col0 FROM tab0 AS cor0
----
194
374
3790

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col2 - + col0 AS col2 FROM tab1
----
59
-26
68
-23
96
45

query I rowsort
SELECT 38 - - col1 AS col1 FROM tab0
----
119
39
59

query I rowsort
SELECT DISTINCT + col2 * - + col1 + - col1 FROM tab2
----
-1224
-3157
-3953

query I rowsort
SELECT col1 - col2 * col1 AS col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT 93 * + - ( + col1 ) * - col1 * - col0 - col1 AS col0 FROM tab0
----
-3568152
-9022
-9152676

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT ( - CAST( + col2 AS SIGNED ) ) - + col1 DIV - col0 AS col2 FROM tab1
----
-59
-68
-96

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

query I rowsort
SELECT 79 - + col1 FROM tab0
----
-2
58
78

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

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

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - col1 / - col0 AS col2 FROM tab2
----
0
1

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

query II rowsort
SELECT + col1 AS col2, col1 * 8 AS col0 FROM tab0 AS cor0
----
1
8
21
168
81
648

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

query I rowsort
SELECT + 14 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + - 10 IS NULL
----
14
14
14

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + + 95 + col0 + + col1 * 22 AS col1, + 50 + - + col0 * + - 45 * 38 FROM tab2 AS cor0
----
1263
78710
1644
128300
1853
109490

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT CAST( col0 AS SIGNED ) * 38 FROM tab0 AS cor0
----
3306
3686
570

skipif mysql # not compatible
query I rowsort label-6599
SELECT CAST ( col0 AS INTEGER ) * 38 FROM tab0 AS cor0
----
3306
3686
570

query II rowsort
SELECT DISTINCT + ( 3 ) + - col1 AS col0, - col0 FROM tab1
----
-11
-51
-2
-85
-44
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + 57 + 3
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6602
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT + 27 + + + COUNT( * ) + 18 - MIN( - ( + + 3 ) ) + + MIN( ALL + col1 ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT + 27 + + + COUNT ( * ) + 18 - MIN ( - ( + + 3 ) ) + + MIN ( ALL + col1 ) AS col1 FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT + col0 + + - CAST( - 70 AS SIGNED ) AS col0 FROM tab0 WHERE - col1 + col2 + + - col1 IS NOT NULL
----
157
167
85

skipif mysql # not compatible
query I rowsort label-6604
SELECT + col0 + + - CAST ( - 70 AS INTEGER ) AS col0 FROM tab0 WHERE - col1 + col2 + + - col1 IS NOT NULL
----
157
167
85

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

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab2 cor0 WHERE + col2 IS NOT NULL OR NOT ( 95 ) <= ( NULL )
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ( - - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6607
SELECT ( - - COUNT ( * ) ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT 15 + - COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT ALL 1 - col0 FROM tab2
----
-45
-63
-74

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

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

query I rowsort
SELECT + col1 - - 13 FROM tab1 AS cor0
----
18
27
60

query II rowsort
SELECT DISTINCT + col2 - - ( - 65 ), 89 * + + 97 * - - col0 AS col0 FROM tab1 AS cor0
----
-6
733805
3
785603
31
440283

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT DISTINCT + col0 DIV col0 - 30 - + col0 FROM tab1 AS cor0
----
-114
-120
-80

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT + col0 / col0 - 30 - + col0 FROM tab1 AS cor0
----
-114
-120
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT DISTINCT ( + + 66 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE col2 + + col1 <= + - col1
----
66

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT ( + + 66 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 + + col1 <= + - col1
----
66

query I rowsort
SELECT - 85 + + col0 FROM tab0 AS cor0
----
-70
12
2

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6619
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - CAST( - - 57 AS SIGNED ) / + col1 + col2 + col1 + + 6 BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6619
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - CAST ( - - 57 AS INTEGER ) / + col1 + col2 + col1 + + 6 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT + COUNT( * ) + - + 73 AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + COUNT ( * ) + - + 73 AS col1 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT ALL col2 * + 28 * - - 45 FROM tab0
----
124740
12600
59220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 32 col0 FROM tab2
----
1472
2048
2400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 <= NULL
----

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

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

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

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

query II rowsort
SELECT col0 * col0, col0 * + col1 AS col2 FROM tab1
----
2601
714
7225
425
8281
4277

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT + + COUNT( * ) * 81 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT + + COUNT ( * ) * 81 FROM tab2 AS cor0
----
243

query I rowsort
SELECT + 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 22 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

query I rowsort
SELECT DISTINCT + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

query I rowsort
SELECT col1 * - + 81 * col0 FROM tab2
----
-190026
-399168
-407025

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

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

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

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

query I rowsort
SELECT 31 + + - col0 + + - 69 FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT DISTINCT + col2 * 48 AS col1 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6643
SELECT - ( - col1 ) + - 25 * - col0 * - CAST( + col2 AS SIGNED ) - - 41 DIV + 47 FROM tab2 AS cor0
----
-108683
-26399
-63923

skipif mysql # not compatible
query I rowsort label-6643
SELECT - ( - col1 ) + - 25 * - col0 * - CAST ( + col2 AS INTEGER ) - - 41 / + 47 FROM tab2 AS cor0
----
-108683
-26399
-63923

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

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

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

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

query I rowsort
SELECT ALL + 25 * + - ( + col2 ) FROM tab0 AS cor0
----
-1175
-2475
-250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / - col2 * 46 > ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT ALL - ( + col2 ) DIV 20 + col0 + col2 FROM tab2
----
102
131
68

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL - ( + col2 ) / 20 + col0 + col2 FROM tab2
----
102
131
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT MIN( col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6651
SELECT MIN ( col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - MAX( - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6652
SELECT - MAX ( - col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL CAST( NULL AS SIGNED ) + - 87 * + - col0 * + 72 + - - 57 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL CAST ( NULL AS INTEGER ) + - 87 * + - col0 * + 72 + - - 57 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT COUNT( * ) * + 77 * - - 78 AS col1 FROM tab1
----
18018

skipif mysql # not compatible
query I rowsort label-6655
SELECT COUNT ( * ) * + 77 * - - 78 AS col1 FROM tab1
----
18018

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6657
SELECT DISTINCT - + 21 AS col2, - 91 AS col0 FROM tab2 WHERE NOT + col2 + 68 + - CAST( NULL AS SIGNED ) / col2 * + col0 / + col0 * - col1 = + col2 + - col1
----

skipif mysql # not compatible
query II rowsort label-6657
SELECT DISTINCT - + 21 AS col2, - 91 AS col0 FROM tab2 WHERE NOT + col2 + 68 + - CAST ( NULL AS INTEGER ) / col2 * + col0 / + col0 * - col1 = + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - SUM( - - 88 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-6658
SELECT - SUM ( - - 88 ) FROM tab1
----
-264

query I rowsort
SELECT DISTINCT + col2 * - - 15 FROM tab1
----
1020
1440
885

query I rowsort
SELECT ALL - col0 * - ( - - col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE 18 > - 67
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE 18 > - 67
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + ( ( + col2 ) ) ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE + 37 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT + + 24 * + COUNT( DISTINCT + col0 ) col0 FROM tab1 WHERE NULL IN ( - - col1, col2, + col1 + + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT DISTINCT + + 24 * + COUNT ( DISTINCT + col0 ) col0 FROM tab1 WHERE NULL IN ( - - col1, col2, + col1 + + col2 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND col0
----

query II rowsort
SELECT DISTINCT col0 - col0, + 5 AS col0 FROM tab1 AS cor0
----
0
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN 46 AND NULL
----
87
21
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL - MAX( ALL + + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - MAX ( ALL + + col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - - COUNT( * ) * + + ( 57 ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6671
SELECT - - COUNT ( * ) * + + ( 57 ) FROM tab2 AS cor0
----
171

query I rowsort
SELECT - col0 * + col1 + 64 FROM tab0 AS cor0
----
-1151
-1763
-33

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

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

query II rowsort
SELECT DISTINCT - 27 AS col2, - col2 FROM tab1
----
-27
-59
-27
-68
-27
-96

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT - 64 * - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 41 > col2
----
256

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - 64 * - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 41 > col2
----
256

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

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL ( + 52 ) FROM tab0
----
52
52
52

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

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

query I rowsort
SELECT col0 * + 62 AS col2 FROM tab2
----
2852
3968
4650

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN 42 AND 17
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * - col0 col2 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL - COUNT( * ) * 54 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - COUNT ( * ) * 54 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT + 71 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + 71 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-210

query I rowsort
SELECT DISTINCT - + 74 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 68 / + col1 AND col2 + 34
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT 54 * + COUNT( * ) + ( 39 ) + + COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6694
SELECT 54 * + COUNT ( * ) + ( 39 ) + + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
204

query II rowsort
SELECT + col1 * + 16 AS col1, ( - col0 ) + + 74 AS col0 FROM tab0 AS cor0
----
1296
59
16
-23
336
-13

query I rowsort
SELECT - + 28 + + + col2 AS col2 FROM tab1 cor0
----
31
40
68

query I rowsort
SELECT ALL 35 + 76 * + - 1 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( - - col0 / - ( - col1 ) )
----

query I rowsort
SELECT ALL col0 * + 10 * + + col1 * - 57 AS col0 FROM tab1
----
-242250
-2437890
-406980

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * - col1 <= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - CAST ( NULL AS REAL ) - + COUNT ( col2 ) AS col1 FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT COUNT ( * ) * - + 86 AS col0 FROM tab0
----
-258

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

query I rowsort
SELECT ALL - col1 * - - col2 + + 48 AS col0 FROM tab2 AS cor0
----
-1125
-3032
-3838

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT - - col2 DIV - - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - - col2 / - - col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT DISTINCT col1 DIV + 33 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT col1 / + 33 AS col0 FROM tab1 AS cor0
----
0
1

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

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

query I rowsort
SELECT ALL 14 * + col0 + + 34 * - + 0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT ALL - - CAST( - col2 AS SIGNED ) + 64 * - 91 + 60 + col0 FROM tab2 cor0
----
-5740
-5741
-5747

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - - CAST ( - col2 AS INTEGER ) + 64 * - 91 + 60 + col0 FROM tab2 cor0
----
-5740
-5741
-5747

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

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

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

query I rowsort
SELECT - 54 - - col1 AS col1 FROM tab2
----
-3
13
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6713
SELECT ALL - col2, + col2 * 47 + - col2 * + - CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6713
SELECT ALL - col2, + col2 * 47 + - col2 * + - CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT col2, col1 - - - 20 FROM tab0 AS cor0
----
10
1
47
61
99
-19

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6716
SELECT * FROM tab2 AS cor0 WHERE NOT 32 * - 27 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6716
SELECT * FROM tab2 AS cor0 WHERE NOT 32 * - 27 * + CAST ( NULL AS INTEGER ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6717
SELECT DISTINCT + - 47 / + MAX ( ALL col0 ) col0 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 * - 87 >= NULL
----

query I rowsort
SELECT - 79 * col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-4029
-5293
-6083

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

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

query I rowsort
SELECT - col0 * + col2 * + col2 FROM tab0
----
-33135
-8700
-950697

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

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

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

query II rowsort
SELECT ( + 53 ) AS col0, col0 FROM tab1
----
53
51
53
85
53
91

query II rowsort
SELECT - - col2, + 37 FROM tab2 WHERE NOT - col2 + - + col0 * + + col2 * - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT + CAST( + col1 AS SIGNED ) * + 44 FROM tab1
----
2068
220
616

skipif mysql # not compatible
query I rowsort label-6729
SELECT + CAST ( + col1 AS INTEGER ) * + 44 FROM tab1
----
2068
220
616

query II rowsort
SELECT ALL ( - 89 ), col0 AS col2 FROM tab2
----
-89
46
-89
64
-89
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - + SUM( DISTINCT - 58 ) AS col2 FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - + SUM ( DISTINCT - 58 ) AS col2 FROM tab1 cor0
----
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT COUNT( * ), COUNT( - - col1 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-6736
SELECT COUNT ( * ), COUNT ( - - col1 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 <> + - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - 19 - - COUNT( * ) FROM tab0 AS cor0 WHERE col2 + col1 * + col2 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 19 - - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + col1 * + col2 IS NULL
----
-19

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6741
SELECT * FROM tab1 WHERE ( NULL BETWEEN col2 AND - col0 * + 15 + ( + 75 ) * 24 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6741
SELECT * FROM tab1 WHERE ( NULL BETWEEN col2 AND - col0 * + 15 + ( + 75 ) * 24 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL + MIN( ALL col2 ) - - 39 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL + MIN ( ALL col2 ) - - 39 FROM tab2
----
62

query I rowsort
SELECT 10 - col2 AS col1 FROM tab0
----
-37
-89
0

query II rowsort
SELECT ALL - col1 - - + 6 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-41
47
-8
14
1
5

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

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

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

query I rowsort
SELECT DISTINCT 17 + + 77 FROM tab2
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-6748
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-6748
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT + CAST( - ( - col1 ) AS SIGNED ) * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6750
SELECT + CAST ( - ( - col1 ) AS INTEGER ) * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

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

query II rowsort
SELECT ALL + + col2 AS col0, + col1 * - - col0 + + - col0 AS col0 FROM tab1 AS cor0
----
59
340
68
4186
96
663

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

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

query I rowsort
SELECT 43 * col0 FROM tab2
----
1978
2752
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 96 * - - 54 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 * - - 54 FROM tab1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT ALL - 55 * - CAST( MIN( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-5335

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - 55 * - CAST ( MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-5335

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, + col1 col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + col2 * + ( - 36 ) + - col0 AS col2 FROM tab1 AS cor0
----
-2209
-2539
-3507

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - + 40 * 32 + + + COUNT( * ) + + MIN( + col1 ) FROM tab0 AS cor0
----
-1276

skipif mysql # not compatible
query I rowsort label-6765
SELECT - + 40 * 32 + + + COUNT ( * ) + + MIN ( + col1 ) FROM tab0 AS cor0
----
-1276

query I rowsort
SELECT DISTINCT - - col0 * + col1 * col2 + + 40 + + 90 AS col2 FROM tab1 AS cor0
----
25205
290966
68674

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL - COUNT( * ) + SUM( + col0 ) FROM tab1 AS cor0 WHERE - 16 * - col0 <> + 82
----
224

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - COUNT ( * ) + SUM ( + col0 ) FROM tab1 AS cor0 WHERE - 16 * - col0 <> + 82
----
224

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

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT + col1 DIV col0 + + + 79 * 35 FROM tab0 AS cor0
----
2765
2765
2770

skipif mysql # not compatible
query I rowsort label-6773
SELECT + col1 / col0 + + + 79 * 35 FROM tab0 AS cor0
----
2765
2765
2770

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 24 col1, col1 FROM tab0 AS cor0
----
123
1
34
21
71
81

query I rowsort
SELECT 12 + - 73 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT col2 + + 52 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT col2 + + 52 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

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

query I rowsort
SELECT - 73 * + 18 + - - col0 AS col1 FROM tab0
----
-1217
-1227
-1299

query I rowsort
SELECT col1 + 85 AS col2 FROM tab1
----
132
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL COUNT( * ) - - 68 AS col0 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL COUNT ( * ) - - 68 AS col0 FROM tab0
----
71

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab2 WHERE col2 + col1 * col1 / 13 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL - COUNT( - 8 ) + + 20 AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - COUNT ( - 8 ) + + 20 AS col1 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT DISTINCT - + 65 AS col0, - SUM( - - col0 ) FROM tab0 AS cor0
----
-65
-199

skipif mysql # not compatible
query II rowsort label-6787
SELECT DISTINCT - + 65 AS col0, - SUM ( - - col0 ) FROM tab0 AS cor0
----
-65
-199

query I rowsort
SELECT + 73 - - + col0 - - - col2 AS col2 FROM tab1 cor0
----
28
96
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - col1 ) NOT IN ( - col2, col0, - - 43, + col1 )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 + ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 > + + 56
----
-100
-31

query I rowsort
SELECT ALL 83 AS col1 FROM tab0 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT COUNT( * ) * + + ( + 43 ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT COUNT ( * ) * + + ( + 43 ) AS col1 FROM tab2
----
129

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

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

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

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

query I rowsort
SELECT DISTINCT 46 * + col1 AS col2 FROM tab1
----
2162
230
644

query I rowsort
SELECT col0 * ( 42 ) FROM tab1
----
2142
3570
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT CAST( + - 11 AS SIGNED ) FROM tab0 WHERE NOT - col0 + - 57 IN ( col1, col0, - 73 + 72, - - 71, 22 )
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6805
SELECT CAST ( + - 11 AS INTEGER ) FROM tab0 WHERE NOT - col0 + - 57 IN ( col1, col0, - 73 + 72, - - 71, 22 )
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6806
SELECT ALL * FROM tab1 WHERE NOT 11 * CAST( col2 AS SIGNED ) / - - col1 + col1 * + col0 + col2 - - - col0 / + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6806
SELECT ALL * FROM tab1 WHERE NOT 11 * CAST ( col2 AS INTEGER ) / - - col1 + col1 * + col0 + col2 - - - col0 / + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN col0 AND - - 15
----

query I rowsort
SELECT col2 + ( + col1 ) + + + col2 FROM tab0
----
175
199
41

query I rowsort
SELECT ALL + col0 + + + col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + - col2 col0 FROM tab2
----
-4
14
31

query I rowsort
SELECT - 8 * - - col2 + - + col1 FROM tab0
----
-101
-457
-793

query I rowsort
SELECT ALL + 44 + - - col2 * - - col1 AS col2 FROM tab2 AS cor0
----
1217
3124
3930

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

query I rowsort
SELECT ALL + - 14 * col2 + + col0 FROM tab0 AS cor0
----
-1289
-53
-643

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6818
SELECT - col0 * + CAST( NULL AS DECIMAL ) * - + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT - col0 * + CAST ( NULL AS REAL ) * - + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ( - 97 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6819
SELECT ( - 97 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
291

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

query I rowsort
SELECT - 93 * + col2 AS col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT - 20 - - col1 + + - 50 FROM tab2
----
-19
-3
7

query I rowsort
SELECT DISTINCT - col0 + col1 + ( - col0 ) AS col0 FROM tab0
----
-153
-193
51

query II rowsort
SELECT + col2 - - 47 AS col1, - 22 AS col0 FROM tab2
----
105
-22
70
-22
87
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 > + col1 - col2 + col2 - + col0 + 48 * + col2 / 30
----

query I rowsort
SELECT col1 - - - 60 FROM tab0
----
-39
-59
21

query I rowsort
SELECT ALL 37 - + 62 * - 18 AS col1 FROM tab0
----
1153
1153
1153

query I rowsort
SELECT - + 88 AS col1 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 16 / - 42 NOT BETWEEN + 89 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 16 / - 42 NOT BETWEEN + 89 AND NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-6830
SELECT MAX ( col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + - 22 - - SUM( DISTINCT 27 ) AS col1 FROM tab0 AS cor0 WHERE - ( col1 ) * - col0 + + - 40 + - + col2 + + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + - 22 - - SUM ( DISTINCT 27 ) AS col1 FROM tab0 AS cor0 WHERE - ( col1 ) * - col0 + + - 40 + - + col2 + + col1 = NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + + MIN( DISTINCT + 88 ) AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + + MIN ( DISTINCT + 88 ) AS col2 FROM tab2 AS cor0
----
88

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 > 98 * + 82 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL - COUNT( * ) + MIN( ALL - - col1 ) - + ( + 23 ) * 43 col0 FROM tab0
----
-991

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6839
SELECT ALL - COUNT ( * ) + MIN ( ALL - - col1 ) - + ( + 23 ) * 43 col0 FROM tab0
----
-991

query I rowsort
SELECT + + col0 + - 48 FROM tab2 AS cor0
----
-2
16
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT + 99 + + 26 DIV - 88 * + col0 AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + 99 + + 26 / - 88 * + col0 AS col2 FROM tab2 AS cor0
----
99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6845
SELECT ALL COUNT( * ) + - - MAX( - col0 ) AS col1, - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6845
SELECT ALL COUNT ( * ) + - - MAX ( - col0 ) AS col1, - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
-12
NULL

query II rowsort
SELECT + 92 + - col0 * col1 AS col2, - col1 FROM tab1 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 * - 4 + - col2 col2 FROM tab1
----
-235
-244
-272

query I rowsort
SELECT - col1 - - - ( - 95 ) AS col2 FROM tab0 AS cor0
----
14
74
94

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL col0 DIV 86 + col1 FROM tab1 AS cor0
----
14
48
5

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col0 / 86 + col1 FROM tab1 AS cor0
----
14
48
5

query I rowsort
SELECT col0 + - 71 * + col0 + - col1 FROM tab0 AS cor0
----
-1131
-6111
-6791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + - col0 col1 FROM tab1 cor0
----
-43
-49
-9

query II rowsort
SELECT + 35 + + col2 * + col2 AS col2, col1 FROM tab2 AS cor0
----
1635
77
3399
67
564
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL COUNT( * ) * COUNT( * ) * + COUNT( * ) + - - 98 AS col2 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) + - - 98 AS col2 FROM tab1
----
125

query I rowsort
SELECT col2 + + 72 AS col1 FROM tab1
----
131
140
168

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

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

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

query II rowsort
SELECT + col0 AS col1, col1 * + 81 FROM tab2
----
46
4131
64
6237
75
5427

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6861
SELECT col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6861
SELECT col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6863
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6863
SELECT ALL CAST ( NULL AS REAL ) AS col2, col0 col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + COUNT( * ) + + 13 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND ( - col0 )
----
13

skipif mysql # not compatible
query I rowsort label-6866
SELECT + COUNT ( * ) + + 13 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND ( - col0 )
----
13

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

query I rowsort
SELECT DISTINCT - 56 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-143
-153
-71

query I rowsort
SELECT 64 AS col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT + 46 + - + col0 FROM tab1 AS cor0
----
-39
-45
-5

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

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

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

query I rowsort
SELECT DISTINCT - 21 * - col0 - - - col1 AS col1 FROM tab2 cor0
----
1267
1508
915

query I rowsort
SELECT DISTINCT - - 12 + col1 AS col1 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6875
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - - CAST( + + 77 AS DECIMAL ) * + col2 + - 11 * - col2 * col0 AND NULL OR NOT NULL BETWEEN NULL AND - 39 - col2 + col2 * + + 60
----

skipif mysql # not compatible
query III rowsort label-6875
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - - CAST ( + + 77 AS REAL ) * + col2 + - 11 * - col2 * col0 AND NULL OR NOT NULL BETWEEN NULL AND - 39 - col2 + col2 * + + 60
----

query I rowsort
SELECT ALL 94 * + col1 AS col2 FROM tab0
----
1974
7614
94

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6878
SELECT ALL * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6878
SELECT ALL * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * - col0 + + 85 * - col2 FROM tab0
----
-3290
1188
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL COUNT( * ) * - + 15 AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL COUNT ( * ) * - + 15 AS col2 FROM tab1
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT - col0 * + ( CAST( + col1 AS SIGNED ) ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6883
SELECT - col0 * + ( CAST ( + col1 AS INTEGER ) ) FROM tab1
----
-425
-4277
-714

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > - - CAST( + - 93 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > - - CAST ( + - 93 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COUNT( * ) + - 39 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6886
SELECT COUNT ( * ) + - 39 FROM tab2
----
-36

query I rowsort
SELECT ALL col2 + + 36 AS col2 FROM tab1
----
104
132
95

query I rowsort
SELECT 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

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

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

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

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

query I rowsort
SELECT + 58 * + - col1 AS col0 FROM tab1 AS cor0
----
-2726
-290
-812

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT col2 DIV + - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT col2 / + - 89 FROM tab2
----
0
0
0

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6896
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6897
SELECT MIN ( DISTINCT - - col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL 32 * - COUNT( * ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL 32 * - COUNT ( * ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT 95 + + COUNT( + + col2 ) FROM tab2 WHERE NOT + col1 >= - - col1
----
95

skipif mysql # not compatible
query I rowsort label-6899
SELECT 95 + + COUNT ( + + col2 ) FROM tab2 WHERE NOT + col1 >= - - col1
----
95

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

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

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

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

query II rowsort
SELECT + 7 AS col1, + ( - col2 ) * - + ( ( + col2 ) ) * col0 AS col0 FROM tab2 cor0
----
7
102400
7
24334
7
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL + - MIN( + + 73 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + - MIN ( + + 73 ) FROM tab1 AS cor0
----
-73

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT ALL COUNT( ALL - 99 ) AS col1, - 36 FROM tab1
----
3
-36

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL COUNT ( ALL - 99 ) AS col1, - 36 FROM tab1
----
3
-36

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

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

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

query II rowsort
SELECT + + col0 AS col0, col1 * col0 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT - + col2 * - col1 + - ( 43 ) DIV - col2 col2 FROM tab0 AS cor0
----
214
3807
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6912
SELECT - + col2 * - col1 + - ( 43 ) / - col2 col2 FROM tab0 AS cor0
----
214
3807
99

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

query I rowsort
SELECT DISTINCT + col2 + - + col1 + - col0 + - + col1 + + col2 FROM tab0 AS cor0
----
-109
-83
99

query I rowsort
SELECT - ( - col1 ) * + 70 FROM tab2 AS cor0
----
3570
4690
5390

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

skipif mysql # not compatible
query I rowsort label-6916
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

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

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

query I rowsort
SELECT DISTINCT + col0 + - 61 + 86 FROM tab1
----
110
116
76

query II rowsort
SELECT ALL - 84 + col1 AS col2, col0 FROM tab2
----
-17
75
-33
46
-7
64

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

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

query I rowsort
SELECT ALL - col2 * - 60 AS col2 FROM tab0
----
2820
5940
600

query II rowsort
SELECT ALL 89 + 5, - 11 AS col0 FROM tab0
----
94
-11
94
-11
94
-11

query I rowsort
SELECT col1 + + 50 FROM tab0
----
131
51
71

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT col2 * col0 + + + 72 FROM tab2
----
1130
2632
4422

query I rowsort
SELECT - + 63 + 51 FROM tab0 AS cor0
----
-12
-12
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT ALL - col0 - + + col2 * 0 * - - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - col0 - + + col2 * 0 * - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT SUM( + col2 ) + 85 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-6930
SELECT SUM ( + col2 ) + 85 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
238

query I rowsort
SELECT - 78 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + SUM( ALL col1 ) * + - 57 * - 57 AS col1 FROM tab2 AS cor0
----
633555

skipif mysql # not compatible
query I rowsort label-6932
SELECT + SUM ( ALL col1 ) * + - 57 * - 57 AS col1 FROM tab2 AS cor0
----
633555

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

query I rowsort
SELECT DISTINCT - 80 * - + col1 AS col2 FROM tab2 AS cor0
----
4080
5360
6160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6935
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * 67 * 35 / + CAST( NULL AS SIGNED ) + col2 + col1 BETWEEN + - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6935
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 * 67 * 35 / + CAST ( NULL AS INTEGER ) + col2 + col1 BETWEEN + - col2 AND NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT ( - - COUNT( * ) ) * + 19 + MAX( - col0 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT ( - - COUNT ( * ) ) * + 19 + MAX ( - col0 ) FROM tab1
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT - MIN( ALL col1 ) * COUNT( * ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - MIN ( ALL col1 ) * COUNT ( * ) AS col0 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT - col2 * col0 * - ( + 9 ) AS col2 FROM tab0
----
6345
7830
86427

query I rowsort
SELECT ALL 80 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL - COUNT( ALL + col1 ) * + - 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - COUNT ( ALL + col1 ) * + - 7 FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT 23 DIV - + 1 AS col1 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-6943
SELECT 23 / - + 1 AS col1 FROM tab0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - col0 col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6945
SELECT + MAX ( + - col2 ) FROM tab1
----
-59

query I rowsort
SELECT 31 * + col0 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT ALL + AVG ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE + 23 * - - col0 + + col2 > NULL
----
NULL

query II rowsort
SELECT ALL + - 50 * - 83 * ( - col0 ) AS col1, + col2 FROM tab0 AS cor0
----
-361050
10
-402550
99
-62250
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - COUNT( * ) + + + COUNT( * ) * - 12 AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6949
SELECT - COUNT ( * ) + + + COUNT ( * ) * - 12 AS col2 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT + CAST( + col0 AS SIGNED ) * 12 + col0 AS col1 FROM tab0
----
1131
1261
195

skipif mysql # not compatible
query I rowsort label-6950
SELECT + CAST ( + col0 AS INTEGER ) * 12 + col0 AS col1 FROM tab0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6951
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-6951
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - 35 + + 47 * + MIN( col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
-57140

skipif mysql # not compatible
query I rowsort label-6952
SELECT - 35 + + 47 * + MIN ( col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
-57140

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

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

query I rowsort
SELECT ALL - 82 * col2 AS col1 FROM tab2 AS cor0
----
-1886
-3280
-4756

query III rowsort
SELECT * FROM tab2 WHERE 63 = - - col2 + + + col2
----

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

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

query I rowsort
SELECT DISTINCT - 57 + - col2 AS col0 FROM tab0
----
-104
-156
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6958
SELECT DISTINCT 9 AS col1, - COUNT( * ) AS col0 FROM tab2 WHERE + 67 - - 72 >= - col1
----
9
-3

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT 9 AS col1, - COUNT ( * ) AS col0 FROM tab2 WHERE + 67 - - 72 >= - col1
----
9
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT 20 AS col0, COUNT( * ) * - MIN( - col0 ) FROM tab2
----
20
225

skipif mysql # not compatible
query II rowsort label-6960
SELECT 20 AS col0, COUNT ( * ) * - MIN ( - col0 ) FROM tab2
----
20
225

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

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

query I rowsort
SELECT ALL 47 + - col0 AS col2 FROM tab1
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL - MAX( - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL - MAX ( - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL + col1 * - ( - col0 ) + + 98 FROM tab2 AS cor0
----
2444
5026
5123

query I rowsort
SELECT + col2 + - + 73 FROM tab0 AS cor0
----
-26
-63
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6966
SELECT DISTINCT + 47 + + col2, CAST( - 42 AS SIGNED ) AS col1 FROM tab1
----
106
-42
115
-42
143
-42

skipif mysql # not compatible
query II rowsort label-6966
SELECT DISTINCT + 47 + + col2, CAST ( - 42 AS INTEGER ) AS col1 FROM tab1
----
106
-42
115
-42
143
-42

query I rowsort
SELECT - col0 + - - 12 AS col1 FROM tab2
----
-34
-52
-63

query I rowsort
SELECT + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL 87 - - 62 FROM tab2
----
149
149
149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 <= NULL
----

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

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

query I rowsort
SELECT + - ( 50 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
2550
3350
3850

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6974
SELECT - CAST( NULL AS DECIMAL ) * - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT - CAST ( NULL AS REAL ) * - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 75 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - 39 * - - COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-6976
SELECT - 39 * - - COUNT ( * ) FROM tab2
----
-117

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT 48 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT 48 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6981
SELECT DISTINCT 20 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT 20 / CAST ( NULL AS REAL ) FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 59 * - 73 FROM tab2 AS cor0
----
-4307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT DISTINCT CAST( + col1 AS SIGNED ) + + 77 FROM tab0
----
158
78
98

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + + 77 FROM tab0
----
158
78
98

query I rowsort
SELECT + col1 + 96 FROM tab0
----
117
177
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - ( + col2 ) col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - MIN( DISTINCT col1 ) FROM tab1 WHERE 38 IN ( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT - MIN ( DISTINCT col1 ) FROM tab1 WHERE 38 IN ( 25 )
----
NULL

query I rowsort
SELECT col0 + ( col2 + 60 ) FROM tab0
----
122
157
256

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6993
SELECT 73 DIV - CAST( col0 DIV col0 AS SIGNED ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-6993
SELECT 73 / - CAST ( col0 / col0 AS INTEGER ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-73
-73
-73

query I rowsort
SELECT col0 * 26 FROM tab1 WHERE ( NULL ) IS NULL
----
1326
2210
2366

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 13 + + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT 49 * MAX( ALL - col2 ) FROM tab2
----
-1127

skipif mysql # not compatible
query I rowsort label-6997
SELECT 49 * MAX ( ALL - col2 ) FROM tab2
----
-1127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + - 82 col2 FROM tab2
----
-65
-65
-65

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

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

query I rowsort
SELECT ( - col1 ) * col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT - 76 + COUNT( * ) * 96 AS col1 FROM tab2
----
212

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT - 76 + COUNT ( * ) * 96 AS col1 FROM tab2
----
212

query I rowsort
SELECT 60 * ( col0 ) AS col1 FROM tab1
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - 83 + COUNT( * ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - 83 + COUNT ( * ) AS col1 FROM tab1
----
-80

query I rowsort
SELECT DISTINCT + ( + 16 ) * col1 FROM tab0
----
1296
16
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT + COUNT( * ) DIV - ( 32 ) - 46 AS col2 FROM tab0 WHERE - col2 BETWEEN NULL AND ( col2 )
----
-46

skipif mysql # not compatible
query I rowsort label-7005
SELECT + COUNT ( * ) / - ( 32 ) - 46 AS col2 FROM tab0 WHERE - col2 BETWEEN NULL AND ( col2 )
----
-46

query I rowsort
SELECT ALL 51 * 80 FROM tab1
----
4080
4080
4080

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( col1 ) AND 98
----

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

query I rowsort
SELECT + 41 * - col2 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT - 41 + - col1 * + col0 AS col0 FROM tab2
----
-2387
-4969
-5066

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

query I rowsort
SELECT + 31 + + col2 FROM tab1
----
127
90
99

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 6 + - 35 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT 26 - + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE col2 NOT IN ( col2 )
----
26

skipif mysql # not compatible
query I rowsort label-7015
SELECT 26 - + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE col2 NOT IN ( col2 )
----
26

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

query I rowsort
SELECT ALL 30 - - col0 AS col1 FROM tab2 AS cor0
----
105
76
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT - - CAST( ( - 69 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-7019
SELECT - - CAST ( ( - 69 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

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

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

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----

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

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

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

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

query I rowsort
SELECT DISTINCT ( + AVG ( col0 ) ) FROM tab1 AS cor0 WHERE ( - 20 ) IN ( - col2 )
----
NULL

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

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

query I rowsort
SELECT ALL + 71 * - 73 AS col0 FROM tab2 AS cor0
----
-5183
-5183
-5183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7027
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( ( ( col0 ) ) AS SIGNED ) / - col0 BETWEEN - col0 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7027
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( ( ( col0 ) ) AS INTEGER ) / - col0 BETWEEN - col0 * col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 BETWEEN col2 AND ( col1 * col2 )
----
51
14
96

query I rowsort
SELECT DISTINCT - 4 FROM tab0 WHERE NOT + 27 * - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT 56 * - col0 AS col1 FROM tab0
----
-4872
-5432
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT ALL - 14 DIV col1 FROM tab0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - 14 / col1 FROM tab0
----
-14
0
0

query I rowsort
SELECT ( - - col0 ) * - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab2
----
38

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 83 <> col0
----

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

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

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

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

query I rowsort
SELECT DISTINCT 21 * + - col1 * 77 + + 70 * ( col2 ) AS col2 FROM tab0 cor0
----
-127687
-33257
5313

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

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

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

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

query I rowsort
SELECT ALL + col1 * + 25 * - + col2 + col0 FROM tab1 cor0
----
-33549
-7290
-79809

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + 76 + + 30 * - MIN( 31 ) * 9 AS col0 FROM tab0 AS cor0
----
-8294

skipif mysql # not compatible
query I rowsort label-7044
SELECT + 76 + + 30 * - MIN ( 31 ) * 9 AS col0 FROM tab0 AS cor0
----
-8294

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT + 96 * - MIN( - - col2 ) AS col1 FROM tab0 AS cor0
----
-960

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT + 96 * - MIN ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT + col2 DIV col2 + - col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7046
SELECT + col2 / col2 + - col0 FROM tab0 AS cor0
----
-14
-86
-96

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT + - 54 DIV col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + - 54 / col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - 80 + - + col0 FROM tab2
----
-126
-144
-155

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

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

skipif mysql # not compatible
query I rowsort label-7052
SELECT col1 * 51 * + - col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT col2 DIV - + col1 - - col0 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-7053
SELECT col2 / - + col1 - - col0 FROM tab1
----
45
74
90

query I rowsort
SELECT ALL + ( + 7 ) * - 12 + + 94 FROM tab1
----
10
10
10

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * ( col1 ) - + col1 FROM tab2
----
2550
4422
5852

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 13
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 13
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 36 <> 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT 31 * + + MAX( ALL + + col2 ) AS col2 FROM tab2
----
1798

skipif mysql # not compatible
query I rowsort label-7063
SELECT 31 * + + MAX ( ALL + + col2 ) AS col2 FROM tab2
----
1798

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( 18 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= NULL
----

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

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

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

query I rowsort
SELECT - ( - - 79 ) FROM tab1 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - + 17 * + COUNT( * ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - + 17 * + COUNT ( * ) FROM tab0 AS cor0
----
-51

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

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NOT col0 / - 61 <> + 2 )
----

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

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

query II rowsort
SELECT ALL - col2 AS col0, col0 * col2 FROM tab0
----
-10
870
-47
705
-99
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col1 + + col1 + col2 <= col1 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7077
SELECT COUNT ( * ) col2 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7078
SELECT * FROM tab0 WHERE NOT ( NOT ( - col1 = CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-7078
SELECT * FROM tab0 WHERE NOT ( NOT ( - col1 = CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col2 ) )
----

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab0 WHERE NOT + 45 + + col2 = - col2 * - col0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) + AVG ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + AVG ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 13 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT + + ( + MIN( ALL - 13 ) ) AS col0 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + + ( + MIN ( ALL - 13 ) ) AS col0 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 * 97 >= - col1 * - 14 / - 83
----

query I rowsort
SELECT DISTINCT + - col1 * 52 FROM tab2 AS cor0
----
-2652
-3484
-4004

query I rowsort
SELECT - col1 - - - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT COUNT( * ) - - 40 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7086
SELECT COUNT ( * ) - - 40 FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT col0 - + - 65 + col1 + + + ( + + 82 ) FROM tab1 AS cor0
----
212
237
285

query II rowsort
SELECT + col1 + + col0 AS col1, col2 AS col0 FROM tab2 cor0
----
141
40
142
58
97
23

query I rowsort
SELECT DISTINCT - col1 * + - col1 + - 77 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT + CAST( - - col2 AS SIGNED ) + col0 * - 10 FROM tab0 cor0
----
-103
-860
-871

skipif mysql # not compatible
query I rowsort label-7090
SELECT + CAST ( - - col2 AS INTEGER ) + col0 * - 10 FROM tab0 cor0
----
-103
-860
-871

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT DISTINCT - 10 DIV - 40 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - 10 / - 40 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 31 AS col2 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL CAST( NULL AS SIGNED ) + - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL CAST ( NULL AS INTEGER ) + - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - SUM( - col0 ) + SUM( ALL + 5 ) * COUNT( * ) * - + COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-7094
SELECT - SUM ( - col0 ) + SUM ( ALL + 5 ) * COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 + 70 col0 FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT 4 + - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT 4 + - COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT ALL col0 + + col0 * - 46 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT COUNT( + 56 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( + 56 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 19 - - - 64 FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col1 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + ( - 48 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT ALL + - col1 DIV + 79 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL + - col1 / + 79 FROM tab0 AS cor0
----
-1
0
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE 31 IN ( + 18 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT 59 * - col1 * col2 AS col1 FROM tab0
----
-12390
-224613
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + COUNT( ALL - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7107
SELECT + COUNT ( ALL - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7108
SELECT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7108
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 65 + + 4, + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 IS NOT NULL OR 45 < NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - col0 + + - col0 FROM tab0 AS cor0
----
-240
-7656
-9506

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col1 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT + 88 <> NULL
----

query I rowsort
SELECT ALL - AVG ( + + col1 ) FROM tab2 WHERE + ( - - 90 ) BETWEEN NULL AND ( 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT - MIN( DISTINCT + 95 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-7116
SELECT - MIN ( DISTINCT + 95 ) FROM tab1
----
-95

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < 10
----

query I rowsort
SELECT DISTINCT + col2 * - col1 + 57 AS col1 FROM tab1
----
-1287
-238
-3139

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT + col1 DIV + - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7119
SELECT + col1 / + - col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 * - 64 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL MIN( ALL + - col2 ) + - MAX( ALL col1 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL MIN ( ALL + - col2 ) + - MAX ( ALL col1 ) FROM tab0
----
-180

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL > - - 92 + col1 )
----

query I rowsort
SELECT col0 + - + 7 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col1 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * - ( 65 ) IS NULL
----

query I rowsort
SELECT - + 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col0 * + - col0 - - + ( - - col0 ) FROM tab2 AS cor0 WHERE + 71 * + 44 * + ( col2 ) * col2 IS NOT NULL
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL COUNT( - - col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7128
SELECT ALL COUNT ( - - col2 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 90 * - col0 ) IS NULL
----

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + - SUM( DISTINCT 92 ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7131
SELECT + - SUM ( DISTINCT 92 ) AS col2 FROM tab2 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT - - 83 DIV + ( + col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7132
SELECT - - 83 / + ( + col0 ) FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT + - 69 - + - ( - 39 ) AS col1 FROM tab1 AS cor0
----
-108
-108
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL COUNT( - col2 ) - - - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL COUNT ( - col2 ) - - - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 85 * + col1 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + col1 + col1 + + - col2 + col1 FROM tab1
----
-44
-54
73

query I rowsort
SELECT - 47 * col1 FROM tab2
----
-2397
-3149
-3619

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + MIN( DISTINCT col0 ) * + 88 AS col0 FROM tab1 AS cor0
----
4488

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + MIN ( DISTINCT col0 ) * + 88 AS col0 FROM tab1 AS cor0
----
4488

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 + - - 81 IN ( - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT DISTINCT + 80 DIV + 48 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + 80 / + 48 AS col2 FROM tab0
----
1

query I rowsort
SELECT - - 33 * + 55 FROM tab2 AS cor0
----
1815
1815
1815

query I rowsort
SELECT DISTINCT - 69 FROM tab2 AS cor0 WHERE NOT ( - + col2 IS NULL )
----
-69

query II rowsort
SELECT + 64, + 4 AS col1 FROM tab2 AS cor0
----
64
4
64
4
64
4

query I rowsort
SELECT ( + 94 ) AS col0 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + 45 + 83 + - - col2 AS col1 FROM tab1 AS cor0
----
187
196
224

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT MAX( DISTINCT - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7148
SELECT MAX ( DISTINCT - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - SUM( 44 ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-7149
SELECT - SUM ( 44 ) FROM tab2
----
-132

query II rowsort
SELECT - col1 + 82, - 52 AS col0 FROM tab0
----
1
-52
61
-52
81
-52

query I rowsort
SELECT - + 86 + - col0 + 69 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
-102
-108
-68

query II rowsort
SELECT + col2 + 17 + - col0 + - + col1 AS col2, - col2 FROM tab2
----
-57
-23
-67
-58
-84
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7153
SELECT 90 DIV - 52 + - COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-7153
SELECT 90 / - 52 + - COUNT ( * ) FROM tab0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 + + col0 col2, - col0 * + col1 + 61 + - col0 AS col1 FROM tab0 AS cor0
----
174
-1853
194
-133
30
-1169

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT DISTINCT + SUM( - col0 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-227
3

skipif mysql # not compatible
query II rowsort label-7156
SELECT DISTINCT + SUM ( - col0 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-227
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT - - 40 AS col2 FROM tab2 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7157
SELECT - - 40 AS col2 FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT COUNT( * ) * + - 16 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7158
SELECT COUNT ( * ) * + - 16 FROM tab1
----
-48

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 78, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + 85 + - COUNT( * ) FROM tab0 WHERE + ( 99 ) BETWEEN NULL AND + - 69
----
85

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 85 + - COUNT ( * ) FROM tab0 WHERE + ( 99 ) BETWEEN NULL AND + - 69
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL 5 + + - COUNT( * ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL 5 + + - COUNT ( * ) AS col2 FROM tab1
----
2

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + ( - col0 ) + + + col0 > ( + 97 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 - - 51 col2 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - 76 + - COUNT( * ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7164
SELECT - 76 + - COUNT ( * ) FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 55 = + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( + + ( - 30 ) ) + - 29 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7167
SELECT - - col0 + + - 1 + 78 + CAST( NULL AS DECIMAL ) * + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT - - col0 + + - 1 + 78 + CAST ( NULL AS REAL ) * + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT DISTINCT ( - + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT ( - + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 52 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) * ( - - col1 ) + - col2 * - - ( + + col1 ) + - 51 * - col1 AS col1 FROM tab1 AS cor0
----
3478
385
84

query I rowsort
SELECT ALL - + col2 - - + col0 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 89 col2, col0 * + col1 + ( + 19 ) FROM tab2 cor0
----
-89
2365
-89
4947
-89
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + + + 9 col1 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT + COUNT( + col0 ) * + + 75 * - 21 col2 FROM tab0
----
-4725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7174
SELECT + COUNT ( + col0 ) * + + 75 * - 21 col2 FROM tab0
----
-4725

query I rowsort
SELECT - col0 * + + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + ( - 56 ) * COUNT( * ) FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-7176
SELECT + ( - 56 ) * COUNT ( * ) FROM tab2
----
-168

query I rowsort
SELECT 88 * - col1 * 94 AS col2 FROM tab0
----
-173712
-670032
-8272

query II rowsort
SELECT - 75, 11 + - col1 + col2 AS col1 FROM tab2
----
-75
-17
-75
-26
-75
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col1 FROM tab0
----
-14
-14
-14

query II rowsort
SELECT + + col2 AS col0, - col2 AS col0 FROM tab0 cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL COUNT( * ) * + 63 AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL COUNT ( * ) * + 63 AS col0 FROM tab0 AS cor0
----
189

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab2 cor0
----
-2346
-4928
-5025

query II rowsort
SELECT DISTINCT col2, + 66 FROM tab1 AS cor0 WHERE NOT ( NOT - 68 < + - ( - - col2 ) * - col1 + 62 )
----
59
66
68
66
96
66

query I rowsort
SELECT ALL 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - + ( - + 88 ) AS col1 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT - + col1 * + + col0 * 21 - - - col1 FROM tab1 cor0
----
-15008
-8930
-89864

query I rowsort
SELECT ALL col0 + 73 AS col0 FROM tab1
----
124
158
164

query I rowsort
SELECT DISTINCT ( + - col1 ) + + - col2 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT CAST( - 1 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7189
SELECT CAST ( - 1 AS INTEGER ) FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 < - - col0 + - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab2 WHERE 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 94 col0 FROM tab0 WHERE NULL NOT IN ( + col1, col2, + col1 )
----

query I rowsort
SELECT DISTINCT - 35 * col2 AS col1 FROM tab2
----
-1400
-2030
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - SUM( DISTINCT + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7195
SELECT - SUM ( DISTINCT + - col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL COUNT( DISTINCT + col2 ) * + 77 + - 12 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
219

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL COUNT ( DISTINCT + col2 ) * + 77 + - 12 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT 16 + + MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7197
SELECT 16 + + MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT DISTINCT 23 + + MAX( ALL col0 ) AS col0, 99 FROM tab0 AS cor0
----
120
99

skipif mysql # not compatible
query II rowsort label-7198
SELECT DISTINCT 23 + + MAX ( ALL col0 ) AS col0, 99 FROM tab0 AS cor0
----
120
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ( - 38 ) + + 87 FROM tab0
----
49
49
49

query I rowsort
SELECT ALL col0 + + + 15 * + + col0 AS col1 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7202
SELECT - MAX( + col2 ) AS col2, 56 DIV + + 87 AS col2 FROM tab1
----
-96
0

skipif mysql # not compatible
query II rowsort label-7202
SELECT - MAX ( + col2 ) AS col2, 56 / + + 87 AS col2 FROM tab1
----
-96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT + CAST( - 68 AS SIGNED ) FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-7203
SELECT + CAST ( - 68 AS INTEGER ) FROM tab2
----
-68
-68
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 * - 68 / + col2 * + col0 * - + ( - col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7205
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND + - 4 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT - CAST( - ( - col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL = 6
----

skipif mysql # not compatible
query I rowsort label-7207
SELECT - CAST ( - ( - col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL = 6
----

query I rowsort
SELECT ALL - 19 AS col2 FROM tab2 AS cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 3 * + - ( + - col1 ) AS col2 FROM tab1
----
4032
885
9588

query I rowsort
SELECT 68 * col1 * 61 * 60 FROM tab1
----
11697360
1244400
3484320

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN + col0 AND 51 * col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * 57 + col0 + + ( - col2 ) * col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - 17 ) + - + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT + SUM( ALL + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7217
SELECT + SUM ( ALL + + col0 ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7219
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
13

query I rowsort
SELECT - - col0 * - - 47 FROM tab2 AS cor0
----
2162
3008
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT SUM( + 83 ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7222
SELECT SUM ( + 83 ) FROM tab1 AS cor0
----
249

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * 58 + col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT ALL 50 * + + 94 AS col0 FROM tab2 AS cor0
----
4700
4700
4700

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - + 60 + - MAX( DISTINCT - + col1 ) + - 16 AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - + 60 + - MAX ( DISTINCT - + col1 ) + - 16 AS col1 FROM tab2 AS cor0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( - - ( + col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 + col0 AS col1 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 29 AS col2 FROM tab2 WHERE - - 49 IS NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT - COUNT( * ) + - + COUNT( - - col2 ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( - - col2 ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT ALL col0 * ( + col2 ) * col1 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL + COUNT( ALL + col1 ) + 70 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + COUNT ( ALL + col1 ) + 70 AS col0 FROM tab0
----
73

query I rowsort
SELECT - 87 FROM tab0 WHERE col0 BETWEEN NULL AND col2 * - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT MIN( 95 ) DIV - 73 col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7237
SELECT MIN ( 95 ) / - 73 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( + ( 76 ) ) AS col1 FROM tab1 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT col1 DIV - 99 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT col1 / - 99 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT DISTINCT 77 DIV - + 12 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT 77 / - + 12 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT DISTINCT - ( - - MAX( - CAST( NULL AS SIGNED ) ) ) + - MIN( + 6 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - ( - - MAX ( - CAST ( NULL AS INTEGER ) ) ) + - MIN ( + 6 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL col0 DIV - 15 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL col0 / - 15 FROM tab2
----
-3
-4
-5

query I rowsort
SELECT DISTINCT + col1 - - col0 + + + 1 + ( + col2 ) * + 82 FROM tab1 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT 13 * + COUNT( * ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT 13 * + COUNT ( * ) AS col2 FROM tab1
----
39

query II rowsort
SELECT col1, col2 + - - col2 FROM tab2
----
51
46
67
116
77
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * + - 69 col0 FROM tab1
----
-3519
-3519
-3519

query II rowsort
SELECT col0, 58 FROM tab1 AS cor0
----
51
58
85
58
91
58

query I rowsort
SELECT ALL + - 51 AS col0 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - SUM( ALL 77 ) AS col0 FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7250
SELECT - SUM ( ALL 77 ) AS col0 FROM tab1 cor0
----
-231

query II rowsort
SELECT DISTINCT 20 AS col0, + 72 FROM tab1 AS cor0
----
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( col0 ) + 80
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( col0 ) + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT CAST( + 26 AS SIGNED ) FROM tab1 cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7253
SELECT CAST ( + 26 AS INTEGER ) FROM tab1 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT + + SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT + + SUM ( + col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 62 AS col2 FROM tab0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT - COUNT( - col2 ) AS col2, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7258
SELECT - COUNT ( - col2 ) AS col2, - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT MAX( DISTINCT + col2 ) DIV + + 36 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT MAX ( DISTINCT + col2 ) / + + 36 AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7260
SELECT ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 15 + col2 FROM tab0 AS cor0 WHERE NOT col0 - + col2 + + 14 IS NULL
----
-5
32
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT DISTINCT - ( - + 17 ) DIV COUNT( * ) - + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT - ( - + 17 ) / COUNT ( * ) - + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-7263
SELECT ALL col0 + 21 DIV + col0 AS col1, - col0 * 52 FROM tab2
----
46
-2392
64
-3328
75
-3900

skipif mysql # not compatible
query II rowsort label-7263
SELECT ALL col0 + 21 / + col0 AS col1, - col0 * 52 FROM tab2
----
46
-2392
64
-3328
75
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT + 33 + - COUNT( * ) col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7264
SELECT + 33 + - COUNT ( * ) col2 FROM tab0 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2 * 0 + + 77
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 20 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT ALL CAST( COUNT( + - col0 ) AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT col1 = - col0
----
3

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL CAST ( COUNT ( + - col0 ) AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT col1 = - col0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT COUNT( * ) + - 46 AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT COUNT ( * ) + - 46 AS col0 FROM tab1
----
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE - 7 * 45 + - 67 + - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 90 + + + col0 col2 FROM tab1
----
192
260
272

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT 33 AS col0, ( - SUM( DISTINCT - col1 ) ) + + ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-7275
SELECT 33 AS col0, ( - SUM ( DISTINCT - col1 ) ) + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7276
SELECT ALL CAST( + + 21 AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL CAST ( + + 21 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
24

query I rowsort
SELECT + 70 * - - col1 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT DISTINCT 36 - + 67 FROM tab2
----
-31

query I rowsort
SELECT 94 - + 1 AS col2 FROM tab1
----
93
93
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 11 AND NULL
----

query I rowsort
SELECT - col1 - - 45 FROM tab2
----
-22
-32
-6

query I rowsort
SELECT DISTINCT 84 - col1 FROM tab1 AS cor0
----
37
70
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7283
SELECT + - col0 + + - col0 + - 14 DIV CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-7283
SELECT + - col0 + + - col0 + - 14 / CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT - + CAST( NULL AS SIGNED ) + - + col2 / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT - + CAST ( NULL AS INTEGER ) + - + col2 / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - col0 + 86 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL - - COUNT( * ) - - 80 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
89

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - - COUNT ( * ) - - 80 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
89

query I rowsort
SELECT + 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7289
SELECT * FROM tab1 WHERE NOT + col2 * + 35 + + CAST( NULL AS SIGNED ) * - 38 * - col1 * col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-7289
SELECT * FROM tab1 WHERE NOT + col2 * + 35 + + CAST ( NULL AS INTEGER ) * - 38 * - col1 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

query II rowsort
SELECT DISTINCT ( - 25 ), - col0 AS col2 FROM tab1 AS cor0
----
-25
-51
-25
-85
-25
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT - MAX( ALL + - col1 ) AS col0, 78 FROM tab0 AS cor0
----
1
78

skipif mysql # not compatible
query II rowsort label-7293
SELECT - MAX ( ALL + - col1 ) AS col0, 78 FROM tab0 AS cor0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - MIN( ALL + - ( - - col1 ) ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7294
SELECT - MIN ( ALL + - ( - - col1 ) ) AS col0 FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT - MIN( - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - MIN ( - col1 ) FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 57 IS NOT NULL
----

query II rowsort
SELECT - col1, col2 + + + 6 AS col1 FROM tab1
----
-14
102
-47
74
-5
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL + COUNT( * ) + ( - 11 ) * + - MIN( DISTINCT - + col1 ) AS col0 FROM tab1 WHERE NOT - col1 + + 48 * - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + COUNT ( * ) + ( - 11 ) * + - MIN ( DISTINCT - + col1 ) AS col0 FROM tab1 WHERE NOT - col1 + + 48 * - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL MIN( DISTINCT ( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL MIN ( DISTINCT ( + col0 ) ) FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 76 + + 87 + - 93 / - + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT ( CAST( 73 AS SIGNED ) ) AS col1 FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7303
SELECT ( CAST ( 73 AS INTEGER ) ) AS col1 FROM tab1
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT ALL col0 DIV 65 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL col0 / 65 AS col1 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1 cor0
----
20

query II rowsort
SELECT col1 * - 40 + - col1, 39 AS col1 FROM tab1 AS cor0
----
-1927
39
-205
39
-574
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7307
SELECT + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7308
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7308
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - + col0 + + - 84 + col0 AS col0, - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-84
2346
-84
4928
-84
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7310
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7311
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT ALL - 24 + 99 * + 46 + 85 AS col0 FROM tab1 AS cor0
----
4615
4615
4615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7313
SELECT CAST( NULL AS SIGNED ) - + col1 AS col2, - col0 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7313
SELECT CAST ( NULL AS INTEGER ) - + col1 AS col2, - col0 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT 56 + + 44 AS col2 FROM tab1 AS cor0
----
100
100
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT + - col0 + - ( - CAST( + col1 AS SIGNED ) ) * col1 * - - 47 col1 FROM tab0 AS cor0
----
-50
20640
308352

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7315
SELECT + - col0 + - ( - CAST ( + col1 AS INTEGER ) ) * col1 * - - 47 col1 FROM tab0 AS cor0
----
-50
20640
308352

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - MAX( ALL + + col2 ) + 40 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7316
SELECT - MAX ( ALL + + col2 ) + 40 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT + MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + MAX ( + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT + col2 + + col2 * + col0 * col0 AS col0 FROM tab1
----
249792
426334
563176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT DISTINCT SUM( ALL + - CAST( NULL AS SIGNED ) ) + 0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7319
SELECT DISTINCT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + 0 col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7320
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( - col1 AS SIGNED ) + + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( - col1 AS INTEGER ) + + + col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT col1 DIV col2 * + 36 + 71 * - - 99 AS col2 FROM tab2 AS cor0
----
7065
7065
7101

skipif mysql # not compatible
query I rowsort label-7322
SELECT col1 / col2 * + 36 + 71 * - - 99 AS col2 FROM tab2 AS cor0
----
7065
7065
7101

query I rowsort
SELECT DISTINCT - - 6 FROM tab2 AS cor0 WHERE 77 < + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT DISTINCT CAST( + CAST( - 6 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT CAST ( + CAST ( - 6 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT - - CAST( - + 55 AS SIGNED ) col0 FROM tab1 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7325
SELECT - - CAST ( - + 55 AS INTEGER ) col0 FROM tab1 AS cor0
----
-55
-55
-55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * 58 * + - 88 + + ( + + 92 ) NOT BETWEEN NULL AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7327
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL < + CAST( + col0 AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL < + CAST ( + col0 AS REAL ) + - col0
----

query I rowsort
SELECT ALL col2 * + 0 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + COUNT( * ) * - 11 FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7329
SELECT + COUNT ( * ) * - 11 FROM tab1 cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7330
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col2, + col0 col0 FROM tab2
----
46
46
64
64
75
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7330
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2, + col0 col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL 11 + + col2 AS col1 FROM tab0
----
110
21
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT DISTINCT - col2 DIV + 80 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7332
SELECT DISTINCT - col2 / + 80 col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7333
SELECT DISTINCT 38 DIV - col2 AS col0, col1 + + col0 AS col0 FROM tab2
----
-1
97
0
141
0
142

skipif mysql # not compatible
query II rowsort label-7333
SELECT DISTINCT 38 / - col2 AS col0, col1 + + col0 AS col0 FROM tab2
----
-1
97
0
141
0
142

query I rowsort
SELECT + 77 * - 33 FROM tab2
----
-2541
-2541
-2541

query I rowsort
SELECT - 26 * 70 * + 24 AS col1 FROM tab0
----
-43680
-43680
-43680

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL COUNT( * ) + + + SUM( DISTINCT 82 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL COUNT ( * ) + + + SUM ( DISTINCT 82 ) FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT 23 + - + COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7338
SELECT 23 + - + COUNT ( * ) FROM tab1
----
20

query I rowsort
SELECT DISTINCT ( + - col0 ) + 40 FROM tab1
----
-11
-45
-51

query I rowsort
SELECT - + 42 * - 69 AS col0 FROM tab1 AS cor0
----
2898
2898
2898

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7341
SELECT + - CAST( - - col2 AS SIGNED ) AS col0, + col0 AS col2 FROM tab0 AS cor0 WHERE ( 21 ) >= + col1 * - col1
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-7341
SELECT + - CAST ( - - col2 AS INTEGER ) AS col0, + col0 AS col2 FROM tab0 AS cor0 WHERE ( 21 ) >= + col1 * - col1
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL ( - 43 ) AS col0 FROM tab1 cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT - - MAX( - col1 ) * + 23 col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7343
SELECT - - MAX ( - col1 ) * + 23 col1 FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL + MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL + MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 BETWEEN - - col2 AND NULL
----
75
67
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 NOT BETWEEN ( col1 * col0 ) AND 83 + + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT COUNT( - ( - 44 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7347
SELECT COUNT ( - ( - 44 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 - - + 32 FROM tab0
----
-55
-65
17

query I rowsort
SELECT DISTINCT col1 + - 97 FROM tab2
----
-20
-30
-46

query III rowsort
SELECT * FROM tab2 WHERE + 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + + col1 - + col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT + + 68 FROM tab2 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT - COUNT( * ) * + 74 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - COUNT ( * ) * + 74 FROM tab1
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 9, col2 col1 FROM tab2 AS cor0
----
9
23
9
40
9
58

query I rowsort
SELECT + ( + 11 ) FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT + COUNT( * ), 98 AS col2 FROM tab1 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-7357
SELECT + COUNT ( * ), 98 AS col2 FROM tab1 AS cor0
----
3
98

query I rowsort
SELECT ALL 59 * - + col1 FROM tab2 cor0
----
-3009
-3953
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7359
SELECT ALL + + col1 * CAST( + CAST( + 97 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
1358
4559
485

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + + col1 * CAST ( + CAST ( + 97 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT - col0 DIV + - col1 + col1 AS col0 FROM tab0 AS cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - col0 / + - col1 + col1 AS col0 FROM tab0 AS cor0
----
25
81
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-7361
SELECT CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + 58 + - - col2 AS col2 FROM tab0 AS cor0
----
105
157
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 34 * + COUNT( - - col0 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 34 * + COUNT ( - - col0 ) FROM tab0
----
-102

query I rowsort
SELECT ALL - 31 FROM tab0, tab1 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query III rowsort
SELECT * FROM tab1 WHERE - col2 - + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0, - 0 AS col0 FROM tab2
----
-46
0
-64
0
-75
0

query I rowsort
SELECT col2 + - 71 FROM tab1
----
-12
-3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL MIN( ALL + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL MIN ( ALL + col0 ) FROM tab0
----
15

query I rowsort
SELECT - 16 + col1 * - 33 AS col0 FROM tab2 AS cor0
----
-1699
-2227
-2557

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT MIN( DISTINCT + - ( col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7370
SELECT MIN ( DISTINCT + - ( col0 ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + col1 * - 3 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT - - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT - - col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * + ( - - col0 ) + - + col2, col2, + col1 )
----

query I rowsort
SELECT ALL - col2 + + 19 AS col0 FROM tab1
----
-40
-49
-77

query I rowsort
SELECT DISTINCT col1 * col2 + + ( ( + + col2 ) ) FROM tab1
----
1440
3264
354

query I rowsort
SELECT + col0 + - + col2 + - ( - col0 ) FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT ALL + col2 - + 82 AS col0 FROM tab0 AS cor0
----
-35
-72
17

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - - col1 col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + ( + + COUNT( * ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT + ( + + COUNT ( * ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col1 IS NULL
----

query I rowsort
SELECT ALL col1 * 51 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1071
4131
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 90 * - col2 * col0 * - ( ( + + col0 ) ) col2 FROM tab2
----
-46
-4380120
-64
-14745600
-75
-29362500

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT 48 DIV - - col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7385
SELECT 48 / - - col2 FROM tab2
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, col0 col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * + - 12 + + col2 * - + ( + - col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL COUNT( - col2 ) * 95 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL COUNT ( - col2 ) * 95 FROM tab2 AS cor0
----
285

query II rowsort
SELECT col1 AS col0, + col1 + col1 FROM tab2 AS cor0
----
51
102
67
134
77
154

query I rowsort
SELECT + col1 * + 59 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( 86, col0, - 63 )
----

query I rowsort
SELECT col0 * + - 55 FROM tab2
----
-2530
-3520
-4125

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7393
SELECT col0 DIV + col2, CAST( - - col1 AS SIGNED ) col0 FROM tab0
----
0
1
0
81
8
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7393
SELECT col0 / + col2, CAST ( - - col1 AS INTEGER ) col0 FROM tab0
----
0
1
0
81
8
21

query II rowsort
SELECT - + col0 + - 72 AS col0, + 34 AS col2 FROM tab2 AS cor0
----
-118
34
-136
34
-147
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT - 46 + CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-31
41
51

skipif mysql # not compatible
query I rowsort label-7395
SELECT - 46 + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-31
41
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT CAST( COUNT( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7396
SELECT CAST ( COUNT ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + col1 * - - col1 * + col1 * - 19 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL - SUM( ALL + col0 ) * - + CAST( + 37 AS SIGNED ) FROM tab2 AS cor0
----
6845

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - SUM ( ALL + col0 ) * - + CAST ( + 37 AS INTEGER ) FROM tab2 AS cor0
----
6845

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL + COUNT( + 34 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + COUNT ( + 34 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT + - col1, + 14 + 90 + 0 + CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 53 * + - 84 IS NULL
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-7400
SELECT + - col1, + 14 + 90 + 0 + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 53 * + - 84 IS NULL
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL - col0 + + + col0 AS col2 FROM tab1 AS cor0 WHERE ( 97 ) IS NULL
----

query I rowsort
SELECT ALL col1 + + + 24 FROM tab0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT - COUNT( * ) + 46 AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - COUNT ( * ) + 46 AS col2 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT 33 + + COUNT( ALL ( + col0 ) ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT 33 + + COUNT ( ALL ( + col0 ) ) AS col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT COUNT( * ) * 6 AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT COUNT ( * ) * 6 AS col1 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT SUM( DISTINCT - + 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT SUM ( DISTINCT - + 58 ) FROM tab1
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT ( + + 45 ) * + col1 - + - col0 FROM tab0
----
1032
142
3660

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT ALL col0 DIV + - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL col0 / + - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT DISTINCT - col1 / - - col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT - col1 / - - col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 55 col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 39 - - col2 NOT BETWEEN - - 66 AND - ( + 4 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT col1 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT col1 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT + 15 AS col2, COUNT( * ) AS col2 FROM tab1
----
15
3

skipif mysql # not compatible
query II rowsort label-7415
SELECT + 15 AS col2, COUNT ( * ) AS col2 FROM tab1
----
15
3

query II rowsort
SELECT col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - 87 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT ALL - col1 DIV - 32 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - col1 / - 32 FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT - + col2 + + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
28
37
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE 25 + - col0 BETWEEN NULL AND 71
----

query I rowsort
SELECT ALL + - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7422
SELECT ALL - col1 AS col1, + CAST( + + 45 AS SIGNED ) FROM tab1 AS cor0
----
-14
45
-47
45
-5
45

skipif mysql # not compatible
query II rowsort label-7422
SELECT ALL - col1 AS col1, + CAST ( + + 45 AS INTEGER ) FROM tab1 AS cor0
----
-14
45
-47
45
-5
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7423
SELECT ALL + CAST( NULL AS DECIMAL ) * + col2 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + CAST ( NULL AS REAL ) * + col2 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7424
SELECT DISTINCT 34 AS col2, - COUNT( * ) col2 FROM tab0 AS cor0
----
34
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7424
SELECT DISTINCT 34 AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0
----
34
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7425
SELECT col1 DIV - col1, col0 - + ( + 2 ) col0 FROM tab0
----
-1
13
-1
85
-1
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7425
SELECT col1 / - col1, col0 - + ( + 2 ) col0 FROM tab0
----
-1
13
-1
85
-1
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT DISTINCT - COUNT( DISTINCT - 18 ) AS col0, + COUNT( * ) AS col2 FROM tab2
----
-1
3

skipif mysql # not compatible
query II rowsort label-7426
SELECT DISTINCT - COUNT ( DISTINCT - 18 ) AS col0, + COUNT ( * ) AS col2 FROM tab2
----
-1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL + CAST( + 18 AS SIGNED ) AS col0 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + CAST ( + 18 AS INTEGER ) AS col0 FROM tab0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT - + 90 col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7430
SELECT - + 90 col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col0 + ( - 1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 91 + - col0 AND 55
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT COUNT( * ) - + - 65 * 35 FROM tab2 WHERE NOT 26 * - col2 <= NULL
----
2275

skipif mysql # not compatible
query I rowsort label-7434
SELECT COUNT ( * ) - + - 65 * 35 FROM tab2 WHERE NOT 26 * - col2 <= NULL
----
2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT + col0 FROM tab2 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) - - col1 + + col1 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7435
SELECT + col0 FROM tab2 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) - - col1 + + col1 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - 85 * - col2 AS col2 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT - + COUNT( - col2 ) * + - SUM( - ( - col0 ) ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - + COUNT ( - col2 ) * + - SUM ( - ( - col0 ) ) FROM tab2 AS cor0
----
555

query I rowsort
SELECT - - ( 91 ) AS col1 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT - ( + - ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col0 + + col2 + + col1 * + + col1 * - + col0 AS col2 FROM tab0
----
-38270
-98353
99

query I rowsort
SELECT DISTINCT + 45 * + + 34 + - col1 FROM tab1
----
1483
1516
1525

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT ALL 42 * + 38, + COUNT( + col1 ) AS col2 FROM tab0
----
1596
3

skipif mysql # not compatible
query II rowsort label-7442
SELECT ALL 42 * + 38, + COUNT ( + col1 ) AS col2 FROM tab0
----
1596
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT SUM( 23 ) * - - 7 * - ( + COUNT( DISTINCT - 93 ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-483

skipif mysql # not compatible
query I rowsort label-7443
SELECT SUM ( 23 ) * - - 7 * - ( + COUNT ( DISTINCT - 93 ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7444
SELECT DISTINCT - CAST( - - col2 AS SIGNED ), - 22 AS col1 FROM tab1
----
-59
-22
-68
-22
-96
-22

skipif mysql # not compatible
query II rowsort label-7444
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ), - 22 AS col1 FROM tab1
----
-59
-22
-68
-22
-96
-22

query I rowsort
SELECT DISTINCT - col2 - + - col1 * - col0 * - - col0 AS col1 FROM tab1 AS cor0
----
-36184
-36510
-389275

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT + - col2 DIV - - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT + - col2 / - - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT - 17 FROM tab2 WHERE - col1 <> - - col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 17 FROM tab2 WHERE - col1 <> - - col0 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 - - + col0 AS col0 FROM tab0
----
174
194
30

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 2 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT col1 + 96 + - 90 AS col0 FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT DISTINCT 2 - col2 AS col0 FROM tab2 AS cor0
----
-21
-38
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 8 * - col0 + col1 DIV + + 82 AS col1 FROM tab0 AS cor0
----
-120
-696
-776

skipif mysql # not compatible
query I rowsort label-7453
SELECT 8 * - col0 + col1 / + + 82 AS col1 FROM tab0 AS cor0
----
-120
-696
-776

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - 57 * COUNT( * ) col2 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7455
SELECT ALL - 57 * COUNT ( * ) col2 FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT - SUM( - 32 ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7456
SELECT - SUM ( - 32 ) AS col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL + ( + col2 ) * + ( - - 41 ) AS col0 FROM tab1 AS cor0
----
2419
2788
3936

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 < + - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL + ( COUNT( * ) ) * + SUM( - 42 ) col1 FROM tab0
----
-378

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7459
SELECT ALL + ( COUNT ( * ) ) * + SUM ( - 42 ) col1 FROM tab0
----
-378

query I rowsort
SELECT DISTINCT + col0 * 64 FROM tab0
----
5568
6208
960

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 23 * + 84 BETWEEN + + 49 * - 79 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN col2 AND + - 40 + - - 34 + col2 * - + col2 AND NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - - col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT - col0 DIV ( - - 51 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT - col0 / ( - - 51 ) FROM tab2
----
-1
-1
0

query II rowsort
SELECT + col1 AS col0, col2 + 16 FROM tab2
----
51
39
67
74
77
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7466
SELECT COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL - SUM( + + ( + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - SUM ( + + ( + col2 ) ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT + 58 + + + 11 + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-7468
SELECT + 58 + + + 11 + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
78

query I rowsort
SELECT DISTINCT - 43 + + col0 + 2 - col1 FROM tab0
----
-107
25
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 98 <> + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col0 * - col2 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7471
SELECT col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col0 * - col2 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT CAST( + - 69 AS SIGNED ) FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-7472
SELECT CAST ( + - 69 AS INTEGER ) FROM tab2
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL + 0 * + ( - col1 ) + col2 + - 31 * + - ( - 60 ) FROM tab2
----
-1802
-1820
-1837

query I rowsort
SELECT ALL col0 + + 29 AS col0 FROM tab2
----
104
75
93

query II rowsort
SELECT ALL 54 AS col2, - col1 + - col0 AS col1 FROM tab2
----
54
-141
54
-142
54
-97

query I rowsort
SELECT - col1 - - 17 FROM tab2
----
-34
-50
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE - 90 * col2 + - 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col0 ) - - 97 FROM tab1
----
12
46
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + col0 = 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 * + 27 ) NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col0 <= + 93 * + col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( col1 / col1 )
----

query I rowsort
SELECT ALL col2 * 28 FROM tab0
----
1316
2772
280

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= 46
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL ( COUNT( * ) ) col2 FROM tab0 WHERE NOT ( - col0 ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT ALL ( COUNT ( * ) ) col2 FROM tab0 WHERE NOT ( - col0 ) <> NULL
----
0

query I rowsort
SELECT ALL + 12 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * col1 + 20 col1 FROM tab2
----
-3907
-5139
-5909

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab2 WHERE + col0 IN ( 34 )
----

query I rowsort
SELECT - 45 + + col2 * + col2 FROM tab2
----
1555
3319
484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT ( col2 ) * - 48 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ( col2 ) * - 48 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 AS col1 FROM tab0 WHERE NOT ( NULL ) >= + col2
----

query I rowsort
SELECT + 35 + col2 FROM tab1
----
103
131
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT + MIN( DISTINCT + col1 ) + - COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7494
SELECT + MIN ( DISTINCT + col1 ) + - COUNT ( * ) AS col2 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT COUNT( ALL + 35 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7495
SELECT COUNT ( ALL + 35 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( - col1 / col2 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE + 37 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 46 * ( - ( 2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7500
SELECT DISTINCT col2 FROM tab2 WHERE CAST( + col2 AS DECIMAL ) * + col0 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT col2 FROM tab2 WHERE CAST ( + col2 AS REAL ) * + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT col1 - 63 FROM tab2
----
-12
14
4

query I rowsort
SELECT - 15 FROM tab1 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7503
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab0
----
0

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + col2 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + col2 + col2 IS NULL
----
0

query I rowsort
SELECT - col2 + - 65 * 47 FROM tab0
----
-3065
-3102
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT COUNT( - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7507
SELECT COUNT ( - col0 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * col1 + - col0 NOT BETWEEN + col0 AND 71
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= 69 + ( + col2 + + 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE + 60 IS NOT NULL
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + + SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7514
SELECT + + SUM ( - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT + - COUNT( * ) DIV + 93 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT + - COUNT ( * ) / + 93 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 + col2 * - 96 FROM tab1 AS cor0
----
-5659
-6481
-9202

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT + - 45 DIV - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7517
SELECT + - 45 / - col2 + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7519
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab2 AS cor0 WHERE ( + col1 ) < col1 * - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT - COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 61 + - col0 * col1 FROM tab1 cor0
----
-4338
-486
-775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT - + 65 DIV + COUNT( * ) + - COUNT( * ) col0 FROM tab2 cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7523
SELECT - + 65 / + COUNT ( * ) + - COUNT ( * ) col0 FROM tab2 cor0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7524
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + COUNT( * ) FROM tab2 WHERE - col0 NOT BETWEEN - 92 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT + COUNT ( * ) FROM tab2 WHERE - col0 NOT BETWEEN - 92 AND + col2
----
0

query I rowsort
SELECT DISTINCT col2 * + - 57 + col1 FROM tab2
----
-1260
-2203
-3239

query I rowsort
SELECT col1 FROM tab1 WHERE NULL NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 70 ) > ( 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / + 14 IN ( 33 * + col1 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - MAX( 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-7531
SELECT - MAX ( 50 ) FROM tab2
----
-50

query I rowsort
SELECT ALL + - col2 - + 17 + - col0 * col1 FROM tab0 AS cor0
----
-1279
-1854
-213

query I rowsort
SELECT ALL - 67 * + col0 FROM tab1 AS cor0
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7534
SELECT ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + - col1 - col2 col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT + - col2 - - col0 AS col0 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT SUM( + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT SUM ( + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - - MIN( ALL 50 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-7538
SELECT - - MIN ( ALL 50 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT DISTINCT + 35 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 + 39 AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 41 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + 28 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + 73 * - COUNT( * ) * - - SUM( DISTINCT col1 ) FROM tab2
----
-42705

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 73 * - COUNT ( * ) * - - SUM ( DISTINCT col1 ) FROM tab2
----
-42705

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7544
SELECT + SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL + 81 * - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + 81 * - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + + col2 AND NULL
----

query I rowsort
SELECT ALL + ( col0 ) * + 82 * col0 AS col1 FROM tab2 AS cor0
----
173512
335872
461250

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT COUNT( * ) * + 95 col1 FROM tab1 cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT DISTINCT COUNT ( * ) * + 95 col1 FROM tab1 cor0
----
285

query I rowsort
SELECT DISTINCT ( 60 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + + col2 * - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL + 26 * 79 FROM tab0 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + 26 * 79 FROM tab0 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( 0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT 12 - 55 AS col0 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7551
SELECT 12 - 55 AS col0 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( + col2 )
----

query II rowsort
SELECT + ( - col2 ) AS col0, col1 * + 70 * 40 FROM tab1
----
-59
14000
-68
131600
-96
39200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 91 col2 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL - ( + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - ( + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT + col1 * - 29 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT MAX( ALL + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7556
SELECT MAX ( ALL + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT 44 * - - 46 AS col2 FROM tab0 AS cor0
----
2024
2024
2024

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + col0 * - 44 FROM tab1 AS cor0
----
-2244
-3740
-4004

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 * - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 95 * 1 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT ALL 84 * - - col2 FROM tab2 cor0
----
1932
3360
4872

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT ALL + 48 DIV col2 + col1 + col1 AS col1 FROM tab0
----
163
2
46

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + 48 / col2 + col1 + col1 AS col1 FROM tab0
----
163
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT MIN( - + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT MIN ( - + col0 ) AS col0 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col2 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + MIN( col0 ) + - + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7566
SELECT + MIN ( col0 ) + - + COUNT ( * ) FROM tab0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 < 2 * col2 + ( + col2 ) * 18
----

query I rowsort
SELECT DISTINCT - + 8 * + col2 + - - ( - + col0 ) FROM tab2 AS cor0
----
-230
-384
-539

query I rowsort
SELECT + + 82 AS col1 FROM tab2 cor0
----
82
82
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 9 + 28 + - 99 * - - col1 ) <> + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 76
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 * + 11 BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 82 ) IS NOT NULL
----

query II rowsort
SELECT + + col2, + 49 FROM tab1 AS cor0
----
59
49
68
49
96
49

query II rowsort
SELECT ALL - col1 + 24 AS col2, + col2 AS col2 FROM tab2
----
-27
23
-43
58
-53
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT - 32 DIV + - 53 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT - 32 / + - 53 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT + col1 - col1 + - - col2 * ( - col2 ) DIV - col0 AS col1 FROM tab2
----
11
25
44

skipif mysql # not compatible
query I rowsort label-7578
SELECT + col1 - col1 + - - col2 * ( - col2 ) / - col0 AS col1 FROM tab2
----
11
25
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL COUNT( * ) + - + 92 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL COUNT ( * ) + - + 92 FROM tab2
----
-89

query I rowsort
SELECT DISTINCT col1 + 17 AS col2 FROM tab1
----
22
31
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT DISTINCT 17 - + SUM( + + col1 ) + + + 50 - - + 73 DIV - COUNT( * ) AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT 17 - + SUM ( + + col1 ) + + + 50 - - + 73 / - COUNT ( * ) AS col0 FROM tab0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT 34 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT 34 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col2 + col1 * - col1 FROM tab0
----
1659
172368
9800

query I rowsort
SELECT col1 - - + col2 * + + col2 FROM tab2
----
1677
3431
580

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7585
SELECT - col0 - - col0 DIV CAST( + col0 AS SIGNED ) AS col1, 28 * - + col0 FROM tab1
----
-50
-1428
-84
-2380
-90
-2548

skipif mysql # not compatible
query II rowsort label-7585
SELECT - col0 - - col0 / CAST ( + col0 AS INTEGER ) AS col1, 28 * - + col0 FROM tab1
----
-50
-1428
-84
-2380
-90
-2548

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - 45 col0 FROM tab0
----
-2

query II rowsort
SELECT ALL col0 - - col0, col0 AS col0 FROM tab1
----
102
51
170
85
182
91

query II rowsort
SELECT ALL col0 - + + col2 AS col1, col1 AS col1 FROM tab1
----
-45
14
23
47
26
5

query I rowsort
SELECT ALL col2 * - col1 + + col1 FROM tab2
----
-1122
-3003
-3819

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 - + - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 90 - - + col2 NOT BETWEEN ( col1 ) + - + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL NOT IN ( + col2, col1 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7596
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - 55 * - - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) BETWEEN - col1 + - - 70 * col2 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - 55 * - - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) BETWEEN - col1 + - - 70 * col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT ALL + + col2 * + - col0 + - col1 + - CAST( NULL AS SIGNED ) + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT ALL + + col2 * + - col0 + - col1 + - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL COUNT( DISTINCT 85 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL COUNT ( DISTINCT 85 ) FROM tab0
----
1

query II rowsort
SELECT ALL - 91 AS col1, + 11 FROM tab2
----
-91
11
-91
11
-91
11

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col0 FROM tab2
----
-13
-5
8

query II rowsort
SELECT col0 AS col0, 77 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7607
SELECT ALL * FROM tab1 WHERE NOT + - CAST( - + 17 AS DECIMAL ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7607
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( - + 17 AS REAL ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 50 + + + col2 FROM tab0
----
149
60
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - + MAX( - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - + MAX ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT 79 / CAST( - + col0 AS SIGNED ) <= + 1 * - col2 + - - col0
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT 79 / CAST ( - + col0 AS INTEGER ) <= + 1 * - col2 + - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - MIN( 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7613
SELECT - MIN ( 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + 80 * 74 FROM tab1 cor0
----
5920
5920
5920

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= ( + col0 * + col1 )
----

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 WHERE - 28 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7617
SELECT * FROM tab0 WHERE + CAST( col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7617
SELECT * FROM tab0 WHERE + CAST ( col2 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7618
SELECT DISTINCT - 91 DIV + COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - 91 / + COUNT ( * ) FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7619
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( CAST( - col1 AS SIGNED ) * 56, - ( 60 ), col2 )
----

skipif mysql # not compatible
query III rowsort label-7619
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( CAST ( - col1 AS INTEGER ) * 56, - ( 60 ), col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT DISTINCT + 22 DIV ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + 22 / ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT + col1 + + - ( + + col2 ) + + col2, + 48 AS col1 FROM tab0 AS cor0
----
1
48
21
48
81
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + + col2 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 < - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 18 * - + col0 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + MIN( + col1 ) + - 14 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7625
SELECT + MIN ( + col1 ) + - 14 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE - - 63 * + col1 / - 30 + 61 IS NULL
----

query I rowsort
SELECT ALL - 4 + + - 92 FROM tab2
----
-96
-96
-96

query I rowsort
SELECT ALL 95 + - col2 + ( - 23 ) AS col2 FROM tab2
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT 14 + - COUNT( * ) + + 87 - + 14 AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT 14 + - COUNT ( * ) + + 87 - + 14 AS col2 FROM tab1
----
84

query II rowsort
SELECT 10 AS col0, + col1 FROM tab0
----
10
1
10
21
10
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 20 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 4 col2 FROM tab0
----
348
388
60

query I rowsort
SELECT ALL 81 * + 12 FROM tab2
----
972
972
972

query I rowsort
SELECT col1 - + col1 * + - ( + 78 ) + + col2 AS col2 FROM tab1 cor0 WHERE NOT ( + 34 * + + ( col1 ) * + col2 + - col0 ) IS NULL
----
1202
3781
454

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL + COUNT( ALL + - 37 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + COUNT ( ALL + - 37 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT 70 AS col2, + col2 AS col1 FROM tab0
----
70
10
70
47
70
99

query II rowsort
SELECT ALL col1, + 28 AS col1 FROM tab0 AS cor0
----
1
28
21
28
81
28

query II rowsort
SELECT + + col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7639
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-3

query II rowsort
SELECT ALL + 65 AS col0, 51 AS col1 FROM tab1 AS cor0
----
65
51
65
51
65
51

query II rowsort
SELECT DISTINCT - - col2 AS col0, 3 AS col0 FROM tab0 AS cor0
----
10
3
47
3
99
3

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - - col0 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT - ( + ( + col2 ) ) * + ( - + CAST( NULL AS SIGNED ) ) / + - col0 - - 68 * 44 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT - ( + ( + col2 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) / + - col0 - - 68 * 44 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT 32 * + MAX( - 71 ) FROM tab0
----
-2272

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT 32 * + MAX ( - 71 ) FROM tab0
----
-2272

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - ( - col1 ) + col0 col0 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT ALL + col2 * - col2 + - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

query I rowsort
SELECT 16 + - col0 + col2 + - 39 + + col2 FROM tab2
----
-23
-7
18

query I rowsort
SELECT ALL - 99 * + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + ( - - 41 ) IN ( + + col0 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - + MAX( - + ( 24 ) ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - + MAX ( - + ( 24 ) ) AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query II rowsort
SELECT ALL - col0 AS col1, - col1 - + - col2 AS col0 FROM tab0 AS cor0
----
-15
-34
-87
-11
-97
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT + - 6 - - - 0 * 93 DIV - ( + - ( col0 ) ) * + + 64 FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-7655
SELECT + - 6 - - - 0 * 93 / - ( + - ( col0 ) ) * + + 64 FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT CAST( NULL AS SIGNED ) - + 47 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT CAST ( NULL AS INTEGER ) - + 47 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 85 - 41 + - - col2 AS col1 FROM tab2
----
102
67
84

query I rowsort
SELECT ALL + 61 * + 24 AS col0 FROM tab0
----
1464
1464
1464

query I rowsort
SELECT col0 * + 33 * + 87 AS col2 FROM tab1
----
146421
244035
261261

query I rowsort
SELECT col2 * 14 FROM tab2
----
322
560
812

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - + col1
----

query I rowsort
SELECT ALL - AVG ( ALL + 95 ) AS col2 FROM tab1 WHERE + + col2 / col0 BETWEEN - + 51 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( - col1 * col0 * col2 + - 50 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( - col1 * col0 * col2 + - 50 ) AND ( NULL )
----
0

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1 WHERE ( - 16 / - col1 * - col0 ) > NULL
----

query II rowsort
SELECT ALL - + ( - col1 ) AS col2, col0 + ( + 43 ) FROM tab0 cor0
----
1
140
21
130
81
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 col2 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7667
SELECT + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7668
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT col2 * - CAST( NULL AS SIGNED ) * - + 50 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT col2 * - CAST ( NULL AS INTEGER ) * - + 50 * - col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * - + 22 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - SUM( + - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7672
SELECT - SUM ( + - col2 ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 30 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT + SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + SUM ( - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + + 32 * + col0 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL col1 + col2 DIV - - col0 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL col1 + col2 / - - col0 FROM tab1
----
15
47
5

query I rowsort
SELECT col1 * col2 * - + 24 * + 28 * - + col0 + col1 + + col2 * - col2 AS col0 FROM tab1
----
16846924
195437215
46052366

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - - 81 * + COUNT( * ) * - 74 AS col2 FROM tab0 AS cor0
----
-17982

skipif mysql # not compatible
query I rowsort label-7679
SELECT - - 81 * + COUNT ( * ) * - 74 AS col2 FROM tab0 AS cor0
----
-17982

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - col0 ) <= 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col1, + 7 + col1 AS col0 FROM tab0 AS cor0
----
-1
8
-21
28
-81
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + 21 * + 87 - COUNT( * ) + - 95 FROM tab2 AS cor0
----
1729

skipif mysql # not compatible
query I rowsort label-7684
SELECT + 21 * + 87 - COUNT ( * ) + - 95 FROM tab2 AS cor0
----
1729

query I rowsort
SELECT + 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT + col1 - - col2 DIV ( - 10 ) FROM tab2
----
49
62
73

skipif mysql # not compatible
query I rowsort label-7686
SELECT + col1 - - col2 / ( - 10 ) FROM tab2
----
49
62
73

query I rowsort
SELECT ( + col0 ) + + + 74 * - 94 FROM tab1
----
-6865
-6871
-6905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT DISTINCT ( ( MAX( ALL + + CAST( - col0 AS SIGNED ) ) ) ) - + 29 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT ( ( MAX ( ALL + + CAST ( - col0 AS INTEGER ) ) ) ) - + 29 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT MIN( + + 72 ) + + ( 90 ) AS col2 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7689
SELECT MIN ( + + 72 ) + + ( 90 ) AS col2 FROM tab0 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + 90 + COUNT( * ) * + 18 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + 90 + COUNT ( * ) * + 18 FROM tab0 AS cor0
----
135

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * col1 + + 50 + - + col1 + + col1 + - col2 * + col1 NOT BETWEEN - + col1 AND NULL )
----

query I rowsort
SELECT ALL + col2 * - 6 AS col0 FROM tab0 WHERE + col2 * + 83 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + ( + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7694
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + MIN( DISTINCT + 53 ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-7695
SELECT + MIN ( DISTINCT + 53 ) AS col2 FROM tab2
----
53

query I rowsort
SELECT - 26 + + - 71 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7697
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 * + 81 AS col0 FROM tab1 cor0
----
-4860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 69 * - - 83 AS col1, - col1 col1 FROM tab0
----
5727
-1
5727
-21
5727
-81

query I rowsort
SELECT DISTINCT + 77 * col2 AS col2 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL COUNT( col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL COUNT ( col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7703
SELECT COUNT( * ) + + COUNT( * ) DIV - MIN( DISTINCT + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7703
SELECT COUNT ( * ) + + COUNT ( * ) / - MIN ( DISTINCT + + col0 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL + COUNT( * ) + - 74 AS col0 FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + COUNT ( * ) + - 74 AS col0 FROM tab2 cor0
----
-71

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( - 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT + col2 + + col0 DIV - col2 AS col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + col2 + + col0 / - col2 AS col0 FROM tab1
----
58
67
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + - ( col1 ) + - 97 * - 71 FROM tab2 cor0
----
1862
1959
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT COUNT( ALL + - 50 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 47 IN ( - - 2 )
----
9

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT COUNT ( ALL + - 50 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 47 IN ( - - 2 )
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 67 * col0 >= + 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col0 * + col1 col1 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT DISTINCT - 48 + + - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) * + 81 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - 48 + + - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + 81 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NULL = + col1
----

query II rowsort
SELECT DISTINCT - - 53 - - - col0 AS col0, - col2 * - + col2 FROM tab2 AS cor0
----
-11
1600
-22
3364
7
529

query I rowsort
SELECT + - 91 * + col1 AS col2 FROM tab2 AS cor0
----
-4641
-6097
-7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * + ( - - col1 ) col1 FROM tab2 AS cor0
----
-1989
-2613
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT + col1 * 12 DIV + 61 FROM tab0
----
0
15
4

skipif mysql # not compatible
query I rowsort label-7721
SELECT + col1 * 12 / + 61 FROM tab0
----
0
15
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7722
SELECT + 78 * - - CAST( NULL AS DECIMAL ) * - SUM( ALL 2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT + 78 * - - CAST ( NULL AS REAL ) * - SUM ( ALL 2 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - COUNT( * ) * + 6 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-7723
SELECT - COUNT ( * ) * + 6 FROM tab0
----
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 * - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - ( - + MAX( ALL - 3 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - ( - + MAX ( ALL - 3 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL - + COUNT( * ) * + CAST( - - 55 AS SIGNED ) FROM tab1 cor0 WHERE ( - col0 ) <> 23 * col0 - - - col2
----
-165

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - + COUNT ( * ) * + CAST ( - - 55 AS INTEGER ) FROM tab1 cor0 WHERE ( - col0 ) <> 23 * col0 - - - col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7727
SELECT - MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7728
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT 86 * col0 AS col0 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7730
SELECT - CAST( - col2 AS SIGNED ) * - col2, - 61 AS col1 FROM tab0 cor0
----
-100
-61
-2209
-61
-9801
-61

skipif mysql # not compatible
query II rowsort label-7730
SELECT - CAST ( - col2 AS INTEGER ) * - col2, - 61 AS col1 FROM tab0 cor0
----
-100
-61
-2209
-61
-9801
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT DISTINCT - 82 DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - 82 / col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - 23 + col1 FROM tab0 AS cor0
----
-2
-22
58

query I rowsort
SELECT - col0 + - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT - 31 + 44 / - 43 * - SUM( - col1 ) + - + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7735
SELECT - 31 + 44 / - 43 * - SUM ( - col1 ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT - col1 + - ( - col2 ) - + 57, col1 AS col0 FROM tab0 cor0
----
-68
21
-91
81
41
1

query I rowsort
SELECT + col2 + - col0 - col1 AS col2 FROM tab0
----
-49
-98
1

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE - - col0 + 29 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 32 + - 64 AS col1 FROM tab1
----
-32

query I rowsort
SELECT DISTINCT 8 FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND + 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7742
SELECT ALL 88 + + - CAST( NULL AS SIGNED ) col1, + 65 + - + 10 * - + COUNT( * ) AS col2 FROM tab1
----
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7742
SELECT ALL 88 + + - CAST ( NULL AS INTEGER ) col1, + 65 + - + 10 * - + COUNT ( * ) AS col2 FROM tab1
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT COUNT( * ) * + ( - COUNT( DISTINCT + + 44 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7743
SELECT COUNT ( * ) * + ( - COUNT ( DISTINCT + + 44 ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7744
SELECT ALL + - MIN( + col0 ) DIV + ( ( - + MAX( - col2 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + - MIN ( + col0 ) / + ( ( - + MAX ( - col2 ) ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ( - COUNT( * ) ) * - 69 + - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7745
SELECT ( - COUNT ( * ) ) * - 69 + - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
201

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 * - 49 IN ( - col0, + col2 + - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7749
SELECT SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT - COUNT( * ) AS col2, + 97 FROM tab2 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-7751
SELECT - COUNT ( * ) AS col2, + 97 FROM tab2 AS cor0
----
-3
97

query II rowsort
SELECT ALL col2 AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + 60 IS NULL
----
15
87
97

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 2, - col0 * col0, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col2 ) col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL - CAST( + + ( col0 ) AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - CAST ( + + ( col0 ) AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col2, + 18 FROM tab0
----
10
18

skipif mysql # not compatible
query II rowsort label-7757
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col2, + 18 FROM tab0
----
10
18

query II rowsort
SELECT DISTINCT + col0, - 36 FROM tab0
----
15
-36
87
-36
97
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 46 * - + COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-7759
SELECT 46 * - + COUNT ( * ) FROM tab1
----
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-7760
SELECT + col0 DIV col2, + col0 AS col2 FROM tab0
----
0
15
0
97
8
87

skipif mysql # not compatible
query II rowsort label-7760
SELECT + col0 / col2, + col0 AS col2 FROM tab0
----
0
15
0
97
8
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7761
SELECT 6, MIN( DISTINCT - col1 ) - - 32 + 25 DIV + + MIN( ALL + + col2 ) AS col1 FROM tab1
----
6
-15

skipif mysql # not compatible
query II rowsort label-7761
SELECT 6, MIN ( DISTINCT - col1 ) - - 32 + 25 / + + MIN ( ALL + + col2 ) AS col1 FROM tab1
----
6
-15

query II rowsort
SELECT + 61 * + col0, col0 AS col2 FROM tab1
----
3111
51
5185
85
5551
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7763
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL + - CAST( + - col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT + MAX( DISTINCT 17 ) FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-7765
SELECT + MAX ( DISTINCT 17 ) FROM tab0 cor0
----
17

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT - 77 + + + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query II rowsort
SELECT col0 + - - col1 * col0 AS col0, col1 AS col2 FROM tab1
----
4368
47
510
5
765
14

query II rowsort
SELECT DISTINCT + 94 * 58 AS col2, col2 FROM tab2
----
5452
23
5452
40
5452
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + - 26 * ( - col2 ), col2, + col1, + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * col2 * - + col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT - col1 * - - col2 * - + 91 AS col0 FROM tab2 AS cor0
----
106743
280280
353626

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT DISTINCT col2 DIV col2 + - col0 + + 45 - + col0 DIV 99 DIV + - col0 * - col1 AS col1 FROM tab1 cor0
----
-39
-45
-5

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT col2 / col2 + - col0 + + 45 - + col0 / 99 / + - col0 * - col1 AS col1 FROM tab1 cor0
----
-39
-45
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 87 + + col0 + + - col0 FROM tab0 AS cor0 WHERE NOT col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + + + col2 col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL + 41 * - COUNT( - + col1 ) FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + 41 * - COUNT ( - + col1 ) FROM tab2 cor0
----
-123

query I rowsort
SELECT ALL - col2 + + + col1 + + 97 FROM tab1 AS cor0
----
15
43
76

query I rowsort
SELECT DISTINCT col0 + - - 92 - + + col2 FROM tab0
----
169
60
90

query I rowsort
SELECT + ( - col2 ) - col0 * - col0 AS col1 FROM tab1
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL 85 + + - COUNT( * ) AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL 85 + + - COUNT ( * ) AS col0 FROM tab2
----
82

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - col1 / + col0 - col1 * - col1 >= - ( + col1 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7784
SELECT COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7784
SELECT COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT ALL - col2 * 65 - + col0 DIV 15 FROM tab0
----
-3056
-6441
-655

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - col2 * 65 - + col0 / 15 FROM tab0
----
-3056
-6441
-655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT - CAST( - 61 AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7786
SELECT - CAST ( - 61 AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 46 * - col0 + col1 AS col2 FROM tab2 AS cor0
----
-2065
-2867
-3383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL - 32 - - + CAST( 83 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - 32 - - + CAST ( 83 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT 25 * COUNT( + - col2 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT 25 * COUNT ( + - col2 ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + - col0 * 44 + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + - col0 * 44 + - col0 IS NULL
----
-3

query I rowsort
SELECT + 66 * + col1 * 67 FROM tab1
----
207834
22110
61908

query I rowsort
SELECT ALL - 72 + - 69 FROM tab1 WHERE col2 IS NULL OR NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT + + ( col1 ), 33 FROM tab0 AS cor0
----
1
33
21
33
81
33

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab1 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + + MAX( - 62 ) * 84 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5208

skipif mysql # not compatible
query I rowsort label-7795
SELECT + + MAX ( - 62 ) * 84 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT ALL - CAST( NULL AS SIGNED ) / - AVG ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 col0 FROM tab1 AS cor0
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + col0 ) ) col0 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT SUM( ALL + 40 ) AS col2 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT SUM ( ALL + 40 ) AS col2 FROM tab0
----
120

query I rowsort
SELECT col2 * - 31 * - + 87 FROM tab1
----
159123
183396
258912

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT - AVG ( ALL + - ( - + col1 ) ) + + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT - AVG ( ALL + - ( - + col1 ) ) + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT - - MIN( ALL col1 ) FROM tab2 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - - MIN ( ALL col1 ) FROM tab2 WHERE NULL IS NULL
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7805
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7805
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 38 AND NULL
----

query I rowsort
SELECT + + 98 AS col0 FROM tab2 AS cor0
----
98
98
98

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT + - 32 DIV + 24 + + COUNT( * ) FROM tab2 AS cor0 WHERE ( - + col2 ) IN ( - col2, - 19 + + col1, - + col0 DIV + col1 * - col0 + - col2, - 5 )
----
2

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + - 32 / + 24 + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - + col2 ) IN ( - col2, - 19 + + col1, - + col0 / + col1 * - col0 + - col2, - 5 )
----
2

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL ( - - ( - col2 ) ) * - - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col1 BETWEEN - col0 / - 16 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - 6 + - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7813
SELECT - 6 + - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7814
SELECT ALL + - col1 AS col1, - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-7814
SELECT ALL + - col1 AS col1, - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + + ( + 86 ) * + 96 / + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) + 56 AS col1 FROM tab1 AS cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) + 56 AS col1 FROM tab1 AS cor0
----
3
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT - 62 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT - 62 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - 59 AS col2, col0 + - + col1 col0 FROM tab2 AS cor0
----
-13
-5
16
8
5
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT + 68 * + ( - col2 ) FROM tab0 WHERE + ( - col0 ) >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7821
SELECT + 68 * + ( - col2 ) FROM tab0 WHERE + ( - col0 ) >= + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 14 IN ( + col2, 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + 37 + + MAX( col2 ) * + COUNT( * ) AS col2 FROM tab1
----
325

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 37 + + MAX ( col2 ) * + COUNT ( * ) AS col2 FROM tab1
----
325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL col0 + + CAST( NULL AS SIGNED ) / col0 + - 31 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) / col0 + - 31 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + 51 FROM tab2
----
102
118
128

query I rowsort
SELECT DISTINCT - 72 - + + col1 - 57 + 36 FROM tab1 AS cor0
----
-107
-140
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT + + col0 - + 72 * col0 DIV 12 FROM tab1 AS cor0
----
-255
-425
-455

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + + col0 - + 72 * col0 / 12 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT + - 53 * col0 * 91 * col2 FROM tab1 AS cor0
----
-23613408
-24187345
-29844724

query I rowsort
SELECT - col1 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7832
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 22 AS col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 75a515c371c776cbba111bce5ecd9393

skipif mysql # not compatible
query II rowsort label-7832
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 22 AS col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 75a515c371c776cbba111bce5ecd9393

query I rowsort
SELECT + + 46 AS col2 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL - + MAX( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - + MAX ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 = - - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL MIN( DISTINCT - 16 ) AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL MIN ( DISTINCT - 16 ) AS col1 FROM tab2
----
-16

query I rowsort
SELECT ( + - col2 ) * + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT DISTINCT 30 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT 30 / + col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT COUNT( * ) * - 31 AS col0, + 16 FROM tab0
----
-93
16

skipif mysql # not compatible
query II rowsort label-7841
SELECT COUNT ( * ) * - 31 AS col0, + 16 FROM tab0
----
-93
16

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN col2 * col2 - - + col0 * - col0 * + 58 + - 15 AND 67 * col0 * - col0 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT + 96 DIV + + 40 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7843
SELECT + 96 / + + 40 AS col0 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT COUNT( DISTINCT - - 85 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT COUNT ( DISTINCT - - 85 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT - 49 * + SUM( + 20 ) FROM tab2
----
-2940

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 49 * + SUM ( + 20 ) FROM tab2
----
-2940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab2 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 AS cor0 WHERE NOT - col0 / + 11 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT col2 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT col2 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 + + + col0 * - + 8 FROM tab2
----
-347
-491
-579

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT CAST( MIN( + + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7854
SELECT CAST ( MIN ( + + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - + col1 - 35 FROM tab1 AS cor0
----
-40
-49
-82

query I rowsort
SELECT + 41 - + col0 * + 13 FROM tab2 AS cor0
----
-557
-791
-934

query II rowsort
SELECT DISTINCT col2 AS col1, + 70 AS col0 FROM tab1
----
59
70
68
70
96
70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN NULL AND - col2 - + col0 + - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col1 + - 11 AS col0 FROM tab2
----
40
56
66

query I rowsort
SELECT 75 - col2 - col1 FROM tab1
----
-35
-40
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7861
SELECT ALL col0 DIV 97 + - col0 + 45 AS col2, - CAST( + col0 AS SIGNED ) * + col0 AS col2 FROM tab2
----
-1
-2116
-19
-4096
-30
-5625

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL col0 / 97 + - col0 + 45 AS col2, - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2
----
-1
-2116
-19
-4096
-30
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - COUNT( * ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7862
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 + + col1 - col2 AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT - MIN( - col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - MIN ( - col2 ) AS col2 FROM tab0
----
99

query II rowsort
SELECT - 99 AS col1, col0 AS col2 FROM tab1
----
-99
51
-99
85
-99
91

query I rowsort
SELECT ALL col0 * - 53 AS col1 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT + 86 * + col1 AS col0 FROM tab2 AS cor0
----
4386
5762
6622

query I rowsort
SELECT DISTINCT - 53 * col0 + + 0 FROM tab2 AS cor0
----
-2438
-3392
-3975

query I rowsort
SELECT ALL - - 69 AS col1 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT - ( + col2 ) + + CAST( - - 1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7870
SELECT - ( + col2 ) + + CAST ( - - 1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 AS cor0 WHERE col1 / col1 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 < ( 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > 42 + - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7873
SELECT + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > 42 + - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab1 cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - 71
----

query I rowsort
SELECT ALL + - 18 * + - col0 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT + col1 * - 90 AS col0 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT ALL + ( - col2 ) * - + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7880
SELECT * FROM tab2 WHERE NOT NULL <= col1 + - - col1 + - + col2 * ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7880
SELECT * FROM tab2 WHERE NOT NULL <= col1 + - - col1 + - + col2 * ( + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + col2, - col0 + + 5 AS col1 FROM tab2
----
23
-41
40
-59
58
-70

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + + 62 * + col2 FROM tab0 AS cor0
----
2914
6138
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col0 ) + - - col2 col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT - 76 DIV + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 76 / + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - - 80 + - 47 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 84 + + 88 FROM tab1 AS cor0
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7890
SELECT * FROM tab0 WHERE 60 + + ( - col2 ) * - + 43 * - + CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7890
SELECT * FROM tab0 WHERE 60 + + ( - col2 ) * - + 43 * - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + COUNT( - 46 ) col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT + COUNT ( - 46 ) col0 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT col2 + + col2 * - - 25 + - col1 + - col2 FROM tab1
----
1470
1653
2386

query I rowsort
SELECT DISTINCT + 78 - + col1 * + 12 FROM tab2 AS cor0
----
-534
-726
-846

query I rowsort
SELECT + col0 + - ( + 84 ) AS col2 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT col0 + col1 + - col2 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT - col0 + + col2 + + 87 FROM tab2 AS cor0
----
63
64
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - col1 / - - 48 AND NULL
----

query I rowsort
SELECT - - col0 + + col0 * - col0 + - 24 AS col2 FROM tab2 AS cor0
----
-2094
-4056
-5574

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT - 40 AS col1, + COUNT( * ) FROM tab2
----
-40
3

skipif mysql # not compatible
query II rowsort label-7900
SELECT - 40 AS col1, + COUNT ( * ) FROM tab2
----
-40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT - MAX( 97 ) col1 FROM tab1
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT - MAX ( 97 ) col1 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT - 8 AS col0, COUNT( * ) col1 FROM tab0 AS cor0
----
-8
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7902
SELECT - 8 AS col0, COUNT ( * ) col1 FROM tab0 AS cor0
----
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7903
SELECT + - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL - - MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - - MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
8

query I rowsort
SELECT ( + - col0 ) + 57 AS col1 FROM tab2 AS cor0
----
-18
-7
11

query II rowsort
SELECT DISTINCT - col0 AS col0, + col0 + + 0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT DISTINCT + 75 DIV 54 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + 75 / 54 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT MAX( + - 20 ) * + 31 AS col2 FROM tab2 AS cor0
----
-620

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT MAX ( + - 20 ) * + 31 AS col2 FROM tab2 AS cor0
----
-620

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + 46 IS NULL
----

query I rowsort
SELECT ALL + 67 + - 94 + - 46 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE 33 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE 33 + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * + 26 col1 FROM tab2
----
-182
-182
-182

query I rowsort
SELECT DISTINCT - 95 FROM tab2 cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT + + CAST( NULL AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT + + CAST ( NULL AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - ( - 41 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - 82 IS NULL
----

query I rowsort
SELECT col2 + - col2 * - 59 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col2 + + ( + 32 ) FROM tab0
----
-15
-67
22

query I rowsort
SELECT DISTINCT - col2 + - - 94 FROM tab2
----
36
54
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 95 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 95 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 11 col1 FROM tab2 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) * COUNT( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) * COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT ALL + col2 DIV - - col1 - + col2 AS col2 FROM tab1 cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + col2 / - - col1 - + col2 AS col2 FROM tab1 cor0
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + + 97 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7930
SELECT + + 97 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

query II rowsort
SELECT DISTINCT + - col1, 87 + 24 AS col0 FROM tab0 AS cor0
----
-1
111
-21
111
-81
111

query I rowsort
SELECT - col0 * + 32 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT - + COUNT( * ) + + 83 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
80

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT - + COUNT ( * ) + + 83 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
80

query I rowsort
SELECT DISTINCT + col0 * - + 23 AS col2 FROM tab2 AS cor0
----
-1058
-1472
-1725

query I rowsort
SELECT 68 * - 5 AS col1 FROM tab0
----
-340
-340
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT 8 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT 8 / col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - + 65 + - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - + 65 + - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-56

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + - col1 * + + col0 * col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT + 77 FROM tab1 AS cor0 WHERE NULL IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + 1 + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7943
SELECT + 1 + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 56 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col0 + - 13 AS col2 FROM tab1
----
-104
-64
-98

query II rowsort
SELECT ALL col2 + + col1 AS col2, - col2 AS col1 FROM tab1
----
110
-96
115
-68
64
-59

query III rowsort
SELECT * FROM tab2 WHERE + + col2 < NULL
----

query I rowsort
SELECT - - 9 AS col2 FROM tab2 WHERE 31 * + + col0 >= - col2 AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL COUNT( * ) + + - 45 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL COUNT ( * ) + + - 45 AS col1 FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query II rowsort
SELECT - - 50, col1 FROM tab1 AS cor0
----
50
14
50
47
50
5

query I rowsort
SELECT - col2 * 81 AS col2 FROM tab0 AS cor0
----
-3807
-8019
-810

query II rowsort
SELECT + col1, + col2 * - ( 80 ) FROM tab2 AS cor0
----
51
-1840
67
-4640
77
-3200

query I rowsort
SELECT 60 + + - 2 - - col1 * - col2 FROM tab0
----
-152
-3749
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - SUM( DISTINCT + + 29 ) * + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-7957
SELECT - SUM ( DISTINCT + + 29 ) * + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-261

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 95 - ( col1 ) FROM tab2
----
18
28
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7960
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col2 FROM tab2
----
NULL

query I rowsort
SELECT + 83 FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
83
83
83

query I rowsort
SELECT + - 71 FROM tab2 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT - SUM( - + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - SUM ( - + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + - col2 * - - col1 * + col2 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-129061
-17485
-217372

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT + AVG ( ALL + 50 ) * + CAST( NULL AS SIGNED ) / + 74 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT + AVG ( ALL + 50 ) * + CAST ( NULL AS INTEGER ) / + 74 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + col2 * + - 72, col2 AS col0 FROM tab0 AS cor0
----
-3384
47
-7128
99
-720
10

query I rowsort
SELECT ALL + col2 * + - col2 + - col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7970
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 71 < CAST( 36 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7970
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 71 < CAST ( 36 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 * - - 97 + - 80 col1 FROM tab0 AS cor0
----
-8616
-8616
-8616

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT - COUNT( * ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT 37 DIV + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7973
SELECT 37 / + COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT ALL - col2 DIV - col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - col2 / - col2 AS col2 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT 78 DIV + + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7975
SELECT 78 / + + col0 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 40 ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT col0 * + 97 AS col1 FROM tab2 AS cor0
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - MIN( ALL - 91 ) * 48 AS col1 FROM tab1
----
4368

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - MIN ( ALL - 91 ) * 48 AS col1 FROM tab1
----
4368

query I rowsort
SELECT DISTINCT + col1 * 63 FROM tab1
----
2961
315
882

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 WHERE ( - col1 ) BETWEEN - col1 - col2 AND col1
----
-9

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 WHERE ( - col1 ) BETWEEN - col1 - col2 AND col1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - 94 * + col0 AND NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 + + 81 AS col0 FROM tab2
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT MIN( DISTINCT ( - ( - col1 ) ) ) + - COUNT( * ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7987
SELECT MIN ( DISTINCT ( - ( - col1 ) ) ) + - COUNT ( * ) AS col2 FROM tab2
----
48

query I rowsort
SELECT + col1 * 22 AS col2 FROM tab2
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT 92 + 94 * MAX( DISTINCT + col0 ) FROM tab2
----
7142

skipif mysql # not compatible
query I rowsort label-7989
SELECT 92 + 94 * MAX ( DISTINCT + col0 ) FROM tab2
----
7142

query I rowsort
SELECT ALL + col1 - - col0 FROM tab1 WHERE ( col0 ) NOT IN ( col2 + + 50 )
----
138
65
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT ALL 44 DIV SUM( ALL - ( col0 ) ) + + COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7991
SELECT ALL 44 / SUM ( ALL - ( col0 ) ) + + COUNT ( * ) col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 95 * col2 ) <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL - MAX( - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - MAX ( - col0 ) FROM tab0
----
15

query I rowsort
SELECT col0 * + col1 + - ( + col2 + 44 ) FROM tab1
----
322
4165
574

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7996
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL COUNT( * ) * 46 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL COUNT ( * ) * 46 FROM tab1
----
138

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 * + 6 <> 34 + + col0
----

query I rowsort
SELECT 90 - - 53 AS col2 FROM tab0
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT 27 + + COUNT( * ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8000
SELECT 27 + + COUNT ( * ) AS col1 FROM tab1
----
30

query I rowsort
SELECT DISTINCT - 43 FROM tab2 WHERE NOT - 55 IS NULL
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT col0 + + 99 NOT BETWEEN - col0 AND + col2
----

query I rowsort
SELECT ALL + ( + col1 ) * col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT - col0 NOT IN ( + 3 * + col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8005
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT - col0 NOT IN ( + 3 * + col1 + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL - 79 * CAST( CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab1
----
-1106
-3713
-395

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - 79 * CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT - 30 AS col2 FROM tab1 WHERE NOT col2 BETWEEN ( col2 + - col2 * 87 ) AND col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT - 15 DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 15 / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL 76 DIV col2 + + col1 FROM tab0
----
1
28
82

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL 76 / col2 + + col1 FROM tab0
----
1
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT + col1 DIV - 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT + col1 / - 86 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 98 * 7 FROM tab0
----
686
686
686

query I rowsort
SELECT 0 * - 65 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT COUNT( * ) * COUNT( * ) - 79 col0 FROM tab2
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8013
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - 79 col0 FROM tab2
----
-70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 47 + col1 * - col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 95 - col0 AS col1 FROM tab2 AS cor0
----
-141
-159
-170

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col2 + + 72 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT + 10 DIV + 98 + 78 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 10 / + 98 + 78 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 / col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 72 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + 61 + - 91 AS col0 FROM tab1 AS cor0
----
214
2776
763

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + 61 + - 91 AS col0 FROM tab1 AS cor0
----
214
2776
763

query I rowsort
SELECT col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL - SUM( DISTINCT + CAST( + 63 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - SUM ( DISTINCT + CAST ( + 63 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL + 67 * + COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + 67 * + COUNT ( * ) FROM tab2
----
201

query I rowsort
SELECT + 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 >= - 69
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT + + 3 * COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8026
SELECT + + 3 * COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL + 74 * COUNT( * ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + 74 * COUNT ( * ) FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - COUNT( * ) * - - 59 AS col1 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-8028
SELECT - COUNT ( * ) * - - 59 AS col1 FROM tab2
----
-177

query I rowsort
SELECT col2 * 81 FROM tab2 WHERE NOT + 10 + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( 29 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 76 NOT BETWEEN ( col0 ) AND + col1 * col2 + - col0 * + 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT - 95 DIV - col1 AS col2 FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
19
2
6

skipif mysql # not compatible
query I rowsort label-8032
SELECT - 95 / - col1 AS col2 FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
19
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ALL + 89 DIV 55 * col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + 89 / 55 * col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8034
SELECT ALL 20 DIV SUM( - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL 20 / SUM ( - col1 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT ALL COUNT( * ) DIV + - 16 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL COUNT ( * ) / + - 16 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT 64 * + COUNT( * ) + - COUNT( * ) * MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT 64 * + COUNT ( * ) + - COUNT ( * ) * MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE 41 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8039
SELECT + - CAST( + SUM( CAST( CAST( 32 AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) * - 39 col2 FROM tab2 cor0
----
3744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8039
SELECT + - CAST ( + SUM ( CAST ( CAST ( 32 AS REAL ) AS INTEGER ) ) AS INTEGER ) * - 39 col2 FROM tab2 cor0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL + + COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + + COUNT ( + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 * - col0 = col1
----
1
21
81

query I rowsort
SELECT + 69 * col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 83 + + col1 AS col2 FROM tab0 AS cor0
----
104
164
84

query I rowsort
SELECT DISTINCT + 40 * + + col2 AS col0 FROM tab0 AS cor0
----
1880
3960
400

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT DISTINCT 53 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT 53 / + col2 FROM tab2
----
0
1
2

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * 77 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE ( + 12 * col1 ) <= + col1 + - 3
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE ( + 12 * col1 ) <= + col1 + - 3
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN - ( 70 ) / + 8 AND NULL
----

query I rowsort
SELECT DISTINCT - + 80 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8050
SELECT ALL - COUNT( * ) / - - ( + 60 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - COUNT ( * ) / - - ( + 60 ) + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 + 41 ) = col1 + col0 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT + CAST( 85 AS SIGNED ) AS col1 FROM tab0 cor0
----
85

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + CAST ( 85 AS INTEGER ) AS col1 FROM tab0 cor0
----
85

query I rowsort
SELECT ( - + 86 ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL + + MIN( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + + MIN ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * col1 AND ( - 83 * col1 + + col0 * 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + - + 14 * col2 col1 FROM tab2 AS cor0
----
-276
-496
-737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * - 56 + - 94 + - 24 col2 FROM tab1 AS cor0
----
-1798
-1798
-1798

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col0 * ( col2 * 78 ) AND ( - col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - + MIN( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - + MIN ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 AS cor0 WHERE ( + col2 ) <= NULL
----

query I rowsort
SELECT - 37 + + + col1 AS col0 FROM tab2 AS cor0
----
14
30
40

query I rowsort
SELECT ALL + col0 * - 77 * 2 AS col0 FROM tab2 AS cor0
----
-11550
-7084
-9856

query I rowsort
SELECT ALL - + 67 * col1 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL = + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT 59 + 0 * - COUNT( * ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8065
SELECT 59 + 0 * - COUNT ( * ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( col0 ) <> ( + col2 )
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 + 78 FROM tab0
----
159
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT MIN( col0 ) AS col2 FROM tab2 WHERE - col0 + - col0 + col1 * 66 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT MIN ( col0 ) AS col2 FROM tab2 WHERE - col0 + - col0 + col1 * 66 IN ( + col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL COUNT( * ) - - - 88 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL COUNT ( * ) - - - 88 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + - SUM( - 60 ) AS col1 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8070
SELECT + - SUM ( - 60 ) AS col1 FROM tab0 AS cor0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + 29 col2 FROM tab1 AS cor0
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL MIN( - - ( - col2 ) ) - - 62 AS col2 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL MIN ( - - ( - col2 ) ) - - 62 AS col2 FROM tab1 AS cor0
----
-34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 + - 72 <> ( - + ( col0 ) + col2 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + + col1 * - col1 AS col2 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT ALL 37 AS col0 FROM tab0 WHERE + 90 + - col2 * - - col2 IN ( col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT - COUNT( * ), + 8 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8076
SELECT - COUNT ( * ), + 8 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL - 65 + + COUNT( * ) * + 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
745

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - 65 + + COUNT ( * ) * + 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 58 col2, 23 FROM tab2
----
58
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - 10 * MIN( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT - 58 + - 23 NOT BETWEEN - col1 - - col0 AND ( 49 - - col2 * - ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 10 * MIN ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT - 58 + - 23 NOT BETWEEN - col1 - - col0 AND ( 49 - - col2 * - ( + col0 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 98 NOT BETWEEN + col0 AND ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8081
SELECT + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT ALL - 36 DIV COUNT( * ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - 36 / COUNT ( * ) FROM tab0 cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 56 ) col2 FROM tab1 AS cor0
----
56
56
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 82 ) <= + 23 * + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT DISTINCT - - SUM( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
-103

query I rowsort
SELECT ALL ( col0 ) / - + ( + 55 ) AS col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL COUNT( * ) * + - 20 AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL COUNT ( * ) * + - 20 AS col2 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT + 28 * + COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + 28 * + COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= - col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 76 * 4 FROM tab2 WHERE NOT 51 * col1 + - col2 IS NULL
----
304
304
304

onlyif mysql # DIV for integer division: 
query II rowsort label-8091
SELECT - col0 col2, 70 DIV + - 36 AS col0 FROM tab1 cor0
----
-51
-1
-85
-1
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8091
SELECT - col0 col2, 70 / + - 36 AS col0 FROM tab1 cor0
----
-51
-1
-85
-1
-91
-1

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT - ( 99 ) * - COUNT( + col2 + + CAST( NULL AS SIGNED ) ) + - COUNT( - 40 ) AS col2 FROM tab2 WHERE ( - - col1 * - - ( - col1 ) ) NOT IN ( - col0 * + col1 + - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8093
SELECT - ( 99 ) * - COUNT ( + col2 + + CAST ( NULL AS INTEGER ) ) + - COUNT ( - 40 ) AS col2 FROM tab2 WHERE ( - - col1 * - - ( - col1 ) ) NOT IN ( - col0 * + col1 + - col0 )
----
-3

query I rowsort
SELECT DISTINCT col1 + - + 25 AS col1 FROM tab1
----
-11
-20
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT col0 FROM tab0 WHERE - - CAST( ( 93 ) AS SIGNED ) * + + ( + - 81 ) * - col0 >= col2
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8095
SELECT col0 FROM tab0 WHERE - - CAST ( ( 93 ) AS INTEGER ) * + + ( + - 81 ) * - col0 >= col2
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT - col1 DIV + 23 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8096
SELECT - col1 / + 23 AS col0 FROM tab0 AS cor0
----
-3
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( + 99 / - col0 * - col2 ) <= 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT + 8 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + 8 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT + ( - col1 ) - - - col2 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-100
-231
-3888

query I rowsort
SELECT + col0 - col2 * + 17 AS col2 FROM tab0
----
-1586
-784
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL - 95 + + COUNT( * ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - 95 + + COUNT ( * ) FROM tab1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) + + 66 FROM tab0
----
113
165
76

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) + + 66 FROM tab0
----
113
165
76

query I rowsort
SELECT DISTINCT - + col0 * + 45 AS col1 FROM tab0 WHERE + 4 IS NOT NULL
----
-3915
-4365
-675

query I rowsort
SELECT ALL - 68 + + col0 FROM tab2
----
-22
-4
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 11 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT - 76 DIV - 82 + + COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 76 / - 82 + + COUNT ( * ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 24 * 60 ) > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - + 72 AND ( - - col0 + - 95 )
----
46
51
23
75
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8110
SELECT col2 AS col1, 30 DIV col1 + col1 * - - ( + + col1 ) * - 81 FROM tab0 AS cor0
----
10
-35720
47
-531441
99
-51

skipif mysql # not compatible
query II rowsort label-8110
SELECT col2 AS col1, 30 / col1 + col1 * - - ( + + col1 ) * - 81 FROM tab0 AS cor0
----
10
-35720
47
-531441
99
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8111
SELECT + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

query II rowsort
SELECT ALL col1 * - col2, + col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT - COUNT( ALL col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8115
SELECT - COUNT ( ALL col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0 WHERE 70 NOT IN ( col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + MIN( ALL 25 ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8117
SELECT + MIN ( ALL 25 ) AS col1 FROM tab2
----
25

query II rowsort
SELECT DISTINCT ( 24 ) + + + col1 AS col0, + col1 AS col2 FROM tab1
----
29
5
38
14
71
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT + COUNT( * ) AS col1, 78 AS col0 FROM tab0
----
3
78

skipif mysql # not compatible
query II rowsort label-8119
SELECT + COUNT ( * ) AS col1, 78 AS col0 FROM tab0
----
3
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8122
SELECT ALL 14 + col2 + + - col2 - 63 DIV col2 col0, 56 * - col2 + + col0 AS col1 FROM tab0
----
13
-2617
14
-5447
8
-473

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8122
SELECT ALL 14 + col2 + + - col2 - 63 / col2 col0, 56 * - col2 + + col0 AS col1 FROM tab0
----
13
-2617
14
-5447
8
-473

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 63 + + col0 * + col0 <> NULL
----

query II rowsort
SELECT ( + 63 ) * + col0, col1 FROM tab2 AS cor0
----
2898
51
4032
77
4725
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8126
SELECT + SUM ( + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8127
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8128
SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT - + COUNT( * ) + + 15 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - + COUNT ( * ) + + 15 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL + - col0 + + 77 * ( + 25 ) FROM tab0 AS cor0
----
1828
1838
1910

query I rowsort
SELECT DISTINCT - 58 * + + 97 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
-129375
-225000
-326250

query I rowsort
SELECT DISTINCT + 56 * - - col2 AS col1 FROM tab2
----
1288
2240
3248

query I rowsort
SELECT - + col1 FROM tab0 WHERE 26 >= col1 / - col2
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) * + COUNT( * ) + - COUNT( * ) / - CAST( + 37 AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + - COUNT ( * ) / - CAST ( + 37 AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 BETWEEN ( + 50 * + - 53 ) AND col2 / 28
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 22 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT + 99 * - - col2 FROM tab0 AS cor0
----
4653
9801
990

query I rowsort
SELECT ( - col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + col0 + + col1 + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT DISTINCT col2 * col1 DIV - + 14 AS col0 FROM tab2 AS cor0
----
-220
-277
-83

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT col2 * col1 / - + 14 AS col0 FROM tab2 AS cor0
----
-220
-277
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 + + col2 col0 FROM tab0 AS cor0
----
-33
-70
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 66 ) IS NULL
----

query I rowsort
SELECT - + 11 + 0 * col2 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT + 73 + - 31 DIV - COUNT( DISTINCT col1 ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 73 + - 31 / - COUNT ( DISTINCT col1 ) FROM tab0 cor0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-8145
SELECT ALL + + col2 DIV col0, 13 AS col2 FROM tab1 AS cor0
----
0
13
0
13
1
13

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL + + col2 / col0, 13 AS col2 FROM tab1 AS cor0
----
0
13
0
13
1
13

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab0
----
-23

query I rowsort
SELECT + col2 / + col0 + + col2 AS col0 FROM tab1 WHERE ( ( NOT NULL NOT IN ( - col1 ) ) )
----

query I rowsort
SELECT DISTINCT - ( - + 49 ) + + 7 FROM tab1
----
56

query I rowsort
SELECT DISTINCT - col0 * + 93 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT ALL col0 * - 39 FROM tab0
----
-3393
-3783
-585

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 * - 97 * col1 - - + 8 FROM tab0
----
-3721591
-9401
-9546247

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT DISTINCT - + 58 DIV 88 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - + 58 / 88 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 29 AS col1 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT + - col1 * col0 + - col1 + + col0 * - + ( 49 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT + - col1 * col0 + - col1 + + col0 * - + ( 49 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 + col0 * 11 * - + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 + col0 * 11 * - + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col0, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT 14 FROM tab1 WHERE NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT 14 DIV col2 * + - col2 FROM tab0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT 14 / col2 * + - col2 FROM tab0
----
-10
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + - col1 > - col0 + - - ( - - col0 ) * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + ( - col0 ) ) * - col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - col0 + + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - + col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT col1 * + ( - col0 ) + + - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-2347
-4929
-5025

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT col1 * + ( - col0 ) + + - col1 / col0 AS col0 FROM tab2 AS cor0
----
-2347
-4929
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8166
SELECT + MAX( + col1 ), 26 AS col2 FROM tab0
----
81
26

skipif mysql # not compatible
query II rowsort label-8166
SELECT + MAX ( + col1 ), 26 AS col2 FROM tab0
----
81
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 52 + + 13 AS col2, - col0 * + col1 col0 FROM tab1
----
-39
-425
-39
-4277
-39
-714

query I rowsort
SELECT ALL 41 * - col1 + col1 AS col1 FROM tab1
----
-1880
-200
-560

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - + 28 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + SUM( ALL + + 79 ) col2 FROM tab1
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT + SUM ( ALL + + 79 ) col2 FROM tab1
----
237

onlyif mysql # DIV for integer division: 
query II rowsort label-8171
SELECT col0 DIV + + col0, col2 AS col2 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-8171
SELECT col0 / + + col0, col2 AS col2 FROM tab0
----
1
10
1
47
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + col0 / - - col0 = NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col0 * - col0 AS col2 FROM tab1
----
-36125
-36414
-389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * col2 col1 FROM tab0 AS cor0
----
3572
7524
760

query I rowsort
SELECT DISTINCT - 3 + ( - 64 ) FROM tab1 cor0
----
-67

query I rowsort
SELECT ALL + col2 - col0 * - - 39 * - col0 FROM tab2 cor0
----
159784
219433
82547

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - 26 * ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 26 * ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 10 ) NOT IN ( col0 + - - 75, col1 / + - col2 )
----

query I rowsort
SELECT - 1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 * - - 92, 84, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - + COUNT( * ) FROM tab2 cor0 WHERE + 66 / - 87 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8180
SELECT - + COUNT ( * ) FROM tab2 cor0 WHERE + 66 / - 87 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + 77 + - COUNT( col0 ) + + 3 + - 8 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 77 + - COUNT ( col0 ) + + 3 + - 8 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8185
SELECT + 96 * col2 + + col2 * col2 - - col0 + + - col1 AS col2, - 87 DIV - col1 AS col0 FROM tab1 AS cor0
----
11196
1
18469
6
9225
17

skipif mysql # not compatible
query II rowsort label-8185
SELECT + 96 * col2 + + col2 * col2 - - col0 + + - col1 AS col2, - 87 / - col1 AS col0 FROM tab1 AS cor0
----
11196
1
18469
6
9225
17

query I rowsort
SELECT - 42 - - ( + 56 ) FROM tab1 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - COUNT( * ) - - ( MIN( DISTINCT + 37 ) ) AS col0 FROM tab2 cor0
----
34

skipif mysql # not compatible
query I rowsort label-8187
SELECT - COUNT ( * ) - - ( MIN ( DISTINCT + 37 ) ) AS col0 FROM tab2 cor0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT DISTINCT - COUNT( * ) * ( + COUNT( * ) ) DIV + 40 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - COUNT ( * ) * ( + COUNT ( * ) ) / + 40 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 6 * - 83 FROM tab2
----
498
498
498

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT MIN( - col2 ) * + - 22 FROM tab1
----
2112

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT MIN ( - col2 ) * + - 22 FROM tab1
----
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL - 23 DIV + 45 * + - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - 23 / + 45 * + - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( 58 ) AS col1 FROM tab1 AS cor0
----
58

query II rowsort
SELECT + + col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + COUNT( col2 ) * - - 12 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8194
SELECT + COUNT ( col2 ) * - - 12 FROM tab0 AS cor0
----
36

query II rowsort
SELECT ALL + - col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL 16 * + + COUNT( * ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL 16 * + + COUNT ( * ) AS col0 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT SUM( col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8197
SELECT SUM ( col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT - + 28 AS col1 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT 72 + + ( - + COUNT( * ) ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8201
SELECT 72 + + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
69

query I rowsort
SELECT 22 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT BETWEEN + 58 AND 81
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( + ( + 8 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 AS col1, + 99 col1 FROM tab1 AS cor0
----
-51
99
-85
99
-91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT COUNT( * ) * + COUNT( * ) + 12 + + + ( + 7 ) * - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT COUNT ( * ) * + COUNT ( * ) + 12 + + + ( + 7 ) * - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL + MIN( + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL + MIN ( + + col2 ) FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 + + 71 col1, - col0 FROM tab0 AS cor0
----
145
-15
145
-87
145
-97

query II rowsort
SELECT - + col1 + + + col0, col0 + - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
37
-45
44
23
80
26

query I rowsort
SELECT - 15 FROM tab2 cor0 WHERE NOT NULL = + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT SUM ( col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT - + 43 AS col0 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 42 col1 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT ALL + col2 * - 60 FROM tab2 WHERE NOT col2 >= + col1 * - - col0 * + col2 * 3 / CAST( NULL AS SIGNED ) * + col0 + col0 - + col0
----

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + col2 * - 60 FROM tab2 WHERE NOT col2 >= + col1 * - - col0 * + col2 * 3 / CAST ( NULL AS INTEGER ) * + col0 + col0 - + col0
----

query I rowsort
SELECT col1 * - - col1 FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col0 AND + col0 - 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT ALL col0 * - ( col0 ) * - 63 * + + col2 DIV + col2 + - 28 * - col1 * + col1 + - - 35 - + 90 FROM tab1
----
169296
455820
583500

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL col0 * - ( col0 ) * - 63 * + + col2 / + col2 + - 28 * - col1 * + col1 + - - 35 - + 90 FROM tab1
----
169296
455820
583500

query I rowsort
SELECT - 13 * - + col2 AS col1 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT + 63 * - MAX( DISTINCT - col1 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + 63 * - MAX ( DISTINCT - col1 ) FROM tab0
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8221
SELECT + - col1 DIV 68 * 30, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-8221
SELECT + - col1 / 68 * 30, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT - + COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8222
SELECT - + COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( + + 53 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + 85 + + 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8225
SELECT ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 + col2 + + col1 AS col0 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT COUNT( col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8227
SELECT COUNT ( col1 ) FROM tab1
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 5 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT 53 * col0 / + 20 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT 53 * col0 / + 20 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE - col1 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT ALL COUNT( * ), - ( - 9 ) AS col0 FROM tab0 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-8234
SELECT ALL COUNT ( * ), - ( - 9 ) AS col0 FROM tab0 AS cor0
----
3
9

query I rowsort
SELECT DISTINCT 43 * - - col1 FROM tab2 AS cor0
----
2193
2881
3311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 89 col0 FROM tab1
----
-38
-4
2

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col1 + - + 78 + + 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT col0 + - 24 * 2 DIV + col1 FROM tab0
----
15
49
85

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT col0 + - 24 * 2 / + col1 FROM tab0
----
15
49
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 + - col0 >= ( - - col0 * + 72 )
----

query I rowsort
SELECT DISTINCT ( - + ( - 40 ) ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT + + 9 + 76 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT - ( + - 97 ) AS col2 FROM tab0
----
97
97
97

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab2 AS cor0
----
28

query II rowsort
SELECT 48 AS col1, 36 AS col0 FROM tab0 AS cor0
----
48
36
48
36
48
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT + COUNT( * ), 64 * - 26 AS col1 FROM tab1 AS cor0
----
3
-1664

skipif mysql # not compatible
query II rowsort label-8248
SELECT + COUNT ( * ), 64 * - 26 AS col1 FROM tab1 AS cor0
----
3
-1664

query I rowsort
SELECT - 35 * - - 48 AS col0 FROM tab1 AS cor0
----
-1680
-1680
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT MIN( ALL + + 27 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8250
SELECT MIN ( ALL + + 27 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT SUM( ALL + - 45 ) FROM tab2, tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-8251
SELECT SUM ( ALL + - 45 ) FROM tab2, tab0 AS cor0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - COUNT( * ) * ( 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - COUNT ( * ) * ( 0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT col0 * + - col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 72 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - SUM( - - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8257
SELECT - SUM ( - - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - COUNT( * ) * + + 66 AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - COUNT ( * ) * + + 66 AS col1 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - 37 + 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT MAX( ALL - + ( - + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT MAX ( ALL - + ( - + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT ALL 7 * + + col0 AS col1 FROM tab1
----
357
595
637

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col1 + + col2 NOT BETWEEN col2 AND + + ( + 81 ) )
----

query I rowsort
SELECT col1 + + + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - + 90 + - - ( - + 85 ) * + - ( + 33 ) + - + col1 AS col0 FROM tab2 AS cor0
----
2638
2648
2664

onlyif mysql # DIV for integer division: 
query II rowsort label-8265
SELECT ALL + + col1 * col1 * 35, col1 DIV - 63 AS col0 FROM tab1 AS cor0
----
6860
0
77315
0
875
0

skipif mysql # not compatible
query II rowsort label-8265
SELECT ALL + + col1 * col1 * 35, col1 / - 63 AS col0 FROM tab1 AS cor0
----
6860
0
77315
0
875
0

query I rowsort
SELECT DISTINCT - 91 * + - col1 FROM tab1 AS cor0
----
1274
4277
455

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT - 2 + - - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8267
SELECT - 2 + - - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT CAST( NULL AS SIGNED ) + AVG ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT CAST ( NULL AS INTEGER ) + AVG ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + + 35 + + 41 FROM tab2
----
122
140
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT DISTINCT ( - col1 ) + - ( + + col0 ) DIV ( col1 ) FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT ( - col1 ) + - ( + + col0 ) / ( col1 ) FROM tab2
----
-51
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT ALL 80 + - col1 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL 80 + - col1 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 29 + - + 34 AS col1 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8274
SELECT ALL - CAST( NULL AS SIGNED ) * - 93 + + + ( - col1 ) AS col0, + col0 * col1 AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL - CAST ( NULL AS INTEGER ) * - 93 + + + ( - col1 ) AS col0, + col0 * col1 AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

query I rowsort
SELECT DISTINCT - ( col0 ) - col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT + 0 - + col2 - - 25 FROM tab1 AS cor0
----
-34
-43
-71

query II rowsort
SELECT DISTINCT 93 AS col1, col0 + 91 AS col0 FROM tab2 AS cor0
----
93
137
93
155
93
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT ( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8278
SELECT ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL ( - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 94 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * + - ( col0 ) col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT + 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 10 NOT IN ( + col1 * col0 * - - ( 7 ), - ( 66 ), 57 * col2 + + + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8284
SELECT ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT - MIN( ALL col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8285
SELECT - MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + MIN( ALL + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8286
SELECT + MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col2 + 35 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - ( 78 ) + + 34 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
15
24
52

query I rowsort
SELECT + col2 * + 52 AS col2 FROM tab0
----
2444
5148
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT CAST( NULL AS SIGNED ) * - + col0 * - - 29 * - ( + + col2 ) * 29 * + + 14 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT CAST ( NULL AS INTEGER ) * - + col0 * - - 29 * - ( + + col2 ) * 29 * + + 14 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * - col2 + - col0 * - 82 ) >= + col1
----

query II rowsort
SELECT ALL col2 AS col0, - col0 * + col2 AS col0 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - - SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - - SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - ( - - col1 ) col1, + col0 FROM tab2 AS cor0
----
2601
46
4489
75
5929
64

query I rowsort
SELECT ALL 49 * - 35 AS col2 FROM tab1 AS cor0
----
-1715
-1715
-1715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT 16 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT 16 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col0 * + - ( + 91 ) FROM tab1
----
-4627
-7730
-8234

query I rowsort
SELECT - - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT col1 * - ( + + col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - 73 * + col0 AS col1 FROM tab0 cor0
----
-1095
-6351
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT col1 * + 8 / + + col1 + - ( + - col0 ) + - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( + col2 AS SIGNED ), 40, - ( - - 70 ) - - 60, col1 * + col2 + 63 )
----

skipif mysql # not compatible
query I rowsort label-8303
SELECT col1 * + 8 / + + col1 + - ( + - col0 ) + - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( + col2 AS INTEGER ), 40, - ( - - 70 ) - - 60, col1 * + col2 + 63 )
----

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT ALL - col1 DIV - col2 col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8305
SELECT ALL - col1 / - col2 col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT - MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT - MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 - - 79 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - COUNT( * ) * + COUNT( * ) * - 32 - - + 90 * - 13 FROM tab0
----
-882

skipif mysql # not compatible
query I rowsort label-8308
SELECT - COUNT ( * ) * + COUNT ( * ) * - 32 - - + 90 * - 13 FROM tab0
----
-882

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8310
SELECT - col1 DIV CAST( col2 AS SIGNED ) DIV + + col0 - - col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8310
SELECT - col1 / CAST ( col2 AS INTEGER ) / + + col0 - - col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT + col0 DIV col0 - col0 DIV - - 1 AS col1 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-8311
SELECT + col0 / col0 - col0 / - - 1 AS col1 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + COUNT( + 43 ) * + - 83 + SUM( - col0 ) FROM tab0
----
-448

skipif mysql # not compatible
query I rowsort label-8312
SELECT + COUNT ( + 43 ) * + - 83 + SUM ( - col0 ) FROM tab0
----
-448

query I rowsort
SELECT col1 + - col1 + + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - 34 + COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - 34 + COUNT ( * ) FROM tab1
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT col2 DIV col0 - + CAST( + col0 AS SIGNED ) FROM tab0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT col2 / col0 - + CAST ( + col0 AS INTEGER ) FROM tab0
----
-12
-87
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT ALL - MIN( - col2 ) DIV - 71 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - MIN ( - col2 ) / - 71 AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 85 <> + 51 * - col0 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT + 68 / col2 * - - 8 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + 78 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8318
SELECT + 68 / col2 * - - 8 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + 78 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 67 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT - ( + col2 ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - ( + col2 ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8321
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8323
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - 35 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8323
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 35 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT ALL + - col0 AS col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT + 56, col2 FROM tab0 AS cor0
----
56
10
56
47
56
99

query I rowsort
SELECT + 76 * + col1 * - + 36 * + - 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( col2 ) + 24 AS col2 FROM tab2
----
47
64
82

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND + 2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 * - + 20 BETWEEN + 56 + - 27 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT DISTINCT COUNT( * ) + + SUM( ALL 13 ) + 26 AS col2, + COUNT( * ) FROM tab2 WHERE NOT - 6 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8331
SELECT DISTINCT COUNT ( * ) + + SUM ( ALL 13 ) + 26 AS col2, + COUNT ( * ) FROM tab2 WHERE NOT - 6 IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - + MAX( DISTINCT - + 1 ) * - + 23 AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8332
SELECT - + MAX ( DISTINCT - + 1 ) * - + 23 AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT ( + - col1 ) + col0 AS col2 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 37 * + - 93 + COUNT( DISTINCT col0 ) * - - 75 FROM tab1
----
-3216

skipif mysql # not compatible
query I rowsort label-8334
SELECT 37 * + - 93 + COUNT ( DISTINCT col0 ) * - - 75 FROM tab1
----
-3216

query II rowsort
SELECT DISTINCT - col0, 80 * col2 * 25 AS col0 FROM tab2 AS cor0
----
-46
46000
-64
80000
-75
116000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - + col1 * - 18 + - 54 col0 FROM tab2 AS cor0
----
-21168
-55494
-70002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 17 col0 FROM tab1 cor0
----
102
108
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - 81 * - + col2 * - ( + col1 ) FROM tab0 AS cor0
----
10
-17010
47
-308367
99
-8019

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 85 ) * + + 83 + + + col1 AS col1 FROM tab2 AS cor0
----
7106
7122
7132

query I rowsort
SELECT - 16 AS col1 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT DISTINCT col1 DIV + col0 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT col1 / + col0 + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 59 * - col2 + col0 * + ( - + 19 ) col2 FROM tab1
----
-5091
-5694
-6619

query I rowsort
SELECT DISTINCT + + ( 48 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT DISTINCT + col2 DIV + 71 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + col2 / + 71 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - + ( col2 ) DIV + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT - + ( col2 ) / + col0 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT - col1, - 54 - - - col2 * 21 AS col1 FROM tab1 AS cor0
----
-14
-2070
-47
-1482
-5
-1293

query I rowsort
SELECT ALL + ( + 22 ) AS col1 FROM tab0 AS cor0
----
22
22
22

query II rowsort
SELECT + - col1 AS col2, 62 - col2 AS col1 FROM tab2 AS cor0
----
-51
39
-67
4
-77
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL MAX( 39 ) col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8354
SELECT ALL MAX ( 39 ) col1 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col0 > NULL
----

query I rowsort
SELECT + col1 * - col1 * + + 42 FROM tab1
----
-1050
-8232
-92778

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 97 ) col1 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT COUNT( * ) + ( - - CAST( NULL AS SIGNED ) ) * 2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( * ) + ( - - CAST ( NULL AS INTEGER ) ) * 2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + 40 FROM tab0
----
127
137
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT 98 + ( COUNT( * ) ) * - 41 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8364
SELECT 98 + ( COUNT ( * ) ) * - 41 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT - SUM( DISTINCT - + 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - SUM ( DISTINCT - + 19 ) FROM tab2
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 18 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - 82 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT MAX( DISTINCT + col0 ) * 82 - + 26 AS col1 FROM tab0 AS cor0 WHERE ( 98 + + 99 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT MAX ( DISTINCT + col0 ) * 82 - + 26 AS col1 FROM tab0 AS cor0 WHERE ( 98 + + 99 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 27 * - col0 >= + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 31 * - col2 * + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-41664
-9145
-99076

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT + col0 DIV - col1 - + col0 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-8372
SELECT + col0 / - col1 - + col0 FROM tab0 AS cor0
----
-15
-194
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 98 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + 50 * - - col1 col0 FROM tab0 cor0
----
1005
4005
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT SUM( ALL + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT SUM ( ALL + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT + col1 - col2 * + 14 FROM tab0
----
-119
-1385
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + MIN( - col1 ) + + + 38 + 83 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-8377
SELECT + MIN ( - col1 ) + + + 38 + 83 FROM tab1
----
74

query I rowsort
SELECT ALL 97 * + col2 FROM tab1
----
5723
6596
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8379
SELECT ALL + SUM( DISTINCT - + ( - CAST( + col2 AS SIGNED ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + SUM ( DISTINCT - + ( - CAST ( + col2 AS INTEGER ) ) ) FROM tab0
----
156

query II rowsort
SELECT ALL + col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT - ( - 93 ) FROM tab2
----
93

query II rowsort
SELECT DISTINCT col0 AS col2, + 40 AS col2 FROM tab1 AS cor0
----
51
40
85
40
91
40

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT COUNT( * ) * - + COUNT( * ) FROM tab0, tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8384
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab0, tab1 cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8385
SELECT ALL - col2 * + + 84 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST( - col1 AS DECIMAL ) * + col1 + + + 35 AND - + col2 + ( ( - col0 ) ) * + - 64
----

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - col2 * + + 84 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST ( - col1 AS REAL ) * + col1 + + + 35 AND - + col2 + ( ( - col0 ) ) * + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT + - AVG ( col2 ) + COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <> 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + - AVG ( col2 ) + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <> 3
----
NULL

query I rowsort
SELECT DISTINCT - + ( - col0 ) * - - col2 * - 78 FROM tab1 AS cor0
----
-381888
-391170
-482664

query I rowsort
SELECT + 8 + + + col1 * + col0 FROM tab1 AS cor0
----
4285
433
722

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT 84 + - + 11 DIV + col1 FROM tab2
----
84
84
84

skipif mysql # not compatible
query I rowsort label-8389
SELECT 84 + - + 11 / + col1 FROM tab2
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT COUNT( * ) + + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8390
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
6

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT col1 * 87 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8393
SELECT + 97 DIV COUNT( + + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8393
SELECT + 97 / COUNT ( + + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * col2 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 51 * - col0 - + - 1 * + - 85 AS col1 FROM tab1
----
2516
4250
4556

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * ( + + 3 ) * - CAST( + 72 AS SIGNED ) + - - 10 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8397
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * ( + + 3 ) * - CAST ( + 72 AS INTEGER ) + - - 10 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT + MAX( - - ( + + 95 ) ) + - COUNT( CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT + MAX ( - - ( + + 95 ) ) + - COUNT ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
95

query II rowsort
SELECT DISTINCT + + col1 AS col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT ALL - - ( + COUNT( ALL CAST( NULL AS SIGNED ) ) ) - 63 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - - ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) - 63 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT DISTINCT + 97 / + - ( - CAST( NULL AS SIGNED ) ) + - - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT + 97 / + - ( - CAST ( NULL AS INTEGER ) ) + - - col0 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT - SUM( ALL - - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - SUM ( ALL - - col2 ) AS col2 FROM tab2
----
-121

query II rowsort
SELECT ALL 27 * + col2 AS col0, + col0 + 75 FROM tab2
----
1080
139
1566
150
621
121

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col2 * - col0 >= + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8406
SELECT * FROM tab1, tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + 81 )
----

skipif mysql # not compatible
query IIIIII rowsort label-8406
SELECT * FROM tab1, tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + 81 )
----

query II rowsort
SELECT - 88 AS col1, col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ( + 44 ) FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT - col2 * - + col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT - 14 + + col1 AS col1 FROM tab0
----
-13
67
7

query I rowsort
SELECT 99 + - col0 FROM tab2
----
24
35
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT col0 DIV - 16 AS col1 FROM tab0 AS cor0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT col0 / - 16 AS col1 FROM tab0 AS cor0
----
-5
-6
0

query I rowsort
SELECT ALL - col1 * + 47 FROM tab1 AS cor0
----
-2209
-235
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT ALL - - col0 DIV 60 col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8414
SELECT ALL - - col0 / 60 col0 FROM tab2 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8415
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > CAST( col2 AS SIGNED ) + - 35
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > CAST ( col2 AS INTEGER ) + - 35
----

query I rowsort
SELECT ALL col1 * col0 + 36 * - 82 * - 66 + - col0 AS col2 FROM tab2 AS cor0
----
197132
199696
199782

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 IN ( + + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 95 col2 FROM tab2 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col0 ) BETWEEN col2 AND col0
----
87
21
10

query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 * - - col1 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT ALL - col2 + col0 * col2 + col1 FROM tab0 AS cor0
----
739
881
9505

query I rowsort
SELECT DISTINCT - 25 + - col0 + col2 + - col1 AS col0 FROM tab2
----
-109
-126
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT 0 + + MIN( + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT 0 + + MIN ( + col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - - 96 col0, + 18 AS col2 FROM tab1
----
1344
18
4512
18
480
18

query I rowsort
SELECT ALL 18 + - ( - - col2 ) + - - col2 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) * 85 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * 85 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT COUNT( * ) * + 14 AS col0, + CAST( 95 AS SIGNED ) FROM tab0
----
42
95

skipif mysql # not compatible
query II rowsort label-8427
SELECT COUNT ( * ) * + 14 AS col0, + CAST ( 95 AS INTEGER ) FROM tab0
----
42
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + COUNT( * ) + + + ( + MIN( + + col2 ) ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8428
SELECT + COUNT ( * ) + + + ( + MIN ( + + col2 ) ) AS col2 FROM tab2
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + col2 col0 FROM tab2
----
106
123
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL - COUNT( * ) * 54 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - COUNT ( * ) * 54 FROM tab2
----
-162

query I rowsort
SELECT col0 + + ( - + col2 ) AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + 55 + - col0 AS col2 FROM tab2 AS cor0
----
-20
-9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 cor0 WHERE + 92 / - col0 NOT BETWEEN + - ( - col2 ) + + - 6 AND NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8435
SELECT * FROM tab1 WHERE - col2 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8435
SELECT * FROM tab1 WHERE - col2 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 55 * 47 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 55 * 47 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - + COUNT( * ) * - COUNT( * ) - - ( COUNT( * ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8437
SELECT - + COUNT ( * ) * - COUNT ( * ) - - ( COUNT ( * ) ) FROM tab0 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT + - col0 DIV - 16 AS col1 FROM tab1 cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + - col0 / - 16 AS col1 FROM tab1 cor0
----
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT DISTINCT SUM( + 77 ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT SUM ( + 77 ) AS col0 FROM tab2 AS cor0
----
231

query I rowsort
SELECT - col1 * + - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - - ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - 3 * - + 95 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT ALL 58, COUNT( * ) + 2 col1 FROM tab1
----
58
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8443
SELECT ALL 58, COUNT ( * ) + 2 col1 FROM tab1
----
58
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT 98 AS col0, + 41 - + + COUNT( * ) col0 FROM tab0
----
98
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8445
SELECT 98 AS col0, + 41 - + + COUNT ( * ) col0 FROM tab0
----
98
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT COUNT( * ) * SUM( - 99 ) FROM tab0
----
-891

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT COUNT ( * ) * SUM ( - 99 ) FROM tab0
----
-891

query II rowsort
SELECT ALL - col2 * col2, + col0 AS col1 FROM tab0
----
-100
87
-2209
15
-9801
97

query II rowsort
SELECT - 76 AS col0, col0 AS col0 FROM tab0
----
-76
15
-76
87
-76
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL - CAST( + 12 AS SIGNED ) AS col2 FROM tab1
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - CAST ( + 12 AS INTEGER ) AS col2 FROM tab1
----
-12
-12
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 20 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT - COUNT( ALL - ( col0 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - COUNT ( ALL - ( col0 ) ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 50 * + col0 AS col1 FROM tab2 AS cor0
----
2300
3200
3750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT + col2 * + ( + - 23 ) * col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT + col2 * + ( + - 23 ) * col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT - MAX( - col0 ) * CAST( - - 83 AS SIGNED ) FROM tab1
----
4233

skipif mysql # not compatible
query I rowsort label-8457
SELECT - MAX ( - col0 ) * CAST ( - - 83 AS INTEGER ) FROM tab1
----
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - + MIN( ALL col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - + MIN ( ALL col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL - - 79 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT - col2 + + 23 * + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
1035
1432
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) * 30 AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) * 30 AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT CAST( COUNT( * ) AS SIGNED ) + + 73 AS col0 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8462
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + 73 AS col0 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8463
SELECT + - 32 + + - MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE 46 + col2 - - ( - col2 ) * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT + - 32 + + - MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE 46 + col2 - - ( - col2 ) * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 + + + col1 AS col0 FROM tab0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 93 <= - col1
----

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab0 WHERE NOT ( NOT 45 * + 42 IS NULL )
----

query I rowsort
SELECT + - 56 * - col0 - - 30 FROM tab1 AS cor0
----
2886
4790
5126

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT ALL - col1 DIV - - 15 AS col0 FROM tab2 AS cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - col1 / - - 15 AS col0 FROM tab2 AS cor0
----
-3
-4
-5

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE - 44 IS NOT NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8470
SELECT - SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - 83 + 19 * ( + 11 ) AS col1 FROM tab2 AS cor0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT + COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8472
SELECT + COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
6

query I rowsort
SELECT DISTINCT col1 + + 7 FROM tab1
----
12
21
54

query I rowsort
SELECT DISTINCT 6 * + ( + col2 ) AS col0 FROM tab1
----
354
408
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 15 col1 FROM tab2 WHERE - col2 + + 8 < ( 54 )
----
-1125
-690
-960

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col1 / + col1 - - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT COUNT( * ) * 56 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-8477
SELECT COUNT ( * ) * 56 FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT SUM( - col0 ) * 12 AS col2 FROM tab1
----
-2724

skipif mysql # not compatible
query I rowsort label-8478
SELECT SUM ( - col0 ) * 12 AS col2 FROM tab1
----
-2724

query I rowsort
SELECT DISTINCT + col1 * col0 + - 83 AS col0 FROM tab2
----
2263
4845
4942

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT ALL * FROM tab2 WHERE NOT NULL = - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8480
SELECT ALL * FROM tab2 WHERE NOT NULL = - col1 * - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + 46 col1 FROM tab1
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL COUNT( col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL COUNT ( col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT 47 + - CAST( col1 AS SIGNED ) * - col0 col2 FROM tab1
----
4324
472
761

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT 47 + - CAST ( col1 AS INTEGER ) * - col0 col2 FROM tab1
----
4324
472
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( 41 ) AND col0
----

skipif mysql # not compatible
query I rowsort label-8484
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( 41 ) AND col0
----

query I rowsort
SELECT + col0 + col2 * + 52 AS col1 FROM tab0
----
2459
5245
607

query I rowsort
SELECT + ( 21 ) FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT - COUNT( * ) + - 58 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-8487
SELECT - COUNT ( * ) + - 58 FROM tab1
----
-61

query I rowsort
SELECT DISTINCT + 13 FROM tab1 WHERE NOT col2 > ( + col0 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT SUM( DISTINCT 24 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT SUM ( DISTINCT 24 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
24

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( ( col2 ) - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 ) col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL 71 - + COUNT( * ) AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL 71 - + COUNT ( * ) AS col1 FROM tab0
----
68

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT 65 + + 82 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - 91 * SUM( + ( col1 ) * col0 ) AS col1 FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT - 91 * SUM ( + ( col1 ) * col0 ) AS col1 FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

query I rowsort
SELECT 25 + + col0 FROM tab2
----
100
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 34 col1 FROM tab1
----
119
125
85

query III rowsort
SELECT * FROM tab1 WHERE 38 = col1
----

query I rowsort
SELECT DISTINCT 53 / col1 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT - ( + 32 ) * col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1504
-160
-448

query I rowsort
SELECT 71 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT col0 + - col0 DIV - col2 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT col0 + - col0 / - col2 FROM tab1
----
51
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8504
SELECT DISTINCT * FROM tab0 WHERE + 44 < ( col2 * 42 + CAST( + CAST( - 49 AS SIGNED ) AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8504
SELECT DISTINCT * FROM tab0 WHERE + 44 < ( col2 * 42 + CAST ( + CAST ( - 49 AS INTEGER ) AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8505
SELECT DISTINCT + COUNT( * ) DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT + COUNT ( * ) / 85 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT + col0 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + col0 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 67 + col1 AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8508
SELECT + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT + - col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT + - col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66
-66
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT 47 DIV COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8512
SELECT 47 / COUNT ( * ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IN ( 85 / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IN ( 85 / col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT DISTINCT ( CAST( 10 AS SIGNED ) ) + + 8 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT ( CAST ( 10 AS INTEGER ) ) + + 8 AS col1 FROM tab2
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + - col1 col2 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - COUNT( * ) - - - 93 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8516
SELECT - COUNT ( * ) - - - 93 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 - - col0 - col2 * - col0 * - 88 col0 FROM tab0
----
-61990
-76438
-844932

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 59 * ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 20 + - col2 AS col2 FROM tab0
----
-27
-79
10

query I rowsort
SELECT ALL + col0 * 82 - col2 FROM tab2
----
3749
5208
6092

query I rowsort
SELECT DISTINCT 38 + col0 FROM tab0
----
125
135
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8522
SELECT DISTINCT * FROM tab2 WHERE ( - 7 + CAST( - col0 + + col1 AS SIGNED ) * col2 ) BETWEEN - 62 AND ( ( + ( col2 ) ) ) * col1
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-8522
SELECT DISTINCT * FROM tab2 WHERE ( - 7 + CAST ( - col0 + + col1 AS INTEGER ) * col2 ) BETWEEN - 62 AND ( ( + ( col2 ) ) ) * col1
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT + col0 * 32 DIV col1 + 62 col0 FROM tab0
----
194
3166
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8523
SELECT + col0 * 32 / col1 + 62 col0 FROM tab0
----
194
3166
67

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 65 FROM tab1 AS cor0 WHERE NOT 65 NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL col0 * - CAST( - col0 AS SIGNED ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL col0 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 74 * + 24 + 12 * 42 ) BETWEEN - 76 AND 23
----

skipif mysql # not compatible
query I rowsort label-8528
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 74 * + 24 + 12 * 42 ) BETWEEN - 76 AND 23
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - + 0 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + 57 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE 61 <> - - CAST( - 33 AS SIGNED )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8534
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE 61 <> - - CAST ( - 33 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT 26 * 29 DIV - - col2 FROM tab2
----
13
18
32

skipif mysql # not compatible
query I rowsort label-8535
SELECT 26 * 29 / - - col2 FROM tab2
----
13
18
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8536
SELECT - SUM( ALL - + CAST( NULL AS DECIMAL ) ) * + MAX( ALL - col0 ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT - SUM ( ALL - + CAST ( NULL AS REAL ) ) * + MAX ( ALL - col0 ) + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + - ( + 22 ) ) >= ( col0 + ( + 66 ) )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT ALL 45 DIV - ( - col1 ) FROM tab0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 45 / - ( - col1 ) FROM tab0
----
0
2
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - MIN( - 50 ) * + 5 col2 FROM tab2 WHERE NOT NULL > - col2 * - + col1 * col1 + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8539
SELECT DISTINCT - MIN ( - 50 ) * + 5 col2 FROM tab2 WHERE NOT NULL > - col2 * - + col1 * col1 + col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8540
SELECT DISTINCT - 14 DIV col0 AS col0, col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-8540
SELECT DISTINCT - 14 / col0 AS col0, col0 AS col2 FROM tab2
----
0
46
0
64
0
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 * - + 5 NOT IN ( - col1 + + col2 * - 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT ALL 11 DIV + 13 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL 11 / + 13 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL - COUNT( DISTINCT + 19 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - COUNT ( DISTINCT + 19 ) AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT col0 DIV - - 70 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT col0 / - - 70 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 * - - col1 AND 86 * 57
----

query I rowsort
SELECT ALL + col1 * - col1 AS col0 FROM tab0 WHERE - + col1 IS NOT NULL
----
-1
-441
-6561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8547
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) / + 9 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN ( 13 ) AND 61 - col0
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) / + 9 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN ( 13 ) AND 61 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT ALL + 79 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE + 56 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + 79 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE + 56 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + - 80 + - col2 col2 FROM tab0 AS cor0
----
-2
-39
-91

query III rowsort
SELECT * FROM tab1 WHERE col2 - + col0 + + col0 * + col1 / - 64 <> - ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 18 AS col0 FROM tab1 WHERE NOT - - 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT DISTINCT CAST( + 8 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT CAST ( + 8 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL 31 AS col0 FROM tab1 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 64 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8555
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8555
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT ALL COUNT( * ) AS col0, + 63 * + ( SUM( + - col1 ) ) * COUNT( * ) FROM tab0 AS cor0
----
3
-19467

skipif mysql # not compatible
query II rowsort label-8556
SELECT ALL COUNT ( * ) AS col0, + 63 * + ( SUM ( + - col1 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
3
-19467

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) + - 57 + ( col2 ) = ( - ( 98 ) + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT DISTINCT col0 + + col0 DIV 10 FROM tab1 AS cor0
----
100
56
93

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT col0 + + col0 / 10 FROM tab1 AS cor0
----
100
56
93

query I rowsort
SELECT + 99 + + + 88 * + col0 AS col0 FROM tab2 AS cor0
----
4147
5731
6699

query I rowsort
SELECT + 37 + 50 AS col1 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT + col1 + + - 66 FROM tab2 AS cor0
----
-15
1
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * + - 91 * + col2 ) NOT IN ( - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT + 83 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 83 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT 36 + 28 - - COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT 36 + 28 - - COUNT ( * ) FROM tab2
----
67

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT NULL <= + 19 / - col1 * 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT DISTINCT + CAST( col0 AS SIGNED ) + ( - 72 ) FROM tab2
----
-26
-8
3

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + ( - 72 ) FROM tab2
----
-26
-8
3

query I rowsort
SELECT + 55 * + - col2 AS col0 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT DISTINCT + 92 + - col2 * + + col1 * - col2 AS col2 FROM tab1
----
129116
17497
217420

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + SUM( - + 93 ) - + ( COUNT( * ) ) * + - 28 AS col1 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + SUM ( - + 93 ) - + ( COUNT ( * ) ) * + - 28 AS col1 FROM tab0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT + 59 / - MAX( ALL ( + 49 ) + 75 ) FROM tab2 WHERE NULL NOT BETWEEN ( + + col0 ) AND + col2 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + 59 / - MAX ( ALL ( + 49 ) + 75 ) FROM tab2 WHERE NULL NOT BETWEEN ( + + col0 ) AND + col2 * + 88
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL col0 + col0 * - - 65 * + col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + 68 AND ( NULL )
----

query II rowsort
SELECT col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT + ( + col2 ) AS col1, 27 FROM tab2 AS cor0
----
23
27
40
27
58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 15 * - ( - - col1 ) ) <> ( NULL )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + + COUNT( + ( - col1 ) ) * - - 63 * - ( - 73 ) + + 80 AS col0 FROM tab1 AS cor0
----
13877

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + COUNT ( + ( - col1 ) ) * - - 63 * - ( - 73 ) + + 80 AS col0 FROM tab1 AS cor0
----
13877

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col0 AND + + col2 + + col0 * - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT MIN( ALL - 77 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT MIN ( ALL - 77 ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL COUNT( ALL - 87 ) * 0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL COUNT ( ALL - 87 ) * 0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT ALL + col1 DIV col0 * - 41 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + col1 / col0 * - 41 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 69 AS col0, col2 AS col1 FROM tab1
----
69
59
69
68
69
96

query II rowsort
SELECT ALL col2 AS col1, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + col2 * + 89 AS col2 FROM tab0
----
4183
8811
890

query I rowsort
SELECT DISTINCT ( - 41 ) * + col2 FROM tab0 AS cor0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT + 70 DIV MAX( ALL + col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 70 / MAX ( ALL + col0 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT COUNT( * ) * + - 32 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT COUNT ( * ) * + - 32 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT + col2 / col2 + - 6 FROM tab2 cor0 WHERE NULL NOT IN ( + col2 + - 66 )
----

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
80

query III rowsort
SELECT * FROM tab0 WHERE + 36 + - - col1 * + 91 IS NULL
----

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 28 AS col1 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - + col1 - + col0 * - + col0 FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT DISTINCT - + col0 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - + col0 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT DISTINCT + ( col1 ) DIV - 63 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT + ( col1 ) / - 63 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL COUNT( * ) / - COUNT( - CAST( - - col2 AS SIGNED ) ) * CAST( NULL AS SIGNED ) * + MIN( + + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL COUNT ( * ) / - COUNT ( - CAST ( - - col2 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * + MIN ( + + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL COUNT ( col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 - + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - + 57 * COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
-171

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - + 57 * COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
-171

query I rowsort
SELECT ALL + 20 + - col0 AS col1 FROM tab1
----
-31
-65
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - col2 ) col0 FROM tab0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - col2 ) col0 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT - 68 * - + col0 + + col2 * col2 FROM tab2
----
3657
5952
8464

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8606
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT - 77 FROM tab1 cor0
----
-77

query II rowsort
SELECT + col1, col2 FROM tab0 cor0
----
1
99
21
10
81
47

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 6 ) col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + col0 * - + col1 * 74 AS col0 FROM tab2 AS cor0
----
-173604
-364672
-371850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 6 / + col1 AND - + 89
----
0
0

skipif mysql # not compatible
query II rowsort label-8612
SELECT COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 6 / + col1 AND - + 89
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8613
SELECT - + 14, - ( - CAST( 88 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-14
88
-14
88
-14
88

skipif mysql # not compatible
query II rowsort label-8613
SELECT - + 14, - ( - CAST ( 88 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-14
88
-14
88
-14
88

query I rowsort
SELECT DISTINCT col0 + - + 20 + + col2 AS col2 FROM tab1 AS cor0
----
124
127
139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8615
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8615
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + - 81 * - MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
7776

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + - 81 * - MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
7776

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NOT + + 70 IS NOT NULL
----

query I rowsort
SELECT ALL - 22 FROM tab0 WHERE NULL IS NULL
----
-22
-22
-22

query I rowsort
SELECT col1 * - col2 + + 57 AS col0 FROM tab2
----
-1116
-3023
-3829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab1
----
82

query I rowsort
SELECT ALL + 56 * + - col1 FROM tab2 AS cor0
----
-2856
-3752
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT - col0 / + col0 + + CAST( NULL AS SIGNED ) * - col0 * - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT - col0 / + col0 + + CAST ( NULL AS INTEGER ) * - col0 * - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8624
SELECT + CAST( + - col2 AS SIGNED ) DIV - - 94 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT + CAST ( + - col2 AS INTEGER ) / - - 94 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col1 * 58 FROM tab0 cor0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - COUNT( * ) - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-8626
SELECT - COUNT ( * ) - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - + col0 col1 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT + col2 DIV + - col1 + - - col0 DIV col2 * - + col1 FROM tab1
----
-16
-48
-6

skipif mysql # not compatible
query I rowsort label-8628
SELECT + col2 / + - col1 + - - col0 / col2 * - + col1 FROM tab1
----
-16
-48
-6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + 74
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8630
SELECT ALL - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + + 12 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - + 42 + COUNT( * ) col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8632
SELECT - + 42 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + 88 + - MAX( - - col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8633
SELECT + 88 + - MAX ( - - col0 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - col0 + + - col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT - + 47 * + ( + col2 ) + - + col0 FROM tab0 AS cor0
----
-2224
-4750
-557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8636
SELECT DISTINCT - 33 DIV 91 * + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - 33 / 91 * + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 68 + - - 71 FROM tab0 AS cor0
----
139
139
139

query II rowsort
SELECT + + col2, - col2 AS col1 FROM tab0 cor0
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab2 WHERE NOT + col1 + + 71 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( + 68 ) AS col2 FROM tab2
----
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT BETWEEN + + col2 * - 54 AND col1 / col0 - + 64 + 68 / col0 + - col0
----

query I rowsort
SELECT ALL col0 * + ( - + col2 ) * + - 9 + col2 AS col2 FROM tab0
----
6392
7840
86526

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT COUNT( - 84 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8643
SELECT COUNT ( - 84 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT DISTINCT + + CAST( - - col2 AS SIGNED ) col0 FROM tab2 WHERE 67 NOT IN ( - col0, - col1 + + + col0, col2 * - - col0 )
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8644
SELECT DISTINCT + + CAST ( - - col2 AS INTEGER ) col0 FROM tab2 WHERE 67 NOT IN ( - col0, - col1 + + + col0, col2 * - - col0 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 74 + + col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + ( COUNT( + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8646
SELECT + ( COUNT ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 75 * col1 AS col2 FROM tab0 AS cor0
----
-1575
-6075
-75

query II rowsort
SELECT - col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + + col2 + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL - - COUNT( DISTINCT 38 ) * + 99 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - - COUNT ( DISTINCT 38 ) * + 99 FROM tab0 cor0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + + 0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 33 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8653
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) / - col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8653
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) / - col0 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col0 + - - 15 FROM tab2 WHERE - ( col1 ) + col2 + - 16 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col2 * + 18 - col2 * + col2 * - ( - - col0 ) FROM tab1
----
296952
422055
471758

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NULL > + - col0 + + + 55 - 24 * - col0
----

query I rowsort
SELECT ALL ( - - 74 ) AS col1 FROM tab0
----
74
74
74

query II rowsort
SELECT col2, ( col0 ) * + col2 AS col2 FROM tab2
----
23
1058
40
2560
58
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT + COUNT( * ) + + 42 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + COUNT ( * ) + + 42 FROM tab2
----
45

query II rowsort
SELECT + ( col1 ) AS col1, + 42 AS col0 FROM tab1
----
14
42
47
42
5
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT SUM( ALL + 90 ) * - + CAST( NULL AS SIGNED ) * + AVG ( + col1 ) AS col0 FROM tab0 WHERE - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT SUM ( ALL + 90 ) * - + CAST ( NULL AS INTEGER ) * + AVG ( + col1 ) AS col0 FROM tab0 WHERE - col0 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - ( - + 73 ) FROM tab0 AS cor0
----
73
73
73

query II rowsort
SELECT 94 AS col2, col1 AS col0 FROM tab0 cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT ALL + col2 - 6 FROM tab1 cor0
----
53
62
90

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL AND NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT - ( - - col2 ) * - col0 - col0 FROM tab1 AS cor0
----
4845
4930
6097

query II rowsort
SELECT DISTINCT - - ( + col0 ), col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT col0 * + - 45 FROM tab0
----
-3915
-4365
-675

query II rowsort
SELECT DISTINCT 58 AS col2, 49 FROM tab0
----
58
49

query I rowsort
SELECT - 20 * col1 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT ALL 35 * 39 FROM tab2
----
1365
1365
1365

query I rowsort
SELECT DISTINCT col1 * 86 FROM tab2
----
4386
5762
6622

query II rowsort
SELECT ALL col1 AS col0, col0 FROM tab1 WHERE ( ( NULL = ( - ( - col0 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8676
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 * - col1 * col2 * + col0 IS NOT NULL
----

query II rowsort
SELECT + - 69 AS col2, - 69 AS col0 FROM tab0 cor0
----
-69
-69
-69
-69
-69
-69

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT - + col0 * - + col2 + 18 * - 25 - + + 74 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT ALL 11 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 11 / + + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 28 FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT - ( col1 ) + 30 FROM tab1 AS cor0
----
-17
16
25

query I rowsort
SELECT + ( 7 ) + + 5 + + ( + + 55 ) + + ( - + col1 ) * - col0 + col0 + col1 FROM tab2 cor0
----
2510
5136
5234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + + 71 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT 43 + - + COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8687
SELECT 43 + - + COUNT ( * ) FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT COUNT( DISTINCT + - 30 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT COUNT ( DISTINCT + - 30 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 + - + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 24 + + 15 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT ALL 26 + + 93 AS col1 FROM tab1
----
119
119
119

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 96 / - 70 AND 38
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8695
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * + - col1 IS NOT NULL
----
3

query I rowsort
SELECT + 70 * - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e45cd0f7f4c3344395401cf0dc066745

query I rowsort
SELECT + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL + 19 + col2 FROM tab1
----
115
78
87

query I rowsort
SELECT ALL 17 + col0 FROM tab1
----
102
108
68

query I rowsort
SELECT ALL - - col2 - + 0 - col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - COUNT( * ) + + - 35 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8701
SELECT - COUNT ( * ) + + - 35 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT - col2 + 63 * - 85 AS col2 FROM tab0 AS cor0
----
-5365
-5402
-5454

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 96 - - + col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 48 * - col1 AS col1 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT + col0 * + 83 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 IS NULL
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8707
SELECT ALL + col2 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT - col1 DIV 33 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT - col1 / 33 AS col1 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT + - 79 * - col0 FROM tab1 AS cor0
----
4029
6715
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + COUNT( * ) * - 23 * COUNT( * ) AS col0 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + COUNT ( * ) * - 23 * COUNT ( * ) AS col0 FROM tab0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + MIN( + - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + MIN ( + - col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8712
SELECT ALL col0 DIV - + 17, col1 AS col1 FROM tab0
----
-5
1
-5
21
0
81

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL col0 / - + 17, col1 AS col1 FROM tab0
----
-5
1
-5
21
0
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT DISTINCT ( COUNT( * ) ) DIV + 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT ( COUNT ( * ) ) / + 64 FROM tab2
----
0

query I rowsort
SELECT + ( - 81 ) AS col1 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8715
SELECT - col2 * + - col0 * + col2 + + 26 + - col1 DIV + CAST( + 71 AS SIGNED ) FROM tab2 AS cor0
----
102425
24360
252326

skipif mysql # not compatible
query I rowsort label-8715
SELECT - col2 * + - col0 * + col2 + + 26 + - col1 / + CAST ( + 71 AS INTEGER ) FROM tab2 AS cor0
----
102425
24360
252326

query I rowsort
SELECT DISTINCT - - 45 AS col2 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT COUNT( * ) * - 4 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8717
SELECT COUNT ( * ) * - 4 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL + + ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 83
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8722
SELECT ALL CAST( NULL AS DECIMAL ) / col0 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL CAST ( NULL AS REAL ) / col0 + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT 8 + 74, col1 + - col1 AS col0 FROM tab0
----
82
0

query I rowsort
SELECT ALL + col1 * + col0 + - 53 FROM tab0
----
1162
1774
44

query I rowsort
SELECT - col0 + 38 AS col0 FROM tab0
----
-49
-59
23

query I rowsort
SELECT ALL col2 + - 54 FROM tab2
----
-14
-31
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT ( - CAST( NULL AS SIGNED ) ) + 13 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT ( - CAST ( NULL AS INTEGER ) ) + 13 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col2 + + - col1 AS col0 FROM tab1
----
1330
290
3149

query I rowsort
SELECT - col1 + - 37 * + col2 AS col2 FROM tab1 AS cor0
----
-2188
-2563
-3566

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 53 * + col1 * col1 + col2 + + col1 * 85 AS col1 FROM tab0
----
237
25168
354665

query II rowsort
SELECT DISTINCT - 71 AS col1, 56 FROM tab2
----
-71
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - ( - MIN( + - ( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8734
SELECT - ( - MIN ( + - ( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT + 98 * - col1 DIV + col1 FROM tab2 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 98 * - col1 / + col1 FROM tab2 cor0
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT + - col2 DIV 84 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT + - col2 / 84 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 14 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 27 < + - col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT MAX( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8739
SELECT MAX ( + + col1 ) FROM tab1
----
47

query II rowsort
SELECT DISTINCT + col2 * - col2, + 81 * - ( 71 ) AS col2 FROM tab2
----
-1600
-5751
-3364
-5751
-529
-5751

query I rowsort
SELECT - col2 * + - col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL 45 * - col0 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT + col2 * - 3 AS col1 FROM tab1
----
-177
-204
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8744
SELECT DISTINCT + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 * + - 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 70 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ( + 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + + col2 + + col2 - - col0 AS col2 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - MIN( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - MIN ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - COUNT( ALL - col0 ) + - ( - 22 ) AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( ALL - col0 ) + - ( - 22 ) AS col0 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT COUNT( - 48 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT COUNT ( - 48 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - 68 + col2 + ( - col2 ) AS col2 FROM tab1 cor0
----
68
68
68

query II rowsort
SELECT + 23 * + col0 + col1 * + + col2 * col2, col2 AS col0 FROM tab2 AS cor0
----
124672
40
227113
58
28037
23

query I rowsort
SELECT DISTINCT - + 24 + + - col0 FROM tab0 AS cor0
----
-111
-121
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT ALL + col0 * 31 DIV + col2 AS col0 FROM tab0 AS cor0
----
269
30
9

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + col0 * 31 / + col2 AS col0 FROM tab0 AS cor0
----
269
30
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 + + col1 + ( + + 18 ) col0 FROM tab1
----
159
33
60

query I rowsort
SELECT ALL + 47 + col1 AS col2 FROM tab0
----
128
48
68

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) - - - col2 * + col2 * 26 FROM tab2
----
-13805
-41677
-87531

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT + MIN( DISTINCT - col2 ) + + - ( + + COUNT( * ) ) + + 63 + + ( - - COUNT( * ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + MIN ( DISTINCT - col2 ) + + - ( + + COUNT ( * ) ) + + 63 + + ( - - COUNT ( * ) ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL + 20 - - SUM( - 22 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + 20 - - SUM ( - 22 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT - col0 * - - 29 * col1 AS col2 FROM tab1 AS cor0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8764
SELECT - col0 * - - 29 * col1 AS col2 FROM tab1 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 53 - + col0 FROM tab1 AS cor0
----
-32
-38
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 72 * + + col2 + - 29 + ( - col0 ) BETWEEN - col2 AND + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT DISTINCT COUNT( - col2 ) + AVG ( DISTINCT - 9 ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT COUNT ( - col2 ) + AVG ( DISTINCT - 9 ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - MIN( col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8768
SELECT - MIN ( col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - 69 * - COUNT( * ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 69 * - COUNT ( * ) FROM tab1 AS cor0
----
207

query I rowsort
SELECT 11 * - col0 FROM tab1
----
-1001
-561
-935

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 3 NOT BETWEEN + + col2 AND ( - col1 + + 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT CAST( 48 AS SIGNED ) FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8773
SELECT CAST ( 48 AS INTEGER ) FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + - col0 col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT DISTINCT - 49 * - 73 FROM tab2 AS cor0
----
3577

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + - ( - - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT + - ( - - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT COUNT( - - col2 ) + MIN( DISTINCT + ( + - 58 ) ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT COUNT ( - - col2 ) + MIN ( DISTINCT + ( + - 58 ) ) FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL MIN( DISTINCT + col0 ) * + + 38 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1748

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL MIN ( DISTINCT + col0 ) * + + 38 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL COUNT( * ) + 41 AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL COUNT ( * ) + 41 AS col0 FROM tab1
----
44

query I rowsort
SELECT ALL 96 + + 67 FROM tab0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - 8 * MAX( col1 ) AS col2 FROM tab1
----
-376

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - 8 * MAX ( col1 ) AS col2 FROM tab1
----
-376

query I rowsort
SELECT ALL - - 30 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-40320
-8850
-95880

query I rowsort
SELECT DISTINCT - + 33 * - - col0 * - col1 FROM tab0 AS cor0
----
3201
40095
60291

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL 81 * - - 46 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
11178

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL 81 * - - 46 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
11178

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - + COUNT( * ) * 91 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - + COUNT ( * ) * 91 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT + col2 - + + col0 + + - col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 69 - + 46 - + + 1 - 60 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT ALL col1 * col0 + + 42 FROM tab1
----
4319
467
756

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT - 31 DIV - 24 + + 29 * ( - - 51 ) + - + col2 FROM tab0
----
1381
1433
1470

skipif mysql # not compatible
query I rowsort label-8789
SELECT - 31 / - 24 + + 29 * ( - - 51 ) + - + col2 FROM tab0
----
1381
1433
1470

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 >= + 10 / 91 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT col2 + - - col0 + - col0 AS col0, 74 + + col0 AS col0, + - 5 FROM tab0
----
9 values hashing to 01e578e690d0e6d9d4e1f46fd9c87425

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + MIN( - + col0 ) - + COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + MIN ( - + col0 ) - + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT - 2 * - col1 * + 79 AS col1 FROM tab2
----
10586
12166
8058

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 91 * + col2 NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT + 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT COUNT( * ) * 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT COUNT ( * ) * 56 FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL MAX( 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL MAX ( 65 ) FROM tab0 AS cor0
----
65

query II rowsort
SELECT col0 AS col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + 43 * - 68 * 40 * - col0 AS col0 FROM tab2 AS cor0
----
5380160
7485440
8772000

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
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-8802
SELECT ALL + + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8803
SELECT + CAST( + col2 AS SIGNED ) AS col1, + col0 AS col2 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-8803
SELECT + CAST ( + col2 AS INTEGER ) AS col1, + col0 AS col2 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( + 12 ) BETWEEN - - 97 * - + col0 * col0 AND 62
----

query I rowsort
SELECT DISTINCT ( - 21 ) AS col1 FROM tab0 cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT + - MAX( + 49 ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8806
SELECT + - MAX ( + 49 ) AS col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT COUNT( - 2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8807
SELECT COUNT ( - 2 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 - + 4 + + 68 BETWEEN col1 AND - + col0 * - col0 + - 27 + - - col2 + col0
----
15
81
47

query I rowsort
SELECT - col1 + - - 70 AS col1 FROM tab0 cor0
----
-11
49
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 75 col0 FROM tab2 cor0
----
115
133
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT + col0 FROM tab2 cor0 WHERE CAST( - 2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8811
SELECT + col0 FROM tab2 cor0 WHERE CAST ( - 2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT + ( + + 59 ) * + col2 + - col0 - + CAST( + col1 AS SIGNED ), - ( col2 ) AS col2 FROM tab0 AS cor0
----
2677
-47
482
-10
5743
-99

skipif mysql # not compatible
query II rowsort label-8812
SELECT + ( + + 59 ) * + col2 + - col0 - + CAST ( + col1 AS INTEGER ), - ( col2 ) AS col2 FROM tab0 AS cor0
----
2677
-47
482
-10
5743
-99

query II rowsort
SELECT col2 + col1, col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
77
125
67
74
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL + - ( CAST( NULL AS SIGNED ) ) / - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + - ( CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8816
SELECT + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT ALL - COUNT( * ) + + 66 AS col0, ( - - 75 ) FROM tab0
----
63
75

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL - COUNT ( * ) + + 66 AS col0, ( - - 75 ) FROM tab0
----
63
75

query III rowsort
SELECT * FROM tab0 WHERE + col0 > + col2 * + - 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 77 - + ( + 50 ) * + - 73 FROM tab2
----
3727
3727
3727

query I rowsort
SELECT ( + col0 ) - - 92 AS col2 FROM tab0
----
107
179
189

query I rowsort
SELECT + + 14 AS col0 FROM tab1 WHERE NOT NULL <= - col2
----

query II rowsort
SELECT + + 1 AS col2, - 52 - - 98 FROM tab0 AS cor0
----
1
46
1
46
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT - 80 * - COUNT( * ) col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8823
SELECT - 80 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT + - col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8824
SELECT + - col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 WHERE NOT 93 <> NULL
----

query I rowsort
SELECT DISTINCT ( - 80 ) * - + col1 + - 75 AS col1 FROM tab1
----
1045
325
3685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT ALL - MAX( DISTINCT - - col0 ) DIV + - MAX( + 31 ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - MAX ( DISTINCT - - col0 ) / + - MAX ( + 31 ) AS col0 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ( + 63 ) * - COUNT( * ) - + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-577

skipif mysql # not compatible
query I rowsort label-8828
SELECT ( + 63 ) * - COUNT ( * ) - + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-577

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 34 > + ( + - 84 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL < - - ( - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < - - ( - 18 )
----
0

query I rowsort
SELECT DISTINCT - col0 + + - col2 - + + col2 AS col1 FROM tab1 WHERE + 18 IS NULL
----

query II rowsort
SELECT 92 AS col2, 92 AS col2 FROM tab0
----
92
92
92
92
92
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT + COUNT( * ) AS col2, 47 AS col2 FROM tab2
----
3
47

skipif mysql # not compatible
query II rowsort label-8835
SELECT + COUNT ( * ) AS col2, 47 AS col2 FROM tab2
----
3
47

query I rowsort
SELECT ALL - 50 * + ( - col2 ) AS col0 FROM tab0
----
2350
4950
500

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT DISTINCT + COUNT( * ) AS col1, + SUM( - 65 ) - + COUNT( * ) + 44 AS col2 FROM tab2
----
3
-154

skipif mysql # not compatible
query II rowsort label-8837
SELECT DISTINCT + COUNT ( * ) AS col1, + SUM ( - 65 ) - + COUNT ( * ) + 44 AS col2 FROM tab2
----
3
-154

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT col0 * + ( + col1 ) + + - ( + col1 ) + + + 47 - - 76 - col0 + - col0 FROM tab0 AS cor0
----
1227
1755
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1, 24, 78 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT DISTINCT + col2 * + col2 * - ( 7 ) + col1 + + 2 DIV - + 33 FROM tab2 AS cor0
----
-11123
-23481
-3652

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + col2 * + col2 * - ( 7 ) + col1 + + 2 / - + 33 FROM tab2 AS cor0
----
-11123
-23481
-3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + 88 * + SUM( ALL 34 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + 88 * + SUM ( ALL 34 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 - + col0 * col1 * + 22 FROM tab0 cor0
----
-2135
-26811
-40215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( + col0 ) * 18 + + col1 AS col2 FROM tab2
----
19095
46157
78367

query II rowsort
SELECT DISTINCT + col1 AS col0, - 49 - + col1 + + col0 AS col2 FROM tab2
----
51
-54
67
-41
77
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL + ( + 53 ) * 44 / - + CAST( NULL AS SIGNED ) * col0 / + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + ( + 53 ) * 44 / - + CAST ( NULL AS INTEGER ) * col0 / + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 43 + + col0 FROM tab1
----
128
134
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8849
SELECT DISTINCT - COUNT( * ) * - 11 DIV - - 54 AS col1, - 81 FROM tab1
----
0
-81

skipif mysql # not compatible
query II rowsort label-8849
SELECT DISTINCT - COUNT ( * ) * - 11 / - - 54 AS col1, - 81 FROM tab1
----
0
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + SUM( DISTINCT - col1 ) * - - 67 col0 FROM tab0
----
-6901

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8851
SELECT + SUM ( DISTINCT - col1 ) * - - 67 col0 FROM tab0
----
-6901

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT - MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8852
SELECT - MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT MAX( ALL + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8853
SELECT MAX ( ALL + - col2 ) FROM tab0
----
-10

query II rowsort
SELECT ALL + 54 AS col1, + col2 + + col2 * col1 * - col1 AS col0 FROM tab2 AS cor0
----
54
-237120
54
-260304
54
-59800

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT + - COUNT( * ), 69 * - + 6 AS col1 FROM tab0 AS cor0
----
-3
-414

skipif mysql # not compatible
query II rowsort label-8855
SELECT + - COUNT ( * ), 69 * - + 6 AS col1 FROM tab0 AS cor0
----
-3
-414

query I rowsort
SELECT - + col1 * - col1 * + col1 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT ALL - + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query II rowsort
SELECT ALL + 43, col0 FROM tab1 AS cor0
----
43
51
43
85
43
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col1 * 12 >= - - 15
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - MIN( DISTINCT 14 ) AS col1 FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8860
SELECT - MIN ( DISTINCT 14 ) AS col1 FROM tab2 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8861
SELECT + COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT + ( + COUNT( * ) ) + - 75 / MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT + ( + COUNT ( * ) ) + - 75 / MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 1 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT + + 44 + 88 FROM tab0 AS cor0
----
132
132
132

query I rowsort
SELECT ALL 46 * - 19 + col2 AS col1 FROM tab2
----
-816
-834
-851

query I rowsort
SELECT + ( + - 87 ) FROM tab1, tab1 cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - 38 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8868
SELECT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT DISTINCT CAST( + - MAX( - + col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT CAST ( + - MAX ( - + col2 ) AS INTEGER ) FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col0 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8871
SELECT - MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + - 48 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT col2 + - - 44 * + col2 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) + + 86 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) + + 86 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8875
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
NULL
111
NULL
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8875
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
NULL
111
NULL
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - SUM( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8876
SELECT - SUM ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + - col2 + 25 FROM tab1 AS cor0
----
-34
-43
-71

query II rowsort
SELECT + 64, col2 + + + 23 AS col0 FROM tab0 AS cor0
----
64
122
64
33
64
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 29 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8880
SELECT * FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) * 32 NOT BETWEEN NULL AND col2 / - col2 + 36 - - 4 + - 11
----

skipif mysql # not compatible
query III rowsort label-8880
SELECT * FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) * 32 NOT BETWEEN NULL AND col2 / - col2 + 36 - - 4 + - 11
----

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT ( - - MAX( DISTINCT + + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT ( - - MAX ( DISTINCT + + col0 ) ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) * + 36 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 + - col2 AS col1 FROM tab0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT - MAX( - - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - MAX ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 66 / col2 + col2 * + + 83 * - - 98 * - col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - + col1 AS col0 FROM tab2 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT + + col1 * 38 FROM tab2 AS cor0
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ( COUNT( ALL col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 = ( - 42 )
----
3

skipif mysql # not compatible
query I rowsort label-8890
SELECT ( COUNT ( ALL col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 = ( - 42 )
----
3

query I rowsort
SELECT DISTINCT + - 29 * 7 AS col0 FROM tab2 AS cor0
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8893
SELECT + col0 DIV col0 * - 28 * col2 * + - ( - 19 ) AS col1 FROM tab2 AS cor0
----
-12236
-21280
-30856

skipif mysql # not compatible
query I rowsort label-8893
SELECT + col0 / col0 * - 28 * col2 * + - ( - 19 ) AS col1 FROM tab2 AS cor0
----
-12236
-21280
-30856

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( col0 ) / + col0 - - 58 * - 41 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - col1 + - col2 DIV + 11 FROM tab2 WHERE + - col0 DIV - col1 IS NOT NULL
----
-53
-72
-80

skipif mysql # not compatible
query I rowsort label-8895
SELECT - col1 + - col2 / + 11 FROM tab2 WHERE + - col0 / - col1 IS NOT NULL
----
-53
-72
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8896
SELECT DISTINCT MIN( ALL + + col2 ) AS col0, 92 + + 64 DIV 13 FROM tab1
----
59
96

skipif mysql # not compatible
query II rowsort label-8896
SELECT DISTINCT MIN ( ALL + + col2 ) AS col0, 92 + + 64 / 13 FROM tab1
----
59
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * - 17 col2 FROM tab1
----
-1530
-1530
-1530

query I rowsort
SELECT DISTINCT + ( - 93 ) * - + col1 AS col2 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT ALL - col1 * - 79 * col2 FROM tab1
----
106176
23305
252484

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + SUM( DISTINCT 22 ) + - + COUNT( * ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8901
SELECT + SUM ( DISTINCT 22 ) + - + COUNT ( * ) AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT MAX( DISTINCT - col0 ) * + 88 FROM tab2
----
-4048

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT MAX ( DISTINCT - col0 ) * + 88 FROM tab2
----
-4048

query I rowsort
SELECT - col0 + + 64 + + 52 FROM tab2
----
41
52
70

query I rowsort
SELECT ALL + col0 * + + col2 + col0 AS col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT ALL - col2 DIV - - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - col2 / - - col1 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT + col2 + - 81 * - + col0 AS col0 FROM tab0 cor0
----
1262
7057
7956

query I rowsort
SELECT DISTINCT + ( - 61 ) + 20 + + 82 * - - 32 FROM tab2
----
2583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - - + col0 col2, col0 + ( - col1 ) FROM tab1
----
144
80
147
37
159
44

query I rowsort
SELECT 41 - - - 91 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT ( - MIN( DISTINCT + + 40 ) ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT ( - MIN ( DISTINCT + + 40 ) ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + ( + - col1 ) * col0 * 77 FROM tab2 AS cor0
----
-180642
-379456
-386925

query I rowsort
SELECT - col0 * - 52 AS col1 FROM tab1 AS cor0
----
2652
4420
4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8915
SELECT MIN ( + col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL + SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + SUM ( DISTINCT - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT MAX( DISTINCT - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8918
SELECT MAX ( DISTINCT - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - - 79 AS col1 FROM tab1 WHERE NULL IS NULL
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT COUNT( * ) DIV SUM( ALL + - 14 ) * 92 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT COUNT ( * ) / SUM ( ALL + - 14 ) * 92 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + COUNT( - col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT ALL + COUNT ( - col2 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + MAX( DISTINCT col1 ) * + + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8922
SELECT + MAX ( DISTINCT col1 ) * + + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 86 * - 22 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - COUNT( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 29
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT - COUNT ( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8925
SELECT DISTINCT * FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) / col0 NOT IN ( 54 )
----

skipif mysql # not compatible
query III rowsort label-8925
SELECT DISTINCT * FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) / col0 NOT IN ( 54 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8926
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 * + 41 FROM tab1
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT COUNT( ALL + col2 ) * COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT COUNT ( ALL + col2 ) * COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - col1 - 93 / + col1 ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8930
SELECT + 68 DIV 19 + + COUNT( DISTINCT - col0 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8930
SELECT + 68 / 19 + + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8931
SELECT col1 * CAST( NULL AS DECIMAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT col1 * CAST ( NULL AS REAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT MAX( ALL - col2 ) * 81 + - 74 AS col2 FROM tab1
----
-4853

skipif mysql # not compatible
query I rowsort label-8932
SELECT MAX ( ALL - col2 ) * 81 + - 74 AS col2 FROM tab1
----
-4853

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( 29 ) * - 39 )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab0 WHERE ( 48 ) IS NOT NULL
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 - - 32 <> - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8936
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col2 - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8936
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col2 - + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT 32 * COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8937
SELECT 32 * COUNT ( * ) FROM tab1
----
96

query I rowsort
SELECT + col1 + + 63 FROM tab2
----
114
130
140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( 54 ) + + col0 AS col2 FROM tab2
----
100
118
129

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT - col1 DIV + col0 + 41 * + col1 AS col0 FROM tab1
----
1927
205
574

skipif mysql # not compatible
query I rowsort label-8941
SELECT - col1 / + col0 + 41 * + col1 AS col0 FROM tab1
----
1927
205
574

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( - col1 ) <= - 65
----
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 34 / - 95 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN ( - 58 ) AND col1
----

query I rowsort
SELECT ( - 19 ) AS col2 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT col1 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN ( NULL ) AND 8 / - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8949
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8949
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab1 WHERE NOT ( - ( col1 ) ) + + col1 IN ( + 6 )
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT - col2 AS col0 FROM tab2 WHERE - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8952
SELECT - col2 AS col0 FROM tab2 WHERE - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT 20 DIV - col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT 20 / - col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT 34 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT 34 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT 62 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8956
SELECT 62 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
186

query I rowsort
SELECT - col2 * + col0 + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - COUNT( - col1 ) - 94 col1 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8958
SELECT - COUNT ( - col1 ) - 94 col1 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT SUM( + 15 ) + 50 AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT SUM ( + 15 ) + 50 AS col2 FROM tab1 AS cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + 5 / col0 NOT IN ( col0 )
----

query I rowsort
SELECT ALL + col2 + - 56 * 87 AS col0 FROM tab0
----
-4773
-4825
-4862

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE - 91 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT DISTINCT - 10 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - 10 / col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL - col0 DIV 34 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - col0 / 34 FROM tab0 AS cor0
----
-2
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 IN ( col1 )
----

query I rowsort
SELECT ALL - - 50 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE - col0 >= + ( - 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 = - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + + 0 * + SUM( DISTINCT + 76 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT + + 0 * + SUM ( DISTINCT + 76 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 41 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + + 34 * - col0 AS col1 FROM tab2
----
-167552
-170850
-79764

query I rowsort
SELECT DISTINCT ( 97 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT DISTINCT + col0 DIV - ( + col0 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT + col0 / - ( + col0 ) AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT SUM( ALL + col1 ) DIV + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8977
SELECT SUM ( ALL + col1 ) / + COUNT ( * ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL + SUM( + + col2 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + SUM ( + + col2 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT ALL - ( col2 ) / + 25 AS col2 FROM tab1 AS cor0 WHERE col1 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8981
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <= ( col2 )
----

skipif mysql # not compatible
query III rowsort label-8981
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <= ( col2 )
----

query I rowsort
SELECT DISTINCT - 39 * - - col0 * ( + 5 ) + col0 * 8 AS col2 FROM tab0
----
-16269
-18139
-2805

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL BETWEEN col2 AND NULL )
----

query I rowsort
SELECT - + 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT 75 DIV - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8989
SELECT 75 / - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE NOT 28 NOT IN ( - - ( 58 ) + - col2 * - col2 )
----

query II rowsort
SELECT ALL 43, col1 AS col2 FROM tab1 AS cor0
----
43
14
43
47
43
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8992
SELECT DISTINCT - COUNT( * ) * ( - 66 ) + 52 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( CAST( NULL AS DECIMAL ) * - col1 )
----
52

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT - COUNT ( * ) * ( - 66 ) + 52 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS REAL ) * - col1 )
----
52

query I rowsort
SELECT DISTINCT + col1 * + 15 FROM tab2 AS cor0 WHERE + col2 * ( - col1 ) >= + 92 * - 66
----
1005
1155
765

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT 74 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT 74 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT col0 * - - 24 * CAST( - col2 AS SIGNED ) - + 32 FROM tab2
----
-104432
-25424
-61472

skipif mysql # not compatible
query I rowsort label-8997
SELECT col0 * - - 24 * CAST ( - col2 AS INTEGER ) - + 32 FROM tab2
----
-104432
-25424
-61472

query I rowsort
SELECT ALL + 5 + - + 65 AS col2 FROM tab0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT CAST( + + ( - + col2 ) AS SIGNED ) - col2 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-8999
SELECT CAST ( + + ( - + col2 ) AS INTEGER ) - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT 12 + + ( - col1 ) AS col0 FROM tab1
----
-2
-35
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) - 29 FROM tab0
----
-128
-39
-76

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) - 29 FROM tab0
----
-128
-39
-76

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND + 69 * col0 + + col2
----

query I rowsort
SELECT ALL col0 + 73 FROM tab0
----
160
170
88

query II rowsort
SELECT ALL col0 - - col0, 46 AS col1 FROM tab2
----
128
46
150
46
92
46

query I rowsort
SELECT + 78 + 18 FROM tab2
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9006
SELECT - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 78 - 42 FROM tab2
----
-120
-120
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - + SUM( ALL col0 ) * + SUM( + col1 + - col2 ) FROM tab2 WHERE NULL IS NULL
----
-13690

skipif mysql # not compatible
query I rowsort label-9008
SELECT - + SUM ( ALL col0 ) * + SUM ( + col1 + - col2 ) FROM tab2 WHERE NULL IS NULL
----
-13690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9009
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> ( + CAST( NULL AS SIGNED ) + + 28 ) AND NOT - col1 * ( - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9009
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> ( + CAST ( NULL AS INTEGER ) + + 28 ) AND NOT - col1 * ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 82 col2 FROM tab2
----
15
31
5

query I rowsort
SELECT + col0 * + col2 * + - ( 70 ) + + col0 AS col1 FROM tab1
----
-342669
-350965
-433069

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + SUM( - col0 ) + - 2 FROM tab2 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-9013
SELECT + SUM ( - col0 ) + - 2 FROM tab2 AS cor0
----
-187

query I rowsort
SELECT DISTINCT + col2 * - + 28 - + col1 AS col1 FROM tab2 AS cor0
----
-1197
-1691
-695

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 col1 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT COUNT( 28 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9017
SELECT COUNT ( 28 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 82 * col1 FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT ALL 13 AS col1 FROM tab1 AS cor0
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 10 NOT IN ( - + col2 + - col1 * + + col0 * col0 + + 73 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 85 ) <= NULL
----

query II rowsort
SELECT + + 54, + col2 * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
54
-102400
54
-24334
54
-252300

query I rowsort
SELECT + + col0 * + + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT DISTINCT + 72 DIV - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT + 72 / - col0 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT - col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT - col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * col0 AS col1 FROM tab0
----
261
291
45

query II rowsort
SELECT 5 AS col0, + 12 FROM tab1
----
5
12
5
12
5
12

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 / col0 ) NOT BETWEEN - col2 + - col2 + col0 / col0 AND col0 * 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT MAX( ALL 53 ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9030
SELECT MAX ( ALL 53 ) AS col2 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL + MAX( ALL - + col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT ALL + MAX ( ALL - + col1 ) col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 77 NOT BETWEEN + col1 + - + col0 + + 0 AND + col2 + col2
----
15
81
47
97
1
99

query II rowsort
SELECT ALL + col2 * + + col1, col1 AS col0 FROM tab2
----
1173
51
3080
77
3886
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 69 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT DISTINCT CAST( + 94 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT CAST ( + 94 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
94

query II rowsort
SELECT 48, + 91 AS col2 FROM tab0 AS cor0
----
48
91
48
91
48
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 + + 29 NOT IN ( + col2 * - 50 * - ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( col0 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * + 59 * + col2 + col1 + - col2 col0 FROM tab1
----
34756
40099
56558

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0 cor0
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9043
SELECT - CAST( NULL AS DECIMAL ) + COUNT( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT - CAST ( NULL AS REAL ) + COUNT ( + col2 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - ( + col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL - 9 * MIN( ALL ( + col1 ) ) FROM tab2 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - 9 * MIN ( ALL ( + col1 ) ) FROM tab2 AS cor0
----
-459

query I rowsort
SELECT + 32 FROM tab1 AS cor0 WHERE ( + + col0 ) IS NOT NULL
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL + CAST( + col2 AS SIGNED ) * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + CAST ( + col2 AS INTEGER ) * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( col1 ) )
----

query I rowsort
SELECT + 0 + - + 50 FROM tab0 AS cor0
----
-50
-50
-50

query II rowsort
SELECT - 5 + + col1, col2 AS col0 FROM tab0 AS cor0
----
-4
99
16
10
76
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - - 91 ) col2 FROM tab2 AS cor0
----
-16
-27
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9052
SELECT col1 DIV 39 * + - CAST( - col1 AS SIGNED ) FROM tab0
----
0
0
162

skipif mysql # not compatible
query I rowsort label-9052
SELECT col1 / 39 * + - CAST ( - col1 AS INTEGER ) FROM tab0
----
0
0
162

query I rowsort
SELECT DISTINCT col2 * + 84 * col1 * + + 69 + - 61 AS col2 FROM tab1
----
1709759
18523955
7789763

query I rowsort
SELECT + 4 + - 99 AS col2 FROM tab0 WHERE + col2 * + 61 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9055
SELECT + - col1 AS col1, + CAST( NULL AS SIGNED ) * - ( 53 ) - + 17 FROM tab2 WHERE + 58 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9055
SELECT + - col1 AS col1, + CAST ( NULL AS INTEGER ) * - ( 53 ) - + 17 FROM tab2 WHERE + 58 IS NULL
----

query I rowsort
SELECT ALL - + 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - + 60 - + ( + - 89 ) FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT + - col2 * + + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + 53 = ( + col1 + + - 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT - 95 AS col2, - col1 + + + col1 FROM tab2
----
-95
0
-95
0
-95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT + COUNT( - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + COUNT ( - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT SUM( + - 8 ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9063
SELECT SUM ( + - 8 ) AS col0 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + 99 * - - ( col2 ) AS col2 FROM tab2 WHERE NOT NULL <= + + 27 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT - col0 DIV - 54 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9066
SELECT - col0 / - 54 AS col0 FROM tab0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab1
----
13
13
13

query I rowsort
SELECT + 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + + MAX( + + 18 ) * - - 87 FROM tab2 AS cor0
----
1566

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + + MAX ( + + 18 ) * - - 87 FROM tab2 AS cor0
----
1566

query I rowsort
SELECT ALL - col2 * + - 14 FROM tab1 AS cor0
----
1344
826
952

query I rowsort
SELECT DISTINCT - - 71 - + 7 AS col0 FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 <> - 93 + + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 + 35 * - 67 AS col0 FROM tab2 AS cor0
----
-2287
-2305
-2322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, col0 * col0 FROM tab2 cor0
----
51
2116
67
5625
77
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + MAX( ( - col0 ) ) + 22 AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9075
SELECT + MAX ( ( - col0 ) ) + 22 AS col0 FROM tab2
----
-24

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
1
21
81

query I rowsort
SELECT col2 * + col0 + - + col2 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT - ( col2 ) + + ( + + 44 ) AS col2 FROM tab1
----
-15
-24
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col1 + - col0 col2 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + 71 + MAX( + 88 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 71 + MAX ( + 88 ) FROM tab0
----
159

query I rowsort
SELECT DISTINCT 81 * - col1 - - col1 FROM tab0
----
-1680
-6480
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-9082
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL OR - 39 * col2 <= NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT - - SUM( - ( - + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - - SUM ( - ( - + col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab0
----
-10

query II rowsort
SELECT DISTINCT + - col2 + + - col2, 15 AS col1 FROM tab0 AS cor0 WHERE ( NOT - - ( - 98 ) BETWEEN NULL AND - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT + MIN( ALL - 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT + MIN ( ALL - 96 ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT 56 * - 7 FROM tab2 AS cor0
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT + ( COUNT( DISTINCT + + col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + ( COUNT ( DISTINCT + + col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - - col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9091
SELECT + 78 + + + ( + + col0 ), CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
165
NULL
175
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-9091
SELECT + 78 + + + ( + + col0 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
165
NULL
175
NULL
93
NULL

query I rowsort
SELECT ALL col0 + - 59 FROM tab2
----
-13
16
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9093
SELECT + COUNT( * ) + - - COUNT( * ) DIV + COUNT( * ) + 13 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9093
SELECT + COUNT ( * ) + - - COUNT ( * ) / + COUNT ( * ) + 13 FROM tab1
----
17

query I rowsort
SELECT DISTINCT + col2 + + 13 AS col1 FROM tab0
----
112
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT + COUNT( 14 ) + - + ( + - 96 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9095
SELECT + COUNT ( 14 ) + - + ( + - 96 ) FROM tab1
----
99

query I rowsort
SELECT + col2 + + - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT - COUNT( * ) * - - 91 AS col0 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - COUNT ( * ) * - - 91 AS col0 FROM tab2
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT + + col1 DIV - col2 * - col0 col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9099
SELECT + + col1 / - col2 * - col0 col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT + 10 * col1 - - 38 DIV - col0 FROM tab0 AS cor0
----
10
210
808

skipif mysql # not compatible
query I rowsort label-9100
SELECT + 10 * col1 - - 38 / - col0 FROM tab0 AS cor0
----
10
210
808

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL ( + COUNT( DISTINCT + col2 ) ) FROM tab2 WHERE 8 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL ( + COUNT ( DISTINCT + col2 ) ) FROM tab2 WHERE 8 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT COUNT( * ) + + 38 AS col1 FROM tab0, tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9102
SELECT COUNT ( * ) + + 38 AS col1 FROM tab0, tab2 AS cor0
----
47

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT DISTINCT + col0 DIV - - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + col0 / - - col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab2 cor0 WHERE ( 75 NOT IN ( 88, - 47 * - 54 - - - col0 * - 22 + + col1 / + col2 ) ) OR NULL IS NULL
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT - - ( + col0 ) + 82 + - CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
1039
802
9782

skipif mysql # not compatible
query I rowsort label-9106
SELECT - - ( + col0 ) + 82 + - CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
1039
802
9782

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT + col2 + - col1 - + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-9107
SELECT + col2 + - col1 - + col2 / + col0 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT + COUNT( * ) - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + COUNT ( * ) - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 FROM tab0 AS cor0
----
111
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT DISTINCT + COUNT( * ) AS col0, 5 AS col2 FROM tab0 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-9110
SELECT DISTINCT + COUNT ( * ) AS col0, 5 AS col2 FROM tab0 AS cor0
----
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9111
SELECT COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col0 * + col0 + + 24 FROM tab1 AS cor0
----
-2577
-7201
-8257

query I rowsort
SELECT + 45 * + ( 80 ) * - - col1 FROM tab0 AS cor0
----
291600
3600
75600

query II rowsort
SELECT ALL col1, + 93 AS col2 FROM tab2
----
51
93
67
93
77
93

query II rowsort
SELECT 88, - col1 AS col0 FROM tab1
----
88
-14
88
-47
88
-5

query III rowsort
SELECT + col2 AS col2, col0 AS col0, - col1 FROM tab1 AS cor0
----
9 values hashing to 2414f6a21a14a1038129123549ac9034

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT ALL - col2 DIV - - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - col2 / - - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9118
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + CAST( NULL AS DECIMAL ) + col2 * col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 * + + col1 * + - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS REAL ) + col2 * col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 * + + col1 * + - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9121
SELECT ALL + COUNT ( * ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + 72 * - 16 * col1 AS col2 FROM tab2
----
-58752
-77184
-88704

query I rowsort
SELECT + col2 * ( + col2 ) AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT ALL ( 49 ) col0, 20 * COUNT( + col2 ) FROM tab1 cor0
----
49
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9125
SELECT ALL ( 49 ) col0, 20 * COUNT ( + col2 ) FROM tab1 cor0
----
49
60

query I rowsort
SELECT ALL + 92 * + 62 FROM tab0 AS cor0
----
5704
5704
5704

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE col0 <> - col1 - - col1 * - col1
----
-3

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 <> - col1 - - col1 * - col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT CAST( 40 AS SIGNED ) FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-9129
SELECT CAST ( 40 AS INTEGER ) FROM tab0
----
40
40
40

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 7 ) col1 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + COUNT( * ) + - 74 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-9132
SELECT + COUNT ( * ) + - 74 FROM tab1
----
-71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 9 + - 40 * + - col0 + - col1 * - - col1 + 38 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL 25 * - - COUNT( * ) * + - 72 col2 FROM tab0
----
-5400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9135
SELECT ALL 25 * - - COUNT ( * ) * + - 72 col2 FROM tab0
----
-5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - + MIN( - - col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT DISTINCT - + MIN ( - - col2 ) col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col0 * + 61 + + + 46 FROM tab1 AS cor0
----
3157
5231
5597

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT + + SUM( - col1 ) col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9139
SELECT DISTINCT + + SUM ( - col1 ) col2 FROM tab0 cor0
----
-103

query I rowsort
SELECT DISTINCT col0 + 80 AS col1 FROM tab2 AS cor0 WHERE - 51 IN ( col2, + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * col1 - col1 * + col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - col0 * - 61 + + col1 + - 91 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9143
SELECT ALL + + col0 AS col1, 94 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 98 + + CAST( - 4 AS SIGNED ) AND - col1 + - 53 )
----

skipif mysql # not compatible
query II rowsort label-9143
SELECT ALL + + col0 AS col1, 94 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 98 + + CAST ( - 4 AS INTEGER ) AND - col1 + - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + MIN( + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + MIN ( + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + 66 * - + 4 NOT BETWEEN - 48 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9147
SELECT - col2 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT - col2 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col1 FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + COUNT( * ) * + 63 * + - COUNT( * ) AS col1 FROM tab2
----
-567

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + COUNT ( * ) * + 63 * + - COUNT ( * ) AS col1 FROM tab2
----
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9151
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT 26 * + col2 AS col0 FROM tab2
----
1040
1508
598

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT + 66 DIV + + col1 AS col0 FROM tab0
----
0
3
66

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 66 / + + col1 AS col0 FROM tab0
----
0
3
66

query I rowsort
SELECT ALL col1 * - 85 AS col1 FROM tab2
----
-4335
-5695
-6545

query I rowsort
SELECT col2 * - 88 AS col2 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9156
SELECT ALL * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9156
SELECT ALL * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9157
SELECT 84, + CAST( NULL AS SIGNED ) + + 37 * col2 AS col1 FROM tab1
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-9157
SELECT 84, + CAST ( NULL AS INTEGER ) + + 37 * col2 AS col1 FROM tab1
----
84
NULL
84
NULL
84
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 / col2, col0 * + col1 + - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT ALL - col1 DIV + - 51 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - col1 / + - 51 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + ( - + 21 ) AS col1 FROM tab1 AS cor0
----
-21
-21
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 61 * - col2 < - 16 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL SUM( + 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
72

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL SUM ( + 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT DISTINCT + 38, - COUNT( * ) AS col2 FROM tab1
----
38
-3

skipif mysql # not compatible
query II rowsort label-9163
SELECT DISTINCT + 38, - COUNT ( * ) AS col2 FROM tab1
----
38
-3

query I rowsort
SELECT DISTINCT + + 65 * - - 96 FROM tab2 WHERE NOT ( NOT ( NOT - + col1 IS NOT NULL ) )
----

query I rowsort
SELECT + 63 * + 25 FROM tab1
----
1575
1575
1575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT + col0 AS col0, 34 * CAST( - col0 AS SIGNED ) FROM tab0
----
15
-510
87
-2958
97
-3298

skipif mysql # not compatible
query II rowsort label-9166
SELECT + col0 AS col0, 34 * CAST ( - col0 AS INTEGER ) FROM tab0
----
15
-510
87
-2958
97
-3298

query II rowsort
SELECT ALL + 53 AS col2, col2 AS col0 FROM tab2
----
53
23
53
40
53
58

query II rowsort
SELECT DISTINCT - col0, + 67 AS col0 FROM tab0 AS cor0
----
-15
67
-87
67
-97
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT DISTINCT col2 * + CAST( + + 7 AS SIGNED ) - ( - col0 ) FROM tab0 AS cor0
----
157
344
790

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT col2 * + CAST ( + + 7 AS INTEGER ) - ( - col0 ) FROM tab0 AS cor0
----
157
344
790

query II rowsort
SELECT DISTINCT - - col1, + col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - 16 * + col0 * col0 FROM tab2 AS cor0
----
-33856
-65536
-90000

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ( COUNT( * ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9173
SELECT ( COUNT ( * ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT DISTINCT + - MIN( + col2 ) AS col0, SUM( ALL + - col1 ) * + 15 FROM tab2 AS cor0
----
-23
-2925

skipif mysql # not compatible
query II rowsort label-9174
SELECT DISTINCT + - MIN ( + col2 ) AS col0, SUM ( ALL + - col1 ) * + 15 FROM tab2 AS cor0
----
-23
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL - + COUNT( * ) * - 20 + + 75 AS col2 FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - + COUNT ( * ) * - 20 + + 75 AS col2 FROM tab1 cor0
----
135

query I rowsort
SELECT + 25 + - col2 + - col1 AS col0 FROM tab1 cor0
----
-39
-85
-90

query II rowsort
SELECT ALL - col0 AS col0, col2 * 53 AS col0 FROM tab1 AS cor0
----
-51
5088
-85
3127
-91
3604

query I rowsort
SELECT - 97 FROM tab0 AS cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT ALL - col0 + + 3 FROM tab0 AS cor0
----
-12
-84
-94

query I rowsort
SELECT - 44 * col2 + + - col1 + + col2 - + col1 AS col1 FROM tab1 cor0
----
-2547
-3018
-4156

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + + MIN( ALL + + col1 ) + - ( - 84 ) AS col2 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9181
SELECT + + MIN ( ALL + + col1 ) + - ( - 84 ) AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT COUNT( * ) + - MIN( DISTINCT - 51 ) * + - COUNT( ALL - + col1 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT COUNT ( * ) + - MIN ( DISTINCT - 51 ) * + - COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) + - col0 + - col1 FROM tab1
----
3391
4486
9151

query I rowsort
SELECT DISTINCT 35 + col0 FROM tab1
----
120
126
86

query III rowsort
SELECT * FROM tab2 WHERE NULL < col0 * + 39
----

query I rowsort
SELECT ALL col2 * 45 FROM tab2
----
1035
1800
2610

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * col0 * + 92 * 55 + - 86 NOT IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT - + COUNT( * ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + col1 + + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT - + COUNT ( * ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + col1 + + + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL MIN( + col1 ) - + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL MIN ( + col1 ) - + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT - col1 * + - ( + CAST( NULL AS SIGNED ) ) * + + col0 + - - col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT - col1 * + - ( + CAST ( NULL AS INTEGER ) ) * + + col0 + - - col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query II rowsort label-9193
SELECT 21 DIV + - col0 + - 75 DIV col2, 12 AS col1 FROM tab2
----
-1
12
-1
12
-3
12

skipif mysql # not compatible
query II rowsort label-9193
SELECT 21 / + - col0 + - 75 / col2, 12 AS col1 FROM tab2
----
-1
12
-1
12
-3
12

query I rowsort
SELECT + ( + - 17 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT 31 DIV - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT 31 / - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT + 42 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
42
-3

skipif mysql # not compatible
query II rowsort label-9199
SELECT + 42 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
42
-3

query II rowsort
SELECT + 84, + col0 FROM tab2 AS cor0
----
84
46
84
64
84
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + + MAX( col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-9201
SELECT + + MAX ( col0 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9202
SELECT - MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9203
SELECT - + COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9203
SELECT - + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT + col0 * - - 40 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT COUNT( + ( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT COUNT ( + ( - col0 ) ) FROM tab1
----
3

query I rowsort
SELECT col1 * - col0 * col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9207
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - col2 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 52 FROM tab2 cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - 61 BETWEEN - col0 + + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 19 col2 FROM tab2
----
-21
-39
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT + + ( ( - - 34 ) ) AS col1 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - + 73 + + COUNT( * ) AS col1 FROM tab1 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - + 73 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-70

query I rowsort
SELECT + col2 * - ( col2 ) + + col0 FROM tab1
----
-3396
-4533
-9165

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9217
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 WHERE - - 15 * + - 40 + + - col2 IS NULL
----

query I rowsort
SELECT - 12 + col1 FROM tab0
----
-11
69
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT DISTINCT - 44 + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - 44 + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + MIN( + 78 ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + MIN ( + 78 ) AS col2 FROM tab0
----
78

query II rowsort
SELECT DISTINCT + col2 AS col0, ( - - 75 ) FROM tab2
----
23
75
40
75
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + 79 + - - COUNT( * ) + ( COUNT( - 96 ) ) * + + MAX( DISTINCT + col2 ) FROM tab0
----
379

skipif mysql # not compatible
query I rowsort label-9223
SELECT + 79 + - - COUNT ( * ) + ( COUNT ( - 96 ) ) * + + MAX ( DISTINCT + col2 ) FROM tab0
----
379

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <> - 85
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 + + + col1 * + + 43 >= + + col1 * + col2
----
87
21
10

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND col2 * - 93 + - - col2 / - 79 + - ( - - 30 ) - - - 42 / col2
----

query I rowsort
SELECT + 43 AS col2 FROM tab2 WHERE NULL IS NULL
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9228
SELECT + col1 * - col0, CAST( - col0 AS SIGNED ) DIV col0 AS col2 FROM tab2
----
-2346
-1
-4928
-1
-5025
-1

skipif mysql # not compatible
query II rowsort label-9228
SELECT + col1 * - col0, CAST ( - col0 AS INTEGER ) / col0 AS col2 FROM tab2
----
-2346
-1
-4928
-1
-5025
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9229
SELECT ALL + + col1 + 97 - col2 AS col0, - col1 FROM tab0 cor0 WHERE 57 + - col1 + col1 + col1 - + 20 + - + col2 + - + CAST( NULL AS SIGNED ) + col1 / + 21 * - col2 * - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + + col1 + 97 - col2 AS col0, - col1 FROM tab0 cor0 WHERE 57 + - col1 + col1 + col1 - + 20 + - + col2 + - + CAST ( NULL AS INTEGER ) + col1 / + 21 * - col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 74 * + 2 * - col2 FROM tab0 AS cor0
----
-14652
-1480
-6956

query I rowsort
SELECT + ( 33 ) * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1947
-2244
-3168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 13 AND NULL
----

query I rowsort
SELECT - col0 * 25 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT col1 * - - col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT - COUNT( * ) / + ( + 61 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - COUNT ( * ) / + ( + 61 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT 8 DIV 90 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT 8 / 90 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT 26 * + - COUNT( * ) * 29 FROM tab1
----
-2262

skipif mysql # not compatible
query I rowsort label-9238
SELECT 26 * + - COUNT ( * ) * 29 FROM tab1
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9239
SELECT COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * - col1 col0 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL + COUNT( * ) col0, 4 FROM tab2
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9241
SELECT ALL + COUNT ( * ) col0, 4 FROM tab2
----
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9242
SELECT * FROM tab1 WHERE NOT NULL <> col2 * + 46 - + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9242
SELECT * FROM tab1 WHERE NOT NULL <> col2 * + 46 - + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NULL BETWEEN 17 / + col1 AND NULL
----

query I rowsort
SELECT + ( - - col1 ) AS col0 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL + col2 AS col2, - col2 * col0 * + col2 FROM tab2
----
23
-24334
40
-102400
58
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT + col2 * CAST( + - col0 AS SIGNED ) * 70 * - ( ( col2 ) ) FROM tab0 AS cor0
----
2319450
609000
66548790

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + col2 * CAST ( + - col0 AS INTEGER ) * 70 * - ( ( col2 ) ) FROM tab0 AS cor0
----
2319450
609000
66548790

query I rowsort
SELECT ALL 5 * 42 FROM tab0 AS cor0
----
210
210
210

query II rowsort
SELECT DISTINCT + + col1, col0 + + col2 AS col2 FROM tab2 AS cor0
----
51
69
67
133
77
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE - col1 / CAST( NULL AS SIGNED ) * 84 NOT BETWEEN - 43 AND + - col2
----

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE - col1 / CAST ( NULL AS INTEGER ) * 84 NOT BETWEEN - 43 AND + - col2
----

query I rowsort
SELECT ( - 9 ) AS col1 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - col2 + + col2 + - - 55 FROM tab0
----
55

query I rowsort
SELECT DISTINCT + ( - 10 ) AS col2 FROM tab1
----
-10

query I rowsort
SELECT DISTINCT col2 * + - 12 AS col0 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT ALL + col1 * - + 7 AS col0 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT DISTINCT + 75 DIV - + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + 75 / - + 91 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT + 60 + - col0 DIV + col2 AS col1 FROM tab2 cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-9256
SELECT + 60 + - col0 / + col2 AS col1 FROM tab2 cor0
----
58
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT + MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + MAX ( col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - 74 + + + col2 FROM tab2 AS cor0
----
-16
-34
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + 48 NOT BETWEEN col0 * + - ( col2 ) - 17 AND NULL
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 98 col1 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL + COUNT( * ) + + 11 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + COUNT ( * ) + + 11 FROM tab0
----
14

query I rowsort
SELECT - 13 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 - 98 IS NOT NULL
----

query I rowsort
SELECT + 72 * - + col0 - + + col2 * col1 FROM tab1
----
-5016
-6415
-9748

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT - - col2 - 19 + + 19 DIV + - col0 + - col0 + + col0 FROM tab0 cor0
----
-9
27
80

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - col2 - 19 + + 19 / + - col0 + - col0 + + col0 FROM tab0 cor0
----
-9
27
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 52 = - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + + COUNT( * ) - + 37 AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9267
SELECT + + COUNT ( * ) - + 37 AS col2 FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT 33 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT 33 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT NULL BETWEEN + 62 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9271
SELECT ALL * FROM tab2 WHERE + 19 BETWEEN NULL AND CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-9271
SELECT ALL * FROM tab2 WHERE + 19 BETWEEN NULL AND CAST ( NULL AS INTEGER ) * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT MAX( DISTINCT - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9273
SELECT MAX ( DISTINCT - col1 ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT - + MIN( DISTINCT 55 ) * 86 FROM tab1 AS cor0 WHERE + col0 * col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - + MIN ( DISTINCT 55 ) * 86 FROM tab1 AS cor0 WHERE + col0 * col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - ( - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9275
SELECT - ( - COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT - col2 * - col1 - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT ( + - ( 18 ) ) FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9278
SELECT CAST( NULL AS SIGNED ), - col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-9278
SELECT CAST ( NULL AS INTEGER ), - col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT - col1 * + 9 * col0 AS col0 FROM tab2 AS cor0
----
-21114
-44352
-45225

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 / col2 = ( - col2 )
----
10
47
99

query II rowsort
SELECT 52, + col1 AS col2 FROM tab1 AS cor0
----
52
14
52
47
52
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - - CAST( + ( + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + col1 * + + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + 68 * - 26 * - - 82 AS col0 FROM tab0
----
-144976
-144976
-144976

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL 49 * - COUNT( * ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL 49 * - COUNT ( * ) FROM tab0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT - SUM( + - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - SUM ( + - col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT col2 * col2 * - col1 AS col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT ALL + - 62 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT - COUNT( + col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9290
SELECT - COUNT ( + col0 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT - COUNT( DISTINCT col1 ) - MAX( - col2 ) - - 38 * 28 * MIN( + ( + CAST( NULL AS SIGNED ) ) ) * - + 91 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - COUNT ( DISTINCT col1 ) - MAX ( - col2 ) - - 38 * 28 * MIN ( + ( + CAST ( NULL AS INTEGER ) ) ) * - + 91 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT 33 * - - COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9292
SELECT 33 * - - COUNT ( * ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL 44 * - 1 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9294
SELECT DISTINCT + COUNT( * ) DIV + 17 * - ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + COUNT ( * ) / + 17 * - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT ALL + + SUM( - CAST( - col1 AS SIGNED ) ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL + + SUM ( - CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT + col1 * + 51 FROM tab1 AS cor0
----
2397
255
714

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 * - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + - col0 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + col1 * col1 + + 68 col0, + col1 * + + 31 FROM tab2
----
119714
1581
336743
2077
379524
2387

query I rowsort
SELECT DISTINCT - ( + - 52 ) + + + col0 + - col1 + - col0 * + col1 * col2 AS col1 FROM tab1
----
-24943
-290740
-68455

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + 30 * - MIN( DISTINCT col2 ) * 48 + - 24 - 2 AS col0 FROM tab2
----
-33146

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 30 * - MIN ( DISTINCT col2 ) * 48 + - 24 - 2 AS col0 FROM tab2
----
-33146

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT ALL col0 * - col1 + + 96 DIV col2 col1 FROM tab0
----
-1213
-1818
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT ALL col0 * - col1 + + 96 / col2 col1 FROM tab0
----
-1213
-1818
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL 40 - + COUNT( * ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL 40 - + COUNT ( * ) AS col2 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + 9 * COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9305
SELECT + 9 * COUNT ( * ) FROM tab0 AS cor0
----
27

query II rowsort
SELECT ALL - ( + + col2 ), col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT - col1 * 65 + - col0 FROM tab0
----
-1452
-162
-5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col0 col0 FROM tab1 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT + ( col1 ) + - col0 * + col2, 30 * - + col2 AS col1 FROM tab1
----
-4882
-2880
-5010
-1770
-6141
-2040

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 36 AND NULL
----

query I rowsort
SELECT DISTINCT - 68 * - col2 * - - 57 AS col1 FROM tab1
----
228684
263568
372096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - 79 * + CAST( - - ( - ( + + 13 ) ) AS SIGNED ) * - - col0 AS col2 FROM tab1 AS cor0 WHERE + ( 5 ) + 56 IS NOT NULL
----
52377
87295
93457

skipif mysql # not compatible
query I rowsort label-9314
SELECT - 79 * + CAST ( - - ( - ( + + 13 ) ) AS INTEGER ) * - - col0 AS col2 FROM tab1 AS cor0 WHERE + ( 5 ) + 56 IS NOT NULL
----
52377
87295
93457

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT DISTINCT - - 0 AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT - - 0 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9316
SELECT - + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9316
SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9317
SELECT - CAST( NULL AS SIGNED ) col2, col2 * - 6 * + col1 FROM tab1 cor0
----
NULL
-1770
NULL
-19176
NULL
-8064

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9317
SELECT - CAST ( NULL AS INTEGER ) col2, col2 * - 6 * + col1 FROM tab1 cor0
----
NULL
-1770
NULL
-19176
NULL
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 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-9318
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT + COUNT( * ) col2, - 65 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9319
SELECT + COUNT ( * ) col2, - 65 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9
-65

query II rowsort
SELECT - col2, + col2 * - ( - col0 ) * - - ( + col2 ) AS col0 FROM tab2 WHERE 48 >= - col2 * col1 + col2
----
-23
24334
-40
102400
-58
252300

query I rowsort
SELECT DISTINCT + col0 + 68 AS col1 FROM tab1 AS cor0 WHERE ( ( NOT NULL <= NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9322
SELECT ALL + 11 DIV - col2 + + 83 * - col0 + + col2, + col0 AS col0 FROM tab1 AS cor0
----
-4137
51
-6996
85
-7485
91

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL + 11 / - col2 + + 83 * - col0 + + col2, + col0 AS col0 FROM tab1 AS cor0
----
-4137
51
-6996
85
-7485
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL + - MIN( - + 14 ) AS col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + - MIN ( - + 14 ) AS col1 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + + 90 * ( + COUNT( * ) ) + + MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
329

skipif mysql # not compatible
query I rowsort label-9324
SELECT + + 90 * ( + COUNT ( * ) ) + + MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
329

query I rowsort
SELECT ALL - - 22 AS col0 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + - 6 + - + MAX( - - 38 ) * - SUM( DISTINCT + col2 ) FROM tab1 cor0
----
8468

skipif mysql # not compatible
query I rowsort label-9326
SELECT + - 6 + - + MAX ( - - 38 ) * - SUM ( DISTINCT + col2 ) FROM tab1 cor0
----
8468

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL + 17 + + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + 17 + + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + MAX( - 83 ) AS col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9328
SELECT + MAX ( - 83 ) AS col2 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( 97 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 53 / + 74 * - col1 * - - col0 - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 28 >= + col1
----
91
47
68

query II rowsort
SELECT col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT DISTINCT - 67 * + - 51 + - - col1 * + - CAST( NULL AS SIGNED ) + - + col1 + + + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - 67 * + - 51 + - - col1 * + - CAST ( NULL AS INTEGER ) + - + col1 + + + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 64 * + - col2 FROM tab2
----
-163840
-278400
-67712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT CAST( + - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9335
SELECT CAST ( + - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT ALL - CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT ALL - CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - + ( - + 93 ), col0 / 37 * ( - col1 ) - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0, - 99 AS col2 FROM tab1 AS cor0
----
51
-99
85
-99
91
-99

query I rowsort
SELECT col1 * - + col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT col0 * 0 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + col0 col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9344
SELECT ALL + - 47 DIV COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + - 47 / COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL - 4 + - col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - 4 + - col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 + 50 + + col1 * - - 89 AS col0 FROM tab2
----
4596
6020
6910

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + SUM( ALL + + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + SUM ( ALL + + col2 ) AS col0 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - COUNT( * ) col2 FROM tab1 WHERE NOT ( + 85 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9348
SELECT ALL - COUNT ( * ) col2 FROM tab1 WHERE NOT ( + 85 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9350
SELECT ALL COUNT( * ) DIV + 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL COUNT ( * ) / + 92 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - COUNT( * ) * - 21 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9351
SELECT - COUNT ( * ) * - 21 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9352
SELECT * FROM tab0 WHERE + + ( + + 63 ) NOT BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9352
SELECT * FROM tab0 WHERE + + ( + + 63 ) NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT ALL - col0 + 0 DIV + col1 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - col0 + 0 / + col1 AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( col2 ) * 27 + - col2 AS col0 FROM tab2
----
1040
1508
598

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + ( + 50 ) * + col2 + + col2 + + - col2 FROM tab1
----
2950
3400
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT + 61 DIV + - 69 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT + 61 / + - 69 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL 81 + - COUNT( * ) * - - 69 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 81 + - COUNT ( * ) * - - 69 FROM tab2
----
-126

query I rowsort
SELECT DISTINCT col0 - 43 * - col2 AS col1 FROM tab0
----
2036
4354
517

query I rowsort
SELECT - 8 - 62 AS col2 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - col2 - + + 10 FROM tab2 cor0
----
-33
-50
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT MIN( - 71 ) AS col2 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT MIN ( - 71 ) AS col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - col1 + + 60 FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT + 80 + - col0 - 75 * col1 AS col2 FROM tab2 AS cor0
----
-3791
-5020
-5759

query I rowsort
SELECT ALL + - col2 / - col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT - ( - COUNT( * ) ) * - 39 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - ( - COUNT ( * ) ) * - 39 FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT - MIN( ALL - - col0 ) FROM tab1 WHERE NOT ( NULL < ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - MIN ( ALL - - col0 ) FROM tab1 WHERE NOT ( NULL < ( NULL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL - SUM( - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - SUM ( - col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT DISTINCT col2 * - + CAST( col2 AS SIGNED ) col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9369
SELECT DISTINCT col2 * - + CAST ( col2 AS INTEGER ) col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - 75 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 75 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9371
SELECT 65 * - 62 * - col2, - 94 + + 49 * - + 93 * col0 DIV - col0 AS col1 FROM tab2
----
161200
4463
233740
4463
92690
4463

skipif mysql # not compatible
query II rowsort label-9371
SELECT 65 * - 62 * - col2, - 94 + + 49 * - + 93 * col0 / - col0 AS col1 FROM tab2
----
161200
4463
233740
4463
92690
4463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT - + col2 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT - + col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col1 * + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 * + col2 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 0 col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col2, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE + col0 + - 15 + - col2 * ( + col0 ) + col2 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col0 col1, col0 col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT + col1 + 38 + col2, 42 AS col1 FROM tab1 AS cor0
----
102
42
148
42
153
42

onlyif mysql # DIV for integer division: 
query II rowsort label-9380
SELECT ALL col0 DIV 15 AS col1, - 48 * - - col1 FROM tab2
----
3
-2448
4
-3696
5
-3216

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL col0 / 15 AS col1, - 48 * - - col1 FROM tab2
----
3
-2448
4
-3696
5
-3216

query I rowsort
SELECT DISTINCT + col0 + + col0 + - - col2 AS col1 FROM tab0
----
184
293
77

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9383
SELECT + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab2 AS cor0
----
-25

query II rowsort
SELECT + 21 - + 83, + col0 AS col1 FROM tab0 AS cor0
----
-62
15
-62
87
-62
97

query I rowsort
SELECT - col1 - + col2 * col0 - - ( + col1 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT - col0 - col1 DIV 63 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9387
SELECT - col0 - col1 / 63 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 27 * - col2 + - col1 FROM tab1
----
1588
1789
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL MIN( DISTINCT 54 ) AS col0 FROM tab2, tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL MIN ( DISTINCT 54 ) AS col0 FROM tab2, tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 - + + col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9392
SELECT + COUNT( * ) * 0 - + 60 + - - MIN( - 71 ) DIV + - COUNT( * ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9392
SELECT + COUNT ( * ) * 0 - + 60 + - - MIN ( - 71 ) / + - COUNT ( * ) FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col2 - - 81 AS col2 FROM tab2 AS cor0
----
23
41
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 57 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 57 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - + 32, col1 AS col1 FROM tab1 AS cor0
----
-32
14
-32
47
-32
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col0, 81 FROM tab1
----
51
81
85
81
91
81

query I rowsort
SELECT ALL ( - + 80 ) AS col1 FROM tab2
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9400
SELECT - 84 AS col2, - CAST( + col1 AS SIGNED ) * + + 21 AS col0 FROM tab2
----
-84
-1071
-84
-1407
-84
-1617

skipif mysql # not compatible
query II rowsort label-9400
SELECT - 84 AS col2, - CAST ( + col1 AS INTEGER ) * + + 21 AS col0 FROM tab2
----
-84
-1071
-84
-1407
-84
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - COUNT( * ) * - COUNT( DISTINCT + 39 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9401
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + 39 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + COUNT( * ) * COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + COUNT ( * ) * COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
9

query II rowsort
SELECT + + col1 AS col1, + ( - col0 ) FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 51 + + ( + + col0 ) + - 6 + ( + 61 ) IS NOT NULL
----

query I rowsort
SELECT - 82 * + col0 * + col2 AS col1 FROM tab2
----
-209920
-356700
-86756

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - COUNT( * ) * 78 AS col0 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9406
SELECT - COUNT ( * ) * 78 AS col0 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT DISTINCT + ( 16 ) + + ( + + col2 ) FROM tab1 AS cor0
----
112
75
84

query II rowsort
SELECT DISTINCT + 89 + - 92, - 79 AS col0 FROM tab0 AS cor0
----
-3
-79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 + - + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT ALL - COUNT( * ) + + 69 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL - COUNT ( * ) + + 69 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL 61 + - 6 + - - col1 * ( col1 ) / - 98 / - CAST( NULL AS SIGNED ) - + 53 + - - 65 + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL 61 + - 6 + - - col1 * ( col1 ) / - 98 / - CAST ( NULL AS INTEGER ) - + 53 + - - 65 + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 0 + - ( + 43 ) AS col1, + 42 AS col0 FROM tab1
----
-43
42
-43
42
-43
42

query I rowsort
SELECT ALL 27 + - 89 AS col1 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + col2 + 84 AS col1 FROM tab0
----
131
183
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT COUNT( DISTINCT col1 ) + - 4 col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9416
SELECT COUNT ( DISTINCT col1 ) + - 4 col0 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT DISTINCT - col2 * col1 DIV - col0 + 92 AS col1 FROM tab2
----
117
140
143

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - col2 * col1 / - col0 + 92 AS col1 FROM tab2
----
117
140
143

query I rowsort
SELECT DISTINCT + ( + 91 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - col2 <> + ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT SUM( DISTINCT - 67 ) AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-9423
SELECT SUM ( DISTINCT - 67 ) AS col1 FROM tab1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT COUNT( * ) * - COUNT( + col1 ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9424
SELECT DISTINCT COUNT ( * ) * - COUNT ( + col1 ) col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT ALL 24 DIV COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL 24 / COUNT ( * ) FROM tab1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + col1 col1 FROM tab0
----
104
164
84

query I rowsort
SELECT + 37 AS col1 FROM tab1 WHERE NOT col2 + col0 NOT BETWEEN ( ( + col1 ) + col1 * col1 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + + col0 col1 FROM tab0
----
132
142
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT 13 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT 13 / col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT COUNT( * ) FROM tab0 WHERE NOT col2 BETWEEN NULL AND col2 * col1 + - col1 * ( col0 )
----
2

skipif mysql # not compatible
query I rowsort label-9430
SELECT COUNT ( * ) FROM tab0 WHERE NOT col2 BETWEEN NULL AND col2 * col1 + - col1 * ( col0 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT - col0 DIV - ( col2 ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9431
SELECT - col0 / - ( col2 ) FROM tab0
----
0
0
8

query III rowsort
SELECT * FROM tab2 WHERE col1 + ( + col0 - - ( col0 ) ) / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ( MAX( - 94 ) ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9433
SELECT ( MAX ( - 94 ) ) FROM tab2
----
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT IN ( 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 NOT IN ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL + SUM( + col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9436
SELECT ALL + SUM ( + col1 ) col2 FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( + 93 )
----

query I rowsort
SELECT 42 + 35 * 55 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * - col2 col0 FROM tab0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT ALL 25 * 68 + + col1 FROM tab1 WHERE NOT + 25 <> - 15 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL 25 * 68 + + col1 FROM tab1 WHERE NOT + 25 <> - 15 - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9441
SELECT ALL * FROM tab0 WHERE NOT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9441
SELECT ALL * FROM tab0 WHERE NOT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT + col1 col1 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9442
SELECT + col1 col1 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 21 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
21
21
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 + - col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col2 FROM tab2
----
-9

query I rowsort
SELECT col0 * 32 + col2 AS col1 FROM tab1
----
1728
2779
2980

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + + col1 col2 FROM tab0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL col2 * + 17 - 14 AS col0 FROM tab0
----
156
1669
785

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 NOT BETWEEN + col1 + 34 AND NULL
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 * col2 )
----

query I rowsort
SELECT ALL col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT ALL - 35 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - 35 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT ( col1 * ( + col0 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 38 FROM tab2
----
-2
-20
15

query I rowsort
SELECT DISTINCT - ( 69 ) AS col1 FROM tab0 WHERE ( ( 15 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT COUNT( * ) + - MAX( + 2 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
7

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT COUNT ( * ) + - MAX ( + 2 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + 51 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + 51 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9461
SELECT * FROM tab2 WHERE ( + col0 ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9461
SELECT * FROM tab2 WHERE ( + col0 ) > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * - 94 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
1410
8178
9118

query I rowsort
SELECT + - col2 + 86 FROM tab1 AS cor0
----
-10
18
27

query I rowsort
SELECT ( + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + ( 79 ) * 80 AS col2 FROM tab0 cor0
----
6320

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - COUNT( * ) + + 96 col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT - COUNT ( * ) + + 96 col1 FROM tab0 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT ALL col2 DIV - 2 AS col0 FROM tab2 AS cor0
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL col2 / - 2 AS col0 FROM tab2 AS cor0
----
-11
-20
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT - CAST( 37 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-14
21
3

skipif mysql # not compatible
query I rowsort label-9469
SELECT - CAST ( 37 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-14
21
3

query I rowsort
SELECT + 27 + - 6 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT + 31 + 24 AS col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT - - 67 + - col0 AS col0 FROM tab0 AS cor0
----
-20
-30
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 57 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT ALL + 40 DIV col1 + col0 FROM tab0 AS cor0
----
137
15
88

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + 40 / col1 + col0 FROM tab0 AS cor0
----
137
15
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL 41 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL 41 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
123

query I rowsort
SELECT DISTINCT - + 86 + - col2 AS col0 FROM tab1 AS cor0
----
-145
-154
-182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9477
SELECT ALL - CAST( - col0 AS SIGNED ) + col0 DIV 45 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - CAST ( - col0 AS INTEGER ) + col0 / 45 FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT - 2 + - COUNT( * ) * 29 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT - 2 + - COUNT ( * ) * 29 FROM tab1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT - SUM( - col1 ) * + MIN( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT - SUM ( - col1 ) * + MIN ( ALL col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL + CAST( - SUM( DISTINCT - col1 ) AS SIGNED ) - 14 AS col1 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + CAST ( - SUM ( DISTINCT - col1 ) AS INTEGER ) - 14 AS col1 FROM tab0
----
89

query I rowsort
SELECT ALL + 56 / col2 FROM tab2 WHERE ( NULL ) IN ( - ( + col1 ) )
----

query I rowsort
SELECT + col1 * + - ( col1 ) FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL + col2 + + col0 FROM tab2 AS cor0 WHERE NULL <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT - AVG ( DISTINCT - col2 ) FROM tab1 cor0 WHERE col2 + + col2 NOT IN ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT - AVG ( DISTINCT - col2 ) FROM tab1 cor0 WHERE col2 + + col2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + col1 - - + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + + col0 - + - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL + 68 DIV - + col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + 68 / - + col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT ALL 98 + - + 27 FROM tab0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= - col0 + - col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 45 col0, + col1 - - col1 FROM tab0 cor0
----
-45
162
-45
2
-45
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 + col2 ) <= - 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT + + CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + + CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - + COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9495
SELECT - + COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 66 + - 68 AS col1 FROM tab2 cor0 WHERE ( NULL ) <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, + col1 * - 29 FROM tab1 AS cor0
----
51
-406
85
-145
91
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + - COUNT( DISTINCT - 24 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9498
SELECT + - COUNT ( DISTINCT - 24 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL + - SUM( + - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + - SUM ( + - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT MAX( 27 ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT MAX ( 27 ) AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT - col0 + - 17 + + 79 NOT IN ( 23 + + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9502
SELECT + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-9502
SELECT + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab1 cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 * - + col1 IS NULL AND NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ( + - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9505
SELECT ( + - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT + 68 DIV - COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 68 / - COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND + - 27 * + ( col1 )
----

query I rowsort
SELECT 1 * - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 62 * + COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9510
SELECT 62 * + COUNT ( * ) FROM tab1 AS cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT + - col1 DIV - 8 + - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
12
57
99

skipif mysql # not compatible
query I rowsort label-9511
SELECT + - col1 / - 8 + - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
12
57
99

query I rowsort
SELECT ALL + ( + - ( 60 ) ) FROM tab0 AS cor0
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT - col1 + 60 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT - col1 + 60 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 24 ) FROM tab2 AS cor0
----
-24
-24
-24

query II rowsort
SELECT DISTINCT + + col0 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT + - CAST( NULL AS SIGNED ) * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT + - CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT + ( - COUNT( ALL - - col1 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + ( - COUNT ( ALL - - col1 ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 49 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-2552
-4440
-5880

query I rowsort
SELECT ALL - - 12 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL - col1 - - 82 AS col1 FROM tab2
----
15
31
5

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + - col0 ) BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT 7 + + - 34 AS col2 FROM tab0
----
-27
-27
-27

query II rowsort
SELECT ALL - col1 - col2 AS col2, 92 * col1 FROM tab0
----
-100
92
-128
7452
-31
1932

query III rowsort
SELECT * FROM tab0 cor0 WHERE 90 NOT BETWEEN NULL AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9528
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < + col1 / - 54 * - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9528
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < + col1 / - 54 * - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9529
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9530
SELECT ALL + col2 * - ( - col1 ) / + col2 + 22 - CAST( NULL AS DECIMAL ) * col0 - + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT ALL + col2 * - ( - col1 ) / + col2 + 22 - CAST ( NULL AS REAL ) * col0 - + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + MAX( - 46 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT + MAX ( - 46 ) col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN ( - ( + col1 ) * - 56 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 59 * + col1 * + - col1 * col2 - col2 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - COUNT( + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9536
SELECT - COUNT ( + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT 20 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----
20

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 20 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - COUNT( * ) * 57 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-9539
SELECT - COUNT ( * ) * 57 FROM tab0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT COUNT( * ) * 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9540
SELECT COUNT ( * ) * 33 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - ( + col0 ) * + 31 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT 90 * + 92 AS col1 FROM tab1
----
8280
8280
8280

query I rowsort
SELECT DISTINCT 10 * - 85 FROM tab2 WHERE + + col2 NOT BETWEEN NULL AND col2
----

query II rowsort
SELECT DISTINCT col0, + col1 + - col2 * - + col1 AS col2 FROM tab1 AS cor0
----
51
1358
85
300
91
3243

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + - SUM( DISTINCT - col2 ) col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9548
SELECT + - SUM ( DISTINCT - col2 ) col1 FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - SUM( 22 ) * + - 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13860

skipif mysql # not compatible
query I rowsort label-9549
SELECT - SUM ( 22 ) * + - 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13860

query I rowsort
SELECT + col0 + - - 42 + + - col2 * - 71 FROM tab0 AS cor0
----
3394
7168
839

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT - col0 * 0 - + - ( - + ( - col1 ) ) + + col2 + - col2 DIV + 24 AS col2 FROM tab2 AS cor0
----
116
123
74

skipif mysql # not compatible
query I rowsort label-9551
SELECT - col0 * 0 - + - ( - + ( - col1 ) ) + + col2 + - col2 / + 24 AS col2 FROM tab2 AS cor0
----
116
123
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT - + MIN( col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - + MIN ( col2 ) FROM tab2 cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 * - + 26 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-13105
-22803
-33109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL - - ( - CAST( - + 89 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - - ( - CAST ( - + 89 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - col0 + - + 8 + - + col1 AS col2 FROM tab0 cor0 WHERE NOT - 72 * - + 26 = - col1
----
-104
-106
-116

query I rowsort
SELECT + col0 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
3375
658503
912673

query I rowsort
SELECT col1 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9561
SELECT COUNT ( - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT + 34 + + + COUNT( * ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + 34 + + + COUNT ( * ) AS col0 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT MIN( DISTINCT + 37 ) * 68 FROM tab0
----
2516

skipif mysql # not compatible
query I rowsort label-9563
SELECT MIN ( DISTINCT + 37 ) * 68 FROM tab0
----
2516

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT ALL - 7 + col0 DIV - - ( col2 ) AS col0 FROM tab0
----
-7
-7
1

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - 7 + col0 / - - ( col2 ) AS col0 FROM tab0
----
-7
-7
1

query I rowsort
SELECT ALL - 1 - - col1 FROM tab2
----
50
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 - + - col2 * - + col1 col0 FROM tab2
----
-1169
-3076
-3882

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - + ( - COUNT( * ) ) * + 68 FROM tab2 cor0
----
204

skipif mysql # not compatible
query I rowsort label-9567
SELECT - + ( - COUNT ( * ) ) * + 68 FROM tab2 cor0
----
204

query I rowsort
SELECT ALL col0 * - + 73 AS col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT col0 / - - 35 * 82 * - - 51 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT col0 / - - 35 * 82 * - - 51 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT + - col2 AS col1, 25 FROM tab0 AS cor0
----
-10
25
-47
25
-99
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - MIN( - 4 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - MIN ( - 4 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT DISTINCT - 33 AS col2, 61 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-33
64

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT - 33 AS col2, 61 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-33
64

query II rowsort
SELECT DISTINCT + col0, + 80 * - col1 + + + col0 FROM tab1 AS cor0
----
51
-1069
85
-315
91
-3669

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - + MIN( ALL - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9576
SELECT - + MIN ( ALL - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - + col2 * - col1 + - 28 FROM tab2 AS cor0
----
1145
3052
3858

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT ( - COUNT( * ) ) * COUNT( * ) * + 43 FROM tab2
----
-387

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT ( - COUNT ( * ) ) * COUNT ( * ) * + 43 FROM tab2
----
-387

query I rowsort
SELECT DISTINCT - col2 * - ( - col1 ) AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT + - col0 = - 43
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9581
SELECT ALL - 74 DIV + col2, col2 AS col1 FROM tab2
----
-1
40
-1
58
-3
23

skipif mysql # not compatible
query II rowsort label-9581
SELECT ALL - 74 / + col2, col2 AS col1 FROM tab2
----
-1
40
-1
58
-3
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT 60 DIV col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-9582
SELECT 60 / col1 FROM tab1
----
1
12
4

query I rowsort
SELECT + 56 * + 91 AS col1 FROM tab2
----
5096
5096
5096

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 57 )
----

query I rowsort
SELECT DISTINCT - 15 * col1 FROM tab1 cor0
----
-210
-705
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9586
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) * + 47 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) * + 47 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT 36 * 64 AS col2 FROM tab2
----
2304
2304
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9590
SELECT + COUNT ( * ) col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT - + CAST( 52 AS SIGNED ) - - col1 FROM tab1 AS cor0
----
-38
-47
-5

skipif mysql # not compatible
query I rowsort label-9591
SELECT - + CAST ( 52 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
-38
-47
-5

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 + + col2 + 50 AS col1 FROM tab2 AS cor0
----
124
167
175

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT - COUNT( - - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - COUNT ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 32, - 30 * - 66 col2 FROM tab2 AS cor0
----
-32
1980
-32
1980
-32
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + 63 / + + SUM( - col0 ) FROM tab1 WHERE col1 + 86 - + - 72 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT + 63 / + + SUM ( - col0 ) FROM tab1 WHERE col1 + 86 - + - 72 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + 68 + + MIN( DISTINCT col2 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + 68 + + MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
78

query I rowsort
SELECT ALL 14 + + col1 + col1 AS col0 FROM tab0
----
16
176
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - ( + COUNT( * ) ) + + + COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9600
SELECT - ( + COUNT ( * ) ) + + + COUNT ( * ) col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + COUNT( ALL 60 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + COUNT ( ALL 60 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT DISTINCT 90 * - 82 AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-7380
3

skipif mysql # not compatible
query II rowsort label-9603
SELECT DISTINCT 90 * - 82 AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-7380
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE 79 + + 84 + + - col0 IS NULL
----

query I rowsort
SELECT ALL - + 51 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 57 + - - col0 FROM tab1 cor0
----
108
142
148

query I rowsort
SELECT DISTINCT col2 + - - col0 + + col2 FROM tab0 AS cor0
----
107
109
295

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 BETWEEN - - col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 3 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 * + col2 + - col1 AS col2, 41 * + col1 FROM tab0 AS cor0
----
-100
41
-231
861
-3888
3321

query I rowsort
SELECT ALL + col1 * - - col1 + + col2 AS col0 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * + + 79 + - 93 FROM tab2
----
-804

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * + + 79 + - 93 FROM tab2
----
-804

query I rowsort
SELECT col2 * - 12 + + ( + 5 ) + + + col2 + - - col1 * col2 + col2 AS col0 FROM tab1 AS cor0 WHERE + col0 > col1
----
-290
2521
389

query II rowsort
SELECT DISTINCT 76 AS col1, col1 FROM tab1 AS cor0
----
76
14
76
47
76
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + MAX( DISTINCT col0 ) * + + SUM( ALL + col0 ) + + 8 AS col2 FROM tab1 cor0
----
20665

skipif mysql # not compatible
query I rowsort label-9617
SELECT + MAX ( DISTINCT col0 ) * + + SUM ( ALL + col0 ) + + 8 AS col2 FROM tab1 cor0
----
20665

query I rowsort
SELECT + 11 * + + col0 AS col1 FROM tab1 AS cor0
----
1001
561
935

query II rowsort
SELECT + 96, col2 FROM tab1 AS cor0
----
96
59
96
68
96
96

query II rowsort
SELECT + col2, col1 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT - ( + col0 ) DIV + + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT - ( + col0 ) / + + col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) + - - col2 FROM tab1
----
-100
-2141
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 <= NULL
----

query I rowsort
SELECT 66 + - - col1 AS col2 FROM tab0 AS cor0
----
147
67
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN col0 + + + col1 * + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 5 AS col1 FROM tab1 AS cor0 WHERE 74 NOT BETWEEN NULL AND + - 10
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT DISTINCT CAST( + 23 AS SIGNED ) - ( + 60 ) + + col1 AS col2 FROM tab1 AS cor0
----
-23
-32
10

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT CAST ( + 23 AS INTEGER ) - ( + 60 ) + + col1 AS col2 FROM tab1 AS cor0
----
-23
-32
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 23 IN ( - + col1, 5 - + col0 + - ( + + 92 ) + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - - 28 + + COUNT( * ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - - 28 + + COUNT ( * ) FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9631
SELECT 52 DIV 45 AS col1, - COUNT( * ) col2 FROM tab1 AS cor0
----
1
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9631
SELECT 52 / 45 AS col1, - COUNT ( * ) col2 FROM tab1 AS cor0
----
1
-3

query I rowsort
SELECT + 89 + - + col0 FROM tab0 AS cor0 WHERE - 51 IS NOT NULL
----
-8
2
74

query I rowsort
SELECT + 71 * + - 95 FROM tab0
----
-6745
-6745
-6745

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + 57 + - col0 * - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT + col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT + COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col1 FROM tab2
----
95

query I rowsort
SELECT - + 68 AS col0 FROM tab1 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - - ( + - col1 ) FROM tab1 AS cor0 WHERE 56 > + col1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT DISTINCT + CAST( + 48 AS SIGNED ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 64 AS col2 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - 47 * - col2 AS col1 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT ALL + ( - 92 ) * col2 AS col0 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT + col1 + - + col0 * - col0 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - - MIN( ALL + col0 ) + + 34 AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - - MIN ( ALL + col0 ) + + 34 AS col0 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT + ( + MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + ( + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + 53 + - col1 + ( - - 58 ) * - - col1 AS col1 FROM tab1 AS cor0
----
2779
343
865

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 21 + + col0 + + - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col2 * col1 * col1 col2 FROM tab0
----
-308286
-4389
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9655
SELECT + COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 79 + col2 FROM tab1
----
-11
-20
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT col0 + - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9657
SELECT col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - 62 + - COUNT( * ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-9658
SELECT - 62 + - COUNT ( * ) FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9659
SELECT - ( + col1 ) + - col1 + 95 * - CAST( NULL AS SIGNED ) AS col1, + col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9659
SELECT - ( + col1 ) + - col1 + 95 * - CAST ( NULL AS INTEGER ) AS col1, + col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 37 * + col1 IS NOT NULL
----

query I rowsort
SELECT + - col0 + + ( - 47 ) FROM tab2 AS cor0
----
-111
-122
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT DISTINCT - - 70 AS col1, MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
70
-96

skipif mysql # not compatible
query II rowsort label-9662
SELECT DISTINCT - - 70 AS col1, MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
70
-96

query I rowsort
SELECT - col1 + + + 55 * - + col2 AS col2 FROM tab0 AS cor0
----
-2666
-5446
-571

query I rowsort
SELECT ALL - ( + 96 ) AS col1 FROM tab0 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT COUNT( DISTINCT + 13 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9665
SELECT COUNT ( DISTINCT + 13 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 col0 FROM tab1 cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5 - - col2 col1, + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
104
2
15
42
52
162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9669
SELECT col1 * 88, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
4488
-23
5896
-58
6776
-40

skipif mysql # not compatible
query II rowsort label-9669
SELECT col1 * 88, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
4488
-23
5896
-58
6776
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col1 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab2 cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT ALL - col2 * + - col2 DIV + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - col2 * + - col2 / + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9674
SELECT + MAX( ALL + CAST( col2 AS SIGNED ) ) DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9674
SELECT + MAX ( ALL + CAST ( col2 AS INTEGER ) ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19

query II rowsort
SELECT DISTINCT + - col1, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - SUM( DISTINCT - + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - SUM ( DISTINCT - + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT ( + 7 ) * + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT ( + 7 ) * + COUNT ( * ) FROM tab0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL MAX( DISTINCT - - 18 ) * CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL MAX ( DISTINCT - - 18 ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT col0 * - 74 AS col0, col1 AS col0 FROM tab0
----
-1110
81
-6438
21
-7178
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT DISTINCT - MIN( - 42 ) * + COUNT( * ), 21 AS col0 FROM tab0
----
126
21

skipif mysql # not compatible
query II rowsort label-9680
SELECT DISTINCT - MIN ( - 42 ) * + COUNT ( * ), 21 AS col0 FROM tab0
----
126
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT ( 36 ) col1, + SUM( - - col2 ) FROM tab2
----
36
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9681
SELECT ( 36 ) col1, + SUM ( - - col2 ) FROM tab2
----
36
121

query I rowsort
SELECT DISTINCT col1 * 65 FROM tab2
----
3315
4355
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 82 * - col2 * - + col0 FROM tab1 AS cor0
----
401472
411230
507416

query I rowsort
SELECT ALL ( - 17 ) * + 62 * + col0 FROM tab0 AS cor0
----
-102238
-15810
-91698

query I rowsort
SELECT 86 * + + col2 * + col1 AS col1 FROM tab1
----
115584
25370
274856

query II rowsort
SELECT col0 AS col0, 85 * + - col1 AS col1 FROM tab2
----
46
-4335
64
-6545
75
-5695

query I rowsort
SELECT col1 * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9689
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 WHERE NULL <> ( NULL ) OR - col2 > - col1
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> ( NULL ) OR - col2 > - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - MAX( - col2 ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 * - col1 AND + col0 + + col1 / + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - MAX ( - col2 ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 * - col1 AND + col0 + + col1 / + 44
----
NULL

query I rowsort
SELECT + 88 + + 83 AS col0 FROM tab1 AS cor0
----
171
171
171

query II rowsort
SELECT DISTINCT 66 AS col0, - col1 * + - col0 FROM tab1 cor0
----
66
425
66
4277
66
714

query I rowsort
SELECT + col0 + - 0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col2 )
----
51
85
91

query I rowsort
SELECT ALL - ( + - col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col0 * - + col2 + + col2 AS col1 FROM tab2 cor0
----
-1035
-2520
-4292

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL + CAST( + 68 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + CAST ( + 68 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
68
68
68

query II rowsort
SELECT DISTINCT - col1 * + 30 + + 43 AS col0, col1 FROM tab2 AS cor0
----
-1487
51
-1967
67
-2267
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT - 20 * + COUNT( * ) + 77 AS col0, 64 FROM tab2 AS cor0
----
17
64

skipif mysql # not compatible
query II rowsort label-9701
SELECT - 20 * + COUNT ( * ) + 77 AS col0, 64 FROM tab2 AS cor0
----
17
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) <= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT + + MAX( DISTINCT - ( - col1 ) ) + - ( CAST( MAX( - col1 ) AS SIGNED ) ) * COUNT( - col0 ) col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9703
SELECT + + MAX ( DISTINCT - ( - col1 ) ) + - ( CAST ( MAX ( - col1 ) AS INTEGER ) ) * COUNT ( - col0 ) col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT + 6 + - + col2 * + + 43 FROM tab2
----
-1714
-2488
-983

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + 30 * - COUNT( ALL - + col0 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + 30 * - COUNT ( ALL - + col0 ) FROM tab1
----
-90

query I rowsort
SELECT DISTINCT - + col0 * + col0 + + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL + col1 * + col1 * + + col1 + col2 - - CAST( - 41 AS SIGNED ) - 7 FROM tab0 AS cor0
----
52
531440
9223

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + col1 * + col1 * + + col1 + col2 - - CAST ( - 41 AS INTEGER ) - 7 FROM tab0 AS cor0
----
52
531440
9223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - - ( MAX( ALL + - 92 ) ) AS col1 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9710
SELECT - - ( MAX ( ALL + - 92 ) ) AS col1 FROM tab1 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT - - CAST( + + 88 AS SIGNED ) FROM tab0 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9711
SELECT - - CAST ( + + 88 AS INTEGER ) FROM tab0 AS cor0
----
88
88
88

query II rowsort
SELECT DISTINCT + + col0 AS col2, 28 FROM tab0 AS cor0
----
15
28
87
28
97
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - MAX( DISTINCT + - 90 ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - MAX ( DISTINCT + - 90 ) AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT + - CAST( + col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9715
SELECT + - CAST ( + col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + - COUNT( ALL + + 64 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + - COUNT ( ALL + + 64 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - + 0 * - - COUNT( * ) * MAX( + + 97 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT - + 0 * - - COUNT ( * ) * MAX ( + + 97 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT DISTINCT - - ( ( + 63 ) ) col0, - COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
63
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9719
SELECT DISTINCT - - ( ( + 63 ) ) col0, - COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
63
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 31 BETWEEN - 56 AND NULL
----

query I rowsort
SELECT ALL - 43 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - 35 * - col0 * col2 * + - 27 AS col0 FROM tab2
----
-2419200
-4110750
-999810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + col1 col2 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT + col0, col1 * + col2 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT ALL 19 DIV + - 46 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL 19 / + - 46 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9728
SELECT + - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9728
SELECT + - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT - - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col1 + + + 45 AS col1 FROM tab0
----
126
46
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 * 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - 75 * ( + col0 ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col1 ) * - + 24 * - 47 FROM tab2 AS cor0
----
57528
75576
86856

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( - - col0 ) AND + ( + col2 ) * + - 74 + + col0 - + - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 38 + col2 * + + col2, + col0 col2 FROM tab2
----
1638
64
3402
75
567
46

query I rowsort
SELECT - 91 + - col2 * - 40 FROM tab2
----
1509
2229
829

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9738
SELECT * FROM tab2 WHERE + - CAST( - 58 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9738
SELECT * FROM tab2 WHERE + - CAST ( - 58 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 + - 43 * + - col0 FROM tab1
----
2289
3714
3981

query II rowsort
SELECT col1 * + 67 + + - col1, + col1 AS col0 FROM tab0
----
1386
21
5346
81
66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT + CAST( 22 AS SIGNED ) + + col2 * + + col2 AS col0 FROM tab2
----
1622
3386
551

skipif mysql # not compatible
query I rowsort label-9741
SELECT + CAST ( 22 AS INTEGER ) + + col2 * + + col2 AS col0 FROM tab2
----
1622
3386
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE - 9 - 19 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE - 9 - 19 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9743
SELECT - col0 + CAST( NULL AS DECIMAL ) / - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT - col0 + CAST ( NULL AS REAL ) / - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT ALL 76 + - SUM( DISTINCT 11 ) DIV + COUNT( ALL - + col1 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 76 + - SUM ( DISTINCT 11 ) / + COUNT ( ALL - + col1 ) FROM tab0
----
73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - - col2 + col1 DIV + ( + + col2 ) AS col2 FROM tab2 cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - - col2 + col1 / + ( + + col2 ) AS col2 FROM tab2 cor0
----
25
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1, 92 - col1 + + 26 * 10 * - 97 col0 FROM tab2 AS cor0
----
-51
-25179
-67
-25195
-77
-25205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL SUM( ALL - ( - CAST( - col0 AS SIGNED ) ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL SUM ( ALL - ( - CAST ( - col0 AS INTEGER ) ) ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT - - MIN( + + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT - - MIN ( + + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + + col1 * + + ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / + + 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + - + col0 + + - col0 AND - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + ( col2 ) - col0 NOT IN ( - - col0 )
----

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE NOT ( + col1 NOT BETWEEN + ( + col0 ) + col1 AND col0 )
----

query I rowsort
SELECT ALL 44 AS col2 FROM tab2 WHERE ( NULL = NULL )
----

query I rowsort
SELECT ALL col2 * - - col1 * - 27 FROM tab1
----
-36288
-7965
-86292

query III rowsort
SELECT * FROM tab0 WHERE NOT - 8 BETWEEN 34 AND - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 29 * 73 FROM tab2
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL MAX( ALL - 42 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL MAX ( ALL - 42 ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL - ( + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - ( + COUNT ( * ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 28 * - - col0 FROM tab1
----
1428
2380
2548

query I rowsort
SELECT DISTINCT - 43 + + + 79 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT COUNT( 40 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9766
SELECT COUNT ( 40 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < - 12 * ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT COUNT( - 24 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9768
SELECT COUNT ( - 24 ) FROM tab2 cor0
----
3

query II rowsort
SELECT ALL 32 AS col1, - 5 * + 28 * + col1 FROM tab1 AS cor0
----
32
-1960
32
-6580
32
-700

query I rowsort
SELECT + 8 * - + col1 FROM tab0 AS cor0 WHERE 83 - col2 * - 70 * + 80 + + + col2 * + 70 + - + ( - - col0 ) = + + 53
----

query I rowsort
SELECT 73 + - + 3 AS col0 FROM tab2 cor0
----
70
70
70

query II rowsort
SELECT ALL + col1 AS col2, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL SUM( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9773
SELECT ALL SUM ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + - col0 * - ( + 59 ) * + - ( - ( 65 ) ) + - col2 * + col1 + + col1 * - 72 * + 10 * col2 * - 1 AS col2 FROM tab0 AS cor0
----
2794758
443176
484635

query I rowsort
SELECT ALL col1 + ( - col0 ) - col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9776
SELECT 65 DIV - 73 AS col2, - col0 + ( - 84 ) DIV - col2 AS col0 FROM tab1
----
0
-51
0
-84
0
-90

skipif mysql # not compatible
query II rowsort label-9776
SELECT 65 / - 73 AS col2, - col0 + ( - 84 ) / - col2 AS col0 FROM tab1
----
0
-51
0
-84
0
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT 47 + - COUNT( ALL - col2 ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT 47 + - COUNT ( ALL - col2 ) AS col0 FROM tab0
----
44

query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab1 WHERE NULL > - 76
----

query III rowsort
SELECT * FROM tab1 WHERE + - ( col1 ) IS NULL
----

query I rowsort
SELECT ALL 20 + col1 AS col0 FROM tab1
----
25
34
67

query I rowsort
SELECT 66 + - - col2 AS col0 FROM tab0 AS cor0
----
113
165
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - MAX( - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9782
SELECT - MAX ( - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT - 64 * COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - 64 * COUNT ( * ) FROM tab2 AS cor0
----
-192

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 * + 66 + + + 11 * + 12 FROM tab2 AS cor0
----
46
3498
64
5214
75
4554

query II rowsort
SELECT col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - 95 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL + COUNT( DISTINCT + + CAST( + 18 AS SIGNED ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + COUNT ( DISTINCT + + CAST ( + 18 AS INTEGER ) ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 91 col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT COUNT( * ) + 60 AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9789
SELECT COUNT ( * ) + 60 AS col0 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + - col1 * ( - col0 ) / + 46, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + - col1 * ( - col0 ) / + 46, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT ALL - 30 + + - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 30 + + - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND - 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + CAST( NULL AS SIGNED ) + + + 18 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT + CAST ( NULL AS INTEGER ) + + + 18 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 44 - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT + COUNT( * ) + - AVG ( ALL col2 ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT + COUNT ( * ) + - AVG ( ALL col2 ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( + col2 ) AND NULL
----

query I rowsort
SELECT + 48 * + col2 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT DISTINCT + col0 - + col2 * col1 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT 13 * + col2 AS col1 FROM tab0 AS cor0
----
1287
130
611

query I rowsort
SELECT col2 - 67 FROM tab1 AS cor0
----
-8
1
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT ALL - col0 DIV col2 * + col1 * + - 92 FROM tab0 cor0
----
0
0
15456

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - col0 / col2 * + col1 * + - 92 FROM tab0 cor0
----
0
0
15456

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT ALL - col1 DIV col0 * + + col1 AS col1 FROM tab0 AS cor0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - col1 / col0 * + + col1 AS col1 FROM tab0 AS cor0
----
-405
0
0

query I rowsort
SELECT DISTINCT 64 - - + 46 FROM tab1 WHERE ( + - 57 ) IS NOT NULL
----
110

query I rowsort
SELECT col2 + - - ( - col0 ) FROM tab0
----
-77
2
32

query I rowsort
SELECT - + col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - 44 + 26 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT col1 * + ( 37 ) + - - 40 * - 85 FROM tab1
----
-1661
-2882
-3215

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 71 < NULL
----

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9810
SELECT ALL + SUM( - col2 ) col1, + CAST( NULL AS SIGNED ) + - - COUNT( * ) + - - CAST( - 80 AS SIGNED ) col2 FROM tab0
----
-156
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9810
SELECT ALL + SUM ( - col2 ) col1, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - - CAST ( - 80 AS INTEGER ) col2 FROM tab0
----
-156
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9811
SELECT * FROM tab1 cor0 WHERE NOT + col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9811
SELECT * FROM tab1 cor0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT + ( + + col1 ), col1, - 37 AS col2 FROM tab0 AS cor0
----
9 values hashing to d8e61cbefbad68f455c9b447a956e820

query II rowsort
SELECT DISTINCT + - col0 * + - col2, col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 * col2 - + col0 + 99 * - - 54 + - col0, col1 * col0, - col0, - + col1 * + 53 + - 30 - - - 85 * + col0, 84 + col1 + + - col2 * - col2 + - col2 * - 51 * - + col0, - - col0 * - col0 + - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT 53 * col1 + - col0 + - col2 DIV col2 - - col0 AS col1 FROM tab1
----
2490
264
741

skipif mysql # not compatible
query I rowsort label-9815
SELECT 53 * col1 + - col0 + - col2 / col2 - - col0 AS col1 FROM tab1
----
2490
264
741

query II rowsort
SELECT - col1, - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - - ( - - col2 ) AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL col0 + col0 * + + 72 - + + 87 AS col0 FROM tab1
----
3636
6118
6556

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT 35 + + MIN( + + col0 ) AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT 35 + + MIN ( + + col0 ) AS col0 FROM tab0
----
50

query I rowsort
SELECT + col2 * - col2 * + col2 AS col2 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT - CAST( - 86 AS SIGNED ) * - ( col2 ) FROM tab1
----
-5074
-5848
-8256

skipif mysql # not compatible
query I rowsort label-9822
SELECT - CAST ( - 86 AS INTEGER ) * - ( col2 ) FROM tab1
----
-5074
-5848
-8256

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9823
SELECT DISTINCT - col0 AS col0, + CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-9823
SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + 19 + - 22 AS col1 FROM tab0 cor0
----
1
-3
21
-3
81
-3

query I rowsort
SELECT ALL + + 0 * + col1 * - col1 * - 66 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) + - - col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * + col2 + - ( col1 ) + + col1 * - 4 * + col2 BETWEEN + + col2 * col1 * + col2 * + + 38 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT - - MIN( - - 50 ) + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - - MIN ( - - 50 ) + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
103

query I rowsort
SELECT ALL - 98 * + 46 FROM tab0 AS cor0
----
-4508
-4508
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT + - SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-195

query I rowsort
SELECT ALL - - col1 - 12 * + + 27 FROM tab0 AS cor0
----
-243
-303
-323

query I rowsort
SELECT - - ( + 57 ) * + 87 FROM tab0 AS cor0
----
4959
4959
4959

query I rowsort
SELECT + - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col1 + 86 FROM tab0 AS cor0
----
5
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT - COUNT( ALL 86 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - COUNT ( ALL 86 ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col2 + + - 86 FROM tab0
----
-39
-76
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * 71 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT - COUNT( * ) DIV + - 23 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT - COUNT ( * ) / + - 23 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT + col2 DIV col0 * + col1 - - - col1 FROM tab1
----
-47
-5
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT + col2 / col0 * + col1 - - - col1 FROM tab1
----
-47
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9843
SELECT DISTINCT + col2 * + ( - 93 ) AS col0, - col0 / + col1 / CAST( NULL AS SIGNED ) FROM tab0
----
-4371
NULL
-9207
NULL
-930
NULL

skipif mysql # not compatible
query II rowsort label-9843
SELECT DISTINCT + col2 * + ( - 93 ) AS col0, - col0 / + col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
-4371
NULL
-9207
NULL
-930
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 3, col0 col1 FROM tab0 AS cor0
----
-3
15
-3
87
-3
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - col2 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - + COUNT( DISTINCT - 62 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9846
SELECT - + COUNT ( DISTINCT - 62 ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - ( - col1 ) = ( + col0 + + col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - COUNT( DISTINCT - - ( - 77 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - COUNT ( DISTINCT - - ( - 77 ) ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9849
SELECT CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + 21
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * - + col0 * col0 - - col1 + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MAX( - 63 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MAX ( - 63 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 95 AS col2, - 70 FROM tab1 AS cor0
----
-95
-70
-95
-70
-95
-70

query I rowsort
SELECT ALL + + 31 + col1 FROM tab0 cor0
----
112
32
52

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 WHERE ( NOT col1 * - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 62 FROM tab2
----
62

query I rowsort
SELECT 28 * col0 AS col0 FROM tab2 WHERE ( - col0 + + - 31 * col2 IS NOT NULL )
----
1288
1792
2100

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT MAX( DISTINCT ( - 73 ) ) col0 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9860
SELECT DISTINCT MAX ( DISTINCT ( - 73 ) ) col0 FROM tab2
----
-73

query I rowsort
SELECT col2 + + col0 - col2 * - 63 * - 7 FROM tab1
----
-25875
-29829
-42189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT DISTINCT col1 + + CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT col1 + + CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT + 64 FROM tab2 cor0
----
64

query I rowsort
SELECT DISTINCT 58 * col2 + + + ( + col2 ) FROM tab0
----
2773
5841
590

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9865
SELECT DISTINCT col0, + col0 + CAST( NULL AS DECIMAL ) * + + col0 / - + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9865
SELECT DISTINCT col0, + col0 + CAST ( NULL AS REAL ) * + + col0 / - + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT ALL 31 - - - 16 + + + ( - - col1 ) DIV - col2 FROM tab0
----
13
14
15

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL 31 - - - 16 + + + ( - - col1 ) / - col2 FROM tab0
----
13
14
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL + col1 - - ( + 38 ) * + col2 * + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 76 * CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + col1 - - ( + 38 ) * + col2 * + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 76 * CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab1 cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - ( - ( - col0 ) ) * + col2 + + - col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9871
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT DISTINCT - CAST( 52 AS SIGNED ) - + - 62 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - CAST ( 52 AS INTEGER ) - + - 62 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL MAX( ALL col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL MAX ( ALL col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT col2 + col1 * col1 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT col2 + col1 * col1 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 52 / + + col1 * + - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT - + 53 DIV - - col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-9877
SELECT - + 53 / - - col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT COUNT( ALL + 58 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9878
SELECT COUNT ( ALL + 58 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9879
SELECT DISTINCT - col2 * - col1 * col1 + - - 58, CAST( - col0 AS SIGNED ) col1 FROM tab1 WHERE NOT - + 33 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9879
SELECT DISTINCT - col2 * - col1 * col1 + - - 58, CAST ( - col0 AS INTEGER ) col1 FROM tab1 WHERE NOT - + 33 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT + col2 DIV - 28 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT + col2 / - 28 FROM tab2
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 > - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ( + COUNT( col0 ) ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9882
SELECT ( + COUNT ( col0 ) ) * + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT col0 * - col1 * - col1 AS col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT + ( - 35 ) FROM tab2
----
-35
-35
-35

query I rowsort
SELECT ALL + ( + 87 ) * - col0 - col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT DISTINCT 91 * + col1 AS col2 FROM tab1
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * - col2 col0 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( col0 <> NULL )
----

query I rowsort
SELECT DISTINCT 81 - + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
60
80

query I rowsort
SELECT DISTINCT - + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - COUNT( * ) + 55 * - COUNT( ALL - + ( + 10 ) ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9894
SELECT - COUNT ( * ) + 55 * - COUNT ( ALL - + ( + 10 ) ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT ALL 7 * - col1 * col0 + + col0 FROM tab0 AS cor0
----
-12702
-582
-8490

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 + col1 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT 99 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT 99 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9898
SELECT DISTINCT 43 + 77 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT 43 + 77 * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query II rowsort
SELECT col0 AS col0, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT - 10 * 47 * 32 FROM tab2
----
-15040
-15040
-15040

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT + SUM( DISTINCT col0 ) + COUNT( * ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + SUM ( DISTINCT col0 ) + COUNT ( * ) AS col1 FROM tab2
----
188

query II rowsort
SELECT ALL col1, 50 FROM tab1
----
14
50
47
50
5
50

query I rowsort
SELECT DISTINCT + - 18 + + + 13 AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-5

query II rowsort
SELECT col2, 16 * - col0 + + col1 * col1 AS col1 FROM tab1
----
59
-1335
68
753
96
-620

query I rowsort
SELECT + + 49 AS col2 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab0 WHERE NOT - col2 IS NULL
----
71
71
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9907
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE - + col2 * + 7 + - col2 + + + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE - + col2 * + 7 + - col2 + + + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 62 ) AS col1 FROM tab0
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL MIN( DISTINCT + 58 ) AS col2, 25 AS col0 FROM tab2 cor0
----
58
25

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL MIN ( DISTINCT + 58 ) AS col2, 25 AS col0 FROM tab2 cor0
----
58
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 - col1 col2 FROM tab1 AS cor0
----
23
56
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT ALL - + col0 + + CAST( 70 AS SIGNED ) FROM tab1 AS cor0
----
-15
-21
19

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - + col0 + + CAST ( 70 AS INTEGER ) FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 cor0 WHERE - col0 = NULL
----

query I rowsort
SELECT - col1 + - + col1 + - + col2 FROM tab2
----
-125
-192
-194

query I rowsort
SELECT + + col1 * + - ( 82 ) FROM tab2 WHERE NULL NOT IN ( - col2, - 34 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT 83 * + COUNT( * ) + 28 FROM tab1 WHERE col0 / + col2 IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-9916
SELECT 83 * + COUNT ( * ) + 28 FROM tab1 WHERE col0 / + col2 IS NULL
----
28

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL col2 - + + col0 - + - col1 DIV + col1 FROM tab1
----
-22
-25
46

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL col2 - + + col0 - + - col1 / + col1 FROM tab1
----
-22
-25
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9919
SELECT ALL col2 DIV + - 97 - + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL col2 / + - 97 - + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - 78 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + + 98 - + 71 AS col0, - 28 FROM tab0 AS cor0
----
27
-28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9923
SELECT + - COUNT( * ) * - 85 col1, 50 AS col2 FROM tab1 AS cor0
----
255
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9923
SELECT + - COUNT ( * ) * - 85 col1, 50 AS col2 FROM tab1 AS cor0
----
255
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT MAX( DISTINCT + 15 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9924
SELECT MAX ( DISTINCT + 15 ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT col2 * - + ( col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT + 25 * col2 DIV - - ( - 77 ) FROM tab1 AS cor0
----
-19
-22
-31

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + 25 * col2 / - - ( - 77 ) FROM tab1 AS cor0
----
-19
-22
-31

query I rowsort
SELECT - - col1 * 70 + + col1 * col1 * - col0 AS col0 FROM tab1 cor0
----
-1775
-197729
-9016

query I rowsort
SELECT col2 * 18 AS col2 FROM tab0 AS cor0
----
1782
180
846

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col1 + + ( + col0 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - 36, 30 AS col2 FROM tab2
----
-36
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, + col0 col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + 4 * - col1 AS col1 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT ( - col1 ) * ( col0 ) * + + col2 AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT DISTINCT col0 DIV - + col0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT col0 / - + col0 AS col2 FROM tab0
----
-1

query I rowsort
SELECT + ( - - 87 ) AS col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT - MIN( DISTINCT - + 92 ) AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT - MIN ( DISTINCT - + 92 ) AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT ALL - + 70 * 53 FROM tab2 AS cor0
----
-3710
-3710
-3710

query I rowsort
SELECT DISTINCT col1 * - 22 - + 65 AS col1 FROM tab1 AS cor0
----
-1099
-175
-373

query I rowsort
SELECT + 4 AS col2 FROM tab2 WHERE + 17 IN ( + ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT DISTINCT - col1 DIV + col0 + col0 AS col2 FROM tab0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - col1 / + col0 + col0 AS col2 FROM tab0
----
10
87
97

query I rowsort
SELECT ALL - 71 - 80 FROM tab1
----
-151
-151
-151

query I rowsort
SELECT ALL 50 FROM tab2 WHERE ( col0 ) >= ( + col2 * 23 )
----

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT ALL - 31 AS col1 FROM tab1
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + 3 FROM tab2
----
-43
-61
-72

query I rowsort
SELECT - col0 FROM tab1 WHERE - col2 + - col0 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col2 FROM tab2
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT - col1 DIV col0 + - col1 FROM tab0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-9951
SELECT - col1 / col0 + - col1 FROM tab0
----
-1
-21
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + col2 + col2 ) col2 FROM tab0
----
-67
101
79

query III rowsort
SELECT * FROM tab2 WHERE ( 41 + 3 * 20 ) IN ( col0 + 39 )
----

query I rowsort
SELECT 18 * 57 FROM tab0 WHERE + col2 * + col1 NOT BETWEEN - 54 - + col2 AND - col0
----
1026
1026
1026

query I rowsort
SELECT - 28 + 34 * - col1 AS col1 FROM tab2
----
-1762
-2306
-2646

query I rowsort
SELECT ALL + 99 * col0 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL MIN( col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL MIN ( col1 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT DISTINCT 63 + - col1 AS col0 FROM tab1
----
16
49
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + 7 * - ( - MIN( ALL col0 ) ) FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 7 * - ( - MIN ( ALL col0 ) ) FROM tab1
----
357

query I rowsort
SELECT - 86 * + 63 + - col1 AS col0 FROM tab1 AS cor0
----
-5423
-5432
-5465

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < - 91
----

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + + col2 * 4 BETWEEN col2 - col0 AND col0
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 * 34 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + + 77 * SUM( col0 + col2 ) FROM tab0 AS cor0
----
27335

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + + 77 * SUM ( col0 + col2 ) FROM tab0 AS cor0
----
27335

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 31 ) NOT IN ( + 93 )
----

query I rowsort
SELECT ALL - ( + 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab0 cor0
----
58
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * + 61 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT + COUNT( * ) * + 8 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9972
SELECT + COUNT ( * ) * + 8 FROM tab2
----
24

query I rowsort
SELECT + col0 * + + col1 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT col1 DIV + + 82 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT col1 / + + 82 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 98 * - col0 AS col1 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT DISTINCT + ( 40 ) FROM tab1
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9977
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - 19 + - 96 > ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - 19 + - 96 > ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9978
SELECT * FROM tab0 WHERE NOT NULL >= - CAST( col2 AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-9978
SELECT * FROM tab0 WHERE NOT NULL >= - CAST ( col2 AS INTEGER ) + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 + + col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 78 / - col2 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT ALL col1 * ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT 7 * + 4 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT MIN( ALL + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9984
SELECT MIN ( ALL + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL 86 + - - 93 FROM tab2 AS cor0
----
179
179
179

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( - col2 * 63 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL + 28 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + 28 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9991
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT ALL COUNT( * ) DIV 81 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col2 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL COUNT ( * ) / 81 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col2 + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * - - col0 * - col2 + col0 * col1 )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9995
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 61 + + 83 + - CAST( col2 AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-9995
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 61 + + 83 + - CAST ( col2 AS INTEGER ) * - col2
----

query I rowsort
SELECT - 39 * - col2 + - 38 FROM tab0 AS cor0
----
1795
352
3823

query I rowsort
SELECT + 31 + - 86 + - col2 * col0 FROM tab0 AS cor0
----
-760
-925
-9658

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - 89 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - 89 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT ALL + - col2 + col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

